diff --git a/.changeset/93-gc-collectrefs-oneof.md b/.changeset/93-gc-collectrefs-oneof.md deleted file mode 100644 index e0daa0e..0000000 --- a/.changeset/93-gc-collectrefs-oneof.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -"@ocas/core": patch ---- - -Fix `gc` false-orphan deletion of `oneOf`-linked CAS chains and template content nodes. - -`collectRefs` now traverses `oneOf` sub-schemas (previously skipped even though -the meta-schema accepted the keyword), so `walk`/`refs` correctly follow -`ocas_ref` fields nested inside `oneOf` combinators (e.g. nullable `prev` / -`detail` / `workflow` refs in uwf step chains). - -`gc` no longer treats `@ocas/template/text/*` variables as roots; instead it -walks template content only when its referenced schema is itself reachable -from non-template roots, mirroring `computeClosure` Phase 3. This prevents -orphan template nodes from surviving GC when their schema is unreachable. - -Fixes #93 diff --git a/packages/core/package.json b/packages/core/package.json index b467c9e..209e4a5 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@ocas/core", - "version": "0.4.0", + "version": "0.4.1", "description": "Core CAS engine — hashing, schema, store, verify, bootstrap", "keywords": [ "cas",