@storybook/addons version 7.0.0 represents a significant update from the previous stable version 6.5.16, impacting how developers integrate and manage Storybook addons. One of the primary differences lies in the dependencies. Version 7.0.0 streamlines its dependencies, relying on internal Storybook packages like @storybook/types, @storybook/manager-api, and @storybook/preview-api, while version 6.5.16 had a broader range, including packages like global, core-js, @storybook/api, and @storybook/router. This shift suggests a more modular and consolidated architecture in version 7.0.0, potentially leading to better performance and maintainability.
Notably, the @storybook/csf dependency in version 6.5.16 has been removed in 7.0.0. The number of files within the distributed package drastically decreases from 33 to 7, and the unpacked size is significantly reduced from 105KB to a mere 6KB. This demonstrates a substantial optimization effort, that may lead to faster installation times and reduced bundle sizes for users. Both versions maintain peer dependencies on React and React DOM, ensuring compatibility with a wide range of React projects. Developers upgrading to version 7.0.0 should be aware of these dependency changes and the potential need to adjust their addon configurations accordingly. The reduction in dependencies and package size in version 7.0.0 points towards a leaner, more efficient addon management experience.
The are not vulnerabilities for the version 7.0.0 of the package @storybook/addons