The @storybook/addon-viewport package allows developers to build and test responsive UI components directly within Storybook by simulating different screen sizes and orientations. Comparing versions 8.6.6 and 8.6.5, the core functionality remains consistent, focusing on adapting Storybook's viewport to mimic various devices. Both versions include the memoizerific dependency for performance optimization and share the same development dependencies, including React, React DOM, and TypeScript, ensuring a modern development experience. Crucially, developers building their components with React 18 or beyond can rely on the packages being compatible, as the information shows that React 18.2.0 is listed as a dev dependency. The peer dependency defines compatibility with the core Storybook package itself.
The primary difference lies in the peer dependency on "storybook" - version 8.6.6 requires Storybook version 8.6.6, while 8.6.5 requires Storybook version 8.6.5. This highlights the importance of aligning your @storybook/addon-viewport version with your core Storybook installation to avoid potential compatibility issues.
Release dates indicate that version 8.6.6 was released shortly after 8.6.5, suggesting it may contain bug fixes, minor improvements, or enhancements specifically tailored for Storybook 8.6.6. Developers should prioritize using the latest version (8.6.6) when working with Storybook 8.6.6 to benefit from the most up-to-date features and resolutions. Otherwise, both versions provide essential tools for creating responsive and adaptable user interfaces directly within the Storybook environment. The identical fileCount and unpackedSize values further suggest that changes are minimal which are mostly related to package version constraints.
The are not vulnerabilities for the version 8.6.6 of the package @storybook/addon-viewport