Skip to content

Commit e3c8669

Browse files
committed
Upgrade history to 5.3
1 parent 4e2599f commit e3c8669

File tree

3 files changed

+11
-36
lines changed

3 files changed

+11
-36
lines changed

ui/frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"ace-builds": "^1.4.4",
1212
"common-tags": "^1.8.0",
1313
"core-js": "^3.1.3",
14-
"history": "^4.6.0",
14+
"history": "^5.3.0",
1515
"isomorphic-fetch": "^3.0.0",
1616
"lodash": "^4.17.0",
1717
"monaco-editor": "^0.33.0",

ui/frontend/uss-router/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ export function createRouter({
3838
};
3939

4040
// Watch changes to the browser state
41-
history.listen((nextLocation, historyAction) => {
42-
if (historyAction === 'POP') {
43-
dispatchBrowserLocationChange(nextLocation);
41+
history.listen(({ action, location }) => {
42+
if (action === 'POP') {
43+
dispatchBrowserLocationChange(location);
4444
}
4545
});
4646

ui/frontend/yarn.lock

Lines changed: 7 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@
929929
"@babel/plugin-transform-react-jsx-development" "^7.16.7"
930930
"@babel/plugin-transform-react-pure-annotations" "^7.16.7"
931931

932-
"@babel/runtime@^7.1.2", "@babel/runtime@^7.12.1", "@babel/runtime@^7.8.4", "@babel/runtime@^7.9.2":
932+
"@babel/runtime@^7.1.2", "@babel/runtime@^7.12.1", "@babel/runtime@^7.7.6", "@babel/runtime@^7.8.4", "@babel/runtime@^7.9.2":
933933
version "7.18.3"
934934
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.18.3.tgz#c7b654b57f6f63cf7f8b418ac9ca04408c4579f4"
935935
integrity sha512-38Y8f7YUhce/K7RMwTp7m0uCumpv9hZkitCbBClqQIow1qSbCvGkcegKOXpEWCQLfWmevgRiWokZ1GkpfhbZug==
@@ -3277,17 +3277,12 @@ he@^1.2.0:
32773277
resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f"
32783278
integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==
32793279

3280-
history@^4.6.0:
3281-
version "4.10.1"
3282-
resolved "https://registry.yarnpkg.com/history/-/history-4.10.1.tgz#33371a65e3a83b267434e2b3f3b1b4c58aad4cf3"
3283-
integrity sha512-36nwAD620w12kuzPAsyINPWJqlNbij+hpK1k9XRloDtym8mxzGYl2c17LnV6IAGB2Dmg4tEa7G7DlawS0+qjew==
3280+
history@^5.3.0:
3281+
version "5.3.0"
3282+
resolved "https://registry.yarnpkg.com/history/-/history-5.3.0.tgz#1548abaa245ba47992f063a0783db91ef201c73b"
3283+
integrity sha512-ZqaKwjjrAYUYfLG+htGaIIZ4nioX2L70ZUMIFysS3xvBsSG4x/n1V6TXV3N8ZYNuFGlDirFg32T7B6WOUPDYcQ==
32843284
dependencies:
3285-
"@babel/runtime" "^7.1.2"
3286-
loose-envify "^1.2.0"
3287-
resolve-pathname "^3.0.0"
3288-
tiny-invariant "^1.0.2"
3289-
tiny-warning "^1.0.0"
3290-
value-equal "^1.0.1"
3285+
"@babel/runtime" "^7.7.6"
32913286

32923287
hoist-non-react-statics@^3.3.0, hoist-non-react-statics@^3.3.2:
32933288
version "3.3.2"
@@ -4286,7 +4281,7 @@ lodash@^4.17.0, lodash@^4.17.10, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.
42864281
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
42874282
integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==
42884283

4289-
loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.2.0, loose-envify@^1.4.0:
4284+
loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.4.0:
42904285
version "1.4.0"
42914286
resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf"
42924287
integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==
@@ -5346,11 +5341,6 @@ resolve-from@^5.0.0:
53465341
resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-5.0.0.tgz#c35225843df8f776df21c57557bc087e9dfdfc69"
53475342
integrity sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==
53485343

5349-
resolve-pathname@^3.0.0:
5350-
version "3.0.0"
5351-
resolved "https://registry.yarnpkg.com/resolve-pathname/-/resolve-pathname-3.0.0.tgz#99d02224d3cf263689becbb393bc560313025dcd"
5352-
integrity sha512-C7rARubxI8bXFNB/hqcp/4iUeIXJhJZvFPFPiSPRnhU5UPxzMFIl+2E6yY6c4k9giDJAhtV+enfA+G89N6Csng==
5353-
53545344
resolve-url@^0.2.1:
53555345
version "0.2.1"
53565346
resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a"
@@ -6023,16 +6013,6 @@ throttle-debounce@^2.1.0:
60236013
resolved "https://registry.yarnpkg.com/throttle-debounce/-/throttle-debounce-2.3.0.tgz#fd31865e66502071e411817e241465b3e9c372e2"
60246014
integrity sha512-H7oLPV0P7+jgvrk+6mwwwBDmxTaxnu9HMXmloNLXwnNO0ZxZ31Orah2n8lU1eMPvsaowP2CX+USCgyovXfdOFQ==
60256015

6026-
tiny-invariant@^1.0.2:
6027-
version "1.2.0"
6028-
resolved "https://registry.yarnpkg.com/tiny-invariant/-/tiny-invariant-1.2.0.tgz#a1141f86b672a9148c72e978a19a73b9b94a15a9"
6029-
integrity sha512-1Uhn/aqw5C6RI4KejVeTg6mIS7IqxnLJ8Mv2tV5rTc0qWobay7pDUz6Wi392Cnc8ak1H0F2cjoRzb2/AW4+Fvg==
6030-
6031-
tiny-warning@^1.0.0:
6032-
version "1.0.3"
6033-
resolved "https://registry.yarnpkg.com/tiny-warning/-/tiny-warning-1.0.3.tgz#94a30db453df4c643d0fd566060d60a875d84754"
6034-
integrity sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA==
6035-
60366016
tmpl@1.0.5:
60376017
version "1.0.5"
60386018
resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.5.tgz#8683e0b902bb9c20c4f726e3c0b69f36518c07cc"
@@ -6284,11 +6264,6 @@ validate-npm-package-license@^3.0.1:
62846264
spdx-correct "^3.0.0"
62856265
spdx-expression-parse "^3.0.0"
62866266

6287-
value-equal@^1.0.1:
6288-
version "1.0.1"
6289-
resolved "https://registry.yarnpkg.com/value-equal/-/value-equal-1.0.1.tgz#1e0b794c734c5c0cade179c437d356d931a34d6c"
6290-
integrity sha512-NOJ6JZCAWr0zlxZt+xqCHNTEKOsrks2HQd4MqhP1qy4z1SkbEP467eNx6TgDKXMvUOb+OENfJCZwM+16n7fRfw==
6291-
62926267
walker@^1.0.7:
62936268
version "1.0.8"
62946269
resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.8.tgz#bd498db477afe573dc04185f011d3ab8a8d7653f"

0 commit comments

Comments
 (0)