Version Packages - #2
Merged
Merged
Conversation
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
July 26, 2026 21:58
b216667 to
cf57219
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
@text-rendering-toolkit/font@0.2.0
Minor Changes
aca5e1a: Report unusable arguments with each package's own error type.
generateSdf, theTextandTextResourcesconstructors, andloadFonteachread a field off their argument before validating it, so
null,undefined, aprimitive, or a throwing getter escaped as a raw
TypeError— or as thecaller's own error — instead of the type each function documents.
generateSdfalso read
widthandviewBoxmore than once, so a getter returning differentvalues could size a raster by a number that was never validated.
Each entry point now copies its argument once, up front, and reports anything
unreadable as
InvalidSdfInputError,InvalidTextInputError, orInvalidFontErrorwith the original attached ascause.loadFontreports adetached
ArrayBuffer— or a view onto one — the same way.Every error this toolkit wraps now carries the original as
cause, includingtwo that previously discarded it: shaping failures raised by HarfBuzz, and font
loads that failed during parsing.
@text-rendering-toolkit/fontis aminorbecauseInvalidFontErrorextendsErrorrather thanTypeError: code catchingTypeErroraroundloadFonttohandle a detached buffer no longer matches. The SDF and Three errors both extend
TypeError, so callers catching that continue to match.@text-rendering-toolkit/layout@0.2.0
Minor Changes
aca5e1a: Contain font handle failures inside the layout error contract.
layoutTextandlayoutPreparedTextpreviously let errors from@text-rendering-toolkit/fontescape unwrapped — a typo in a style's variationaxis or feature string surfaced as
InvalidShapingInputError, and a handledisposed mid-layout surfaced as
DisposedFontHandleError, neither of which thedocumented contract mentioned. Callers had to catch error types from a package
they may not import.
Every call into a caller-owned
FontHandle— registry lookup, coverage test,shaping, and metrics — is now converted to a
TextPreparationErrorwith the newcode: 'font-error', with the original attached ascause. Branch oncodeand inspect
causewhen the underlying detail matters.TextPreparationErrorCodegains the'font-error'member, andTextPreparationErrornow accepts and forwards acause.Patch Changes
@text-rendering-toolkit/sdf@0.2.0
Patch Changes
aca5e1a: Report unusable arguments with each package's own error type.
generateSdf, theTextandTextResourcesconstructors, andloadFonteachread a field off their argument before validating it, so
null,undefined, aprimitive, or a throwing getter escaped as a raw
TypeError— or as thecaller's own error — instead of the type each function documents.
generateSdfalso read
widthandviewBoxmore than once, so a getter returning differentvalues could size a raster by a number that was never validated.
Each entry point now copies its argument once, up front, and reports anything
unreadable as
InvalidSdfInputError,InvalidTextInputError, orInvalidFontErrorwith the original attached ascause.loadFontreports adetached
ArrayBuffer— or a view onto one — the same way.Every error this toolkit wraps now carries the original as
cause, includingtwo that previously discarded it: shaping failures raised by HarfBuzz, and font
loads that failed during parsing.
@text-rendering-toolkit/fontis aminorbecauseInvalidFontErrorextendsErrorrather thanTypeError: code catchingTypeErroraroundloadFonttohandle a detached buffer no longer matches. The SDF and Three errors both extend
TypeError, so callers catching that continue to match.@text-rendering-toolkit/three-webgpu@0.2.0
Patch Changes
aca5e1a: Report unusable arguments with each package's own error type.
generateSdf, theTextandTextResourcesconstructors, andloadFonteachread a field off their argument before validating it, so
null,undefined, aprimitive, or a throwing getter escaped as a raw
TypeError— or as thecaller's own error — instead of the type each function documents.
generateSdfalso read
widthandviewBoxmore than once, so a getter returning differentvalues could size a raster by a number that was never validated.
Each entry point now copies its argument once, up front, and reports anything
unreadable as
InvalidSdfInputError,InvalidTextInputError, orInvalidFontErrorwith the original attached ascause.loadFontreports adetached
ArrayBuffer— or a view onto one — the same way.Every error this toolkit wraps now carries the original as
cause, includingtwo that previously discarded it: shaping failures raised by HarfBuzz, and font
loads that failed during parsing.
@text-rendering-toolkit/fontis aminorbecauseInvalidFontErrorextendsErrorrather thanTypeError: code catchingTypeErroraroundloadFonttohandle a detached buffer no longer matches. The SDF and Three errors both extend
TypeError, so callers catching that continue to match.Updated dependencies [aca5e1a]
Updated dependencies [aca5e1a]