@storybook/addon-viewport is a valuable tool for Storybook users, enabling the creation and testing of responsive components by allowing adjustment of the Storybook viewport size and orientation directly within the development environment. Examining versions 6.5.11 and 6.5.10 reveals subtle but important differences for developers seeking to keep their Storybook setup current.
The core functionality remains consistent between the two versions, focusing on viewport manipulation for responsive design workflows. Both leverage the same fundamental dependencies like global, core-js, prop-types, and memoizerific, ensuring stability in handling core JavaScript features and component properties. They also share peer dependencies for React and React DOM, supporting versions 16.8.0 and up, including versions 17 and 18. These versions integrate seamlessly within the Storybook ecosystem featuring inter-dependencies with @storybook/api, @storybook/addons, @storybook/theming, @storybook/components, @storybook/core-events, and @storybook/client-logger, all aligned to their respective major.minor version.
The main distinction lies in the internal versions of Storybook packages being used. Version 6.5.11 depends on @storybook/* packages at version 6.5.11, while version 6.5.10 depends on @storybook/* packages at version 6.5.10. The update to version 6.5.11 most likely incorporates bug fixes, performance enhancements, or minor feature improvements within the Storybook platform itself, inherited by any addon built on top of it. Version 6.5.11 was released in September 2022 reflecting its updated integrations, whilst the previous release was a month earlier. Developers should prioritize upgrading to the newer version, 6.5.11, to benefit from these refinements and maintain compatibility with the broader Storybook ecosystem. Both versions are MIT licensed and share the same source code from the Storybook repo.
The are not vulnerabilities for the version 6.5.11 of the package @storybook/addon-viewport