Skip to content

feat: omit empty state inputs - #11

Merged
SandroMaglione merged 1 commit into
mainfrom
codex/omit-empty-state-input
Aug 1, 2026
Merged

feat: omit empty state inputs#11
SandroMaglione merged 1 commit into
mainfrom
codex/omit-empty-state-input

Conversation

@SandroMaglione

Copy link
Copy Markdown
Member

Summary

  • allow state builder .from() calls to omit the constructor input when {} satisfies the selected schema's exact ~type.make.in
  • preserve required inputs, compound and parallel selection callbacks, contextual inference, and parallel-region exhaustiveness
  • normalize omitted input to {} before the existing deferred schema.makeEffect construction path, so defaults, class identity, and MachineSchemaDecodeError refinement failures are unchanged
  • document the shorthand and add runtime plus negative type coverage across initial, local, local.with, branch, full, compound, parallel, atomic, and final builders

Release

Includes a dedicated minor Changesets entry. After this PR merges into main, the existing Changesets release PR #6 can incorporate this API into the same queued release.

Validation

  • pnpm check
  • 207 runtime tests
  • 92 type tests / 378 assertions
  • strict packed-consumer validation
  • package verification

@SandroMaglione
SandroMaglione marked this pull request as ready for review August 1, 2026 17:24
@SandroMaglione
SandroMaglione merged commit 4ba1f90 into main Aug 1, 2026
2 checks passed
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