@storybook/addon-viewport version 8.6.9 introduces subtle but important updates compared to its predecessor, 8.6.8, empowering developers to build more responsive and adaptable components within their Storybook environments. Both versions serve the core function of enabling viewport manipulation within Storybook, allowing developers to preview components across a range of screen sizes and orientations. This facilitates a mobile-first or responsive design approach, ensuring consistent user experiences across devices.
The dependency structure of both versions remains largely consistent, relying on memoizerific for optimization and peer dependencies on react, react-dom, typescript, @storybook/icons, and @storybook/global for development.Crucially, version 8.6.9 now requires storybook in peerDependencies to be version ^8.6.9 rather than version ^8.6.8 as in the previous version.
The most notable difference lies in the peer dependency requirement for Storybook itself. Version 8.6.9 necessitates Storybook version 8.6.9 or higher, while version 8.6.8 was compatible with Storybook 8.6.8. This suggests that the newer addon version likely includes updates or fixes specifically designed to work with the corresponding Storybook release. For developers, this means upgrading to @storybook/addon-viewport@8.6.9 requires upgrading Storybook itself to ensure that the addon functions as expected. The release dates suggests that the newer version incorporates the latest fixes and improvements integrated within the Storybook ecosystem which are available to the developers.
The are not vulnerabilities for the version 8.6.9 of the package @storybook/addon-viewport