tagreeve 0.8.0-rc.4 → 0.8.0

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
@@ -1,5 +1,51 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.8.0
4
+
5
+ `npm i -g tagreeve` installs this release. 0.8.0 adds everything in the 0.8.0 release candidates (below), with no code change after rc.4. It has no new command. The record stays at schema version 5. To upgrade from 0.7.0, read the next section.
6
+
7
+ ### What 0.8.0 adds
8
+
9
+ - A consent audit. `suite --consent accept,reject,none,withdraw` runs each scenario once per consent state and prints what each vendor got in each state. `options.canaries: true` plants six fake click IDs on the start URL, and the run follows each canary, and the run's own identity, to the vendor requests it reaches: through the page URL, a first-party cookie or the local server container. The `identifierRoute` built-in check fails when a canary reaches a vendor that the consent in force did not allow. `options.identifierRouteAllow` lists hosts it does not judge, such as a consent tool's own hosts. The HTML report of a consent suite has a Consent audit section, and the run report an Identifier routes section with one row per group of routes.
10
+ - Server container: a Stape loader request for `/g/collect` or `/data` goes to the local container at its real path, and a server GA4 hit behind a Stape loader links to its browser hit by client ID. A request with a replaced secret lists the secret names, never a value.
11
+ - Server container links: a server call links to a browser hit by event ID only when the hit was sent at or before the call. A Meta Conversions API call also links by event ID to a pixel hit sent up to 5 s after it, when no consent epoch starts in between.
12
+ - Server container: for `deniedIdentifiers` and `earlyIdentifiers`, an unlinked server call is judged by its own send time when its epoch is granted. A call sent in a denied, undecided, mixed or withdrawn epoch, or in none, stays `cannot evaluate` with `serverSendUnlinked`.
13
+ - Install docs give `npm i -g tagreeve` for the final release and name the tag for release candidates.
14
+ - 0.8.0 was field-tested on a real Shopify store with a first-party server container, through rc.1 to rc.4.
15
+
16
+ ### Fixes in 0.8.0
17
+
18
+ - Server-side rules read `cannot evaluate`, with the `serverContainerRejected` note, when the container rejects most browser requests. They failed or passed on missing data before.
19
+ - The identity matcher counts an email or phone as the run's own only when the whole value matches.
20
+ - `idHandover` compares session IDs per client ID.
21
+ - `dataLayer` rules: a `dataLayerNotHooked` loader survives an aborted navigation and a popup or other frame, and a `__proto__` type path is checked.
22
+ - Consent commands read a nested array and ignore `gtm.` keys in an indexed consent default.
23
+ - `diff` shows a `dataLayer` path that moved to a neighbouring consent epoch as one moved path.
24
+ - A baseline compare gives one warning, not drift, when a gcd letter changes between `p` and `q`, or between `t` and `v`.
25
+ - `addToCart` failures name the store's status and the cart path, and a 429 is named as rate limited.
26
+ - A late browser hit no longer takes a false event ID link after a consent withdrawal.
27
+ - The fixture site sends the relay page view after the consent step.
28
+
29
+ ### Upgrading from 0.7.0
30
+
31
+ - **A new built-in check can fail.** `identifierRoute` fails by default, but only for a run with `options.canaries: true`. A run without canaries is not affected.
32
+ - **Server-side rules can read cannot evaluate.** When the local container rejects most browser requests, a `sentBy: server` rule or a rule with no `sentBy` now warns where 0.7.0 failed or passed.
33
+ - **The identity matcher is stricter.** It counts only a whole email or phone value, so a run can show a foreign value that 0.7.0 hid.
34
+ - **A moved `dataLayer` path is one line in `diff`.** `diff --json` gets `dataLayer.pathsMoved`.
35
+ - **Server hits are recorded for `*.google-analytics.com`.** The local container's own GA4 calls to `*.google-analytics.com` are recorded, so a rule such as `mustNot: { vendor: ga4, host: region1.google-analytics.com }` now matches server hits too. Add `sentBy: browser` to keep it to browser hits.
36
+ - **A new release needs a new server image.** On arm64 (Apple silicon), run `tagreeve server-container build` after `npm i -g tagreeve`. A run with `--server-container` exits 2 with "The image tagreeve-sgtm:<version> is not available" until the image for that version exists. On amd64 the command builds nothing.
37
+ - **The record stays at version 5.** A 0.7.0 record reads as before.
38
+
39
+ ### Known in 0.8.0
40
+
41
+ Issues still open that you can meet, in addition to those in 0.7.0:
42
+
43
+ - A server GA4 hit behind a container that answers before its call stays `probable` (#1640), so its identifier routes warn with `serverSendProbableLink`.
44
+ - A Pinterest Conversions API call to api.pinterest.com gets no link to a browser hit, so its identifier routes warn under accept (#1648).
45
+ - `diff --by-page` can print the fake `TEST-` canary values from a canary run's page URL (#1606).
46
+ - The canary search reads only the forms it lists. It skips gzip and binary bodies, bodies cut at 64 KiB and net-log requests with no body, and it does not search headers. A pass means no planted value was found in the searched forms.
47
+ - The Stape loader unwrap covers `/g/collect` and `/data`. Stape's hosting layer may act on a loader request in other ways, and the record says so in fixed text.
48
+
3
49
  ## 0.8.0-rc.4
4
50
 
5
51
  The fourth release candidate, after the rc.3 field test. Install it with `npm i -g tagreeve@next`. It has no new command. The record stays at schema version 5. To go back to the final release, run `npm i -g tagreeve`.
package/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
 
10
10
  Agent-first testing for tags and consent. Tagreeve plays a visitor in a real browser, records every tracking hit the site sends, and checks the result against what you expect. Web tag reports (which GTM web tags fired) come from a GTM template you install. Server tag reports are planned.
11
11
 
12
- > **Status: 0.8 (`0.8.0-rc.4`).** Tagreeve plays a visitor in Chromium, records and decodes hits, answers the consent banner, checks YAML expectations and writes a JSONL record. 0.3 adds rules on payload fields and cookies, a `deniedIdentifiers` check, `tagreeve suite`, an HTML report, a Done control for handoff steps, role-based locators and a `select` step. 0.4 adds handoffs that end by themselves, an opt-in test payment step, baselines, a viewport option and fake identities by country. 0.5 adds `--server-container`, which runs your own server container in Docker and records what it sends to each vendor, a Conversions API decoder, several stores in one suite and platform hosts for Shopify. 0.6.0-rc.1 adds path defaults, `tagreeve init`, `tagreeve/config.yml`, `--label`, default baseline paths and `suite --baseline`, exact links between server container calls and browser hits by client ID, and the frame of each `dataLayer` push. 0.6.0-rc.2 adds web tag reports, `tagreeve template web`, `tag` rules, `expectedTags`, masked `dataLayer` push shapes in `diff` and baselines, and the `consentModeSetup` check. 0.6.0-rc.3 fixes the reporter in real GTM, keeps the `dataLayer` hook working when a page replaces `push`, adds push kinds and a `dataLayerIncomplete` flag, and sends handoff text to stderr. 0.6.0 is rc.3 with the release prep and no code change; it was field-tested on a real store with a real GTM web container in a workspace preview (rc.2 and rc.3). 0.7.0 adds the `earlyIdentityPush`, `idHandover` and `serverContainerRejected` checks and `dataLayer:` rules. 0.8.0-rc.1 adds a consent audit: `suite --consent`, identifier canaries and the `identifierRoute` check. The rest of this README describes where Tagreeve is going, and marks what is not built yet. The design is in [docs/design.md](docs/design.md). Feedback is welcome in issues.
12
+ > **Status: 0.8 (`0.8.0`).** Tagreeve plays a visitor in Chromium, records and decodes hits, answers the consent banner, checks YAML expectations and writes a JSONL record. 0.3 adds rules on payload fields and cookies, a `deniedIdentifiers` check, `tagreeve suite`, an HTML report, a Done control for handoff steps, role-based locators and a `select` step. 0.4 adds handoffs that end by themselves, an opt-in test payment step, baselines, a viewport option and fake identities by country. 0.5 adds `--server-container`, which runs your own server container in Docker and records what it sends to each vendor, a Conversions API decoder, several stores in one suite and platform hosts for Shopify. 0.6.0-rc.1 adds path defaults, `tagreeve init`, `tagreeve/config.yml`, `--label`, default baseline paths and `suite --baseline`, exact links between server container calls and browser hits by client ID, and the frame of each `dataLayer` push. 0.6.0-rc.2 adds web tag reports, `tagreeve template web`, `tag` rules, `expectedTags`, masked `dataLayer` push shapes in `diff` and baselines, and the `consentModeSetup` check. 0.6.0-rc.3 fixes the reporter in real GTM, keeps the `dataLayer` hook working when a page replaces `push`, adds push kinds and a `dataLayerIncomplete` flag, and sends handoff text to stderr. 0.6.0 is rc.3 with the release prep and no code change; it was field-tested on a real store with a real GTM web container in a workspace preview (rc.2 and rc.3). 0.7.0 adds the `earlyIdentityPush`, `idHandover` and `serverContainerRejected` checks and `dataLayer:` rules. 0.8.0-rc.1 adds a consent audit: `suite --consent`, identifier canaries and the `identifierRoute` check. 0.8.0 is rc.4 with the release prep and no code change; it was field-tested on a real Shopify store with a first-party server container (rc.1 to rc.4). The rest of this README describes where Tagreeve is going, and marks what is not built yet. The design is in [docs/design.md](docs/design.md). Feedback is welcome in issues.
13
13
  >
14
14
  > **In 0.1:** `tagreeve run` with `stub` and `live` network modes; consent epochs, with withdrawals labelled apart from first rejects; seeded fake identities, hash checks and leak detection; decoders for GA4, Google Ads, Meta, Stape custom loader and a minimal server-container data client; banner handling through autoconsent; expectations; JSONL output.
15
15
  >
@@ -17,6 +17,8 @@ Agent-first testing for tags and consent. Tagreeve plays a visitor in a real bro
17
17
  >
18
18
  > **In 0.3:** `body.has` and `body.only` rules on the field names of a hit; `cookie` rules; a `deniedIdentifiers` check that fails when an identifier goes out on a denied hit; `tagreeve suite` runs a folder of scenarios against several GTM builds; `tagreeve report` writes an HTML report of one run or a suite; a Done button in the handoff window; `click` and `wait` by role and name or from a list of selectors; a `select` step; the `server` network mode; record schema version 2. `deniedIdentifiers` fails by default, so a run that passed in 0.2 can exit 1. See [CHANGELOG.md](CHANGELOG.md).
19
19
  >
20
+ > **In 0.8.0:** everything in the 0.8.0 release candidates, with no code change after rc.4. A consent audit: `tagreeve suite --consent accept,reject,none,withdraw` runs each scenario once per consent state, `options.canaries: true` plants fake click IDs and the run follows them to the vendor requests they reach, and the new `identifierRoute` check fails when a canary reaches a vendor that consent did not allow. The server container links more calls to browser hits and judges an unlinked server call by its own send time. Many fixes to consent commands, `dataLayer` rules, `idHandover`, the identity matcher and `diff`. The record stays at schema version 5. `npm i -g tagreeve` installs it. On arm64, run `tagreeve server-container build` after the upgrade. To upgrade from 0.7.0, read "Upgrading from 0.7.0" in [CHANGELOG.md](CHANGELOG.md). What is still open is in the same file under "Known in 0.8.0".
21
+
20
22
  > **In 0.8.0-rc.4:** for `deniedIdentifiers` and `earlyIdentifiers`, an unlinked server call is judged by its own send time when its epoch is granted in both the label and the consent state, and a Google hit that states its own consent states every field granted. A call sent in a denied, undecided, mixed or withdrawn epoch, or in none, stays `cannot evaluate` with `serverSendUnlinked`. On arm64, run `tagreeve server-container build` after `npm i -g tagreeve@next`. The record stays at schema version 5. What is new is in [CHANGELOG.md](CHANGELOG.md) under 0.8.0-rc.4.
21
23
  >
22
24
  > **In 0.8.0-rc.3:** a Meta Conversions API call links by event ID (of at least 8 characters) to a pixel hit sent up to 5 s after the call, when no consent epoch starts in between. A hit across a consent change still does not link. After `npm i -g tagreeve@next`, run `tagreeve server-container build` on arm64, because the server container image is per version. The record stays at schema version 5. What is new is in [CHANGELOG.md](CHANGELOG.md) under 0.8.0-rc.3.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tagreeve",
3
- "version": "0.8.0-rc.4",
3
+ "version": "0.8.0",
4
4
  "description": "Agent-first testing for website tracking and consent.",
5
5
  "license": "MIT",
6
6
  "repository": {