The @storybook/addon-viewport package, designed to aid in building responsive components within Storybook by enabling dynamic viewport adjustments, saw a minor version update from 7.0.19 to 7.0.20. While the core functionality and purpose remain consistent – allowing developers to simulate various screen sizes and orientations directly within the Storybook environment – the key changes reside primarily in the updated dependencies on other @storybook packages. Specifically, versions of @storybook/theming, @storybook/components, @storybook/core-events, @storybook/manager-api, and @storybook/preview-api have been bumped from 7.0.19 to 7.0.20.
For developers using this addon, this update typically signifies bug fixes, performance improvements, or new features within the underlying Storybook architecture. It's crucial to upgrade to maintain compatibility and benefit from the latest enhancements across the Storybook ecosystem. Check the Storybook changelog for details on specific improvements delivered into the core packages.
The addon maintains its peer dependency requirements for React and React DOM, supporting versions 16.8.0 or higher, including versions 17 and 18. It also retains the same development dependencies like TypeScript. Fundamentally, the way developers interact with the viewport addon to preview their components on different screen configurations remains unchanged. The license is still MIT, and the package is hosted in the same GitHub repository and Open Collective funding organization. Both use the same number of files and unpacked size. The only visible difference from a developer perspective is the update of the Storybook core packages.
The are not vulnerabilities for the version 7.0.20 of the package @storybook/addon-viewport