@pattern-stack/codegen 0.7.1 → 0.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pattern-stack/codegen",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "Entity-driven code generation for full-stack TypeScript applications",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -44,6 +44,14 @@ import type {
44
44
  /**
45
45
  * Default ignore list. Keep in sync with consumer canonical-record shapes —
46
46
  * adding a row-metadata field here means no sync will ever mark it changed.
47
+ *
48
+ * Includes the columns contributed by the `external_id_tracking` behavior
49
+ * (`external_id`/`externalId`, `provider`, `provider_metadata`/`providerMetadata`).
50
+ * These are sync-tracking metadata, not domain attributes: they ride on the
51
+ * canonical record but must never register as a field change (the external id
52
+ * is the record's identity, not a mutable value). Listed in both snake_case
53
+ * and camelCase so the differ ignores them regardless of the consumer's
54
+ * canonical projection casing.
47
55
  */
48
56
  const DEFAULT_IGNORE_FIELDS: ReadonlySet<string> = new Set([
49
57
  'id',
@@ -53,6 +61,10 @@ const DEFAULT_IGNORE_FIELDS: ReadonlySet<string> = new Set([
53
61
  'type',
54
62
  'lastModifiedAt',
55
63
  'fields',
64
+ 'external_id',
65
+ 'externalId',
66
+ 'provider',
67
+ 'provider_metadata',
56
68
  'providerMetadata',
57
69
  ]);
58
70