@storybook/addon-viewport allows developers to craft highly responsive components within their Storybook environment by providing the ability to dynamically adjust the viewport size and orientation. This is crucial for ensuring components render correctly across various devices and screen sizes. Examining the transition from version 6.3.0 to 6.3.1 reveals subtle yet important updates for Storybook users.
While both versions share the same core functionality—adjusting viewport dimensions—the key difference lies primarily in the synchronized versions of core dependencies. In version 6.3.1, dependencies like @storybook/api, @storybook/addons, @storybook/theming, @storybook/components, @storybook/core-events, and @storybook/client-logger are all updated to version 6.3.1, matching the addon version. Whereas, in the previous version 6.3.0, these dependencies were on version 6.3.0. This synchronization is vital because it streamlines the development process. These version alignments likely contain bug fixes, performance improvements, and internal adjustments that improve interoperability and stability within the broader Storybook ecosystem.
For developers, upgrading to version 6.3.1 is recommended to leverage these synchronized improvements. It ensures that the viewport addon is working seamlessly with latest enhancements and fixes in other Storybook modules. Both versions maintain the same peer dependencies for React and React DOM.
The are not vulnerabilities for the version 6.3.1 of the package @storybook/addon-viewport