The development of the Moment.js library, which has 12 million downloads weekly, has been discontinued.

Developers of the JavaScript library Moment.js have announced the cessation 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 is downloaded 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 (mutable, modifying a copy of the moment object leads to changes in the original).

In reviews. also Issues such as low performance, API complexity, lack of support for " Tree shaking" (removing unused code to reduce the size of the web application), and the tediousness of debugging are also mentioned. Apparently, the last straw that led developers to decide to transition Moment.js to maintenance mode was a change in the auditing system of web pages in Lighthouse, integrated into Chrome's web developer tools — a few days ago Lighthouseissued a warning about the excessive bloat of Moment.js code and suggested alternatives for replacement. became Modern browsers provide a built-in API

Intl for working with locales and time zones. This API is used in the library Luxon , created by one of the developers of Moment.js and presented as the next step in the evolution of Moment.js. In addition to Luxon, libraries such as(a minimalist version of Moment.js with a similar API, about 7KB without plugins), Day.js date-fns js-joda, (port of java.time), and native JavaScript objects , as well as the draft API Date and for working with locales and time zones. This API is used in the libraryTemporal Developers of the Moment.js JavaScript library have announced.

Source: opennet.ru

Buy reliable website hosting with DDoS protection, VPS VDS servers 🔥 Buy reliable website hosting with DDoS protection, VPS VDS servers | ProHoster