Version 0.5.2 of @antfu/utils introduces subtle but significant improvements over its predecessor, version 0.5.1. Both versions maintain the core philosophy of providing an "Opinionated collection of common JavaScript / TypeScript utils" by Anthony Fu, designed to streamline development workflows. The key changes lie within the development dependencies, indicating refinements in the tooling used to build and test the package.
Notably, @antfu/eslint-config jumps from version 0.20.2 to 0.23.0, suggesting updates to the linting rules and coding style enforcement, which promotes code quality and consistency for developers using the utils. Similarly, eslint itself sees an upgrade from 8.13.0 to 8.15.0, indicating potential enhancements to the linting process. The versions of essential build tools have also been updated, rollup is updated from 2.70.1 to 2.72.1, vite from v2.9.1 to v2.9.8, @antfu/ni from 0.14.0 to 0.16.2 and typescript from 4.6.3 to 4.6.4. Finally, vitest had a significant update from version 0.9.3 to 0.12.3, pointing towards improvements in the unit testing framework, thus providing more robust and reliable utilities. @types/node also updated from 17.0.23 to 17.0.31. The size of the deployed package increased slightly from 73793 to 75465.
These updates make version 0.5.2 a worthwhile upgrade for developers already using @antfu/utils, as it incorporates the newest best practices and improvements in the underlying build pipeline, albeit without any declared breaking changes. A more recent publish date, May 10th, of version 0.5.2 compared to April 10th of version 0.5.1, makes it a more relevant choice for new projects.
All the vulnerabilities related to the version 0.5.2 of the package
antfu/utils vulnerable to prototype pollution
Prototype Pollution in GitHub repository antfu/utils prior to 0.7.3.