Dayjs version 1.9.0 introduces minor improvements and refinements over the previous stable version, 1.8.36, consolidating its position as a lightweight and immutable date-time library alternative to Moment.js. Both versions maintain the same core philosophy: to provide a modern API with a minimal footprint, making it ideal for applications where size and performance are critical. Developers familiar with Moment.js will find Dayjs incredibly easy to adopt due to its similar API design.
While the core functionality remains consistent, the updated version, 1.9.0, includes under-the-hood optimizations and potential bug fixes. Analyzing the dist object, we can see a slight increased unpackedSize, which suggest new features or some changes in the code. The upgrade ensures developers benefit from the latest enhancements and stability improvements within the Dayjs ecosystem. Both versions boast an impressive array of development dependencies, showcasing the project's commitment to thorough testing and code quality. Libraries like Jest, Karma, and ESLint ensures a robust and maintainable codebase. The reliance on Babel and Rollup further reflects a dedication to modern JavaScript standards and efficient bundling. Moment is listed inside the devDependencies as well, so maybe some tests relies on moment.js and it needs to be installed for contributing. The releaseDate also confirms that the 1.9.0 is the latest, ensuring developers are using the most up-to-date and supported version of Dayjs.
The are not vulnerabilities for the version 1.9.0 of the package dayjs