@storybook/addon-viewport is a valuable tool for Storybook users, enabling them to simulate various device screen sizes directly within their Storybook environment. This addon allows developers and designers to test and visualize their components across different viewports, ensuring a responsive and consistent user experience. Comparing version 6.1.6 with the previous stable version 6.1.5, the core functionality remains consistent: providing the ability to adjust the viewport dynamically.
The primary differences between these versions lie within the internal dependencies rather than user-facing features. Notably, several internal Storybook packages like @storybook/api, @storybook/addons, @storybook/theming, @storybook/components, @storybook/core-events, and @storybook/client-logger have been updated from version 6.1.5 to 6.1.6 in the newer release. These updates likely incorporate bug fixes, performance improvements, or new features within the broader Storybook ecosystem. The release date difference indicates a quick follow-up release, suggesting the updates might address critical fixes or refinements identified shortly after the 6.1.5 release.
For developers, upgrading from 6.1.5 to 6.1.6 ensures they benefit from the latest improvements and bug fixes within the Storybook core, potentially leading to a more stable and efficient Storybook experience. If you're already using the addon, upgrading is advisable to remain up-to-date with the project's development. If you're new to the addon, both versions 6.1.5 and 6.1.6 provide the core viewport functionality. However, choosing the latest version (6.1.6) is generally recommended for optimal performance and stability.
All the vulnerabilities related to the version 6.1.6 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.