Dayjs is a lightweight JavaScript date library, offering a compelling alternative to Moment.js with a modern, chainable API and a tiny footprint. Versions 1.8.6 and 1.8.7 showcase the library's commitment to stability and continuous improvement. While both versions maintain the core promise of a 2KB immutable date-time solution, crucial differences exist for developers to consider.
A key distinction lies in the released date since it helps the user understand how much time has passed between versions (10 days aprox.) and the size of the package itself: 1.8.7 introduces some new features and fixes with an increase in the number of files (122 vs 138 in 1.8.7) and unpacked size (142890 vs 150179). This might reflect internal modularization and new locales. While the core API likely remains consistent, developers should consult the changelog between these versions to identify any specific bug fixes or minor API adjustments. This is particularly important when upgrading from 1.8.6 to ensure continued compatibility and to leverage any performance improvements introduced. Both versions share the same development dependencies, highlighting that the changes mostly affect runtime code. Dayjs is designed for modern web development, making it an excellent choice for projects where minimizing bundle size and maximizing performance are crucial.
The are not vulnerabilities for the version 1.8.7 of the package dayjs