@types/react-dom version 19.0.2 introduces notable changes compared to its predecessor, 19.0.1, primarily concerning its dependency management related to React typings. The newer version refines its relationship with @types/react, shifting from a broad wildcard dependency (@types/react": "*") in 19.0.1 to a more specific peer dependency ("@types/react": "^19.0.0") in 19.0.2. This means that version 19.0.2 explicitly requires a React typings version within the 19.0.x range, offering greater clarity and potentially preventing compatibility issues that might occur with future, untested versions of React typings. This change is particularly important for developers aiming for precise control over their project's dependencies and those seeking to avoid unexpected type-related conflicts. Importantly, no code or functionality changes are implied. The main advantage of the update is the refined dependency management, for a more compatible and controlled development experience using react-dom typescript definitions. The release date is also different, with the newest version on December 9, 2024 after the December 6, 2024 of version 19.0.1. Unpacked size changed too, with a small increase from 20419 to 20455.
The are not vulnerabilities for the version 19.0.2 of the package @types/react-dom