@storybook/addon-viewport is a valuable tool for Storybook users, allowing them to build responsive components effectively by adjusting the viewport size and orientation directly within the Storybook environment. Comparing versions 6.3.7 and 6.3.8 reveals subtle but important distinctions.
Notably, the core functionality remains consistent, with both versions providing the same base feature set for simulating various screen sizes and orientations. Both versions share the same dependencies and peer dependencies, ensuring broad compatibility with existing Storybook setups using React. However, the key difference lies in the dependency versions of @storybook/* packages. Version 6.3.8 aligns with the broader Storybook ecosystem at version 6.3.8, while 6.3.7 used 6.3.7 versions, potentially indicating bug fixes or minor feature enhancements incorporated within the Storybook core that these addons now require. This suggests a focus on stability and ensuring consistency across the Storybook suite. The unpacked size of version 6.3.8, being slightly larger (63732 bytes vs 63722 bytes), further implies minor code adjustments or potentially updated assets driving this. Developers should consider upgrading to 6.3.8 to benefit from the improvements and maintain compatibility with the latest Storybook features and bug fixes, leading to a smoother and more reliable development experience when crafting responsive UI components. The release dates also show that version 6.3.8 came out about a month later than version 6.3.7, implying a conscious decision to improve on the first version.
The are not vulnerabilities for the version 6.3.8 of the package @storybook/addon-viewport