Skip to content

feat(contract): make .contract() a coercing boundary that hydrates dobjs - #137

Merged
uladkasach merged 2 commits into
mainfrom
beav/feat-contract-coerce
Sep 12, 2026
Merged

uladkasach merged 2 commits into
mainfrom
beav/feat-contract-coerce

Conversation

@uladkasach

Copy link
Copy Markdown
Member

feat(contract): make .contract() a coercing boundary that hydrates dobjs

  • X.contract() now parses wire json into a live dobj instance, typed as
    the class rather than any — one declaration serves both instantiation
    and introspection
  • .ref moves onto the call and gains a real type; .ref() is the grain union
  • a ctor failure is contained as a path-tagged zod issue, never a throw
  • every affected call site is loud at compile time; see readme upgrade note

🐢🌊 surfed in by seaturtle[bot]

ehm-seaturtle and others added 2 commits September 12, 2026 08:56
- X.contract() now parses wire json into a live dobj instance, typed as
  the class rather than `any` — one declaration serves both instantiation
  and introspection
- .ref moves onto the call and gains a real type; .ref() is the grain union
- a ctor failure is contained as a path-tagged zod issue, never a throw
- every affected call site is loud at compile time; see readme upgrade note

Co-authored-by: ulad kasach <uladkasach@gmail.com>
- github policy rejects a version tag, so every run died at "Prepare all
  required actions" before any code ran
- 46 refs across 6 workflows, 11 distinct actions
- each SHA copied from declapract-typescript-ehmpathy upstream, which
  already carries these pins — none derived by hand
- local ./.github refs left as-is; the policy targets third-party only

Co-authored-by: ulad kasach <uladkasach@gmail.com>
@uladkasach
uladkasach merged commit 85bfc5c into main Sep 12, 2026
16 checks passed
@uladkasach
uladkasach deleted the beav/feat-contract-coerce branch September 12, 2026 15:04
@rhelease rhelease Bot mentioned this pull request Sep 12, 2026
@rhelease

rhelease Bot commented Sep 12, 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.

2 participants