[Snyk] Security upgrade react-scripts from 1.1.4 to 4.0.0 #54
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.
This PR was automatically created by Snyk using the credentials of a real user.
Snyk has created this PR to fix one or more vulnerable packages in the `npm` dependencies of this project.
Changes included in this PR
Vulnerabilities that will be fixed
With an upgrade:
Why? Confidentiality impact: None, Integrity impact: None, Availability impact: High, Scope: Unchanged, Exploit Maturity: Proof of Concept, User Interaction (UI): None, Privileges Required (PR): None, Attack Complexity: Low, Attack Vector: Network, EPSS: 0.01055, Social Trends: No, Days since published: 0, Reachable: No, Transitive dependency: Yes, Is Malicious: No, Business Criticality: High, Provider Urgency: High, Package Popularity Score: 99, Impact: 5.99, Likelihood: 2.83, Score Version: V5
SNYK-JS-LODASH-6139239
(*) Note that the real score may have changed since the PR was raised.
Release notes
Package name: react-scripts
-
4.0.0 - 2020-10-23
- Fast Refresh #8582
- React 17 support
- New JSX transform #9645
- TypeScript 4 support #9734
- ESLint 7 #8978
- New Jest and React Testing Library rules #8963
- Jest 26 #8955
- PWA/workbox improvements
- Switch to the Workbox InjectManifest plugin #9205
- Now its own template so it can be released independently
- Web Vitals support #9116
- #8963 feat(eslint-config-react-app): Add jest & testing-library rules (@ MichaelDeBoey)
- #9611 Add AVIF image support (@ Hongbo-Miao)
- #9114 Allow testMatch for jest config (@ Favna)
- #8790 Add back in --stats output from webpack. (@ samccone)
- #8838 Support devDependencies in templates (@ mrmckeb)
- #9359 feat: exit on outdated create-react-app version (@ mrmckeb)
- #9205 Switch to the Workbox InjectManifest plugin (@ jeffposnick)
- #8582 Add experimental react-refresh support (@ charrondev)
- #8963 feat(eslint-config-react-app): Add jest & testing-library rules (@ MichaelDeBoey)
- #8978 Support ESLint 7.x (@ MichaelDeBoey)
- #9587 Remove EXTEND_ESLINT and add Jest rules (@ mrmckeb)
- #9401 fix: remove deprecated rule (@ ljosberinn)
- #9359 feat: exit on outdated create-react-app version (@ mrmckeb)
- #9205 Switch to the Workbox InjectManifest plugin (@ jeffposnick)
- #8955 Upgrade to Jest 26 (@ ianschmitz)
- #8934 feat: remove typescript flag and NODE_PATH support (@ mrmckeb)
- #9037 Fix dotenv file loading order (@ Timer)
- #7899 Set resetMocks to true by default in jest config (@ alexkrolick)
- #8950 Dependency major version upgrades (@ ianschmitz)
- #8926 Add import/no-anonymous-default-export lint rule (@ shakib609)
- #8939 Bump React Hooks ESLint plugin to 4.0.0 (@ gaearon)
- #8948 Drop Node 8 support (@ ianschmitz)
- #8362 Upgrade to Jest 25 (@ skovhus)
- #9805 Fix refreshOverlayInterop module scope error (@ ianschmitz)
- #9037 Fix dotenv file loading order (@ Timer)
- #8700 Skip stdin resuming to support lerna parallel (@ hieuxlu)
- #8845 Do not check for interactive session to shut down dev server (@ jeremywadsack)
- #8768 Add .cjs and .mjs files support to test runner (@ ai)
- #9788 fix: resolve new JSX transform issues (@ mrmckeb)
- #9683 fix: resolve ESLint config from appPath (@ mrmckeb)
- #9412 Fix template name handling (@ iansu)
- #9374 fix: use default modules option from
- #9390 Publish refreshOverlayInterop with react-dev-utils (@ klinem)
- #8492 Replace period in CSS Module classnames (@ evankennedy)
- #8694 Use process.execPath to spawn node subprocess (@ anuraaga)
- #8734 fix: handle templates without main package field (@ mrmckeb)
- #9734 Use new JSX setting with TypeScript 4.1.0 (@ iansu)
- #8638 Support source maps for scss in dev environments (@ MKorostoff)
- #8834 Don't use webpack multi entry unnecessarily (@ sebmarkbage)
- #9861 New JSX Transform opt out (@ iansu)
- #9853 feat: remove unused React imports (@ mrmckeb)
- #9645 Use new JSX transform with React 17 (@ iansu)
- #9350 Add Fast Refresh warning when using React < 16.10 (@ iansu)
- #9375 feat: better refresh plugin integration (@ pmmmwh)
- #9116 Add performance relayer + documentation (web-vitals) (@ housseindjirdeh)
- #8705 Update template tests (@ MichaelDeBoey)
- #8460 Fix --use-pnp for Yarn 2 (@ nickmccurdy)
- Other
- #9728 Upgrade Docusaurus to latest version (@ lex111)
- #9630 Emphasise that Next.js is capable of SSG (@ liamness)
- #9073 Update running-tests.md (@ MichaelDeBoey)
- #9560 Update Vercel deployment documentation (@ timothyis)
- #9380 Update running-tests.md (@ andycanderson)
- #9245 [Doc] fix React Testing Library example (@ sakito21)
- #9231 Clarify wording in adding TypeScript to existing project (@ merelinguist)
- #8895 Fix chai URL (@ BMorearty)
- #9042 Update deployment docs for Azure Static Web Apps (@ burkeholland)
- #8246 Add a VSCode tip in the CSS reset section (@ maazadeeb)
- #8610 Update url to see prettier in action (@ M165437)
- #8684 Simplify wording in setting-up-your-editor.md (@ coryhouse)
- #8791 Add setupTests.js to the list of generated files (@ MostafaNawara)
- #8763 Use simplified import of @ testing-library/jest-dom (@ Dremora)
- #9471 Fixes in the /packages/react-devs-utils/README.md file (@ caspero-62)
- #8651 Update build script deployment URL (@ StenAL)
- #9241 Updated README.md Templates to Follow ESLint Markdown Rules (@ firehawk09)
- #8406 Upgrade testing-library packages (@ gnapse)
- #9244 Explain how to uninstall create-react-app globally (@ nickmccurdy)
- #8838 Support devDependencies in templates (@ mrmckeb)
- #8957 Move shortlinks to cra.link (@ iansu)
- #5847 Include absoluteRuntime in babel preset docs (@ iddan)
- #9670 fix(eslint-config-react-app): Make eslint-plugin-jest an optional peerDependency (@ MichaelDeBoey)
- Other
- #9258 fix: Fix azure-pipelines' endOfLine (@ MichaelDeBoey)
- #9102 Replace Spectrum links with GitHub Discussions (@ iansu)
- #8656 Bump acorn from 6.4.0 to 6.4.1 in /docusaurus/website (@ dependabot[bot])
- #8749 Specify what files are served form a bare local copy (@ challet)
- #9252 feat: Update testing-library dependencies to latest (@ MichaelDeBoey)
- #9059 clean formatMessage usage (@ chenxsan)
- #7787 Bump version of Verdaccio (@ ianschmitz)
- #8858 Remove outdated comment (@ availchet)
- #8952 fix react-refresh babel plugin not applied (@ tanhauhau)
- #9865 Pass JSX runtime setting to Babel preset in Jest config (@ iansu)
- #9841 Bump resolve-url-loader version (@ johannespfeiffer)
- #9348 Upgrade refresh plugin (@ ianschmitz)
- #8891 Bump style-loader to 1.2.1 (@ chybisov)
- #9863 Upgrade to React 17 (@ iansu)
- #9856 feat: Update ESLint dependencies (@ MichaelDeBoey)
- #9857 feat: Update all dependencies (@ MichaelDeBoey)
- #9751 Replace deprecated eslint-loader by eslint-webpack-plugin (@ tooppaaa)
- #9639 Upgrade dependencies (@ ianschmitz)
- #9434 feat: Update ESLint dependencies (@ MichaelDeBoey)
- #9251 feat: Update ESLint dependencies (@ MichaelDeBoey)
- #8978 Support ESLint 7.x (@ MichaelDeBoey)
- #9526 Update template dependencies to latest version (@ MichaelDeBoey)
- #8406 Upgrade testing-library packages (@ gnapse)
- #9392 Upgrade whatwg-fetch (@ Lapz)
- #8933 Bump immer version (@ staff0rd)
- #9317 Upgrade dependencies (@ ianschmitz)
- #9196 Upgrade dependencies (@ ianschmitz)
- #9132 Upgrade dependencies (@ ianschmitz)
- #8955 Upgrade to Jest 26 (@ ianschmitz)
- #9081 Update packages (@ ianschmitz)
- #8947 Minor/patch dependency upgrades (@ ianschmitz)
- #8950 Dependency major version upgrades (@ ianschmitz)
- #8939 Bump React Hooks ESLint plugin to 4.0.0 (@ gaearon)
- #8362 Upgrade to Jest 25 (@ skovhus)
- Adam Charron (@ charrondev)
- Alex Krolick (@ alexkrolick)
- Alexey Pyltsyn (@ lex111)
- Andrey Sitnik (@ ai)
- Andy C (@ andycanderson)
- Anuraag Agrawal (@ anuraaga)
- Braedon Gough (@ braedongough)
- Brian Morearty (@ BMorearty)
- Brody McKee (@ mrmckeb)
- Burke Holland (@ burkeholland)
- Chetanya Kandhari (@ availchet)
- Clément DUNGLER (@ tooppaaa)
- Clément Hallet (@ challet)
- Cory House (@ coryhouse)
- Dan Abramov (@ gaearon)
- Dylan Brookes (@ merelinguist)
- Ernesto García (@ gnapse)
- Eugene Chybisov (@ chybisov)
- Evan Kennedy (@ evankennedy)
- Gerrit Alex (@ ljosberinn)
- Hieu Do (@ hieuxlu)
- Hongbo Miao (@ Hongbo-Miao)
- Houssein Djirdeh (@ housseindjirdeh)
- Huáng Jùnliàng (@ JLHwung)
- Ian Schmitz (@ ianschmitz)
- Ian Sutherland (@ iansu)
- Iddan Aaronsohn (@ iddan)
- Jakob Krigovsky (@ sonicdoe)
- Jeffrey Posnick (@ jeffposnick)
- Jeremy Wadsack (@ jeremywadsack)
- Jeroen Claassens (@ Favna)
- Joe Haddad (@ Timer)
- Johannes Pfeiffer (@ johannespfeiffer)
- Josemaria Nriagu (@ josenriagu)
- Kenneth Skovhus (@ skovhus)
- Kirill Korolyov (@ Dremora)
- Kline Moralee (@ klinem)
- Lenard Pratt (@ Lapz)
- Liam Duffy (@ liamness)
- Maaz Syed Adeeb (@ maazadeeb)
- Marc Hassan (@ mhassan1)
- Matt Korostoff (@ MKorostoff)
- Michael Mok (@ pmmmwh)
- Michael Schmidt-Voigt (@ M165437)
- Michaël De Boey (@ MichaelDeBoey)
- Minh Nguyen (@ NMinhNguyen)
- Mostafa Nawara (@ MostafaNawara)
- Nick McCurdy (@ nickmccurdy)
- Rafael Quijada (@ firehawk09)
- Raihan Nismara (@ raihan71)
- Sakito Mukai (@ sakito21)
- Sam Chen (@ chenxsan)
- Sam Saccone (@ samccone)
- Sebastian Markbåge (@ sebmarkbage)
- Shakib Hossain (@ shakib609)
- Simen Bekkhus (@ SimenB)
- Stafford Williams (@ staff0rd)
- Sten Arthur Laane (@ StenAL)
- Tan Li Hau (@ tanhauhau)
- Timothy (@ timothyis)
- Tobias Büschel (@ tobiasbueschel)
- Webdot_30 (@ caspero-62)
- @ atlanteh
-
4.0.0-next.117 - 2020-10-23
-
4.0.0-next.116 - 2020-10-23
-
4.0.0-next.98 - 2020-09-16
-
4.0.0-next.96 - 2020-09-16
-
4.0.0-next.77 - 2020-08-05
-
4.0.0-next.64 - 2020-07-30
-
3.4.4 - 2020-10-20
-
3.4.3 - 2020-08-12
-
3.4.2 - 2020-08-11
-
3.4.1 - 2020-03-21
-
3.4.0 - 2020-02-14
-
3.3.1 - 2020-01-31
-
3.3.0 - 2019-12-05
-
3.3.0-next.80 - 2019-12-04
-
3.3.0-next.62 - 2019-11-14
-
3.3.0-next.39 - 2019-10-24
-
3.3.0-next.38 - 2019-10-24
-
3.2.0 - 2019-10-03
-
3.1.2 - 2019-09-19
-
3.1.1 - 2019-08-13
-
3.1.0 - 2019-08-09
-
3.0.1 - 2019-05-08
-
3.0.0 - 2019-04-22
-
3.0.0-next.b0cbf2ca - 2019-03-15
-
3.0.0-next.68 - 2019-04-17
-
2.1.8 - 2019-03-07
-
2.1.7 - 2019-03-07
-
2.1.6 - 2019-03-06
-
2.1.5 - 2019-02-11
-
2.1.4 - 2019-02-10
-
2.1.3 - 2019-01-04
-
2.1.3-next.6a95aae9 - 2019-01-04
-
2.1.2 - 2018-12-23
-
2.1.1 - 2018-11-01
-
2.1.0 - 2018-10-30
-
2.0.6-next.c662dfb0 - 2018-10-25
-
2.0.6-next.9b4009d7 - 2018-10-24
-
2.0.5 - 2018-10-14
-
2.0.4 - 2018-10-03
-
2.0.3 - 2018-10-02
-
2.0.2 - 2018-10-01
-
2.0.1 - 2018-09-28
-
2.0.0 - 2018-09-26
-
2.0.0-next.fb6e6f70 - 2018-09-25
-
2.0.0-next.b2fd8db8 - 2018-03-21
-
2.0.0-next.a671462c - 2018-08-24
-
2.0.0-next.9754a231 - 2018-01-18
-
2.0.0-next.66cc7a90 - 2018-04-21
-
2.0.0-next.47d2d941 - 2018-02-07
-
2.0.0-next.3e165448 - 2018-06-18
-
2.0.0-next.2150693d - 2018-09-21
-
2.0.0-next.096703ab - 2018-01-18
-
2.0.0-next.03604a46 - 2018-02-07
-
1.1.5 - 2018-08-22
-
1.1.4 - 2018-04-04
from react-scripts GitHub release notes4.0.0 (2020-10-23)
Create React App 4.0 is a major release with several new features, including support for Fast Refresh!
Thanks to all the maintainers and contributors who worked so hard on this release! 🙌
Highlights
Migrating from 3.4.x to 4.0.0
Inside any created project that has not been ejected, run:
or
NOTE: You may need to delete your
node_modulesfolder and reinstall your dependencies by runningyarn(ornpm install) if you encounter errors after upgrading.If you previously ejected but now want to upgrade, one common solution is to find the commits where you ejected (and any subsequent commits changing the configuration), revert them, upgrade, and later optionally eject again. It’s also possible that the feature you ejected for is now supported out of the box.
Breaking Changes
Like any major release,
[email protected]contains a number of breaking changes. We expect that they won't affect every user, but we recommend you look over this section to see if something is relevant to you. If we missed something, please file a new issue.ESLint
We've upgraded to ESLint 7 and added many new rules including some for Jest and React Testing Library as well as the
import/no-anonymous-default-exportrule. We've also upgradedeslint-plugin-hooksto version 4.0.0 and removed theEXTEND_ESLINTflag as it is no longer required to customize the ESLint config.Jest
We've upgraded to Jest 26 and now set
resetMockstotrueby default in the Jest config.Service workers
We've switched to the Workbox InjectManifest plugin and moved the PWA templates into their own repository.
Removed
typescriptflag andNODE_PATHsupportWe've removed the deprecated
typescriptflag when creating a new app. Use--template typescriptinstead. We've also dropped deprecatedNODE_PATHflag as this has been replaced by setting the base path injsconfig.json.Fix dotenv file loading order
We've changed the loading order of env files to match the
dotenvspecification. See #9037 for more details.Dropped Node 8 support
Node 8 reached End-of-Life at the end of 2019 and is no longer supported.
Detailed Changelog
🚀 New Feature
eslint-config-react-app,react-error-overlay,react-scriptsreact-scriptscreate-react-appcra-template-typescript,cra-template,react-scriptsreact-dev-utils,react-scripts💥 Breaking Change
eslint-config-react-app,react-error-overlay,react-scriptscra-template-typescript,cra-template,eslint-config-react-app,react-error-overlay,react-scriptseslint-config-react-appcreate-react-appcra-template-typescript,cra-template,react-scriptsbabel-plugin-named-asset-import,confusing-browser-globals,create-react-app,react-dev-utils,react-error-overlay,react-scriptscreate-react-app,react-scriptsreact-scriptsbabel-plugin-named-asset-import,babel-preset-react-app,create-react-app,react-app-polyfill,react-dev-utils,react-error-overlay,react-scriptseslint-config-react-app,react-scriptscra-template-typescript,cra-template,create-react-app,react-app-polyfill,react-dev-utils,react-scriptsbabel-plugin-named-asset-import,babel-preset-react-app,confusing-browser-globals,cra-template-typescript,react-dev-utils,react-error-overlay,react-scripts🐛 Bug Fix
react-scriptsbabel-preset-react-app,eslint-config-react-app,react-scriptseslint-config-react-app,react-scriptscreate-react-appbabel-preset-react-apppreset-env(@ JLHwung)react-dev-utilsreact-dev-utils,react-scriptscra-template-typescript,cra-template,react-scripts💅 Enhancement
react-scriptsbabel-preset-react-app,eslint-config-react-app,react-scriptscra-templatebabel-preset-react-app,react-scriptsreact-dev-utils,react-scriptsreact-dev-utils,react-error-overlay,react-scriptscra-template-typescript,cra-templatecreate-react-app📝 Documentation
react-dev-utilscra-template-typescript,cra-templatereact-scriptscra-template-typescript,cra-template,react-dev-utils,react-scriptsbabel-preset-react-app🏠 Internal
eslint-config-react-appcra-template-typescript,cra-templatereact-dev-utilscra-templatebabel-preset-react-appreact-scripts🔨 Underlying Tools
react-scriptsreact-error-overlay,react-scriptsbabel-plugin-named-asset-import,babel-preset-react-app,confusing-browser-globals,cra-template-typescript,cra-template,create-react-app,eslint-config-react-app,react-app-polyfill,react-error-overlay,react-scriptseslint-config-react-app,react-dev-utils,react-scriptsbabel-plugin-named-asset-import,babel-preset-react-app,confusing-browser-globals,cra-template-typescript,cra-template,create-react-app,eslint-config-react-app,react-dev-utils,react-error-overlay,react-scriptseslint-config-react-app,react-error-overlay,react-scriptscra-template-typescript,cra-templatereact-app-polyfillreact-dev-utilsbabel-plugin-named-asset-import,babel-preset-react-app,confusing-browser-globals,create-react-app,react-dev-utils,react-error-overlay,react-scriptsbabel-preset-react-app,cra-template-typescript,cra-template,create-react-app,react-dev-utils,react-error-overlay,react-scriptsbabel-plugin-named-asset-import,confusing-browser-globals,create-react-app,react-dev-utils,react-error-overlay,react-scriptsbabel-preset-react-app,create-react-app,react-dev-utils,react-error-overlay,react-scriptsbabel-plugin-named-asset-import,babel-preset-react-app,create-react-app,react-app-polyfill,react-dev-utils,react-error-overlay,react-scriptseslint-config-react-app,react-scriptsbabel-plugin-named-asset-import,babel-preset-react-app,confusing-browser-globals,cra-template-typescript,react-dev-utils,react-error-overlay,react-scriptsCommitters: 63
[email protected]
Check the changes in this PR to ensure they won't cause issues with your project.
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings
📚 Read more about Snyk's upgrade and patch logic
Learn how to fix vulnerabilities with free interactive lessons:
🦉 Prototype Pollution