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

Deprecate Moment.js and Migrate to Modern Date/Time Handling Libraries #7872

Open
mariuszr opened this issue Oct 8, 2024 · 0 comments
Open
Labels
help_wanted Help the Open MCT project! type:enhancement

Comments

@mariuszr
Copy link
Contributor

mariuszr commented Oct 8, 2024

We should stop using Moment.js because it has been in maintenance mode for some time and there are no plans for future feature updates. It's better to switch to modern alternatives like date-fns, Luxon, or native JavaScript APIs, as they offer improved performance, smaller bundle sizes, and better timezone handling. This update will help us keep the project maintainable and in line with current best practices for date and time manipulation.

Additional context

  • Moment.js is officially in maintenance mode: Moment.js Project Status.
  • Some known issues with Moment.js include the large bundle size, lack of immutability, and timezone limitations, which have been pointed out by the community. Using modern alternatives would align the project with best practices and reduce technical debt in the long run.

CC: @akhenry @jvigliotta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help_wanted Help the Open MCT project! type:enhancement
Projects
None yet
Development

No branches or pull requests

2 participants