Skip to content

Version Packages - #51

Merged
jimmy-phantom merged 1 commit into
mainfrom
changeset-release/main
Aug 13, 2026
Merged

Version Packages#51
jimmy-phantom merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

fetchium@0.5.0

Minor Changes

  • 98cb4e9: Add t.variant(value): a variant tag for union members that share a typename. t.typename keeps establishing entity identity (the [typename, id] cache key); t.variant selects which shape a payload parses as, so one entity type can have multiple shapes discriminated by a separate tag field. Parsing and live-collection event routing dispatch on the variant wherever members share a typename.

    Two behavior changes:

    • Unions now throw at definition time when two members share a typename without declaring variants, or collide on a (typename, variant) pair. Previously the last member silently overwrote the first, so payloads of the other shape failed validation and were dropped from arrays and mutation events.
    • Live collections whose entity defs share a typename without variants (possible via t.liveValue, which involves no union) previously checked every event against the last def only; events now route to the first def the entity's data satisfies.

@github-actions
github-actions Bot requested review from a team and pzuraq as code owners August 13, 2026 21:56
@jimmy-phantom
jimmy-phantom force-pushed the changeset-release/main branch from e1dba1c to decd046 Compare August 13, 2026 22:04
@jimmy-phantom
jimmy-phantom merged commit f8a2fb0 into main Aug 13, 2026
1 check passed
@jimmy-phantom
jimmy-phantom deleted the changeset-release/main branch August 13, 2026 22:07
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