Developers of the JavaScript library have announced of development and the transition of the project to maintenance mode, which implies halting the expansion of functionality, freezing the API, and limiting activities to fixing critical bugs, reflecting changes from the time zone database, and maintaining infrastructure for existing users. Moment.js is not recommended for new projects.
The Moment.js library provides functions for manipulating time and dates and is the de facto standard in its field. The library about 12 million times a week. The decision was made due to the realization that the project is outdated and does not fit modern JavaScript development paradigms.
Among the drawbacks is the relatively large size of the library (329KB uncompressed, 70KB compressed) and the use of mutable objects (, modifying a copy of the moment object leads to changes in the original).
In also Tree shakingissued a warning about the excessive bloat of Moment.js code and suggested alternatives for replacement. Modern browsers provide a built-in API
Intl Luxon (a minimalist version of Moment.js with a similar API, about 7KB without plugins), date-fns , , as well as the draft API and Temporal .
Source: opennet.ru
