React-DOM version 18.0.0 represents a significant leap forward compared to its predecessor, version 17.0.2, bringing notable changes for React developers. The most crucial update is the peer dependency requiring React 18.0.0, marking a fundamental shift in the React ecosystem. Version 18.0.0 introduces architectural improvements and new features designed to enhance performance and developer experience.
A key difference lies in the dependencies. While both rely on loose-envify, version 18.0.0 updates the dependency on scheduler to ^0.21.0 from ^0.20.2, potentially incorporating performance enhancements and bug fixes within the scheduler. The older version, 17.0.2, depends on object-assign, which is absent in the newer version, suggesting a possible refactoring or removal of functionalities relying on it, probably replaced with native Javascript features.
The distributed package size also sees a considerable increase, with 18.0.0 having an unpackedSize of 4377410 compared to 17.0.2's 2988155, indicating substantial additions or modifications to the codebase. Furthermore, the fileCount increases from 26 to 32. These increases reflect added features, optimizations, or internal changes contributing to the improved React 18 experience. Developers migrating should review the React 18 changelog for detailed information on breaking changes and new features, with special attention paid to concurrent rendering and new hooks. Finally, the release dates provide context, showcasing over a year of development between the two versions.
The are not vulnerabilities for the version 18.0.0 of the package react-dom