@storybook/addon-viewport offers developers a seamless way to simulate various screen sizes within their Storybook environment, ensuring responsive design testing is integrated directly into the component development workflow. Comparing versions 6.1.9 and 6.1.8, the core functionality remains consistent, both enabling users to adjust the viewport to mimic different mobile devices and screen dimensions. This allows for quick verification of how components render across various devices without needing to deploy to external testing platforms.
A notable difference lies in the internal dependencies. Version 6.1.9 updates its internal Storybook packages (@storybook/api, @storybook/addons, @storybook/theming, @storybook/components, @storybook/core-events, @storybook/client-logger) to version 6.1.9, while version 6.1.8 uses version 6.1.8 of those same packages. While the provided data doesn't specify the exact changes within these Storybook packages, this update likely includes bug fixes, performance improvements and potential new features within the broader Storybook ecosystem. For developers integrating with the latest Storybook features, using the 6.1.9 addon version is recommended to maintain compatibility and leverage the most up-to-date enhancements. Both versions maintain the same peer dependencies for React and React DOM, ensuring compatibility with existing projects using React versions 16.8.0 or 17.0.0. The file count and unpacked size of the package are identical between the versions.
All the vulnerabilities related to the version 6.1.9 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.