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

Migrate away from Moment.js #295

Open
4 tasks
mgwalker opened this issue Mar 17, 2021 · 3 comments
Open
4 tasks

Migrate away from Moment.js #295

mgwalker opened this issue Mar 17, 2021 · 3 comments

Comments

@mgwalker
Copy link
Member

Currently, Charlie uses Moment.js for all date, time, and timezone-based functionality because honestly, who wants to code all that stuff from scratch? No thanks. However, Moment.js is being retired, eventually in favor of the upcoming Temporal global object. In the interim, the Moment.js team has some recommendations for replacements.

  • investigate alternatives
  • pick one
  • decide when to make the switch (i.e., do we wait for Temporal? Find a reasonable polyfill? etc.)
  • do the switching of the thing
@mgwalker
Copy link
Member Author

I recommend holding on this one. Since Moment continues to work for us, and Temporal is (maybe!) close enough not to warrant an intermediary.

@mgwalker
Copy link
Member Author

Temporal is still probably on track for ratification this summer. It would then need to be released in V8 and that V8 update would need to be picked up by Node.js. The V8 team is already working on it, but I wouldn't expect it to land in Node.js before v20 in fall of 2023.

It might be worth finishing up #321 and merging that. Relying on the polyfill isn't the worst thing we could do, and switching to native support when it becomes available ought to be pretty trivial (just take out the polyfill!).

@mgwalker
Copy link
Member Author

mgwalker commented Aug 2, 2024

lol Temporal

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

No branches or pull requests

1 participant