Date-fns has released version 3.4.0, a minor update following version 3.3.1. Both versions are modern JavaScript date utility libraries under the MIT license, designed to simplify date manipulation and formatting in web applications. Comparing the two versions, developers will primarily notice changes in the devDependencies, reflecting updates in the tooling used for development, testing, and documentation of the library. Specifically, version 3.4.0 introduces bun and @types/bun, suggesting an exploration of the Bun runtime environment. Also, worth noting is the version downgrade for vitest and its related dependencies (@vitest/browser and @vitest/coverage-v8).
The updated version includes a larger distribution size with the tarball containing 4361 files unpacked to 4,904,079 bytes, a slight increase from the previous version's 4325 files and 4,861,064 bytes, without providing information about updated features.
For developers already using date-fns, it's advisable to review the dependency updates to ensure compatibility with their existing projects and to assess the potential benefits of the introduced tooling such as bun. For new users, date-fns remains a lightweight and modular alternative to larger date manipulation libraries, offering a wide range of functions for parsing, formatting, and performing calculations on dates. The library's focus on immutability and tree-shaking further enhances its appeal for modern web development, leading to smaller bundle sizes and improved application performance. The github funding link also indicates a good option to keep track of the evolutions of the library.
The are not vulnerabilities for the version 3.4.0 of the package date-fns