@storybook/addon-viewport offers developers a streamlined way to simulate various device screen sizes directly within their Storybook environment, enhancing the visual testing and responsive design workflow. Comparing versions 4.1.4 and 4.1.3 of this addon reveals subtle but important distinctions. While both versions share the same core functionality, description, dependencies like global, core-js, prop-types, util-deprecate, @emotion/styled, and react as a peer dependency, the key difference lies in the versions of internal Storybook packages. Version 4.1.4 utilizes @storybook/addons, @storybook/components, and @storybook/core-events all at version 4.1.4, whereas 4.1.3 depends on version 4.1.3 for these components. This suggests that version 4.1.4 likely includes bug fixes, performance improvements, or minor feature enhancements within these core Storybook modules making the upgrade useful.
Developers already using Storybook will appreciate the ease with which this addon allows switching between predefined viewport sizes representing common mobile devices or defining custom dimensions. The consistent file count and unpacked size between versions indicate that the core architecture and number of assets remain unchanged, the update focuses maybe on some code optimization and improvement. The release date difference of just a few days indicates a potentially quick follow-up release addressing immediate issues found in 4.1.3. Because of all the above, the decision to upgrade from 4.1.3 to 4.1.4 depends, and it must be taken in accordance with your own project needs.
The are not vulnerabilities for the version 4.1.4 of the package @storybook/addon-viewport