Skip to content

Commit 555ae7c

Browse files
committed
Upgrade react-router
* Removed `react-router` * Install react-router-dom` * Removed `history` resolution
1 parent 43b251e commit 555ae7c

File tree

2 files changed

+42
-85
lines changed

2 files changed

+42
-85
lines changed

app/package.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"date-fns": "2.14.0",
3030
"debug": "4.1.1",
3131
"file-saver": "2.0.2",
32-
"history": "4.10.1",
3332
"http-proxy-middleware": "1.0.4",
3433
"i18next": "19.5.1",
3534
"i18next-browser-languagedetector": "5.0.0",
@@ -43,7 +42,7 @@
4342
"react": "17.0.2",
4443
"react-dom": "17.0.2",
4544
"react-i18next": "11.7.0",
46-
"react-router": "5.2.0",
45+
"react-router-dom": "^6.3.0",
4746
"react-scripts": "5.0.0",
4847
"react-toastify": "6.0.6",
4948
"react-virtualized": "9.21.2",
@@ -72,7 +71,7 @@
7271
"@types/node": "14.0.14",
7372
"@types/react": "17.0.13",
7473
"@types/react-dom": "17.0.8",
75-
"@types/react-router": "5.1.8",
74+
"@types/react-router-dom": "^5.3.3",
7675
"@types/react-virtualized": "9.21.10",
7776
"@types/reactour": "1.17.1",
7877
"@types/semver": "^7.3.9",
@@ -90,9 +89,6 @@
9089
"ts-protoc-gen": "0.12.0",
9190
"typescript": "4.1.6"
9291
},
93-
"resolutions": {
94-
"history": "4.10.1"
95-
},
9692
"eslintConfig": {
9793
"extends": "react-app",
9894
"ignorePatterns": [

app/yarn.lock

Lines changed: 40 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -2979,18 +2979,16 @@
29792979
dependencies:
29802980
"@types/unist" "*"
29812981

2982-
"@types/history@*":
2983-
version "5.0.0"
2984-
resolved "https://registry.yarnpkg.com/@types/history/-/history-5.0.0.tgz#29f919f0c8e302763798118f45b19cab4a886f14"
2985-
integrity sha512-hy8b7Y1J8OGe6LbAjj3xniQrj3v6lsivCcrmf4TzSgPzLkhIeKgc5IZnT7ReIqmEuodjfO8EYAuoFvIrHi/+jQ==
2986-
dependencies:
2987-
history "*"
2988-
29892982
"@types/history@4.7.6":
29902983
version "4.7.6"
29912984
resolved "https://registry.yarnpkg.com/@types/history/-/history-4.7.6.tgz#ed8fc802c45b8e8f54419c2d054e55c9ea344356"
29922985
integrity sha512-GRTZLeLJ8ia00ZH8mxMO8t0aC9M1N9bN461Z2eaRurJo6Fpa+utgCwLzI4jQHcrdzuzp5WPN9jRwpsCQ1VhJ5w==
29932986

2987+
"@types/history@^4.7.11":
2988+
version "4.7.11"
2989+
resolved "https://registry.yarnpkg.com/@types/history/-/history-4.7.11.tgz#56588b17ae8f50c53983a524fc3cc47437969d64"
2990+
integrity sha512-qjDJRrmvBMiTx+jyLxvLfJU7UznFuokDv4f3WRuriHKERccVpFU+8XMQUAbDzoiJCsmexxRExQeMwwCdamSKDA==
2991+
29942992
"@types/html-minifier-terser@^5.0.0":
29952993
version "5.1.2"
29962994
resolved "https://registry.yarnpkg.com/@types/html-minifier-terser/-/html-minifier-terser-5.1.2.tgz#693b316ad323ea97eed6b38ed1a3cc02b1672b57"
@@ -3139,12 +3137,21 @@
31393137
dependencies:
31403138
"@types/react" "*"
31413139

3142-
"@types/react-router@5.1.8":
3143-
version "5.1.8"
3144-
resolved "https://registry.yarnpkg.com/@types/react-router/-/react-router-5.1.8.tgz#4614e5ba7559657438e17766bb95ef6ed6acc3fa"
3145-
integrity sha512-HzOyJb+wFmyEhyfp4D4NYrumi+LQgQL/68HvJO+q6XtuHSDvw6Aqov7sCAhjbNq3bUPgPqbdvjXC5HeB2oEAPg==
3140+
"@types/react-router-dom@^5.3.3":
3141+
version "5.3.3"
3142+
resolved "https://registry.yarnpkg.com/@types/react-router-dom/-/react-router-dom-5.3.3.tgz#e9d6b4a66fcdbd651a5f106c2656a30088cc1e83"
3143+
integrity sha512-kpqnYK4wcdm5UaWI3fLcELopqLrHgLqNsdpHauzlQktfkHL3npOSwtj1Uz9oKBAzs7lFtVkV8j83voAz2D8fhw==
31463144
dependencies:
3147-
"@types/history" "*"
3145+
"@types/history" "^4.7.11"
3146+
"@types/react" "*"
3147+
"@types/react-router" "*"
3148+
3149+
"@types/react-router@*":
3150+
version "5.1.18"
3151+
resolved "https://registry.yarnpkg.com/@types/react-router/-/react-router-5.1.18.tgz#c8851884b60bc23733500d86c1266e1cfbbd9ef3"
3152+
integrity sha512-YYknwy0D0iOwKQgz9v8nOzt2J6l4gouBmDnWqUUznltOTaon+r8US8ky8HvN0tXvc38U9m6z/t2RsVsnd1zM0g==
3153+
dependencies:
3154+
"@types/history" "^4.7.11"
31483155
"@types/react" "*"
31493156

31503157
"@types/react-syntax-highlighter@11.0.4":
@@ -8621,17 +8628,12 @@ highlight.js@~9.18.2:
86218628
resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-9.18.5.tgz#d18a359867f378c138d6819edfc2a8acd5f29825"
86228629
integrity sha512-a5bFyofd/BHCX52/8i8uJkjr9DYwXIPnM/plwI6W7ezItLGqzt7X2G2nXuYSfsIJdkwwj/g9DG1LkcGJI/dDoA==
86238630

8624-
history@*, history@4.10.1, history@^4.9.0:
8625-
version "4.10.1"
8626-
resolved "https://registry.yarnpkg.com/history/-/history-4.10.1.tgz#33371a65e3a83b267434e2b3f3b1b4c58aad4cf3"
8627-
integrity sha512-36nwAD620w12kuzPAsyINPWJqlNbij+hpK1k9XRloDtym8mxzGYl2c17LnV6IAGB2Dmg4tEa7G7DlawS0+qjew==
8631+
history@^5.2.0:
8632+
version "5.3.0"
8633+
resolved "https://registry.yarnpkg.com/history/-/history-5.3.0.tgz#1548abaa245ba47992f063a0783db91ef201c73b"
8634+
integrity sha512-ZqaKwjjrAYUYfLG+htGaIIZ4nioX2L70ZUMIFysS3xvBsSG4x/n1V6TXV3N8ZYNuFGlDirFg32T7B6WOUPDYcQ==
86288635
dependencies:
8629-
"@babel/runtime" "^7.1.2"
8630-
loose-envify "^1.2.0"
8631-
resolve-pathname "^3.0.0"
8632-
tiny-invariant "^1.0.2"
8633-
tiny-warning "^1.0.0"
8634-
value-equal "^1.0.1"
8636+
"@babel/runtime" "^7.7.6"
86358637

86368638
hmac-drbg@^1.0.1:
86378639
version "1.0.1"
@@ -8642,7 +8644,7 @@ hmac-drbg@^1.0.1:
86428644
minimalistic-assert "^1.0.0"
86438645
minimalistic-crypto-utils "^1.0.1"
86448646

8645-
hoist-non-react-statics@^3.0.0, hoist-non-react-statics@^3.1.0, hoist-non-react-statics@^3.3.0, hoist-non-react-statics@^3.3.1:
8647+
hoist-non-react-statics@^3.0.0, hoist-non-react-statics@^3.3.0, hoist-non-react-statics@^3.3.1:
86468648
version "3.3.2"
86478649
resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz#ece0acaf71d62c2969c2ec59feff42a4b1a85b45"
86488650
integrity sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==
@@ -9548,11 +9550,6 @@ is-wsl@^2.1.1, is-wsl@^2.2.0:
95489550
dependencies:
95499551
is-docker "^2.0.0"
95509552

9551-
isarray@0.0.1:
9552-
version "0.0.1"
9553-
resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf"
9554-
integrity sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=
9555-
95569553
isarray@1.0.0, isarray@^1.0.0, isarray@~1.0.0:
95579554
version "1.0.0"
95589555
resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11"
@@ -10638,7 +10635,7 @@ loglevelnext@^1.0.1:
1063810635
es6-symbol "^3.1.1"
1063910636
object.assign "^4.1.0"
1064010637

10641-
loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.2.0, loose-envify@^1.3.0, loose-envify@^1.3.1, loose-envify@^1.4.0:
10638+
loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.3.0, loose-envify@^1.4.0:
1064210639
version "1.4.0"
1064310640
resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf"
1064410641
integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==
@@ -10963,14 +10960,6 @@ min-indent@^1.0.0:
1096310960
resolved "https://registry.yarnpkg.com/min-indent/-/min-indent-1.0.1.tgz#a63f681673b30571fbe8bc25686ae746eefa9869"
1096410961
integrity sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==
1096510962

10966-
mini-create-react-context@^0.4.0:
10967-
version "0.4.1"
10968-
resolved "https://registry.yarnpkg.com/mini-create-react-context/-/mini-create-react-context-0.4.1.tgz#072171561bfdc922da08a60c2197a497cc2d1d5e"
10969-
integrity sha512-YWCYEmd5CQeHGSAKrYvXgmzzkrvssZcuuQDDeqkT+PziKGMgE+0MCCtcKbROzocGBG1meBLl2FotlRwf4gAzbQ==
10970-
dependencies:
10971-
"@babel/runtime" "^7.12.1"
10972-
tiny-warning "^1.0.3"
10973-
1097410963
mini-css-extract-plugin@^0.7.0:
1097510964
version "0.7.0"
1097610965
resolved "https://registry.yarnpkg.com/mini-css-extract-plugin/-/mini-css-extract-plugin-0.7.0.tgz#5ba8290fbb4179a43dd27cca444ba150bee743a0"
@@ -11838,13 +11827,6 @@ path-to-regexp@0.1.7:
1183811827
resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c"
1183911828
integrity sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=
1184011829

11841-
path-to-regexp@^1.7.0:
11842-
version "1.8.0"
11843-
resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-1.8.0.tgz#887b3ba9d84393e87a0a0b9f4cb756198b53548a"
11844-
integrity sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA==
11845-
dependencies:
11846-
isarray "0.0.1"
11847-
1184811830
path-type@^3.0.0:
1184911831
version "3.0.0"
1185011832
resolved "https://registry.yarnpkg.com/path-type/-/path-type-3.0.0.tgz#cef31dc8e0a1a3bb0d105c0cd97cf3bf47f4e36f"
@@ -13354,7 +13336,7 @@ react-is@17.0.2, react-is@^17.0.1:
1335413336
resolved "https://registry.yarnpkg.com/react-is/-/react-is-17.0.2.tgz#e691d4a8e9c789365655539ab372762b0efb54f0"
1335513337
integrity sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==
1335613338

13357-
react-is@^16.12.0, react-is@^16.13.1, react-is@^16.6.0, react-is@^16.7.0, react-is@^16.8.1:
13339+
react-is@^16.12.0, react-is@^16.13.1, react-is@^16.7.0, react-is@^16.8.1:
1335813340
version "16.13.1"
1335913341
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"
1336013342
integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==
@@ -13390,21 +13372,20 @@ react-refresh@^0.11.0:
1339013372
resolved "https://registry.yarnpkg.com/react-refresh/-/react-refresh-0.11.0.tgz#77198b944733f0f1f1a90e791de4541f9f074046"
1339113373
integrity sha512-F27qZr8uUqwhWZboondsPx8tnC3Ct3SxZA3V5WyEvujRyyNv0VYPhoBg1gZ8/MV5tubQp76Trw8lTv9hzRBa+A==
1339213374

13393-
react-router@5.2.0:
13394-
version "5.2.0"
13395-
resolved "https://registry.yarnpkg.com/react-router/-/react-router-5.2.0.tgz#424e75641ca8747fbf76e5ecca69781aa37ea293"
13396-
integrity sha512-smz1DUuFHRKdcJC0jobGo8cVbhO3x50tCL4icacOlcwDOEQPq4TMqwx3sY1TP+DvtTgz4nm3thuo7A+BK2U0Dw==
13375+
react-router-dom@^6.3.0:
13376+
version "6.3.0"
13377+
resolved "https://registry.yarnpkg.com/react-router-dom/-/react-router-dom-6.3.0.tgz#a0216da813454e521905b5fa55e0e5176123f43d"
13378+
integrity sha512-uaJj7LKytRxZNQV8+RbzJWnJ8K2nPsOOEuX7aQstlMZKQT0164C+X2w6bnkqU3sjtLvpd5ojrezAyfZ1+0sStw==
1339713379
dependencies:
13398-
"@babel/runtime" "^7.1.2"
13399-
history "^4.9.0"
13400-
hoist-non-react-statics "^3.1.0"
13401-
loose-envify "^1.3.1"
13402-
mini-create-react-context "^0.4.0"
13403-
path-to-regexp "^1.7.0"
13404-
prop-types "^15.6.2"
13405-
react-is "^16.6.0"
13406-
tiny-invariant "^1.0.2"
13407-
tiny-warning "^1.0.0"
13380+
history "^5.2.0"
13381+
react-router "6.3.0"
13382+
13383+
react-router@6.3.0:
13384+
version "6.3.0"
13385+
resolved "https://registry.yarnpkg.com/react-router/-/react-router-6.3.0.tgz#3970cc64b4cb4eae0c1ea5203a80334fdd175557"
13386+
integrity sha512-7Wh1DzVQ+tlFjkeo+ujvjSqSJmkt1+8JO+T5xklPlgrh70y7ogx75ODRW0ThWhY7S+6yEDks8TYrtQe/aoboBQ==
13387+
dependencies:
13388+
history "^5.2.0"
1340813389

1340913390
react-scripts@5.0.0:
1341013391
version "5.0.0"
@@ -13902,11 +13883,6 @@ resolve-from@^5.0.0:
1390213883
resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-5.0.0.tgz#c35225843df8f776df21c57557bc087e9dfdfc69"
1390313884
integrity sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==
1390413885

13905-
resolve-pathname@^3.0.0:
13906-
version "3.0.0"
13907-
resolved "https://registry.yarnpkg.com/resolve-pathname/-/resolve-pathname-3.0.0.tgz#99d02224d3cf263689becbb393bc560313025dcd"
13908-
integrity sha512-C7rARubxI8bXFNB/hqcp/4iUeIXJhJZvFPFPiSPRnhU5UPxzMFIl+2E6yY6c4k9giDJAhtV+enfA+G89N6Csng==
13909-
1391013886
resolve-url-loader@^4.0.0:
1391113887
version "4.0.0"
1391213888
resolved "https://registry.yarnpkg.com/resolve-url-loader/-/resolve-url-loader-4.0.0.tgz#d50d4ddc746bb10468443167acf800dcd6c3ad57"
@@ -15325,16 +15301,6 @@ tiny-emitter@^2.0.0:
1532515301
resolved "https://registry.yarnpkg.com/tiny-emitter/-/tiny-emitter-2.1.0.tgz#1d1a56edfc51c43e863cbb5382a72330e3555423"
1532615302
integrity sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q==
1532715303

15328-
tiny-invariant@^1.0.2:
15329-
version "1.2.0"
15330-
resolved "https://registry.yarnpkg.com/tiny-invariant/-/tiny-invariant-1.2.0.tgz#a1141f86b672a9148c72e978a19a73b9b94a15a9"
15331-
integrity sha512-1Uhn/aqw5C6RI4KejVeTg6mIS7IqxnLJ8Mv2tV5rTc0qWobay7pDUz6Wi392Cnc8ak1H0F2cjoRzb2/AW4+Fvg==
15332-
15333-
tiny-warning@^1.0.0, tiny-warning@^1.0.3:
15334-
version "1.0.3"
15335-
resolved "https://registry.yarnpkg.com/tiny-warning/-/tiny-warning-1.0.3.tgz#94a30db453df4c643d0fd566060d60a875d84754"
15336-
integrity sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA==
15337-
1533815304
tmp@^0.0.33:
1533915305
version "0.0.33"
1534015306
resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9"
@@ -15929,11 +15895,6 @@ validate-npm-package-license@^3.0.1:
1592915895
spdx-correct "^3.0.0"
1593015896
spdx-expression-parse "^3.0.0"
1593115897

15932-
value-equal@^1.0.1:
15933-
version "1.0.1"
15934-
resolved "https://registry.yarnpkg.com/value-equal/-/value-equal-1.0.1.tgz#1e0b794c734c5c0cade179c437d356d931a34d6c"
15935-
integrity sha512-NOJ6JZCAWr0zlxZt+xqCHNTEKOsrks2HQd4MqhP1qy4z1SkbEP467eNx6TgDKXMvUOb+OENfJCZwM+16n7fRfw==
15936-
1593715898
vary@~1.1.2:
1593815899
version "1.1.2"
1593915900
resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc"

0 commit comments

Comments
 (0)