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] Upgrade: react, react-dom, , antd, prop-types, react-redux, react-router-dom, redux, redux-saga #108

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

Conversation

Security-Test-Account
Copy link
Owner

snyk-top-banner

Snyk has created this PR to upgrade multiple dependencies.

👯‍♂ The following dependencies are linked and will therefore be updated together.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

Name Versions Released on

react
from 16.13.1 to 16.14.0 | 1 version ahead of your current version | 4 years ago
on 2020-10-14
react-dom
from 16.13.1 to 16.14.0 | 1 version ahead of your current version | 4 years ago
on 2020-10-14
@ant-design/icons
from 4.3.0 to 4.8.3 | 15 versions ahead of your current version | 6 months ago
on 2024-03-22
antd
from 4.3.3 to 4.24.16 | 161 versions ahead of your current version | 6 months ago
on 2024-03-19
prop-types
from 15.7.2 to 15.8.1 | 2 versions ahead of your current version | 3 years ago
on 2022-01-05
react-redux
from 7.2.0 to 7.2.9 | 9 versions ahead of your current version | 2 years ago
on 2022-09-23
react-router-dom
from 5.2.0 to 5.3.4 | 6 versions ahead of your current version | 2 years ago
on 2022-10-02
redux
from 4.2.0 to 4.2.1 | 1 version ahead of your current version | 2 years ago
on 2023-01-28
redux-saga
from 1.1.3 to 1.3.0 | 5 versions ahead of your current version | 8 months ago
on 2024-01-02

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-ASYNCVALIDATOR-2311201
586 Proof of Concept
Release notes
Package name: react from react GitHub release notes
Package name: react-dom from react-dom GitHub release notes
Package name: @ant-design/icons
  • 4.8.3 - 2024-03-22
  • 4.8.2 - 2024-03-18
  • 4.8.1 - 2023-08-10
  • 4.8.1-1 - 2023-08-10
  • 4.8.1-0 - 2023-08-10
  • 4.8.0 - 2022-11-16
  • 4.7.0 - 2021-09-24
  • 4.6.4 - 2021-08-27
  • 4.6.3 - 2021-08-16
  • 4.6.2 - 2021-03-19
  • 4.6.1 - 2021-03-19
  • 4.6.0 - 2021-03-19
  • 4.5.0 - 2021-02-10
  • 4.5.0-alpha.0 - 2021-02-10
  • 4.4.0 - 2021-01-19
  • 4.3.0 - 2020-11-13
from @ant-design/icons GitHub release notes
Package name: antd
  • 4.24.16 - 2024-03-19
  • 4.24.15 - 2023-11-21
  • 4.24.14 - 2023-09-06
  • 4.24.13 - 2023-08-03
  • 4.24.12 - 2023-06-30
  • 4.24.11 - 2023-06-27
  • 4.24.10 - 2023-05-04
  • 4.24.9 - 2023-04-20
  • 4.24.8 - 2023-02-13
  • 4.24.7 - 2022-12-30
  • 4.24.6 - 2022-12-26
  • 4.24.5 - 2022-12-06
  • 4.24.4 - 2022-11-25
  • 4.24.3 - 2022-11-17
  • 4.24.2 - 2022-11-12
  • 4.24.1 - 2022-11-04
  • 4.24.0 - 2022-11-01
  • 4.23.6 - 2022-10-17
  • 4.23.5 - 2022-10-10
  • 4.23.4 - 2022-10-02
  • 4.23.3 - 2022-09-28
  • 4.23.2 - 2022-09-17
  • 4.23.1 - 2022-09-09
  • 4.23.0 - 2022-09-04
  • 4.22.8 - 2022-08-26
  • 4.22.7 - 2022-08-21
  • 4.22.6 - 2022-08-17
  • 4.22.5 - 2022-08-15
  • 4.22.4 - 2022-08-08
  • 4.22.3 - 2022-08-01
  • 4.22.2 - 2022-07-28
  • 4.22.1 - 2022-07-27
  • 4.22.0 - 2022-07-26
  • 4.21.7 - 2022-07-18
  • 4.21.6 - 2022-07-11
  • 4.21.5 - 2022-07-03
  • 4.21.4 - 2022-06-27
  • 4.21.3 - 2022-06-17
  • 4.21.2 - 2022-06-14
  • 4.21.1 - 2022-06-13
  • 4.21.0 - 2022-06-06
  • 4.20.7 - 2022-05-30
  • 4.20.6 - 2022-05-22
  • 4.20.5 - 2022-05-15
  • 4.20.4 - 2022-05-11
  • 4.20.3 - 2022-05-09
  • 4.20.2 - 2022-04-30
  • 4.20.1 - 2022-04-26
  • 4.20.0 - 2022-04-24
  • 4.20.0-alpha.1 - 2022-04-18
  • 4.20.0-alpha.0 - 2022-04-12
  • 4.19.5 - 2022-04-02
  • 4.19.5-alpha.0 - 2022-03-28
  • 4.19.4 - 2022-03-27
  • 4.19.3 - 2022-03-21
  • 4.19.2 - 2022-03-13
  • 4.19.1 - 2022-03-08
  • 4.19.1-alpha.0 - 2022-03-08
  • 4.19.0 - 2022-03-08
  • 4.18.9 - 2022-02-28
  • 4.18.8 - 2022-02-21
  • 4.18.7 - 2022-02-14
  • 4.18.6 - 2022-02-08
  • 4.18.5 - 2022-01-24
  • 4.18.4 - 2022-01-18
  • 4.18.3 - 2022-01-10
  • 4.18.2 - 2021-12-30
  • 4.18.1 - 2021-12-29
  • 4.18.0 - 2021-12-27
  • 4.17.4 - 2021-12-20
  • 4.17.3 - 2021-12-08
  • 4.17.2 - 2021-11-26
  • 4.17.1 - 2021-11-22
  • 4.17.1-alpha.1 - 2021-11-17
  • 4.17.1-alpha.0 - 2021-11-16
  • 4.17.0 - 2021-11-15
  • 4.17.0-alpha.10 - 2021-11-08
  • 4.17.0-alpha.9 - 2021-10-31
  • 4.17.0-alpha.8 - 2021-10-25
  • 4.17.0-alpha.7 - 2021-10-18
  • 4.17.0-alpha.6 - 2021-10-11
  • 4.17.0-alpha.5 - 2021-09-30
  • 4.17.0-alpha.4 - 2021-09-25
  • 4.17.0-alpha.3 - 2021-09-14
  • 4.17.0-alpha.2 - 2021-09-07
  • 4.17.0-alpha.1 - 2021-09-06
  • 4.17.0-alpha.0 - 2021-09-01
  • 4.16.13 - 2021-08-23
  • 4.16.12 - 2021-08-16
  • 4.16.11 - 2021-08-08
  • 4.16.10 - 2021-08-02
  • 4.16.9 - 2021-07-27
  • 4.16.8 - 2021-07-19
  • 4.16.7 - 2021-07-12
  • 4.16.6 - 2021-06-29
  • 4.16.5 - 2021-06-23
  • 4.16.3 - 2021-06-15
  • 4.16.2 - 2021-06-07
  • 4.16.1 - 2021-05-31
  • 4.16.0 - 2021-05-25
  • 4.16.0-alpha.2 - 2021-05-08
  • 4.16.0-alpha.1 - 2021-05-08
  • 4.16.0-alpha.0 - 2021-05-07
  • 4.15.6 - 2021-05-18
  • 4.15.5 - 2021-05-10
  • 4.15.4 - 2021-04-30
  • 4.15.3 - 2021-04-26
  • 4.15.3-alpha.0 - 2021-04-21
  • 4.15.2 - 2021-04-19
  • 4.15.1 - 2021-04-10
  • 4.15.0 - 2021-03-29
  • 4.14.1 - 2021-03-22
  • 4.14.0 - 2021-03-14
  • 4.13.1 - 2021-03-06
  • 4.13.0 - 2021-02-28
  • 4.12.3 - 2021-02-10
  • 4.12.2 - 2021-02-04
  • 4.12.1 - 2021-02-03
  • 4.12.0 - 2021-02-02
  • 4.11.3 - 2021-02-02
  • 4.11.2 - 2021-01-26
  • 4.11.1 - 2021-01-24
  • 4.11.0 - 2021-01-24
  • 4.10.3 - 2021-01-18
  • 4.10.2 - 2021-01-11
  • 4.10.1 - 2021-01-10
  • 4.10.0 - 2021-01-04
  • 4.9.4 - 2020-12-16
  • 4.9.3 - 2020-12-14
  • 4.9.2 - 2020-12-07
  • 4.9.1 - 2020-12-01
  • 4.9.0 - 2020-11-30
  • 4.8.6 - 2020-11-27
  • 4.8.5 - 2020-11-22
  • 4.8.4 - 2020-11-16
  • 4.8.3 - 2020-11-16
  • 4.8.2 - 2020-11-09
  • 4.8.1 - 2020-11-09
  • 4.8.0 - 2020-11-02
  • 4.7.3 - 2020-10-24
  • 4.7.2 - 2020-10-19
  • 4.7.1 - 2020-10-19
  • 4.7.0 - 2020-10-10
  • 4.6.6 - 2020-09-27
  • 4.6.5 - 2020-09-20
  • 4.6.4 - 2020-09-13
  • 4.6.3 - 2020-09-07
  • 4.6.2 - 2020-08-31
  • 4.6.1 - 2020-08-24
  • 4.6.0 - 2020-08-23
  • 4.5.4 - 2020-08-12
  • 4.5.3 - 2020-08-09
  • 4.5.2 - 2020-08-02
  • 4.5.1 - 2020-07-28
  • 4.5.0 - 2020-07-27
  • 4.4.3 - 2020-07-20
  • 4.4.2 - 2020-07-11
  • 4.4.1 - 2020-07-06
  • 4.4.0 - 2020-06-29
  • 4.3.5 - 2020-06-21
  • 4.3.4 - 2020-06-14
  • 4.3.3 - 2020-06-07
from antd GitHub release notes
Package name: prop-types
  • 15.8.1 - 2022-01-05
    • [Fix] fix crash when a custom propType return lacks .data; call hasOwnProperty properly (#370)
    • [meta] Fix formatting in CHANGELOG.md (#367)
    • [Tests] add missing test coverage (#370)
    • [Tests] convert normal it functions to arrow functions (#370)
    • [Tests] do not fail fast; add react 17 (#366)
    • [Dev Deps] update eslint
  • 15.8.0 - 2021-12-22
    • [New] add PropTypes.bigint (#365)
    • [New] oneOfType: Add expected types to warning (#198)
    • [New] Add type check for validator for 'shape' and 'exact' (#234)
    • [Fix] checkPropTypes: Friendlier message when using a type checker that is not a function (#51)
    • [Refactor] extract has (#261, #125, #124)
    • [readme] Fix branch name (master -> main) (#364)
    • [readme] Clarify usage of elementType (#335)
    • [docs] highlighted the func name (#321)
    • [docs] Typo fix in example (#300)
    • [docs] Add instructions for intentional inclusion of validation in production. (#262)
    • [docs] PropTypes.node: add link to react docs
    • [docs] Improve wording for checkPropTypes (#258)
    • [meta] Add a package sideEffects field. (#350)
    • [meta] use in-publish to avoid running the build on install
    • [deps] regenerate yarn.lock
    • [deps] update react-is (#347, #346, #345, #340, #338)
    • [eslint] enable some rules (#360)
    • [Tests] Use GH Actions (#363)
    • [Tests] Fix spelling (#318)
    • [Tests] Fixed typo: 'Any type should accept any value' (#281)
    • [Tests] fix broken tests; test the build process
    • [Dev Deps] update browserify, bundle-collapser, eslint, in-publish, react, uglifyify, uglifyjs
  • 15.7.2 - 2019-02-13

    v15.7.2

from prop-types GitHub release notes
Package name: react-redux
  • 7.2.9 - 2022-09-23

    This patch release updates the rarely-used areStatesEqual option for connect to now pass through ownProps for additional use in determining which pieces of state to compare if desired.

    The new signature is:

    {
      areStatesEqual?: (
        nextState: State,
        prevState: State,
        nextOwnProps: TOwnProps,
        prevOwnProps: TOwnProps
      ) => boolean
    }

    What's Changed

    Full Changelog: v7.2.8...v7.2.9

  • 7.2.8 - 2022-04-01

    This release fixes a bug in the 7.x branch that caused <Provider> to unsubscribe and stop updating completely when used inside of React 18's <StrictMode>. The new "strict effects" behavior double-mounts components, and the subscription needed to be set up inside of a useLayoutEffect instead of a useMemo. This was previously fixed as part of v8 development, and we've backported it.

    Note: If you are now using React 18, we strongly recommend using the React-Redux v8 beta instead of v7.x!. v8 has been rewritten internally to work correctly with React 18's Concurrent Rendering capabilities. React-Redux v7 will run and generally work okay with existing code, but may have rendering issues if you start using Concurrent Rendering capabilities in your code.

    Now that React 18 is out, we plan to finalize React-Redux v8 and release it live within the next couple weeks. Per an update yesterday in the "v8 roadmap" thread, React-Redux v8 will be updated in the next couple days to ensure support for React 16.8+ as part of the next beta release. We would really appreciate final feedback on using React-Redux v8 beta with React 18 before we publish the final version.

    Full Changelog: v7.2.7...v7.2.8

  • 7.2.7 - 2022-03-31

    This release updates React-Redux v7's peer dependencies to accept React 18 as a valid version, only to avoid installation errors caused by NPM's "install all the peer deps and error if they don't match" behavior.

    Note: If you are now using React 18, we strongly recommend using the React-Redux v8 beta instead of v7.x!. v8 has been rewritten internally to work correctly with React 18's Concurrent Rendering capabilities. React-Redux v7 will run and generally work okay with existing code, but may have rendering issues if you start using Concurrent Rendering capabilities in your code.

    Now that React 18 is out, we plan to finalize React-Redux v8 and release it live within the next couple weeks. We would really appreciate final feedback on using React-Redux v8 beta with React 18 before we publish the final version.

  • 7.2.6 - 2021-10-25
  • 7.2.5 - 2021-09-04
  • 7.2.4 - 2021-04-24
  • 7.2.3 - 2021-03-23
  • 7.2.2 - 2020-10-26
  • 7.2.1 - 2020-07-25
  • 7.2.0 - 2020-02-18
from react-redux GitHub release notes
Package name: react-router-dom
  • 5.3.4 - 2022-10-02
  • 5.3.3 - 2022-05-18
  • 5.3.2 - 2022-05-17
  • 5.3.1 - 2022-04-17
  • 5.3.0 - 2021-09-03
  • 5.2.1 - 2021-08-27
  • 5.2.0 - 2020-05-11
from react-router-dom GitHub release notes
Package name: redux
  • 4.2.1 - 2023-01-28

    This bugfix release removes the isMinified internal check to fix a compat issue with Expo. That check has added in early 2016, soon after Redux 3.0 was released, at a time when it was still less common to use bundlers with proper production build settings. Today that check is irrelevant, so we've removed it.

    What's Changed

    Full Changelog: v4.2.0...v4.2.1

  • 4.2.0 - 2022-04-18

    This release marks the original createStore API as @ deprecated to encourage users to migrate to Redux Toolkit, and adds a new legacy_createStore API as an alias without the deprecation warning.

    Goal

    Redux Toolkit (the @ reduxjs/toolkit package) is the right way for Redux users to write Redux code today:

    https://redux.js.org/introduction/why-rtk-is-redux-today

    Unfortunately, many tutorials are still showing legacy "hand-written" Redux patterns, which result in a much worse experience for users. New learners going through a bootcamp or an outdated Udemy course just follow the examples they're being shown, don't know that RTK is the better and recommended approach, and don't even think to look at our docs.

    Given that, the goal is to provide them with a visual indicator in their editor, like createStore . When users hover over the createStore import or function call, the doc tooltip recommends using configureStore from RTK instead, and points them to that docs page. We hope that new learners will see the strikethrough, read the tooltip, read the docs page, learn about RTK, and begin using it.

    To be extremely clear:

    WE ARE NOT GOING TO ACTUALLY REMOVE THE createStore API, AND ALL YOUR EXISTING CODE WILL STILL CONTINUE TO WORK AS-IS!

    We are just marking createStore as "deprecated":

    "the discouragement of use of some feature or practice, typically because it has been superseded or is no longer considered efficient or safe, without completely removing it or prohibiting its use"

    For additional details, see the extensive discussion in #4325 .

    Rationale

    • RTK provides a vastly improved Redux usage experience, with APIs that simplify standard usage patterns and eliminate common bugs like accidental mutations
    • We've had suggestions to merge all of RTK into the redux core package, or fully deprecate the entire redux package and rename it to @ reduxjs/core. Unfortunately, those bring up too many complexities:
      • We already had a package rename from redux-starter-kit to @ reduxjs/toolkit, and all of our docs and tutorials have pointed to it for the last three years. I don't want to put users through another whiplash package transition for no real benefit
      • Merging or rearranging our packages would effectively require merging all of the Redux repos into a single monorepo. That would require hundreds of hours of effort from us maintainers, including needing to somehow merge all of our docs sites together. We don't have the time to do that.
    • I don't want to add runtime warnings that would be really annoying

    So, this is the minimum possible approach we can take to reach out to users who otherwise would never know that they are following outdated patterns, while avoiding breaking running user code or having to completely rewrite our package and repo structure.

    Results

    When a user imports createStore in their editor, they will see a visual strikethrough. Hovering over it will show a doc tooltip that encourages them to use configureStore from RTK, and points to an explanatory docs page:

    image

    Again, no broken code, and no runtime warnings.

    If users do not want to see that strikethrough, they have three options:

    • Follow our suggestion to switch over to Redux Toolkit and configureStore
    • Do nothing. It's just a visual strikethrough, and it doesn't affect how your code behaves. Ignore it.
    • Switch to using the legacy_createStore API that is now exported, which is the exact same function but with no @ deprecation tag. The simplest option is to do an aliased import rename:

    image

    What's Changed

    • Mark createStore as deprecated, and add legacy_createStore alias by @ markerikson in #4336

    Full Changelog: v4.1.2...v4.2.0

from redux GitHub release notes
Package name: redux-saga from redux-saga GitHub release notes

Important

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

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

Snyk has created this PR to upgrade:
  - react from 16.13.1 to 16.14.0.
    See this package in npm: https://www.npmjs.com/package/react
  - react-dom from 16.13.1 to 16.14.0.
    See this package in npm: https://www.npmjs.com/package/react-dom
  - @ant-design/icons from 4.3.0 to 4.8.3.
    See this package in npm: https://www.npmjs.com/package/@ant-design/icons
  - antd from 4.3.3 to 4.24.16.
    See this package in npm: https://www.npmjs.com/package/antd
  - prop-types from 15.7.2 to 15.8.1.
    See this package in npm: https://www.npmjs.com/package/prop-types
  - react-redux from 7.2.0 to 7.2.9.
    See this package in npm: https://www.npmjs.com/package/react-redux
  - react-router-dom from 5.2.0 to 5.3.4.
    See this package in npm: https://www.npmjs.com/package/react-router-dom
  - redux from 4.2.0 to 4.2.1.
    See this package in npm: https://www.npmjs.com/package/redux
  - redux-saga from 1.1.3 to 1.3.0.
    See this package in npm: https://www.npmjs.com/package/redux-saga

See this project in Snyk:
https://app.snyk.io/org/david.guevara/project/16eafa73-088a-473f-8813-7905aa57bb36?utm_source=github&utm_medium=referral&page=upgrade-pr
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