Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): bump acorn from 5.6.2 to 5.7.4 #1008

Merged
merged 4 commits into from
Mar 17, 2020

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 14, 2020

Bumps acorn from 5.6.2 to 5.7.4.

Commits
  • 6370e90 Mark version 5.7.4
  • fbc15b1 More rigorously check surrogate pairs in regexp validator
  • 910e62b Mark version 5.7.3
  • 3442a80 Make generate-identifier-regex capable of rewriting src/identifier.js
  • 22b22f3 Raise specific errors for unterminated template literals
  • 1461c7c Fix a lint error
  • 0c12f63 Fix tokenizing of regexps after .of
  • 832c308 Fix 404 url
  • 95ca55c Mark version 5.7.2
  • bba80ab Remove another fixed test from the 262 whitelist
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [acorn](https://github.com/acornjs/acorn) from 5.6.2 to 5.7.4.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](acornjs/acorn@5.6.2...5.7.4)

Signed-off-by: dependabot[bot] <support@github.com>
@netlify
Copy link

netlify bot commented Mar 14, 2020

Deploy preview for carbon-addons-iot-react ready!

Built with commit feaf3ae

https://deploy-preview-1008--carbon-addons-iot-react.netlify.com

@tay1orjones
Copy link
Member

tay1orjones commented Mar 17, 2020

Quite a few important dependencies rely on this and the upgrade is a major version bump didn't realize this was just a minor upgrade. I haven't had time to explore all these deps and if we can upgrade acorn underneath them without issues.

Output from yarn why acorn:

yarn why v1.12.3
[1/4] 🤔  Why do we have the module "acorn"...?
[2/4] 🚚  Initialising dependency graph...
[3/4] 🔍  Finding dependency...
[4/4] 🚡  Calculating file sizes...
=> Found "acorn@6.0.5"
info Has been hoisted to "acorn"
info Reasons this module exists
   - Hoisted from "rollup#acorn"
   - Hoisted from "jsdom#acorn-globals#acorn"
   - Hoisted from "eslint#espree#acorn"
info Disk size without dependencies: "1.07MB"
info Disk size with unique dependencies: "1.07MB"
info Disk size with transitive dependencies: "1.07MB"
info Number of shared dependencies: 0
=> Found "webpack#acorn@5.7.3"
info This module exists because "webpack" depends on it.
info Disk size without dependencies: "588KB"
info Disk size with unique dependencies: "588KB"
info Disk size with transitive dependencies: "588KB"
info Number of shared dependencies: 0
=> Found "rollup-plugin-node-globals#acorn@5.7.3"
info This module exists because "rollup-plugin-node-globals" depends on it.
info Disk size without dependencies: "588KB"
info Disk size with unique dependencies: "588KB"
info Disk size with transitive dependencies: "588KB"
info Number of shared dependencies: 0
=> Found "jsdom#acorn@7.1.0"
info This module exists because "jsdom" depends on it.
info Disk size without dependencies: "1.08MB"
info Disk size with unique dependencies: "1.08MB"
info Disk size with transitive dependencies: "1.08MB"
info Number of shared dependencies: 0
=> Found "acorn-dynamic-import#acorn@5.6.2"
info This module exists because "webpack#acorn-dynamic-import" depends on it.
info Disk size without dependencies: "588KB"
info Disk size with unique dependencies: "588KB"
info Disk size with transitive dependencies: "588KB"
info Number of shared dependencies: 0
=> Found "@storybook/react#acorn@6.4.0"
info Reasons this module exists
   - "@storybook#react#webpack" depends on it
   - Hoisted from "@storybook#react#webpack#acorn"
info Disk size without dependencies: "1.08MB"
info Disk size with unique dependencies: "1.08MB"
info Disk size with transitive dependencies: "1.08MB"
info Number of shared dependencies: 0
=> Found "@storybook/core#acorn@6.4.0"
info Reasons this module exists
   - "@storybook#addon-storyshots#@storybook#core#webpack" depends on it
   - Hoisted from "@storybook#addon-storyshots#@storybook#core#webpack#acorn"
info Disk size without dependencies: "1.08MB"
info Disk size with unique dependencies: "1.08MB"
info Disk size with transitive dependencies: "1.08MB"
info Number of shared dependencies: 0
=> Found "storybook-chromatic#acorn@5.7.3"
info Reasons this module exists
   - "@storybook#addon-actions#react-inspector#storybook-chromatic#jsdom" depends on it
   - Hoisted from "@storybook#addon-actions#react-inspector#storybook-chromatic#jsdom#acorn"
info Disk size without dependencies: "588KB"
info Disk size with unique dependencies: "588KB"
info Disk size with transitive dependencies: "588KB"
info Number of shared dependencies: 0
=> Found "corejs-upgrade-webpack-plugin#acorn@6.4.0"
info Reasons this module exists
   - "@storybook#addon-storyshots#@storybook#core#corejs-upgrade-webpack-plugin#webpack" depends on it
   - Hoisted from "@storybook#addon-storyshots#@storybook#core#corejs-upgrade-webpack-plugin#webpack#acorn"
info Disk size without dependencies: "1.08MB"
info Disk size with unique dependencies: "1.08MB"
info Disk size with transitive dependencies: "1.08MB"
info Number of shared dependencies: 0
=> Found "jest-environment-jsdom#acorn@5.7.3"
info Reasons this module exists
   - "jest#jest-cli#jest-config#jest-environment-jsdom#jsdom" depends on it
   - Hoisted from "jest#jest-cli#jest-config#jest-environment-jsdom#jsdom#acorn"
info Disk size without dependencies: "588KB"
info Disk size with unique dependencies: "588KB"
info Disk size with transitive dependencies: "588KB"
info Number of shared dependencies: 0
=> Found "storybook-chromatic#acorn-globals#acorn@6.0.5"
info This module exists because "@storybook#addon-actions#react-inspector#storybook-chromatic#jsdom#acorn-globals" depends on it.
info Disk size without dependencies: "1.07MB"
info Disk size with unique dependencies: "1.07MB"
info Disk size with transitive dependencies: "1.07MB"
info Number of shared dependencies: 0
=> Found "jest-environment-jsdom#acorn-globals#acorn@6.0.5"
info This module exists because "jest#jest-cli#jest-config#jest-environment-jsdom#jsdom#acorn-globals" depends on it.
info Disk size without dependencies: "1.07MB"
info Disk size with unique dependencies: "1.07MB"
info Disk size with transitive dependencies: "1.07MB"
info Number of shared dependencies: 0
✨  Done in 1.29s.

@tay1orjones
Copy link
Member

tay1orjones commented Mar 17, 2020

Here's the source of my confusion, the actual security vulnerability linked above states

Remediation
Upgrade acorn to version 6.4.1 or later. For example:

acorn@^6.4.1:
version "6.4.1"
Always verify the validity and compatibility of suggestions with your codebase.

Details
GHSA-7fhm-mqm4-2wp7
moderate severity
Vulnerable versions: >= 6.0.0, < 6.4.1
Patched version: 6.4.1

So after some digging it appears the deps relying on v5.x can be upgraded to 5.7.4 which contains the fix

Whereas deps relying on v6.x need v6.4.1 to get the fix

yarn.lock Outdated Show resolved Hide resolved
Copy link
Member

@tay1orjones tay1orjones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think dependabot simply updated this before v6.4.1 was released and 6.4.0 was incorrectly whitelisted at that time. Either way I've manually updated this branch to resolve acorn v6 to 6.4.1.

I validated locally that the build succeeded and outputs as expected. Additionally fired up storybook and things work as expected.

@tay1orjones tay1orjones merged commit f102ecb into master Mar 17, 2020
@tay1orjones tay1orjones deleted the dependabot/npm_and_yarn/acorn-5.7.4 branch March 17, 2020 18:29
@tay1orjones
Copy link
Member

🎉 This PR is included in version 2.57.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants