@storybook/addon-viewport is a valuable tool for Storybook users, enabling developers to build and test responsive components directly within their Storybook environment. Version 6.5.9, released on June 13, 2022, builds upon the foundations of version 6.5.8, released just a few days prior on June 8, 2022. While both versions share the same core functionality of adjusting Storybook's viewport size and orientation for responsive design testing, a key difference lies in the versions of their internal dependencies.
Specifically, each dependency of @storybook/addon-viewport like @storybook/api, @storybook/addons, @storybook/theming, @storybook/components, @storybook/core-events, and @storybook/client-logger is updated from version 6.5.8 to 6.5.9. This indicates the 6.5.9 release may have addressed internal bug fixes, performance improvements, or synchronization with core Storybook updates within those specific packages. The core peer dependencies and other supporting packages remain unchanged.
Developers leveraging @storybook/addon-viewport can be confident that both versions offer a robust solution for simulating different screen sizes. When upgrading from 6.5.8 to 6.5.9, the primary motivation would be to gain the advantages of any under-the-hood improvements or bug fixes present in the updated Storybook sub-packages, potentially ensuring better stability or compatibility with the latest Storybook features. For new users, either version provides a solid starting point for crafting responsive UI components. This add-on simplifies the process of verifying a component's behavior across various devices without leaving the Storybook workspace.
The are not vulnerabilities for the version 6.5.9 of the package @storybook/addon-viewport