@storybook/addon-viewport allows developers to build responsive components within Storybook by dynamically adjusting the viewport's size and orientation. Comparing version 6.5.5 with the previous stable version 6.5.4, the core functionality remains consistent: defining custom viewports, simulating various device sizes and orientations (portrait/landscape), and testing component layouts under different screen conditions directly in the Storybook environment. This is extremely helpful for ensuring a consistent user experience across a multitude of devices without needing to switch to different browsers or real devices.
The main differences between the two versions seem to lie primarily in updates to Storybook's core dependencies. Version 6.5.5 aligns with the broader Storybook ecosystem at version 6.5.5, with direct dependencies upgraded such as @storybook/addons, @storybook/api, @storybook/components, @storybook/core-events, @storybook/theming and @storybook/client-logger to this latest release. In contrast, version 6.5.4 used version 6.5.4 for all those dependencies too. While the functionality of the addon is unchanged, developers would benefit from upgrading to version 6.5.5 to take advantage of any bug fixes, performance improvements, or new features present in the core Storybook libraries. It is recommended to update to keep the environment up to date with the lastest security patches and features. The peer dependencies (react and react-dom) remain the same, ensuring compatibility with React versions 16.8.0, 17.0.0, and 18.0.0.
The are not vulnerabilities for the version 6.5.5 of the package @storybook/addon-viewport