Skip to content

Commit 5cd615d

Browse files
committed
chore: upgrade TypeScript to version 5
Closes #10156 Signed-off-by: Jon Koops <[email protected]>
1 parent 9ee0d01 commit 5cd615d

File tree

13 files changed

+43
-83
lines changed

13 files changed

+43
-83
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"surge": "^0.23.1",
6262
"ts-node": "^10.9.1",
6363
"ts-patch": "^2.1.0",
64-
"typescript": "^4.7.4"
64+
"typescript": "^5.4.5"
6565
},
6666
"scripts": {
6767
"build": "yarn clean && yarn build:generate && yarn build:esm && yarn build:cjs && yarn build:subpaths && yarn build:single:packages",

packages/react-charts/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"@patternfly/react-tokens": "^5.4.0-prerelease.2",
3333
"hoist-non-react-statics": "^3.3.0",
3434
"lodash": "^4.17.21",
35-
"tslib": "^2.5.0",
35+
"tslib": "^2.6.2",
3636
"victory-area": "^36.9.1",
3737
"victory-axis": "^36.9.1",
3838
"victory-bar": "^36.9.1",
@@ -63,7 +63,6 @@
6363
"@types/lodash": "^4.14.157",
6464
"css": "^2.2.3",
6565
"fs-extra": "^11.0.0",
66-
"glob": "^7.1.2",
67-
"typescript": "^4.7.4"
66+
"glob": "^7.1.2"
6867
}
6968
}

packages/react-code-editor/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,13 @@
3434
"@patternfly/react-icons": "^5.4.0-prerelease.2",
3535
"@patternfly/react-styles": "^5.4.0-prerelease.2",
3636
"react-dropzone": "14.2.3",
37-
"tslib": "^2.5.0"
37+
"tslib": "^2.6.2"
3838
},
3939
"peerDependencies": {
4040
"react": "^17 || ^18",
4141
"react-dom": "^17 || ^18"
4242
},
4343
"devDependencies": {
44-
"monaco-editor": "^0.47.0",
45-
"typescript": "^4.7.4"
44+
"monaco-editor": "^0.47.0"
4645
}
4746
}

packages/react-core/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"@patternfly/react-tokens": "^5.4.0-prerelease.2",
5252
"focus-trap": "7.5.2",
5353
"react-dropzone": "^14.2.3",
54-
"tslib": "^2.5.0"
54+
"tslib": "^2.6.2"
5555
},
5656
"devDependencies": {
5757
"@patternfly/patternfly": "5.4.0-prerelease.2",
@@ -64,8 +64,7 @@
6464
"rollup": "^3.21.5",
6565
"rollup-plugin-scss": "^4.0.0",
6666
"rollup-plugin-svg": "2.0.0",
67-
"rollup-plugin-terser": "^7.0.2",
68-
"typescript": "^4.7.4"
67+
"rollup-plugin-terser": "^7.0.2"
6968
},
7069
"peerDependencies": {
7170
"react": "^17 || ^18",

packages/react-drag-drop/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,5 @@
4141
"peerDependencies": {
4242
"react": "^17 || ^18",
4343
"react-dom": "^17 || ^18"
44-
},
45-
"devDependencies": {
46-
"typescript": "^4.7.4"
4744
}
4845
}

packages/react-icons/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@
3535
"@patternfly/patternfly": "5.4.0-prerelease.2",
3636
"fs-extra": "^11.1.1",
3737
"glob": "^7.1.2",
38-
"tslib": "^2.5.0",
39-
"typescript": "^4.7.4"
38+
"tslib": "^2.6.2"
4039
},
4140
"peerDependencies": {
4241
"react": "^17 || ^18",

packages/react-integration/demo-app-ts/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
"react-refresh-typescript": "2.0.7",
3636
"style-loader": "3.3.1",
3737
"ts-loader": "^8.3.0",
38-
"typescript": "^4.7.4",
3938
"url-loader": "^4.1.0",
4039
"webpack": "5.73.0",
4140
"webpack-cli": "4.10.0",

packages/react-integration/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
"jasmine-xml2html-converter": "^0.0.2",
3434
"junit-merge": "^2.0.0",
3535
"ts-loader": "^8.3.0",
36-
"typescript": "^4.7.4",
3736
"webpack": "^4.43.0"
3837
}
3938
}

packages/react-styles/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323
"css": "^2.2.3",
2424
"fs-extra": "^11.1.1",
2525
"glob": "^7.1.2",
26-
"jsdom": "^15.1.0",
27-
"typescript": "^4.7.4"
26+
"jsdom": "^15.1.0"
2827
},
2928
"license": "MIT"
3029
}

packages/react-table/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,7 @@
4444
"@patternfly/react-styles": "^5.4.0-prerelease.2",
4545
"@patternfly/react-tokens": "^5.4.0-prerelease.2",
4646
"lodash": "^4.17.19",
47-
"tslib": "^2.5.0"
48-
},
49-
"devDependencies": {
50-
"typescript": "^4.7.4"
47+
"tslib": "^2.6.2"
5148
},
5249
"peerDependencies": {
5350
"react": "^17 || ^18",

packages/react-templates/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,10 @@
3737
"@patternfly/react-icons": "^5.4.0-prerelease.2",
3838
"@patternfly/react-styles": "^5.4.0-prerelease.2",
3939
"@patternfly/react-tokens": "^5.4.0-prerelease.2",
40-
"tslib": "^2.5.0"
40+
"tslib": "^2.6.2"
4141
},
4242
"peerDependencies": {
4343
"react": "^17 || ^18",
4444
"react-dom": "^17 || ^18"
45-
},
46-
"devDependencies": {
47-
"typescript": "^4.7.4"
4845
}
4946
}

scripts/generators/package/package.json.hbs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@
3535
"dependencies": {},
3636
"devDependencies": {
3737
{{#if buildsWithTypescript}}
38-
"tslib": "1.13.0",,
39-
"typescript": "^3.8.3"
38+
"tslib": "^2.6.2"
4039
{{/if}}
4140
},
4241
"peerDependencies": {

yarn.lock

Lines changed: 31 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -9479,26 +9479,26 @@ glob@^10.3.7:
94799479
minipass "^7.0.4"
94809480
path-scurry "^1.10.2"
94819481

9482-
glob@^7.0.0, glob@^7.0.3, glob@^7.1.1, glob@^7.1.2, glob@^7.1.4:
9483-
version "7.1.6"
9484-
resolved "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz"
9482+
glob@^7.0.0, glob@^7.1.3, glob@^7.1.6:
9483+
version "7.2.3"
9484+
resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b"
9485+
integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==
94859486
dependencies:
94869487
fs.realpath "^1.0.0"
94879488
inflight "^1.0.4"
94889489
inherits "2"
9489-
minimatch "^3.0.4"
9490+
minimatch "^3.1.1"
94909491
once "^1.3.0"
94919492
path-is-absolute "^1.0.0"
94929493

9493-
glob@^7.1.3, glob@^7.1.6:
9494-
version "7.2.3"
9495-
resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b"
9496-
integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==
9494+
glob@^7.0.3, glob@^7.1.1, glob@^7.1.2, glob@^7.1.4:
9495+
version "7.1.6"
9496+
resolved "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz"
94979497
dependencies:
94989498
fs.realpath "^1.0.0"
94999499
inflight "^1.0.4"
95009500
inherits "2"
9501-
minimatch "^3.1.1"
9501+
minimatch "^3.0.4"
95029502
once "^1.3.0"
95039503
path-is-absolute "^1.0.0"
95049504

@@ -10424,7 +10424,8 @@ internal-slot@^1.0.3, internal-slot@^1.0.5:
1042410424

1042510425
interpret@^1.0.0:
1042610426
version "1.4.0"
10427-
resolved "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz"
10427+
resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.4.0.tgz#665ab8bc4da27a774a40584e812e3e0fa45b1a1e"
10428+
integrity sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==
1042810429

1042910430
interpret@^2.2.0:
1043010431
version "2.2.0"
@@ -15752,7 +15753,8 @@ readdirp@~3.6.0:
1575215753

1575315754
rechoir@^0.6.2:
1575415755
version "0.6.2"
15755-
resolved "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz"
15756+
resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.6.2.tgz#85204b54dba82d5742e28c96756ef43af50e3384"
15757+
integrity sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==
1575615758
dependencies:
1575715759
resolve "^1.1.6"
1575815760

@@ -16142,7 +16144,16 @@ resolve-url@^0.2.1:
1614216144
version "0.2.1"
1614316145
resolved "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz"
1614416146

16145-
resolve@^1.1.6, resolve@^1.10.0, resolve@^1.3.2:
16147+
resolve@^1.1.6, resolve@^1.14.2, resolve@^1.22.4:
16148+
version "1.22.8"
16149+
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.8.tgz#b6c87a9f2aa06dfab52e3d70ac8cde321fa5a48d"
16150+
integrity sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==
16151+
dependencies:
16152+
is-core-module "^2.13.0"
16153+
path-parse "^1.0.7"
16154+
supports-preserve-symlinks-flag "^1.0.0"
16155+
16156+
resolve@^1.10.0, resolve@^1.3.2:
1614616157
version "1.17.0"
1614716158
resolved "https://registry.npmjs.org/resolve/-/resolve-1.17.0.tgz"
1614816159
dependencies:
@@ -16157,15 +16168,6 @@ resolve@^1.10.1:
1615716168
path-parse "^1.0.7"
1615816169
supports-preserve-symlinks-flag "^1.0.0"
1615916170

16160-
resolve@^1.14.2, resolve@^1.22.4:
16161-
version "1.22.8"
16162-
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.8.tgz#b6c87a9f2aa06dfab52e3d70ac8cde321fa5a48d"
16163-
integrity sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==
16164-
dependencies:
16165-
is-core-module "^2.13.0"
16166-
path-parse "^1.0.7"
16167-
supports-preserve-symlinks-flag "^1.0.0"
16168-
1616916171
resolve@^1.20.0:
1617016172
version "1.20.0"
1617116173
resolved "https://registry.npmjs.org/resolve/-/resolve-1.20.0.tgz"
@@ -17293,16 +17295,7 @@ string-length@^4.0.1:
1729317295
char-regex "^1.0.2"
1729417296
strip-ansi "^6.0.0"
1729517297

17296-
"string-width-cjs@npm:string-width@^4.2.0":
17297-
version "4.2.3"
17298-
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
17299-
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
17300-
dependencies:
17301-
emoji-regex "^8.0.0"
17302-
is-fullwidth-code-point "^3.0.0"
17303-
strip-ansi "^6.0.1"
17304-
17305-
"string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
17298+
"string-width-cjs@npm:string-width@^4.2.0", "string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
1730617299
version "4.2.3"
1730717300
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
1730817301
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -17435,7 +17428,7 @@ stringify-entities@^3.0.1:
1743517428
is-decimal "^1.0.2"
1743617429
is-hexadecimal "^1.0.0"
1743717430

17438-
"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
17431+
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1:
1743917432
version "6.0.1"
1744017433
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
1744117434
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
@@ -17454,13 +17447,6 @@ strip-ansi@^5.1.0:
1745417447
dependencies:
1745517448
ansi-regex "^4.1.0"
1745617449

17457-
strip-ansi@^6.0.0, strip-ansi@^6.0.1:
17458-
version "6.0.1"
17459-
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
17460-
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
17461-
dependencies:
17462-
ansi-regex "^5.0.1"
17463-
1746417450
strip-ansi@^7.0.1:
1746517451
version "7.1.0"
1746617452
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.1.0.tgz#d5b6568ca689d8561370b0707685d22434faff45"
@@ -18143,7 +18129,7 @@ tslib@^1.9.0:
1814318129
version "1.13.0"
1814418130
resolved "https://registry.npmjs.org/tslib/-/tslib-1.13.0.tgz"
1814518131

18146-
tslib@^2.0.0, tslib@^2.5.0, tslib@^2.6.2:
18132+
tslib@^2.0.0, tslib@^2.6.2:
1814718133
version "2.6.2"
1814818134
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae"
1814918135
integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==
@@ -18333,10 +18319,10 @@ [email protected]:
1833318319
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.1.6.tgz#02f8ac202b6dad2c0dd5e0913745b47a37998274"
1833418320
integrity sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==
1833518321

18336-
typescript@^4.7.4:
18337-
version "4.7.4"
18338-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.7.4.tgz#1a88596d1cf47d59507a1bcdfb5b9dfe4d488235"
18339-
integrity sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==
18322+
typescript@^5.4.5:
18323+
version "5.4.5"
18324+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.5.tgz#42ccef2c571fdbd0f6718b1d1f5e6e5ef006f611"
18325+
integrity sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==
1834018326

1834118327
typical@^2.6.0, typical@^2.6.1:
1834218328
version "2.6.1"
@@ -19543,7 +19529,7 @@ worker-farm@^1.7.0:
1954319529
dependencies:
1954419530
errno "~0.1.7"
1954519531

19546-
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
19532+
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
1954719533
version "7.0.0"
1954819534
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
1954919535
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
@@ -19561,15 +19547,6 @@ wrap-ansi@^6.2.0:
1956119547
string-width "^4.1.0"
1956219548
strip-ansi "^6.0.0"
1956319549

19564-
wrap-ansi@^7.0.0:
19565-
version "7.0.0"
19566-
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
19567-
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
19568-
dependencies:
19569-
ansi-styles "^4.0.0"
19570-
string-width "^4.1.0"
19571-
strip-ansi "^6.0.0"
19572-
1957319550
wrap-ansi@^8.0.1, wrap-ansi@^8.1.0:
1957419551
version "8.1.0"
1957519552
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"

0 commit comments

Comments
 (0)