chore: release packages - #51
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This Changesets-generated release PR prepares @btravstack/entity for publication by bumping the package version, promoting the pending changeset entry into the package changelog, and removing the consumed changeset file.
Changes:
- Bump
@btravstack/entityfrom0.4.0to0.5.0. - Add
0.5.0release notes topackages/entity/CHANGELOG.md. - Remove the consumed changeset file
.changeset/castless-producers.md.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packages/entity/package.json | Updates package version to 0.5.0 for the release. |
| packages/entity/CHANGELOG.md | Adds the 0.5.0 changelog entry describing the minor change. |
| .changeset/castless-producers.md | Removes the changeset now incorporated into the changelog for publishing. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
btravers
force-pushed
the
changeset-release/main
branch
2 times, most recently
from
August 9, 2026 12:57
796db24 to
267ad99
Compare
btravers
force-pushed
the
changeset-release/main
branch
from
August 9, 2026 13:05
267ad99 to
0aaf7ef
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
@btravstack/entity@0.5.0
Minor Changes
cea1120: Producer callbacks are now typed as their schema's input, so the cast they
all carried is gone:
Nothing changes at runtime: a computed value was always parsed by its own schema
on every construction path, and generated values always went through
make'svalidation. The types now say so. Existing code compiles unchanged — a branded
return still assigns to its schema's input.
One narrowing: a generator for a field that is both
.optional()andgeneratedwas an optional key and is now required (it may returnundefined).Declaring that combination is not known to occur anywhere.
a280317: Type a root's merged field map as child-wins, matching the runtime.
Root.extend(tag)(fields)merges fields with{ ...parent.fields, ...nextFields }, soa variant redeclaring an inherited field wins. The types said
S & S2, which typedthat key as both brands at once while the schema held was the child's alone —
the same lie already fixed for the
computedmap. The merge is nowMergedFields<S, S2>—Omit<S, keyof S2> & S2— atextend's return type and atits
computedandinvariantsinput positions, so a rule'sdreads a redeclaredfield honestly too.
Nothing changes at runtime, and no entity declaration that compiled stops
compiling — the change is confined to what
extendreports for a redeclared key.Code consuming such a key is what may break: an assignment relying on the
root's brand there was always unsound, since the value never carried that brand,
and it now fails to compile instead of passing silently. As with
computed, the honestsurfaces are
Entity.Output,toJSON()andoutput.shape— an instance stillreads as the intersection, because a root's instance type reaches a variant
unmapped (
TS2425).MergedFieldsis exported at the top level, and asEntity.MergedFields, for thereason
MergedComputedis: written inline, the 5.9.3 emitter copies the typeparameter through unsubstituted and a consumer's declarations fail with
TS2304.