The @types/react-dom package provides TypeScript definitions for the React DOM library, enabling developers to write type-safe React applications using TypeScript. Comparing versions 18.3.2 and 18.3.3 reveals key differences that impact developers relying on these type definitions.
Version 18.3.3 introduces a peer dependency on @types/react with a version range of ^18.0.0. This signifies a requirement for React type definitions to be present in the project, guaranteeing compatibility with React version 18 and above. In contrast, version 18.3.2 lists @types/react as a standard dependency with version ^18. The shift to a peer dependency allows greater flexibility in managing the React version and avoids potential dependency conflicts, allowing developers to specify the compatible React version they are using and ensuring proper type checking. The tarball size increased slightly in version 18.3.3, going from 29906 to 29940, meaning that it could contains new typings or fixes.
The move to peer dependencies is a welcome improvement in version 18.3.3, contributing to a more streamlined dependency management experience and reduced risk of version conflicts within projects that heavily rely on React and its associated type definitions. Developers should review their project's React version and any potential conflicts before upgrading to ensure compatibility with the new peer dependency. Consider the release date of 2024-12-09T19:32:25.721Z, it means that this version is available for usage in your projects.
The are not vulnerabilities for the version 18.3.3 of the package @types/react-dom