Skip to content

Commit

Permalink
Upgrade React, @testing-library/react, react-test-renderer (#1185)
Browse files Browse the repository at this point in the history
* chore: upgrade react, react-dom

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>

* tmp: fix unit test

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>

* fixup! tmp: fix unit test

* fixup! fixup! tmp: fix unit test

* chore: update licenses lists

Signed-off-by: Oleksii Orel <oorel@redhat.com>

---------

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>
Signed-off-by: Oleksii Orel <oorel@redhat.com>
Co-authored-by: Oleksii Orel <oorel@redhat.com>
  • Loading branch information
akurinnoy and olexii4 authored Sep 9, 2024
1 parent bf8e813 commit 49a7631
Show file tree
Hide file tree
Showing 130 changed files with 1,029 additions and 1,065 deletions.
25 changes: 11 additions & 14 deletions .deps/dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
| [`@babel/parser@7.23.0`](https://github.com/babel/babel.git) | MIT | #10663 |
| [`@babel/plugin-syntax-jsx@7.22.5`](https://github.com/babel/babel.git) | MIT | #9014 |
| [`@babel/plugin-syntax-typescript@7.22.5`](https://github.com/babel/babel.git) | MIT | #8994 |
| [`@babel/runtime-corejs3@7.23.2`](https://github.com/babel/babel.git) | MIT | clearlydefined |
| [`@babel/template@7.22.15`](https://github.com/babel/babel.git) | MIT | #9017 |
| [`@babel/traverse@7.23.2`](https://github.com/babel/babel.git) | MIT | #11520 |
| [`@babel/types@7.23.0`](https://github.com/babel/babel.git) | MIT | #11521 |
Expand Down Expand Up @@ -65,7 +64,6 @@
| [`@jest/test-result@29.7.0`](https://github.com/jestjs/jest.git) | MIT | clearlydefined |
| [`@jest/test-sequencer@29.7.0`](https://github.com/jestjs/jest.git) | MIT | clearlydefined |
| [`@jest/transform@29.7.0`](https://github.com/jestjs/jest.git) | MIT | clearlydefined |
| [`@jest/types@26.6.2`](https://github.com/facebook/jest.git) | MIT | clearlydefined |
| [`@jest/types@29.6.3`](https://github.com/jestjs/jest.git) | MIT | clearlydefined |
| `@jridgewell/gen-mapping@0.3.3` | MIT | clearlydefined |
| `@jridgewell/resolve-uri@3.1.1` | MIT | clearlydefined |
Expand Down Expand Up @@ -128,16 +126,16 @@
| [`@sinclair/typebox@0.27.8`](https://github.com/sinclairzx81/typebox) | MIT | clearlydefined |
| [`@sinonjs/commons@3.0.0`](git+https://github.com/sinonjs/commons.git) | BSD-3-Clause | #12905 |
| [`@sinonjs/fake-timers@10.3.0`](https://github.com/sinonjs/fake-timers.git) | BSD-3-Clause | #9214 |
| [`@testing-library/dom@7.31.2`](https://github.com/testing-library/dom-testing-library) | MIT | transitive dependency |
| [`@testing-library/jest-dom@6.1.4`](https://github.com/testing-library/jest-dom) | MIT | clearlydefined |
| [`@testing-library/react@10.4.9`](https://github.com/testing-library/react-testing-library) | MIT | clearlydefined |
| [`@testing-library/user-event@12.8.3`](https://github.com/testing-library/user-event) | MIT | clearlydefined |
| [`@testing-library/dom@10.4.0`](https://github.com/testing-library/dom-testing-library) | MIT | #15966 |
| [`@testing-library/jest-dom@6.5.0`](https://github.com/testing-library/jest-dom) | MIT | clearlydefined |
| [`@testing-library/react@16.0.1`](https://github.com/testing-library/react-testing-library) | MIT | clearlydefined |
| [`@testing-library/user-event@14.5.2`](https://github.com/testing-library/user-event) | MIT | clearlydefined |
| [`@tootallnate/once@2.0.0`](git://github.com/TooTallNate/once.git) | MIT | clearlydefined |
| `@trysound/sax@0.2.0` | ISC | clearlydefined |
| [`@tufjs/canonical-json@1.0.0`](git+https://github.com/theupdateframework/tuf-js.git) | MIT | #8047 |
| [`@tufjs/models@1.0.4`](git+https://github.com/theupdateframework/tuf-js.git) | MIT | #7600 |
| [`@types/args@5.0.2`](https://github.com/DefinitelyTyped/DefinitelyTyped.git) | MIT | clearlydefined |
| [`@types/aria-query@4.2.2`](https://github.com/DefinitelyTyped/DefinitelyTyped.git) | MIT | clearlydefined |
| [`@types/aria-query@5.0.4`](https://github.com/DefinitelyTyped/DefinitelyTyped.git) | MIT | #10958 |
| [`@types/babel__core@7.20.3`](https://github.com/DefinitelyTyped/DefinitelyTyped.git) | MIT | clearlydefined |
| [`@types/babel__generator@7.6.6`](https://github.com/DefinitelyTyped/DefinitelyTyped.git) | MIT | clearlydefined |
| [`@types/babel__template@7.4.3`](https://github.com/DefinitelyTyped/DefinitelyTyped.git) | MIT | clearlydefined |
Expand Down Expand Up @@ -166,16 +164,14 @@
| [`@types/react-copy-to-clipboard@4.3.0`](https://github.com/DefinitelyTyped/DefinitelyTyped.git) | MIT | clearlydefined |
| [`@types/react-router-dom@5.3.3`](https://github.com/DefinitelyTyped/DefinitelyTyped.git) | MIT | clearlydefined |
| [`@types/react-router@5.1.20`](https://github.com/DefinitelyTyped/DefinitelyTyped.git) | MIT | clearlydefined |
| [`@types/react-test-renderer@18.0.5`](https://github.com/DefinitelyTyped/DefinitelyTyped.git) | MIT | clearlydefined |
| [`@types/react-test-renderer@18.3.0`](https://github.com/DefinitelyTyped/DefinitelyTyped.git) | MIT | clearlydefined |
| [`@types/redux-mock-store@1.0.5`](https://github.com/DefinitelyTyped/DefinitelyTyped.git) | MIT | clearlydefined |
| [`@types/request@2.48.12`](https://github.com/DefinitelyTyped/DefinitelyTyped.git) | MIT | clearlydefined |
| [`@types/sanitize-html@2.9.3`](https://github.com/DefinitelyTyped/DefinitelyTyped.git) | MIT | clearlydefined |
| [`@types/semver@7.5.4`](https://github.com/DefinitelyTyped/DefinitelyTyped.git) | MIT | #10842 |
| [`@types/stack-utils@2.0.2`](https://github.com/DefinitelyTyped/DefinitelyTyped.git) | MIT | clearlydefined |
| [`@types/testing-library__jest-dom@5.14.9`](https://github.com/DefinitelyTyped/DefinitelyTyped.git) | MIT | #9436 |
| [`@types/webpack@5.28.5`](https://github.com/DefinitelyTyped/DefinitelyTyped.git) | MIT | clearlydefined |
| [`@types/yargs-parser@21.0.2`](https://github.com/DefinitelyTyped/DefinitelyTyped.git) | MIT | clearlydefined |
| [`@types/yargs@15.0.17`](https://github.com/DefinitelyTyped/DefinitelyTyped.git) | MIT | #6241 |
| [`@types/yargs@17.0.29`](https://github.com/DefinitelyTyped/DefinitelyTyped.git) | MIT | #7054 |
| [`@typescript-eslint/eslint-plugin@6.10.0`](https://github.com/typescript-eslint/typescript-eslint.git) | MIT | #14420 |
| [`@typescript-eslint/parser@6.10.0`](https://github.com/typescript-eslint/typescript-eslint.git) | BSD-2-Clause | clearlydefined |
Expand Down Expand Up @@ -227,7 +223,6 @@
| [`are-we-there-yet@3.0.1`](https://github.com/npm/are-we-there-yet.git) | ISC | clearlydefined |
| [`are-we-there-yet@4.0.2`](https://github.com/npm/are-we-there-yet.git) | ISC | clearlydefined |
| `argparse@1.0.10` | MIT | #2174 |
| [`aria-query@4.2.2`](git+https://github.com/A11yance/aria-query.git) | Apache-2.0 | clearlydefined |
| [`aria-query@5.3.0`](git+https://github.com/A11yance/aria-query.git) | Apache-2.0 | clearlydefined |
| [`array-buffer-byte-length@1.0.0`](git+https://github.com/inspect-js/array-buffer-byte-length.git) | MIT | #7548 |
| `array-differ@3.0.0` | MIT | clearlydefined |
Expand Down Expand Up @@ -331,7 +326,6 @@
| [`conventional-recommended-bump@6.1.0`](https://github.com/conventional-changelog/conventional-changelog.git) | MIT | clearlydefined |
| [`convert-source-map@2.0.0`](git://github.com/thlorenz/convert-source-map.git) | MIT | clearlydefined |
| [`copy-webpack-plugin@11.0.0`](https://github.com/webpack-contrib/copy-webpack-plugin) | MIT | clearlydefined |
| [`core-js-pure@3.33.2`](https://github.com/zloirock/core-js.git) | MIT | #10961 |
| [`core-util-is@1.0.3`](git://github.com/isaacs/core-util-is) | MIT | #5898 |
| [`cosmiconfig@7.0.0`](git+https://github.com/davidtheclark/cosmiconfig.git) | MIT | clearlydefined |
| [`cosmiconfig@8.3.6`](git+https://github.com/cosmiconfig/cosmiconfig.git) | MIT | #10781 |
Expand Down Expand Up @@ -386,6 +380,7 @@
| [`doctrine@2.1.0`](https://github.com/eslint/doctrine) | Apache-2.0 | #15247 |
| [`doctrine@3.0.0`](https://github.com/eslint/doctrine) | Apache-2.0 | [CQ22628](https://dev.eclipse.org/ipzilla/show_bug.cgi?id=22628) |
| [`dom-accessibility-api@0.5.16`](https://github.com/eps1lon/dom-accessibility-api.git) | MIT | clearlydefined |
| [`dom-accessibility-api@0.6.3`](https://github.com/eps1lon/dom-accessibility-api.git) | MIT | clearlydefined |
| [`dom-converter@0.2.0`](https://github.com/AriaMinaei/dom-converter) | MIT | clearlydefined |
| [`dom-serializer@1.4.1`](git://github.com/cheeriojs/dom-renderer.git) | MIT | clearlydefined |
| `domexception@4.0.0` | MIT | clearlydefined |
Expand Down Expand Up @@ -862,7 +857,7 @@
| [`prettier-linter-helpers@1.0.0`](git+https://github.com/prettier/prettier-linter-helpers.git) | MIT | clearlydefined |
| [`prettier@3.2.5`](https://prettier.io) | MIT | #13320 |
| [`pretty-error@4.0.0`](https://github.com/AriaMinaei/pretty-error.git) | MIT | clearlydefined |
| [`pretty-format@26.6.2`](https://github.com/facebook/jest.git) | MIT | clearlydefined |
| [`pretty-format@27.5.1`](https://github.com/facebook/jest.git) | MIT | #1948 |
| [`pretty-format@29.4.3`](https://github.com/facebook/jest.git) | MIT | clearlydefined |
| [`pretty-format@29.7.0`](https://github.com/jestjs/jest.git) | MIT | clearlydefined |
| [`proc-log@2.0.1`](https://github.com/npm/proc-log.git) | ISC | clearlydefined |
Expand All @@ -882,7 +877,9 @@
| `quick-lru@4.0.1` | MIT | clearlydefined |
| `quick-lru@5.1.1` | MIT | clearlydefined |
| [`react-is@18.2.0`](https://github.com/facebook/react.git) | MIT | clearlydefined |
| [`react-test-renderer@16.14.0`](git+https://github.com/facebook/react.git) | MIT | clearlydefined |
| [`react-is@18.3.1`](https://github.com/facebook/react.git) | MIT | clearlydefined |
| [`react-shallow-renderer@16.15.0`](https://reactjs.org/) | MIT | clearlydefined |
| [`react-test-renderer@18.3.1`](https://github.com/facebook/react.git) | MIT | #14587 |
| [`read-cmd-shim@3.0.0`](https://github.com/npm/read-cmd-shim.git) | ISC | clearlydefined |
| [`read-cmd-shim@4.0.0`](https://github.com/npm/read-cmd-shim.git) | ISC | clearlydefined |
| [`read-package-json-fast@2.0.3`](git+https://github.com/npm/read-package-json-fast.git) | ISC | clearlydefined |
Expand Down
6 changes: 3 additions & 3 deletions .deps/prod.md
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@
| [`randombytes@2.1.0`](git@github.com:crypto-browserify/randombytes.git) | MIT | clearlydefined |
| [`randomfill@1.0.4`](https://github.com/crypto-browserify/randomfill.git) | MIT | clearlydefined |
| [`react-copy-to-clipboard@5.1.0`](https://github.com/nkbt/react-copy-to-clipboard.git) | MIT | clearlydefined |
| [`react-dom@16.14.0`](git+https://github.com/facebook/react.git) | MIT | clearlydefined |
| [`react-dom@18.3.1`](https://github.com/facebook/react.git) | MIT | clearlydefined |
| [`react-dropzone@9.0.0`](https://github.com/react-dropzone/react-dropzone.git) | MIT | [CQ22355](https://dev.eclipse.org/ipzilla/show_bug.cgi?id=22355) |
| [`react-fast-compare@3.2.2`](https://github.com/FormidableLabs/react-fast-compare) | MIT | clearlydefined |
| [`react-helmet@6.1.0`](https://github.com/nfl/react-helmet) | MIT | clearlydefined |
Expand All @@ -374,7 +374,7 @@
| [`react-router@5.3.4`](https://github.com/remix-run/react-router.git) | MIT | #3024 |
| [`react-side-effect@2.1.2`](https://github.com/gaearon/react-side-effect.git) | MIT | clearlydefined |
| [`react-tooltip@4.5.1`](https://github.com/ReactTooltip/react-tooltip#readme) | MIT | #5006 |
| [`react@16.14.0`](git+https://github.com/facebook/react.git) | MIT | clearlydefined |
| [`react@18.3.1`](https://github.com/facebook/react.git) | MIT | clearlydefined |
| [`readable-stream@3.6.2`](git://github.com/nodejs/readable-stream) | MIT | [CQ22627](https://dev.eclipse.org/ipzilla/show_bug.cgi?id=22627) |
| [`readable-stream@4.4.2`](git://github.com/nodejs/readable-stream) | MIT | #8426 |
| [`real-require@0.2.0`](git+https://github.com/pinojs/real-require.git) | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/real-require/0.2.0) |
Expand Down Expand Up @@ -402,7 +402,7 @@
| [`safe-stable-stringify@2.4.3`](git+https://github.com/BridgeAR/safe-stable-stringify.git) | MIT | clearlydefined |
| [`safer-buffer@2.1.2`](git+https://github.com/ChALkeR/safer-buffer.git) | MIT | clearlydefined |
| [`sanitize-html@2.13.0`](https://github.com/apostrophecms/sanitize-html.git) | MIT | clearlydefined |
| [`scheduler@0.19.1`](https://github.com/facebook/react.git) | MIT | clearlydefined |
| [`scheduler@0.23.2`](https://github.com/facebook/react.git) | MIT | #14588 |
| [`seamless-immutable@7.1.4`](https://github.com/rtfeldman/seamless-immutable.git) | BSD-3-Clause | clearlydefined |
| [`secure-json-parse@2.7.0`](git+https://github.com/fastify/secure-json-parse.git) | BSD-3-Clause | clearlydefined |
| [`semver@7.5.4`](https://github.com/npm/node-semver.git) | ISC | clearlydefined |
Expand Down
3 changes: 2 additions & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
],
"npmClient": "yarn",
"stream": true,
"version": "7.92.0-next"
"version": "7.92.0-next",
"useWorkspaces": true
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"scripts": {
"build": "yarn prebuild && lerna run build --scope=@eclipse-che/dashboard-\\* --concurrency 1",
"build:dev": "yarn prebuild && lerna run build:dev --scope=@eclipse-che/dashboard-\\*",
"prebuild": "yarn workspace @eclipse-che/common build",
"prebuild": "lerna run build --scope=@eclipse-che/common",
"prebuild:dev": "yarn prebuild",
"frontend:start": "yarn workspace @eclipse-che/dashboard-frontend start",
"start": "${PWD}/run/local-run.sh $@",
Expand Down
17 changes: 8 additions & 9 deletions packages/dashboard-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@
"multi-ini": "^2.3.2",
"process": "^0.11.10",
"qs": "^6.12.1",
"react": "^16.14.0",
"react": "^18.3.1",
"react-copy-to-clipboard": "^5.1.0",
"react-dom": "^16.12.0",
"react-dom": "^18.3.1",
"react-helmet": "^6.1.0",
"react-pluralize": "^1.6.3",
"react-redux": "^7.2.9",
Expand All @@ -74,21 +74,20 @@
"@eclipse-che/api": "^7.86.0",
"@kubernetes/client-node": "^0.21.0",
"@react-mock/state": "^0.1.8",
"@testing-library/dom": "^7.30.3",
"@testing-library/jest-dom": "6.1.4",
"@testing-library/react": "^10.3.0",
"@testing-library/user-event": "^12.1",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.5.0",
"@testing-library/react": "^16.0.1",
"@testing-library/user-event": "^14.5.2",
"@types/history": "^4.7.6",
"@types/jest": "^29.5.3",
"@types/js-yaml": "^4.0.5",
"@types/lodash": "^4.14.197",
"@types/qs": "^6.9.7",
"@types/react-copy-to-clipboard": "^4.3.0",
"@types/react-router-dom": "^5.3.3",
"@types/react-test-renderer": "^18.0.0",
"@types/react-test-renderer": "^18.3.0",
"@types/redux-mock-store": "^1.0.2",
"@types/sanitize-html": "^2.9.0",
"@types/testing-library__jest-dom": "^5.14.9",
"@types/webpack": "^5.28.5",
"@typescript-eslint/eslint-plugin": "^6.4.0",
"@typescript-eslint/parser": "^6.4.0",
Expand All @@ -115,7 +114,7 @@
"loader-utils": "^3.2.1",
"mini-css-extract-plugin": "^2.7.6",
"prettier": "^3.2.5",
"react-test-renderer": "^16.14.0",
"react-test-renderer": "^18.3.1",
"redux-mock-store": "^1.5.4",
"source-map-loader": "^4.0.1",
"speed-measure-webpack-plugin": "^1.5.0",
Expand Down
Loading

0 comments on commit 49a7631

Please sign in to comment.