@storybook/addon-viewport is a valuable tool for Storybook users, enabling them to preview their components across a range of device viewport sizes, particularly useful for responsive design testing within the Storybook environment.
Version 3.4.2, released on April 17, 2018, represents a minor update over version 3.4.1, which was released a week earlier on April 10, 2018. While both versions share the same core functionality, description, file count (23), unpacked size (232713), and license (MIT), a notable distinction lies in the dependency @storybook/components. Version 3.4.2 depends on "@storybook/components":"3.4.2" while version 3.4.1 depends on "@storybook/components":"3.4.1", suggesting a targeted update or bug fix specific to that component within the Storybook ecosystem.
Developers leveraging this addon can define a series of viewport presets tailored to common devices (e.g., iPhone, iPad, various Android devices) or custom sizes. The addon then provides a user interface within the Storybook panel to quickly switch between these presets, offering a convenient and efficient way to visualize how components adapt to different screen dimensions. This helps in identifying and addressing responsive design issues early in the development lifecycle, leading to more polished and consistent user experiences across platforms. The peer dependencies, including React and @storybook/addons, remain consistent across both versions, ensuring compatibility with existing Storybook setups.
All the vulnerabilities related to the version 3.4.2 of the package
node-fetch forwards secure headers to untrusted sites
node-fetch forwards secure headers such as authorization
, www-authenticate
, cookie
, & cookie2
when redirecting to a untrusted site.