Maintenance: Upgrades to Storybook, fetch-mock, fetch-mock-jest, config for auditjs #2758
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Who is this PR for?
developers
What does this PR do?
This started from a low-quality vulnerability alert on a development dependency, but ended in episode 79 of "computers are the worst" :) here's the story:
1. auditjs fails on serialize-javascript 1.4.0.
serialize-javascript
at version 2.12. Looking manually at yarn.lock, we can see that this is what is installed and that the insecure version is never installed.2. When we change auditjs to instead audit yarn.lock, auditjs fails on safe-eval 0.4.1.
safe-eval
essentially can't provide a full sandbox the way you might think, and the README has been updated to indicate the package is insecure. So the aggressiveness in the Sonatype index is probably reasonable. npm advisory: https://www.npmjs.com/advisories/337 and Sonatype index: https://ossindex.sonatype.org/vuln/a4bde2fe-bf45-4835-9959-ac23b3efaf16, safe-eval README: https://github.com/hacksparrow/safe-evalsafe-eval
and requires no migrations to Storybook.3. Storybook 5.1.10 does not build.
jest-fetch-mock@^3.0.0
, which breaks jest. Then upgradefetch-mock@^8.2.0
. This leads to 7 test failures. Let's fix them.4. Fix test failures after upgrading fetch-mock and jest-fetch-mock.
5. Pop back up the stack.
safe-eval
is no longer bundled.