@supersuit/artifacts 0.57.0 → 0.57.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,26 @@
3
3
  `@supersuit/artifacts`. One entry per version, newest first. Each entry says what changed, how a
4
4
  host can tell whether it is affected (DETECTOR), what a host does about it (REMEDY), and the tests.
5
5
 
6
+ ## 0.57.2 (2026-10-26)
7
+
8
+ **0.57.1, published.** 0.57.1 was tagged but never reached npm: its publish run refused it, because
9
+ a second test (`src/routes/page-analytics-mount.test.tsx`) still expected the label as the PostHog
10
+ name. That test now asserts the identity carries no `name`. Everything in the 0.57.1 entry below
11
+ ships in this version.
12
+
13
+ ## 0.57.1 (2026-10-26, never published: see 0.57.2)
14
+
15
+ **Page analytics no longer send a per-reader link's label to PostHog.** A per-reader page identified its
16
+ reader as `recipient:<rid>` with `name` set to the label the publisher gave the link, which is the
17
+ person's name, so every reader's name sat in the analytics provider. The operator's ruling for
18
+ superlinks (2026-10-26): analytics gets the link's id, never who it is for.
19
+
20
+ - The identity is `{ distinctId: 'recipient:<rid>' }`, no `name`. A signed-in reader on a gated page is
21
+ unchanged.
22
+ - DETECTOR: a PostHog person whose distinct id starts `recipient:` carries a `name` property.
23
+ - REMEDY: update the host. Names already sent stay in PostHog until deleted there.
24
+ - Tests: src/reader/analytics-plan.test.ts (the per-reader identity is the id alone).
25
+
6
26
  ## 0.57.0 (2026-10-26)
7
27
 
8
28
  **`GET /api/artifacts/<id>` says what a link to the page lets its reader do.** A sender approves a
package/README.md CHANGED
@@ -1279,7 +1279,7 @@ Who is recorded, and as whom (`analyticsPlan`, `src/reader/analytics-plan.ts`):
1279
1279
  - Never the owner or an admin (signed in, previewing `?as=reader`, or on the owner's own per-reader
1280
1280
  link), never a link-preview fetcher, never a past version.
1281
1281
  - A gated page identifies the signed-in reader by email.
1282
- - A per-reader link identifies as `recipient:<rid>` with the label the publisher gave it.
1282
+ - A per-reader link identifies as `recipient:<rid>` and nothing more: never the label the publisher gave it, which names the person (0.57.1). The id-to-person map stays with the publisher, in the recipients store.
1283
1283
  - A public or password page stays anonymous.
1284
1284
  - Every page, whatever its kind, records replays with all text and all inputs masked
1285
1285
  (`RECORDING_MASK`), and autocapture collects no element text. There is no opt-out.
@@ -6,8 +6,8 @@
6
6
  // - The owner and the host's admins are never recorded, signed in or on their own per-reader link.
7
7
  // - A link-preview fetcher is never handed the script.
8
8
  // - A reader is identified only where the page already knows who they are: a gated page by the
9
- // signed-in email, a per-reader link by its opaque recipient id and the label the publisher gave
10
- // it (never a phone or an email, which the recipients store does not hold). A public or password
9
+ // signed-in email, a per-reader link by its opaque recipient id alone: never the label the
10
+ // publisher gave it, which names the person (2026-10-26), and never a phone or an email. A public or password
11
11
  // page stays anonymous, even when its reader happens to be signed in.
12
12
  export const DEFAULT_POSTHOG_HOST = 'https://us.i.posthog.com';
13
13
  export function analyticsPlan(input) {
@@ -20,7 +20,8 @@ export function analyticsPlan(input) {
20
20
  identity = { distinctId: email, email, ...(input.reader.name ? { name: input.reader.name } : {}) };
21
21
  }
22
22
  else if (input.kind === 'per-reader' && input.recipient?.rid) {
23
- identity = { distinctId: `recipient:${input.recipient.rid}`, name: input.recipient.label };
23
+ // The link's id alone: who it is for stays with the publisher (superlinks, 2026-10-26).
24
+ identity = { distinctId: `recipient:${input.recipient.rid}` };
24
25
  }
25
26
  return {
26
27
  key,
@@ -127,7 +127,7 @@ export type ArtifactRoutesConfig = {
127
127
  * autocapture, scroll depth on leave, and section_viewed / narration_* events. Without a key no
128
128
  * page loads any analytics script. Never records the owner or an admin, never a link-preview
129
129
  * fetcher, never a past version; identifies a reader only on a gated page (their email) or a
130
- * per-reader link (its recipient id and label). See reader/analytics-plan.ts. */
130
+ * per-reader link (its recipient id alone, never the label). See reader/analytics-plan.ts. */
131
131
  analytics?: AnalyticsConfig | null;
132
132
  };
133
133
  /** Ids are 8 chars from the safe alphabet; anything else is not a page and never reaches the store. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supersuit/artifacts",
3
- "version": "0.57.0",
3
+ "version": "0.57.2",
4
4
  "description": "Publish markdown as branded, read-aloud pages from a Next.js app: the artifacts store, the route factory, the read-along reader, brand packs, password and confidential pages, and share cards.",
5
5
  "license": "MIT",
6
6
  "type": "module",