App icon indicating copy to clipboard operation
App copied to clipboard

Moment is in maintenance mode

Open anthony-hull opened this issue 5 years ago • 2 comments

To quote the moment project:

We now generally consider Moment to be a legacy project in maintenance mode. It is not dead, but it is indeed done.

Another common argument against using Moment in modern applications is its size. Moment doesn't work well with modern "tree shaking" algorithms, so it tends to increase the size of web application bundles. If one needs internationalization or time zone support, Moment can get quite large. Modern web browsers (and Node.js) expose internationalization and time zone support via the Intl object, codified as ECMA-402. Libraries like Luxon (and others) take advantage of this, reducing or removing the need to ship your own data files.

In my other projects we migrated away from Moment.

https://momentjs.com/docs/#/-project-status/future/

If we migrated to Luxon we wouldn't need to ship the datafiles as the native objects would provide this. Additionally since we are already building Android with jsc-android, Intl support should be present in Android for RN as well.

anthony-hull avatar Jan 03 '21 12:01 anthony-hull

Triggered auto assignment to @puneetlath (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

MelvinBot avatar Mar 31 '21 20:03 MelvinBot

Hey @anthony-hull . Based on the conversation in Slack here it doesn't seem like there's a lot of enthusiasm for this change as it's not clear what tangible benefit we would see. However, if you disagree with that please feel free to chime in on that thread or reopen this issue with what tangible improvements you think we would see by making this change and we'll be happy to reconsider!

puneetlath avatar Apr 06 '21 18:04 puneetlath