Skip to content
This repository was archived by the owner on Oct 11, 2026. It is now read-only.

fix: decode omitted contexts as undefined - #177

Merged
KyleJune merged 1 commit into
mainfrom
codex/176-context-own-values
Oct 3, 2026
Merged

KyleJune merged 1 commit into
mainfrom
codex/176-context-own-values

Conversation

@KyleJune

@KyleJune KyleJune commented Oct 3, 2026 •

Copy link
Copy Markdown
Member

Summary

An omitted registered context named constructor, toString, or hasOwnProperty currently passes an inherited object member to its decoder. Read only own serialized entries so omitted contexts consistently receive undefined and can apply their documented fallback.

Changes

  • Check own membership before reading each registered context; retain own values, decoder order and exception identity.
  • Add a 32-case public-registration and actual hydration-codec regression covering omitted, default, explicit, falsy and absent-record values, including prototype-like names and safe own __proto__ entries.

Testing

  • Unchanged 0.17.6 source: 23 controls passed and the nine intended omitted-name assertions failed; the repaired fixture passes all 32 cases with frozen dependencies and leak tracing.
  • Windows: full deno task check and deno task test --parallel --reporter=dot passed, 66 tests / 946 steps.
  • Owned Ubuntu checkout: actual CI deno task test --coverage passed, 66 tests / 946 steps. The lockfile is unchanged; no browser or deployed-application claim.
  • Independent source/error, test/resource and whole-change working reviews and final committed-SHA confirmations are clear at 33487ca5dc3fe128c7f14af92c28f28f14485a8f; reviewers performed source-only reviews and did not rerun the owning gates.

Closes

Closes #176

@KyleJune
KyleJune merged commit 2f3eba8 into main Oct 3, 2026
11 checks passed
@KyleJune
KyleJune deleted the codex/176-context-own-values branch October 3, 2026 07:14
KyleJune pushed a commit that referenced this pull request Oct 3, 2026
## [0.17.7](0.17.6...0.17.7) (2026-10-03)

### Bug Fixes

* decode omitted contexts as undefined ([#177](#177)) ([2f3eba8](2f3eba8)), closes [#176](#176)
@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 0.17.7 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pass undefined to decoders for omitted context names

1 participant