@storybook/addon-viewport is a valuable tool for Storybook users who need to build and test responsive components within their development workflow. Versions 6.3.2 and 6.3.3 offer similar core functionalities, allowing developers to simulate different screen sizes and orientations directly within the Storybook environment. This capability avoids the need for constant resizing of browser windows or usage of external device emulators. The primary function of the addon is enabling the selection of predefined viewports or the creation of custom ones, facilitating the creation of components that adapt seamlessly across various devices. Both versions rely on shared dependencies like global, core-js, prop-types, and memoizerific to provide a stable and performant experience. Similarly the other @storybook/* dependencies are aligned, and both specify peer dependencies for React and React DOM versions 16.8.0 and 17.0.0, to ensure compatibility in a wide variety of projects.
The major difference between versions 6.3.2 and 6.3.3 lies in the specific versions of @storybook/* dependencies, reflecting small updates and incremental fixes within the Storybook ecosystem. While the API remains consistent, any developer upgrading from 6.3.2 may see minor improvements and bug fixes in related Storybook tools. The file size is practically the same, with the 6.3.3 being slightly smaller (unpackedSize:63722 vs 63724).
The are not vulnerabilities for the version 6.3.3 of the package @storybook/addon-viewport