@storybook/addon-viewport version 6.1.16 introduces subtle but important updates compared to the previous stable release, 6.1.15, offering developers enhanced control over responsive design testing within Storybook. Both versions share the core functionality of enabling responsive component development by allowing adjustment of Storybook's viewport size and orientation, essential for ensuring consistent user experiences across devices.
The key difference lies in the updated dependencies within version 6.1.16. Specifically, internal Storybook packages such as @storybook/api, @storybook/addons, @storybook/theming, @storybook/components, @storybook/core-events, and @storybook/client-logger are bumped up from 6.1.15 to 6.1.16. While the changes within these internal dependencies are not explicitly detailed in the provided metadata, it generally signals bug fixes, performance improvements, or minor feature enhancements within the Storybook ecosystem. Developers should expect a slightly more refined integration and potentially fewer compatibility issues with the broader Storybook environment when using version 6.1.16.
Both versions maintain identical peer dependencies on React and React DOM, supporting versions 16.8.0 and 17.0.0. This ensures compatibility with a wide range of React projects. The file count (32) and unpacked size (28576) remain constant, suggesting no significant changes in the addon's overall structure or footprint. Ultimately, migrating to 6.1.16 is recommended for developers seeking the most up-to-date and potentially more stable experience within the Storybook environment, ensuring that are leveraging the latest improvements and bug fixes within the Storybook ecosystem.
All the vulnerabilities related to the version 6.1.16 of the package
Cross site scripting in markdown-to-jsx
Versions of the package markdown-to-jsx before 7.4.0 are vulnerable to Cross-site Scripting (XSS) via the src property due to improper input sanitization. An attacker can execute arbitrary code by injecting a malicious iframe element in the markdown.