@storybook/addon-viewport is a valuable tool for Storybook users, enabling developers to build and test responsive components directly within the Storybook environment. This addon allows interactive adjustment of the viewport size and orientation, simulating various devices and screen resolutions to ensure optimal component behavior across different contexts.
Comparing versions 6.5.13 and 6.5.14, the core functionality remains consistent, focusing on providing a seamless responsive design testing experience. The primary distinction lies in the internal dependencies. Version 6.5.14 updates its internal "@storybook/*" dependencies to version 6.5.14, ensuring alignment with the latest Storybook ecosystem enhancements and bug fixes. Specifically, @storybook/api, @storybook/addons, @storybook/theming, @storybook/components and @storybook/core-events and @storybook/client-logger were updated. While the fileCount and unpackedSize remains the same, the release date is newer. Both versions maintain the same peer dependencies on React and React DOM, supporting versions 16.8.0 through 18.0.0.
For developers, upgrading to version 6.5.14 is recommended to benefit from the newest bug fixes and potential performance improvements incorporated within the updated Storybook dependencies. This upgrade ensures compatibility and a smoother experience when working with the broader Storybook platform. Developers can continue to leverage the addon to define custom viewports, test responsiveness using pre-defined device profiles (like iPhone, iPad, etc.), and use this addon to ensure their components render correctly irrespective of the device used to view it within the convenience of Storybook.
The are not vulnerabilities for the version 6.5.14 of the package @storybook/addon-viewport