@storybook/addon-viewport helps developers build responsive UI components directly within Storybook, streamlining testing across various screen sizes and orientations. Version 8.2.1 arrived on July 10, 2024, just hours after version 8.2.0. Both versions share the same core functionality, description, file count and size, along with identical dependencies on memoizerific, and devDependencies like react, react-dom, typescript, @storybook/icons, and @storybook/global, ensuring a consistent development experience. The key difference lies in the peer dependency for Storybook itself. Version 8.2.0 requires Storybook 8.2.0, whereas version 8.2.1 depends on Storybook 8.2.1. This suggests that version 8.2.1 likely includes compatibility updates or bug fixes specifically tailored for the Storybook 8.2.1 release. This difference is crucial for developers using Storybook, as installing the correct addon version ensures seamless integration and avoids potential conflicts. Although, the changes can be minimal, upgrading to the latest version of the addon is a good practice. Developers can leverage this addon to define and switch between different viewport configurations, ensuring their components render correctly on desktops, tablets, and mobile devices. With its MIT license and open collective funding, the @storybook/addon-viewport promotes collaborative development and wider adoption.
The are not vulnerabilities for the version 8.2.1 of the package @storybook/addon-viewport