Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .changeset/loud-pumas-yell.md

This file was deleted.

13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @stackmade/gtm-as-code

## 0.8.1

### Patch Changes

- 302c04d: Fixes `deepEqual` (used by `plan`/`drift`/`apply` to detect changes) reporting a permanent phantom
`update` on any GTM resource whose config never sets an optional field: Zod materializes an
optional key with value `undefined` on the desired side, the remote payload (from `fromGtmPayload`)
never carries that key at all, and `deepEqual`'s key-count comparison treated the two as different
objects forever — discovered adopting a real container where every `gtm.variables`/`gtm.triggers`
entry without a `folder` showed `~ update` with no visible field diff (`printFieldDiff`'s
`JSON.stringify`-based comparison already treated the two as equal, so the mismatch was silent).
`deepEqual` now ignores keys whose value is `undefined` on either side before comparing key counts.

## 0.8.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stackmade/gtm-as-code",
"version": "0.8.0",
"version": "0.8.1",
"description": "GTM & GA4 as code — define Google Tag Manager and Analytics 4 config in YAML, plan/apply like Terraform.",
"license": "MIT",
"type": "module",
Expand Down