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

[Snyk] Security upgrade react-scripts from 1.1.4 to 3.0.0 #74

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Omrisnyk
Copy link
Owner

snyk-top-banner

Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.

Snyk changed the following file(s):

  • package.json
  • package-lock.json

Vulnerabilities that will be fixed with an upgrade:

Issue Score
high severity Directory Traversal
SNYK-JS-SOURCEMAPSUPPORT-6112477
  170  
Release notes
Package name: react-scripts
  • 3.0.0 - 2019-04-22

    3.0.0 (April 22, 2019)

    Create React App 3.0 brings some exciting new features including support for Hooks!

    Thanks to all the maintainers and contributors who worked so hard on this release! 🎉

    Highlights

    • Jest 24: #6278
    • Hooks support: #5997
    • TypeScript linting: #6513
    • browserslist support in @ babel/preset-env: #6608
    • Absolute imports using jsconfig.json/tsconfig.json: #6656

    Migrating from 2.1.x to 3.0.0

    Inside any created project that has not been ejected, run:

    npm install --save --save-exact [email protected]

    or

    yarn add --exact [email protected]
    

    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 few 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.

    Jest 24

    We've updated from Jest 23 to get the latest improvements in Jest 24. We've noticed some differences in snapshot serialization in Jest 24, so you may need to adjust your tests slightly once you update. You can read more about what's changed in the Jest 24 blog post.

    Hooks support

    We now enforce Rules of Hooks with eslint-plugin-react-hooks. If you are breaking any of the rules of Hooks this will cause your build to fail.

    TypeScript linting

    We now lint TypeScript files. You can see the list of rules we enforce to check if your project is compatible. If you're using Visual Studio Code you can follow our guide to setup up your editor to display lint warnings.

    browserslist support in @ babel/preset-env

    The browserslist config in your package.json is now used to control the output of your JavaScript files. You can use separate configuration for development and production. See here for a good starting point which gives a good development experience, especially when using language features such as async/await, but still provides high compatibility with many browsers in production

    Remove --no-watch flag

    We've removed the --no-watch flag from the start script in favor of Jest's own --watchAll=false.

    New structure in asset-manifest.json

    All asset paths have been moved under the files key in asset-manifest.json.

    New Features

    using jsconfig.json/tsconfig.json

    We now support setting baseUrl in jsconfig.json and tsconfig.json. To configure baseUrl to point to the src directory in your JavaScript project, create a jsconfig.json file in your project root:

    ```json
    {
      "compilerOptions": {
        "baseUrl": "src"
      },
      "include": ["src"]
    }
    ```
    

    If you have a TypeScript project you can configure baseUrl the same way in your tsconfig.json.

    Currently the only supported options for baseUrl are node_modules (the default) and src.

    PostCSS Normalize

    You can now include a version of Normalize.css in your project that will use your browserslist setting to generate the appropriate styles for your target browsers. To include it simply add @ import-normalize at the top of one of your CSS files.

    Detailed Changelog

    🚀 New Feature

    • react-scripts
    • babel-plugin-named-asset-import, confusing-browser-globals, react-dev-utils, react-error-overlay, react-scripts
    • eslint-config-react-app, react-scripts
    • babel-preset-react-app, eslint-config-react-app, react-scripts
    • babel-preset-react-app, react-dev-utils, react-scripts

    💥 Breaking Change

    • react-scripts
    • babel-preset-react-app, react-app-polyfill
    • babel-plugin-named-asset-import, confusing-browser-globals, react-dev-utils, react-error-overlay, react-scripts
    • eslint-config-react-app, react-scripts
    • babel-preset-react-app, eslint-config-react-app, react-scripts
    • babel-preset-react-app, react-dev-utils, react-scripts

    🐛 Bug Fix

    💅 Enhancement

    📝 Documentation

    🏠 Internal

    • Other
    • react-scripts
    • babel-plugin-named-asset-import, confusing-browser-globals, react-dev-utils, react-error-overlay, react-scripts
    • react-dev-utils
    • eslint-config-react-app
      • #6662 Sync version of babel-eslint in eslint-config-react-app for react-scripts V3 (@ dalcib)

    🔨 Underlying Tools

    • react-scripts
    • babel-plugin-named-asset-import, babel-preset-react-app, confusing-browser-globals, create-react-app, eslint-config-react-app, react-app-polyfill, react-dev-utils, react-error-overlay, react-scripts
    • babel-preset-react-app
    • babel-preset-react-app, react-dev-utils, react-error-overlay, react-scripts
    • react-dev-utils
      • #6739 Update fork-ts-checker-webpack-plugin out of alpha (@ pelotom)
    • eslint-config-react-app
    • eslint-config-react-app, react-scripts
      • #6653 Unpin eslint-config-react-hooks dependency (@ iansu)
    • babel-preset-react-app, eslint-config-react-app, react-scripts
    • babel-preset-react-app, create-react-app, react-app-polyfill, react-dev-utils, react-error-overlay, react-scripts

    Committers: 49

  • 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 notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

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
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Directory Traversal

@Omrisnyk
Copy link
Owner Author

Omrisnyk commented Nov 12, 2024

Snyk checks have failed. 6 issues have been found so far.

Icon Severity Issues
Critical 0
High 3
Medium 2
Low 1

security/snyk check is complete. 5 issues have been found. (View Details)

license/snyk check is complete. 1 issues have been found. (View Details)

code/snyk check is complete. No issues have been found. (View Details)

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

Successfully merging this pull request may close these issues.

2 participants