@storybook/addon-viewport, a valuable tool for responsive design within Storybook, has a new release, version 7.2.3, following closely on the heels of version 7.2.2. Both versions empower developers to simulate various screen sizes and orientations directly within their Storybook environment, facilitating the creation and testing of adaptable UI components. The core functionality of adjusting the viewport to match common device dimensions remains consistent.
The key difference between the versions lies within the dependency updates. Version 7.2.3 incorporates newer versions of Storybook's internal packages, including @storybook/theming, @storybook/components, @storybook/core-events, @storybook/manager-api, @storybook/preview-api, and @storybook/client-logger, all bumped to version 7.2.3. Version 7.2.2 had these dependencies locked at 7.2.2. This dependency update usually brings bug fixes, performance improvements, and new features within the Storybook ecosystem itself that trickle down to the addon. Developers upgrading to 7.2.3 benefit from the latest enhancements and stability improvements across the Storybook platform.
For developers already using @storybook/addon-viewport, upgrading to version 7.2.3 is generally recommended to take advantage of these underlying improvements. The peer dependencies for React and React DOM remain the same, ensuring compatibility with existing projects using React versions 16.8.0 and above.
The are not vulnerabilities for the version 7.2.3 of the package @storybook/addon-viewport