@storybook/addon-viewport is a valuable Storybook addon that empowers developers to build and test responsive components with ease. By allowing you to adjust Storybook's viewport size and orientation, it streamlines the process of ensuring your components render correctly across various devices and screen sizes. Comparing versions 7.0.19 and 7.0.18, the core functionality remains consistent: facilitating responsive design testing within the Storybook environment. However, under the hood, a key difference lies in the synchronized versions of internal Storybook dependencies. Version 7.0.19 updates dependencies like @storybook/theming, @storybook/components, @storybook/core-events, @storybook/manager-api, and @storybook/preview-api to 7.0.19, aligning them with the latest Storybook ecosystem. In contrast, version 7.0.18 uses the 7.0.18 versions of these packages.
For developers, upgrading to 7.0.19 offers the advantage of benefiting from the latest bug fixes, performance improvements, and features incorporated into these core Storybook packages. While the core purpose remains the same, staying current with the @storybook ecosystem is important. Both versions share identical peer dependencies for React and ReactDOM: requiring version 16.8.0 or later. Choosing the newest version helps ensure the best experience, it's always recommended keeping dependencies updated to leverage the continuous advancements within the Storybook ecosystem. Because of that, version 7.0.19 is the preferred way to go.
The are not vulnerabilities for the version 7.0.19 of the package @storybook/addon-viewport