Skip to content

fix(endpoint): frozen-deep keeps branded primitives, sourced from type-fns - #62

Merged
ehm-seaturtle merged 1 commit into
mainfrom
beav/fix-frozen-deep-branded-primitives
Oct 3, 2026
Merged

ehm-seaturtle merged 1 commit into
mainfrom
beav/fix-frozen-deep-branded-primitives

Conversation

@ehm-seaturtle

Copy link
Copy Markdown
Member

fix(endpoint): frozen-deep keeps branded primitives, sourced from type-fns

  • a branded primitive (IsoTimeStamp, any glossary brand) stays assignable
    after the invoke freeze (🎙️ task - fix(types): FrozenDeep maps branded primitives to objects; fix, then import it from type-fns #48)
  • FrozenDeep comes from type-fns, re-exported from the root; no import changes
  • the runtime freeze is type-fns asFrozenDeep: a frozen Date/Map/Set mutator
    now throws; a typed array with bytes or a global RegExp fails before invoke
    as a MalfunctionError
  • a frozen-mutator refusal is a server fault, never a BadRequestError envelope
  • Map/Set in a payload are ReadonlyMap/ReadonlySet at the type level
  • gitignore **/.claude/scheduled_tasks.lock; untrack the actor lock

🐢🌊 surfed in by seaturtle[bot]

…e-fns

- a branded primitive (IsoTimeStamp, any glossary brand) stays assignable
  after the invoke freeze (#48)
- FrozenDeep comes from type-fns, re-exported from the root; no import changes
- the runtime freeze is type-fns asFrozenDeep: a frozen Date/Map/Set mutator
  now throws; a typed array with bytes or a global RegExp fails before invoke
  as a MalfunctionError
- a frozen-mutator refusal is a server fault, never a BadRequestError envelope
- Map/Set in a payload are ReadonlyMap/ReadonlySet at the type level
- gitignore **/.claude/scheduled_tasks.lock; untrack the actor lock

Co-authored-by: Ulad Kasach <uladkasach@gmail.com>
@ehm-seaturtle
ehm-seaturtle enabled auto-merge (squash) October 3, 2026 12:37
@ehm-seaturtle
ehm-seaturtle merged commit d5c64a4 into main Oct 3, 2026
12 checks passed
@ehm-seaturtle
ehm-seaturtle deleted the beav/fix-frozen-deep-branded-primitives branch October 3, 2026 12:39
@rhelease rhelease Bot mentioned this pull request Oct 3, 2026
@rhelease

rhelease Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant