@storybook/addon-viewport is a valuable tool for Storybook users who need to build and test responsive components, allowing developers to simulate various screen sizes and orientations directly within the Storybook environment. Comparing versions 6.2.6 and 6.2.5, the core functionality remains consistent: the addon enables developers to adjust the viewport size and orientation of their stories, ensuring components render correctly across different devices. Both versions share the same core dependencies, including global, core-js, prop-types, memoizerific, regenerator-runtime, as well as internal Storybook packages like @storybook/api, @storybook/addons, @storybook/theming, @storybook/components, @storybook/core-events, and @storybook/client-logger. They also maintain identical peer dependency requirements for react and react-dom, demanding versions ^16.8.0 or ^17.0.0.
The key difference lies in the internal Storybook package versions. Version 6.2.6 updates these dependencies (@storybook/api, @storybook/addons, @storybook/theming, @storybook/components, @storybook/core-events, @storybook/client-logger) to their respective 6.2.6 counterparts, aligning them with the latest Storybook ecosystem updates at the time. This suggests the update likely includes bug fixes, performance improvements, or new features within the Storybook framework that directly impact the viewport addon. Developers should upgrade to 6.2.6 primarily to inherit these general Storybook enhancements and ensure compatibility with other @storybook packages they might be using. The release dates indicate a short interval between versions, with 6.2.6 following just two days after 6.2.5, further implying the update focuses on relatively minor improvements and refinements rather than major feature additions.
The are not vulnerabilities for the version 6.2.6 of the package @storybook/addon-viewport