@storybook/addon-viewport allows developers to build responsive components directly within their Storybook environment by simulating different screen sizes and orientations. Version 8.2.7, released on August 1, 2024, builds upon the foundation of version 8.2.6, released a week prior on July 24, 2024. While both versions share the same core functionality—enabling viewport adjustments for effective responsive design previews—a key difference lies in their peer dependency.
Version 8.2.7 requires Storybook version 8.2.7 as a peer dependency, whereas the older version 8.2.6 depended on Storybook 8.2.6. This indicates that version 8.2.7 likely includes updates or fixes specifically tailored for compatibility with the corresponding Storybook release. Developers upgrading to Storybook 8.2.7 should also update @storybook/addon-viewport to version 8.2.7 to ensure optimal performance and avoid potential compatibility issues.
Both versions bundle essential dependencies like memoizerific for performance optimization and development dependencies such as react, react-dom, and typescript. The consistent file count and unpacked size between the two versions suggest that the changes are focused on internal adjustments and compatibility rather than substantial feature additions. This addon, backed by the MIT license, continues to provide a valuable and practical solution for crafting responsive user interfaces in Storybook. By using this addon developers can check common media queries and display different screens easily.
The are not vulnerabilities for the version 8.2.7 of the package @storybook/addon-viewport