Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normative: Partial stack of removals #2895

Merged
merged 6 commits into from
Jun 13, 2024
Merged

Conversation

ptomato
Copy link
Collaborator

@ptomato ptomato commented Jun 13, 2024

Here is an implementation of part of the slate of API removals that reached consensus in the TC39 meeting of 2024-06-12. This consists of all removals except for calendars and time zones and things related to them such as getISOFields, which will follow in a later PR.

This PR contains documentation updates, removals from the spec text, removals from the reference code, removals from the suggested TypeScript definitions, and adjustments of the cookbook examples.

Here is what's removed exactly:

  • Temporal.PlainDateTime.p.withPlainDate
  • Temporal.ZonedDateTime.p.withPlainDate
  • Temporal.PlainTime.p.toPlainDateTime
  • Temporal.PlainTime.p.toZonedDateTime
  • Temporal.Instant.fromEpochSeconds
  • Temporal.Instant.fromEpochMicroseconds
  • Temporal.Instant.p.epochSeconds
  • Temporal.Instant.p.epochMicroseconds
  • Temporal.ZonedDateTime.p.epochSeconds
  • Temporal.ZonedDateTime.p.epochMicroseconds
  • Temporal.PlainDateTime.p.toPlainYearMonth
  • Temporal.PlainDateTime.p.toPlainMonthDay
  • Temporal.ZonedDateTime.p.toPlainYearMonth
  • Temporal.ZonedDateTime.p.toPlainMonthDay
  • Temporal.Instant.p.toZonedDateTime
  • Temporal.Now.zonedDateTime
  • Temporal.Now.plainDateTime
  • Temporal.Now.plainDate

Tests are in tc39/test262#4108.

Closes: #2846, #2847, #2848, #2849

@ptomato ptomato mentioned this pull request Jun 13, 2024
91 tasks
@ptomato
Copy link
Collaborator Author

ptomato commented Jun 13, 2024

Thanks for the quick review. (Note, this was also already reviewed by other Temporal champions while on the branch that was shared in the TC39 presentation.)

@ptomato ptomato merged commit 768cceb into main Jun 13, 2024
5 checks passed
@ptomato ptomato deleted the partial-stack-of-removals branch June 13, 2024 20:11
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.

size-suggestion: Consider merging Temporal.Now.xISO() and Temporal.Now.x()
2 participants