@storybook/addon-viewport provides developers with a powerful tool to build responsive components directly within Storybook. By enabling viewport size and orientation adjustments, the addon streamlines the process of creating and testing components across various devices and screen resolutions, ensuring a consistent and optimized user experience.
Comparing versions 7.2.1 and 7.2.2, the core functionality remains consistent; both versions offer the same fundamental tools for managing viewports. The primary distinction lies in the internal dependencies. Version 7.2.2 updates its dependencies to align with Storybook version 7.2.2 for @storybook/theming, @storybook/components, @storybook/core-events, @storybook/manager-api, @storybook/preview-api, and @storybook/client-logger.This update ensures compatibility and leverages any improvements or bug fixes introduced in the core Storybook packages. Developers benefiting from enhancements or stability fixes in other Storybook modules should upgrade to 7.2.2, to maintain consistency across their Storybook environment. Both versions share the same peer dependencies for React and React DOM, allowing for flexibility across React versions 16, 17, and 18. Developers should upgrade to version 7.2.2 to get the latest version of the Storybook ecosystem.
The are not vulnerabilities for the version 7.2.2 of the package @storybook/addon-viewport