tagreeve 0.7.0-rc.4 → 0.7.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,61 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.7.0
4
+
5
+ `npm i -g tagreeve` installs this release. 0.7.0 adds everything in the 0.7.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.6.2, read the next section.
6
+
7
+ ### What 0.7.0 adds
8
+
9
+ - Three new built-in checks, each `warn` by default and settable to `fail`. `earlyIdentityPush` warns when a `dataLayer` push carries the run's own test email or phone, or a hash of either, before consent, and never prints the value. `idHandover` warns when the GA4 client ID, or the session ID where the client ID matches, differs between two contexts of one measurement ID, and never prints an ID. `serverContainerRejected` warns when the local server container rejects more than half of the browser requests it gets, and at least 2, and the `Server container` line then says how many.
10
+ - Rules on dataLayer pushes: `dataLayer: { event, has, types, kind, frame }` in `must` and `mustNot` checks which pushes a page makes, by event name, key paths and types, and reads each push in full. It never reads or prints a pushed value.
11
+ - Consent Mode setup check: a `consent default` pushed as a plain object, for example relayed from a sandboxed frame, counts as pushed.
12
+ - `diff` keeps a cross-epoch join of a renamed event.
13
+ - The fixture site has a plain GTM demo shop under `/plain/`, and the docs mark the Shopify-specific options.
14
+ - The npm package includes `CHANGELOG.md`, and releases are published from CI with npm provenance.
15
+ - Fixes in the release candidates: the `earlyIdentityPush` masking of keys that hold the email local part, the `idHandover` message for one context, and the CA certificates of the server container runner.
16
+
17
+ ### Upgrading from 0.6.2
18
+
19
+ - **Three new built-in checks can warn.** `earlyIdentityPush` and `idHandover` warn by default, so a run that passed cleanly in 0.6.2 can now show a warning. `serverContainerRejected` runs only with `--server-container`. Set any of them to `fail` in `builtins` to make it fail the run. A warning does not change the exit code.
20
+ - **A `consent default` pushed as a plain object now counts for `consentModeSetup`.** A run that warned on it in 0.6.2 can pass.
21
+ - **`dataLayer:` is a new rule kind.** An existing scenario is not affected.
22
+ - **`diff` keeps a cross-epoch join.** A renamed event that 0.6.2 showed as moved or as removed and added can now show as one joined pair.
23
+ - **The record stays at version 5.** A 0.6.2 record reads as before.
24
+
25
+ ### Known in 0.7.0
26
+
27
+ Issues still open that you can meet:
28
+
29
+ - `network: stub` and `server` mode can still let a hit reach a real vendor account, for an unknown destination in `stub` and for a hosted `serverHosts` host in `server`.
30
+ - Records keep the full flag detail, including query values. Do not share a record from a page that sends an identifier in a query.
31
+ - `--server-container` needs Docker. The container downloads its configuration from Google at every start, so a run needs the network for three Google paths, and Google sees the container's request with your `gtm_auth`.
32
+ - The local container is Google's image. Stape-only features are missing, and with the live config it serves the published version. To test an unpublished server workspace, use a config from its preview environment.
33
+ - On a multi-page run a server container call rarely links `exact` by client ID, because later calls see several hits with the same client ID. `serverContainer.notExact` counts these calls.
34
+ - Sends from `pagehide` or `visibilitychange` are answered in the page, also to your `serverHosts`, so the container never gets them.
35
+ - The Meta Conversions API, Pinterest and Criteo template tags are not yet proven to reach the recording proxy.
36
+ - The `payment` step is not confirmed on a real Shopify checkout. The test-mode marker on the page, the expiry format and the card frame paths are inferred. If one does not match, the step fails closed and the error names the frame path and the inputs' attributes. It checks the card host before each short fill try, which narrows the window in which typing could go to another host but cannot close it.
37
+ - The payment hang fix (#1339) and the server-mode link fixes (#1029, #1223) are covered by tests. They were not tried on a real store.
38
+ - The Shopify platform-host list holds only hosts that a Shopify docs page names. Other Shopify hosts stay `unknownDestination`.
39
+ - Playwright's request interception sometimes misses a redirect hop. The `possibleRedirectHop` flag marks a likely miss in `stub` and `server` mode. `live` mode has no such flag.
40
+ - With `--net-log`, requests seen only in the net log are labelled by timing, and an early `srcdoc` iframe request can still read `unload`.
41
+ - `--viewport` takes `<W>x<H>` only. A `mobile` preset is not built.
42
+ - `identity.country` has local formats for US, SE, GB and DE. Other countries keep US-shaped data and the run warns.
43
+ - Page code that sabotages itself on purpose can still hide the untrapped list of the `dataLayer` count check (#1442).
44
+ - `diff` moves events of the same name with no join in a greedy order, so with several of them the pairing can differ from the one you expect.
45
+ - A consent update pushed as a plain object does not move the consent epoch. Only the Consent Mode setup check reads it, so a later hit can still be labelled with the earlier epoch.
46
+ - The reporter's own entry is in `tags[]` once for each event. The timeout status and the version string of a published container are field checks.
47
+ - A report sent while the page navigates can be lost, so `notFired` can list a tag that fired.
48
+ - Any page script can call the binding or change what the tally reads, so a tag report and the count check are what the page said, not proof.
49
+ - The server tag reporter is not built.
50
+ - The `dataLayer` hook after real `gtm.js` re-wraps, and `gtm.uniqueEventId` on real pushes, are field checks (#922). Arguments-like pushes from the pixel sandbox are read as `gtag` commands in shapes only.
51
+ - The count check compares only the document each frame holds when the run closes. A page that replaced `push` on an earlier page of the run only is not flagged, and a page that edits its `dataLayer` in place can be flagged.
52
+ - `consentModeSetup` reads the `gcd` letters, whose format is documented only by the community.
53
+ - Hits and pushes are not joined per frame (#931, #932).
54
+ - A blocking control with no `aria-label`, `name` or `id` has no name in a `wait` timeout message.
55
+ - A baseline can drift on one GA4 hit whose `gcd` differs only between a consent default and a default plus update for the same consent state, so two runs of one scenario can give drift and no drift (#1569).
56
+ - When the store rate-limits the session, an `addToCart` step fails with "click did not add to cart" and does not name the 429 answer (#1576).
57
+ - Other `review-minor` issues are open. They are test gaps, wording, build edge cases and a vendor name table.
58
+
3
59
  ## 0.7.0-rc.4
4
60
 
5
61
  The fourth release candidate, after the rc.3 field test. Install it with `npm i -g tagreeve@next`.
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.7 (`0.7.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). 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.7 (`0.7.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). 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,7 +17,7 @@ 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.7.0-rc.4:** rc.4 adds the built-in check `serverContainerRejected`. With `--server-container`, it warns when the local server container rejects more than half of the browser requests it gets, and at least 2, and the `Server container` line then says how many were rejected. It is `warn` by default and can be set to `fail`. rc.4 is the first release published from CI, with npm provenance. 0.7.0-rc.3 fixed the `earlyIdentityPush` masking of keys that hold the email local part, the `idHandover` message for one context, the `CHANGELOG.md` in the npm package and the CA certificates of the server container runner. 0.7.0 has three new built-in checks and a rule kind for `dataLayer` pushes. `earlyIdentityPush` warns when a push carries the run's own test identity before consent. `idHandover` warns when the GA4 client or session ID differs between two contexts. All three warn by default and can be set to `fail`. `dataLayer:` rules check which pushes a page makes. A `consent default` pushed as a plain object now counts for `consentModeSetup`. `diff` keeps a cross-epoch join. The fixture site has a plain GTM demo shop. The record stays at schema version 5. `npm i -g tagreeve@next` installs it. To upgrade from 0.6.2, read "Upgrading from 0.6.2" in [CHANGELOG.md](CHANGELOG.md). What is still open is in the same file under "Known in 0.7.0-rc.1".
20
+ > **In 0.7.0:** everything in the 0.7.0 release candidates, with no code change after rc.4. Three new built-in checks: `earlyIdentityPush` warns when a `dataLayer` push carries the run's own test identity before consent, `idHandover` warns when the GA4 client or session ID differs between two contexts, and `serverContainerRejected` warns when the local server container rejects most browser requests. All three warn by default and can be set to `fail`. `dataLayer:` rules check which pushes a page makes. A `consent default` pushed as a plain object now counts for `consentModeSetup`. `diff` keeps a cross-epoch join. The fixture site has a plain GTM demo shop. Releases are published from CI with npm provenance. The record stays at schema version 5. `npm i -g tagreeve` installs it. To upgrade from 0.6.2, read "Upgrading from 0.6.2" in [CHANGELOG.md](CHANGELOG.md). What is still open is in the same file under "Known in 0.7.0".
21
21
  >
22
22
  > **In 0.6.2:** fixes after 0.6.1, with no new command and no new option. A test payment ends by its deadline when a card frame stops answering. A scoped `must` rule can now warn where 0.6.1 failed, so a run can exit 0. `diff --json` has `renamedFrom` and `pushKind`. `tagreeve init` creates nothing when a target is refused. The record stays at schema version 5. `npm i -g tagreeve` installs it. To upgrade from 0.6.1, read "Upgrading from 0.6.1" in [CHANGELOG.md](CHANGELOG.md). What is still open is in the same file under "Known in 0.6.2".
23
23
  >
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tagreeve",
3
- "version": "0.7.0-rc.4",
3
+ "version": "0.7.0",
4
4
  "description": "Agent-first testing for website tracking and consent.",
5
5
  "license": "MIT",
6
6
  "repository": {