@storybook/addon-viewport is a valuable tool for Storybook users, enabling developers to easily simulate different screen sizes and orientations for their components. Primarily focusing on mobile viewports, the addon ensures responsive design is a core part of the development and testing workflow.
Comparing version 3.3.4 with the previous stable version, 3.3.3, reveals subtle but important refinements. While the core functionality remains the same – allowing you to switch between pre-defined or custom viewport sizes directly within the Storybook UI – the key differences reside in the internal dependencies. Version 3.3.4 updates the @storybook/components dependency to version 3.3.4, aligning it with the core Storybook ecosystem and potentially bringing along UI improvements and bug fixes from the underlying component library. Similarly, version 3.3.3 depends on @storybook/components version 3.3.3. Both versions share consistent dependencies on global and prop-types, and peer dependencies on react and @storybook/addons, so the impact on the end-user might not be immediately apparent but contributes to the overall stability and compatibility of the addon within the Storybook environment.
Developers upgrading from 3.3.3 to 3.3.4 should expect a seamless transition. The update primarily focuses on internal dependency alignment within the Storybook ecosystem, likely resolving minor inconsistencies or taking advantage of improvements in the core components. The API and usage of the addon remain consistent, meaning existing configurations and stories will continue to function as expected. Therefore, upgrading to the latest version is recommended to leverage potential stability enhancements and stay current with the Storybook platform. Both versions are licensed under the MIT license, providing developers the freedom to use, modify, and distribute the addon as needed.
All the vulnerabilities related to the version 3.3.4 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.