@storybook/addon-viewport offers developers a powerful tool to simulate various screen sizes and orientations directly within their Storybook environment, streamlining the process of building responsive components. Version 7.4.3 refines this experience, building upon the foundation laid by version 7.4.2.
While both versions share the same core functionality – providing a convenient viewport control panel within Storybook to test components across different devices – the primary difference lies in dependency versions. Version 7.4.3 updates its internal dependencies.
Specifically, dependencies like @storybook/theming, @storybook/components, @storybook/core-events, @storybook/manager-api, and @storybook/preview-api, @storybook/client-logger are bumped from version 7.4.2 to 7.4.3 to ensure compatibility with the latest Storybook ecosystem. These updates typically involve bug fixes, performance enhancements, and new features within the Storybook framework itself, which indirectly benefits the viewport addon. For developers, this means a more stable and feature-rich Storybook environment overall.
Both versions support React versions 16.8.0, 17.0.0, and 18.0.0. The prop-types and memoizerific dependencies remain consistent, ensuring predictable behavior for property validation and memoization. Ultimately, upgrading from 7.4.2 to 7.4.3 provides incremental improvements and ensures you're leveraging the most up-to-date Storybook features and fixes while developing responsive user interfaces.
The are not vulnerabilities for the version 7.4.3 of the package @storybook/addon-viewport