@storybook/addon-viewport provides developers with a streamlined approach to building responsive components within Storybook, enabling them to easily adjust the viewport size and orientation to simulate various devices and screen resolutions. Comparing version 8.5.0 with the preceding stable version 8.4.7, the core functionality remains consistent, focusing on simplifying responsive design testing within the Storybook environment.
While both versions share identical dependencies and development dependencies, the key difference lies in their peer dependency on Storybook itself. Version 8.5.0 requires Storybook version ^8.5.0, while 8.4.7 necessitates Storybook version ^8.4.7. This indicates a tight coupling between the addon and the core Storybook library, likely driven by internal API changes or feature enhancements within Storybook. Therefore, upgrading to @storybook/addon-viewport@8.5.0 mandates a corresponding upgrade to Storybook 8.5.0 to ensure compatibility and avoid potential conflicts. The increase in unpacked size, albeit minimal, from 26899 to 26906 could signal minor adjustments, bug fixes, or internal code improvements in accessibility and design in the newest version. Developers should always consult the Storybook changelog for detailed information regarding specific changes and migration guidance when upgrading between versions. Ultimately, developers should prioritize upgrading to the latest version, alongside their core Storybook install, to benefit from bug fixes, performance improvements, and seamless integration within their component development workflow. The newer 8.5.0 version was released far in the future from 8.4.7 (releaseDate: 2025-01-15T14:26:05.644Z vs 2024-12-05T16:51:09.482Z).
The are not vulnerabilities for the version 8.5.0 of the package @storybook/addon-viewport