deprecation(datetime): deprecate @std/datetime in favor of Temporal - #7263
Open
tomas-zijdemans wants to merge 1 commit into
Open
deprecation(datetime): deprecate @std/datetime in favor of Temporal#7263tomas-zijdemans wants to merge 1 commit into
tomas-zijdemans wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7263 +/- ##
==========================================
- Coverage 95.03% 95.03% -0.01%
==========================================
Files 619 618 -1
Lines 51499 51496 -3
Branches 9301 9300 -1
==========================================
- Hits 48940 48937 -3
Misses 2021 2021
Partials 538 538 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Adds @deprecated tags to every export, each naming its Temporal replacement, plus a before/after migration example per symbol. Step 2 of denoland#7262.
tomas-zijdemans
force-pushed
the
deprecation-datetime
branch
from
July 31, 2026 17:48
97b0fec to
153eadb
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.
Step 2 of #7262 (scope per the issue: the whole package, including
formatandparse).Every export now carries a
@deprecatedtag naming its Temporal replacement, plus a runnable before/after "Migration to Temporal" example so the migration path shows up in the JSR docs and in editors:dayOfYear/dayOfYearUtcTemporal.PlainDate/ZonedDateTime.dayOfYearisLeap/isUtcLeap.inLeapYearweekOfYearTemporal.PlainDate.prototype.weekOfYeardifference(+Unit,DifferenceFormat,DifferenceOptions)Temporal.PlainDate.prototype.until/sinceSECOND…WEEKTemporal.DurationJANUARY…DECEMBERSUNDAY…SATURDAYdayOfWeek(ISO 8601: Monday = 1, Sunday = 7)format(+FormatOptions)Intl.DateTimeFormat/ TemporaltoString()/toLocaleString()parseTemporal.PlainDateTime.frometc. for ISO 8601 inputAll migration snippets are exercised by the doc tests (
deno test --doc datetime/) and are timezone-independent. Tag style follows the@std/iodeprecation: no pinned removal version, since the grace period is settled in step 5 of the issue.The module-doc deprecation notice is step 3 and will follow as a separate PR.
I used Claude Code to help investigate and write this change.