@storybook/addon-viewport allows developers to build and test responsive components directly within their Storybook environment, simulating various screen sizes and orientations. This is a valuable tool for ensuring consistent user experiences across different devices. Comparing version 8.6.5 and 8.6.4, the core functionality remains the same, focusing on viewport manipulation for responsive design testing, but key differences lie in peer dependencies and release dates.
Version 8.6.5 introduces a crucial update in its peer dependency, requiring "storybook": "^8.6.5", indicating a refined compatibility, likely addressing potential conflicts or leveraging new features introduced in Storybook's core framework. This ensures seamless integration and optimal performance when used with the latest Storybook version. The release date of version 8.6.5 is March 14, 2025, while version 8.6.4 was released on March 5, 2025, suggesting that 8.6.5 is a patch release addressing compatibility issues and potentially containing very minor bug fixes or improvements introduced in Storybook.
Developers upgrading from 8.6.4 should note the peer dependency change. Upgrading allows you to get all the feature and take advantages of the latest fixes. For developers new to the addon, using the latest version is advisable for the best experience and long-term support. Both versions of the addon includes the same functionalities, allowing to easily preview the components in different environments by changing the viewport directly from Storybook's UI. A simple configuration is needed to include custom device profiles and sizes.
The are not vulnerabilities for the version 8.6.5 of the package @storybook/addon-viewport