Rewire, a popular Node.js library facilitating dependency injection for easier unit testing, has released version 9.0.0, building upon the solid foundation of version 8.0.0. Both versions maintain the MIT license and are authored by Johannes Ewald, continuing the library's commitment to developer-friendly testing. The core functionality remains consistent: enabling developers to access and modify internal module variables during testing, thereby simplifying the isolation and mocking of dependencies.
A key update lies in the eslint dependency. Version 9.0.0 upgrades to eslint":"^9.30" from eslint":"^8.47.0" in version 8.0.0. This upgrade ensures compatibility with the latest ECMAScript standards and linting rules, helping developers maintain code quality and consistency. The peer dependency @types/node and the typescript version remains at ^22.15.21 and ^4.6.4 respectively, ensuring a smooth transition for existing TypeScript projects. Other development dependencies like nyc and mocha stay the same.
Interestingly, both versions include "rewire": "file://." within their devDependencies, suggesting a self-referential dependency likely used for internal testing and development of the rewire package itself. The dist metadata reveals a slight increase in unpacked size from 26154 bytes in version 8.0.0 to 26157 bytes in version 9.0.0, indicating minor changes or additions to the codebase. Furthermore, version 9.0.0 was released on "2025-07-08T23:13:06.429Z", a little later than version 8.0.0 on "2025-06-03T22:46:37.260Z". Developers upgrading should examine eslint's changelog for breaking rule changes.
The are not vulnerabilities for the version 9.0.0 of the package rewire