From 8269827c89ed94e39160500c54f62bfa64deddea Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 13 Aug 2026 19:38:09 +0000 Subject: [PATCH] chore: release packages --- .../computed-self-reference-annotation.md | 14 ---------- .changeset/lazy-pans-brake.md | 13 --------- packages/entity/CHANGELOG.md | 27 +++++++++++++++++++ packages/entity/package.json | 2 +- 4 files changed, 28 insertions(+), 28 deletions(-) delete mode 100644 .changeset/computed-self-reference-annotation.md delete mode 100644 .changeset/lazy-pans-brake.md diff --git a/.changeset/computed-self-reference-annotation.md b/.changeset/computed-self-reference-annotation.md deleted file mode 100644 index 7b5046c..0000000 --- a/.changeset/computed-self-reference-annotation.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -"@btravstack/entity": patch ---- - -Document the self-referencing deriver idiom (#60): a `computed` deriver or an -`Entity.invariant` predicate may call the entity's own statics, given an -explicit return annotation — `(d): boolean => Doc.isActive(d.tags)`. The -unannotated form is `TS2506`, which is TypeScript resolving the deriver's -inferred return type inside the class's own base expression, not a rule of -the library. The annotation is still checked against both the body and the -schema. `computed.test-d.ts` pins the idiom, the wrong-annotation errors, and -the `this`-parameter dead end (`TS2502`). - -Documentation only; no runtime or API change. diff --git a/.changeset/lazy-pans-brake.md b/.changeset/lazy-pans-brake.md deleted file mode 100644 index 4ff0f47..0000000 --- a/.changeset/lazy-pans-brake.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -"@btravstack/entity": minor ---- - -`equals` now delegates to `node:util`'s `isDeepStrictEqual` instead of a -hand-rolled traversal. Behaviour is unchanged for every case the suite pins — -`bigint`, `Set`/`Map` by contents, nested key order, typed arrays and -`ArrayBuffer` bytewise, `RegExp`, `Date`, and cyclic values — with one -difference: `+0` and `-0` now compare **unequal** (`Object.is` semantics) where -the previous implementation treated them as equal (SameValueZero). - -This makes the package **Node-only**: it now imports a `node:` builtin, so a -browser or edge bundle without a `node:util` shim will fail to resolve it. diff --git a/packages/entity/CHANGELOG.md b/packages/entity/CHANGELOG.md index da6cf9c..1d11ec5 100644 --- a/packages/entity/CHANGELOG.md +++ b/packages/entity/CHANGELOG.md @@ -1,5 +1,32 @@ # @btravstack/entity +## 0.8.0 + +### Minor Changes + +- c02be10: `equals` now delegates to `node:util`'s `isDeepStrictEqual` instead of a + hand-rolled traversal. Behaviour is unchanged for every case the suite pins — + `bigint`, `Set`/`Map` by contents, nested key order, typed arrays and + `ArrayBuffer` bytewise, `RegExp`, `Date`, and cyclic values — with one + difference: `+0` and `-0` now compare **unequal** (`Object.is` semantics) where + the previous implementation treated them as equal (SameValueZero). + + This makes the package **Node-only**: it now imports a `node:` builtin, so a + browser or edge bundle without a `node:util` shim will fail to resolve it. + +### Patch Changes + +- 02c29e3: Document the self-referencing deriver idiom (#60): a `computed` deriver or an + `Entity.invariant` predicate may call the entity's own statics, given an + explicit return annotation — `(d): boolean => Doc.isActive(d.tags)`. The + unannotated form is `TS2506`, which is TypeScript resolving the deriver's + inferred return type inside the class's own base expression, not a rule of + the library. The annotation is still checked against both the body and the + schema. `computed.test-d.ts` pins the idiom, the wrong-annotation errors, and + the `this`-parameter dead end (`TS2502`). + + Documentation only; no runtime or API change. + ## 0.7.0 ### Minor Changes diff --git a/packages/entity/package.json b/packages/entity/package.json index c0f4626..001821f 100644 --- a/packages/entity/package.json +++ b/packages/entity/package.json @@ -1,6 +1,6 @@ { "name": "@btravstack/entity", - "version": "0.7.0", + "version": "0.8.0", "description": "A domain-entity builder on zod v4: branded fields, immutable data, sealed construction, and Result instead of throws", "keywords": [ "ddd",