The @types/react package provides TypeScript definitions for React, essential for developers using TypeScript to build React applications. Version 18.0.4, released on April 13, 2022, follows closely on the heels of version 18.0.3, released just a day prior on April 12, 2022. At first glance, the two versions seem almost identical, both featuring the same dependencies: csstype (version 3.0.2 or higher), @types/scheduler, and @types/prop-types. They also share the same MIT license and repository location within the DefinitelyTyped project.
However, a closer look reveals subtle differences that might be of interest. The unpacked size of version 18.0.4 is slightly larger, at 174,480 bytes, compared to 18.0.3's 174,335 bytes. This indicates that minor additions or adjustments were made to the type definitions. While the core dependencies remain the same, these tweaks could address specific typing issues, improve type accuracy, or introduce new type definitions covering React features or functionalities. Developers already using 18.0.3 could consider upgrading to 18.0.4 in their React TypeScript projects. While no major breaking changes are anticipated given the incremental versioning, reviewing the specific changes implemented between versions via the DefinitelyTyped repository is advisable.
The are not vulnerabilities for the version 18.0.4 of the package @types/react