Skip to content

feat(ses): add toTemporalInstant method to DatePrototype permits#3105

Open
jordan-enev wants to merge 1 commit intoendojs:masterfrom
jordan-enev:master
Open

feat(ses): add toTemporalInstant method to DatePrototype permits#3105
jordan-enev wants to merge 1 commit intoendojs:masterfrom
jordan-enev:master

Conversation

@jordan-enev
Copy link

Description

Add toTemporalInstant method to DatePrototype permits. This method has been included in the latest browser APIs.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toTemporalInstant
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal

Security Considerations

No

Scaling Considerations

No

Documentation Considerations

No

Testing Considerations

No

Compatibility Considerations

No

Upgrade Considerations

No

@changeset-bot
Copy link

changeset-bot bot commented Feb 27, 2026

⚠️ No Changeset found

Latest commit: 95e2b5a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

Copy link
Contributor

@erights erights left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @jordan-enev , thanks for the PR. We just discussed it internally and decided we do not want to add toTemporalInstant to permits.js before we add the rest of safe Temporal(*). We do expect to add all of safe Temporal, but it'll take attention we don't currently have at the moment.

(*) We hope and expect that "safe Temporal" is "all of Temporal except Temporal.Now".

I'm requesting changes rather than closing in case there's more to discuss. If not, feel free to either close this, or make it a PR that also adds all of allegedly safe Temporal to permits.js. Then, this PR would become the natural place to discuss what safe Temporal is, and to approve it. Just be prepared for that approval to be delayed until we have (ahem) time.

Thanks!

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.

2 participants