The @storybook/addon-viewport package empowers developers to build and test responsive UI components directly within Storybook by simulating different screen sizes and orientations. Version 8.1.2 introduces subtle but important updates compared to version 8.1.1. Both versions share the same core functionality, allowing you to define and switch between various viewport configurations, simulating devices like smartphones, tablets, and desktops without leaving your Storybook environment. They both depend on memoizerific for performance optimization.
The crucial differentiators lie in the updated peer dependencies. Version 8.1.2 is aligned with the latest Storybook ecosystem dependencies such as @storybook/theming, @storybook/components, @storybook/core-events, @storybook/manager-api, and @storybook/preview-api, all bumped to version 8.1.2. This ensures compatibility and potentially incorporates bug fixes or minor improvements within these related packages. In contrast, version 8.1.1 relies on the older 8.1.1 versions of these peer dependencies. For developers, upgrading to 8.1.2 means staying current with the Storybook platform, benefiting from the latest enhancements and ensuring smoother integration with other Storybook addons. The updated version also signifies more recent bug fixes. While the core viewport simulation functionality likely remains consistent, the overall Storybook experience should be more robust and up-to-date when utilizing version 8.1.2 alongside the rest of the Storybook framework. The releaseDate also marks the latest version as being released more recently (May 21, 2024) than the older version (May 15, 2024).
The are not vulnerabilities for the version 8.1.2 of the package @storybook/addon-viewport