@types/node version 22.0.3 has been released, succeeding version 22.0.2 as the latest stable TypeScript definition package for Node.js. Both versions, licensed under MIT, provide essential type information for developers working with Node.js in TypeScript projects. They rely on the same dependency, "undici-types" at version "~6.11.1", ensuring compatibility with the Undici HTTP client. Both definitions files rely on 65 files.
A key difference is the slightly smaller unpacked size of version 22.0.3 (2080334 bytes) compared to version 22.0.2 (2080608 bytes). This suggests minor optimizations or reductions in the definition files. More importantly, version 22.0.3 was released on August 2, 2024, at 08:37:32.750Z, while version 22.0.2 was released on July 31, 2024, at 19:35:56.131Z. This indicates a patch update addressing potential issues or incorporating recent changes in the Node.js ecosystem.
For developers, upgrading to version 22.0.3 is generally recommended to benefit from the latest type definitions and potential bug fixes. Although the changes might be subtle, staying current ensures better alignment with the evolving Node.js API and can prevent type-related errors during development. Developers should review the changelog (usually available in the DefinitelyTyped repository on GitHub) for a detailed breakdown of specific modifications between the two versions.
The are not vulnerabilities for the version 22.0.3 of the package @types/node