Skip to content

Add support for Temporal objects#98

Merged
Rich-Harris merged 5 commits into
sveltejs:mainfrom
nicolo-ribaudo:temporal
Aug 26, 2025
Merged

Add support for Temporal objects#98
Rich-Harris merged 5 commits into
sveltejs:mainfrom
nicolo-ribaudo:temporal

Conversation

@nicolo-ribaudo

Copy link
Copy Markdown
Contributor

Fixes #97

Temporal is already shipping unflagged in Firefox, it's being actively implemented in Chrome and WebKit, and it's supported in Deno behind a CLI flag. There are also already polyfills for it.

This PR adds support for Temporal, by:

  • throwing a "Temporal is not defined" error when trying to deserialize a serialized temporal value in an environment without Temporal support
  • using the polyfills to run the tests in Node.js

@changeset-bot

changeset-bot Bot commented Aug 26, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 36b3b69

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

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

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 2896e7b into sveltejs:main Aug 26, 2025
3 checks passed
@Rich-Harris

Copy link
Copy Markdown
Member

thank you!

@nicolo-ribaudo nicolo-ribaudo deleted the temporal branch August 27, 2025 04:55
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.

Support Temporal

2 participants