@storybook/addon-viewport is a valuable Storybook addon that enhances the development and testing workflow by enabling developers to simulate various screen sizes directly within the Storybook environment. This is particularly useful for ensuring responsive designs and testing how components adapt to different mobile devices and viewport dimensions. Comparing version 6.1.7 with its predecessor, 6.1.6, reveals subtle but important changes primarily focused on internal dependency versions, specifically bringing the core storybook dependencies in sync.
Both versions share the same core functionality: providing a panel within Storybook where users can select predefined or custom viewport sizes. This allows developers to quickly verify that their components render correctly across a range of devices without needing to manually resize the browser window or use external device emulators. The consistent file count and unpacked size between the versions suggest no major structural changes or feature additions were introduced.
While the core functionality remains the same, the synchronization of internal @storybook package dependencies is the key difference. If you are managing Storybook versions it is worth upgrading to version 6.1.7 because it reduces the risk of dependency conflicts and ensures greater stability by aligning with the wider Storybook ecosystem. Developers can continue to rely on the addon's ability to define custom viewports, choose from a variety of common device presets and ultimately streamline responsive design testing within their Storybook setup. Using the most up-to-date version is always the better option.
All the vulnerabilities related to the version 6.1.7 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.