Skip to content

fix: support boxed bigints and sentinel values#141

Merged
Rich-Harris merged 11 commits into
sveltejs:mainfrom
mrkishi:boxed-primitives
Apr 6, 2026
Merged

fix: support boxed bigints and sentinel values#141
Rich-Harris merged 11 commits into
sveltejs:mainfrom
mrkishi:boxed-primitives

Conversation

@mrkishi
Copy link
Copy Markdown
Member

@mrkishi mrkishi commented Apr 6, 2026

Closes #139.

Boxed primitives now use references into the values array in order to support sentinel values (Infinity, etc) and bigints (since they are not natively representable in JSON).

Stacked on #140.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 6, 2026

🦋 Changeset detected

Latest commit: 9752b57

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
devalue Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Rich-Harris Rich-Harris merged commit 57f73fc into sveltejs:main Apr 6, 2026
6 checks passed
@mrkishi mrkishi deleted the boxed-primitives branch April 6, 2026 22:38
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.

stringify mishandles primitives in some cases

2 participants