From 7f17c2cf68cb2f9e610b20b6ee46e28aeca58a9b Mon Sep 17 00:00:00 2001 From: Tadayoshi Sato Date: Mon, 30 Oct 2023 15:39:29 +0900 Subject: [PATCH] chore(deps): upgrade to TypeScript 5 Fix #189 --- README.md | 1 + app/package.json | 4 - package.json | 9 +- packages/hawtio/package.json | 4 +- yarn.lock | 235 ++++++++++++++++++++++++++++------- 5 files changed, 197 insertions(+), 56 deletions(-) diff --git a/README.md b/README.md index 62f0d489..491c83d4 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ You need to have installed the following tools before developing the project. - [Node.js >= 18](https://nodejs.org/en/) - [Yarn v4](https://yarnpkg.com/getting-started/install) + > [!IMPORTANT] > **Building requires Yarn Berry (v2+).** > The default installation version of yarn on many operating systems is _1.22.19_ (the classic version). This might cause a problem when building the project. As a result, the mandated minimum version has been set to _4.0.0_. diff --git a/app/package.json b/app/package.json index 358873f0..cd9e48af 100644 --- a/app/package.json +++ b/app/package.json @@ -35,9 +35,5 @@ "last 1 firefox version", "last 1 safari version" ] - }, - "packageManager": "yarn@3.3.1", - "engines": { - "yarn": ">=3.3.1" } } diff --git a/package.json b/package.json index 1cf7b347..1aebb27f 100644 --- a/package.json +++ b/package.json @@ -32,8 +32,8 @@ "publish:hawtio": "yarn workspace @hawtio/react npm publish --tolerate-republish" }, "devDependencies": { - "@typescript-eslint/eslint-plugin": "^5.50.0", - "@typescript-eslint/parser": "^5.50.0", + "@typescript-eslint/eslint-plugin": "^6.9.0", + "@typescript-eslint/parser": "^6.9.0", "concurrently": "^8.2.2", "cz-conventional-changelog": "3.3.0", "eslint": "^8.33.0", @@ -43,6 +43,11 @@ "eslint-plugin-react-hooks": "^4.6.0", "prettier": "3.0.3" }, + "resolutions": { + "@typescript-eslint/eslint-plugin": "6.9.0", + "@typescript-eslint/parser": "6.9.0", + "fork-ts-checker-webpack-plugin": "6.5.3" + }, "config": { "commitizen": { "path": "cz-conventional-changelog" diff --git a/packages/hawtio/package.json b/packages/hawtio/package.json index bda9dddc..069a0581 100644 --- a/packages/hawtio/package.json +++ b/packages/hawtio/package.json @@ -66,7 +66,7 @@ "react-split": "^2.0.14", "reactflow": "^11.9.4", "superstruct": "^1.0.3", - "typescript": "^4.9.5", + "typescript": "^5.2.2", "xml-formatter": "^3.6.0" }, "devDependencies": { @@ -94,7 +94,7 @@ } }, "engines": { - "node": ">=16" + "node": ">=18" }, "publishConfig": { "access": "public" diff --git a/yarn.lock b/yarn.lock index 887ec49a..c341bea2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2431,6 +2431,24 @@ __metadata: languageName: node linkType: hard +"@eslint-community/eslint-utils@npm:^4.4.0": + version: 4.4.0 + resolution: "@eslint-community/eslint-utils@npm:4.4.0" + dependencies: + eslint-visitor-keys: "npm:^3.3.0" + peerDependencies: + eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 + checksum: 8d70bcdcd8cd279049183aca747d6c2ed7092a5cf0cf5916faac1ef37ffa74f0c245c2a3a3d3b9979d9dfdd4ca59257b4c5621db699d637b847a2c5e02f491c2 + languageName: node + linkType: hard + +"@eslint-community/regexpp@npm:^4.5.1": + version: 4.10.0 + resolution: "@eslint-community/regexpp@npm:4.10.0" + checksum: 8c36169c815fc5d726078e8c71a5b592957ee60d08c6470f9ce0187c8046af1a00afbda0a065cc40ff18d5d83f82aed9793c6818f7304a74a7488dc9f3ecbd42 + languageName: node + linkType: hard + "@eslint/eslintrc@npm:^1.4.1": version: 1.4.1 resolution: "@eslint/eslintrc@npm:1.4.1" @@ -2485,8 +2503,8 @@ __metadata: version: 0.0.0-use.local resolution: "@hawtio/next-root@workspace:." dependencies: - "@typescript-eslint/eslint-plugin": "npm:^5.50.0" - "@typescript-eslint/parser": "npm:^5.50.0" + "@typescript-eslint/eslint-plugin": "npm:^6.9.0" + "@typescript-eslint/parser": "npm:^6.9.0" concurrently: "npm:^8.2.2" cz-conventional-changelog: "npm:3.3.0" eslint: "npm:^8.33.0" @@ -2546,7 +2564,7 @@ __metadata: timezone-mock: "npm:^1.3.6" ts-jest: "npm:^29.1.1" tsup: "npm:^7.2.0" - typescript: "npm:^4.9.5" + typescript: "npm:^5.2.2" xml-formatter: "npm:^3.6.0" peerDependencies: "@patternfly/react-core": ^4.278.0 @@ -4608,6 +4626,13 @@ __metadata: languageName: node linkType: hard +"@types/json-schema@npm:^7.0.12": + version: 7.0.14 + resolution: "@types/json-schema@npm:7.0.14" + checksum: 84b5efed51984c077f9cb7c5a3dcb8d8288ce1ae8825952b173c3506a0cfc90bc961d7f2a8847c440310d02bbd570cf918ac463d8310b0c9dce2252baa1ba4e0 + languageName: node + linkType: hard + "@types/json5@npm:^0.0.29": version: 0.0.29 resolution: "@types/json5@npm:0.0.29" @@ -4813,6 +4838,13 @@ __metadata: languageName: node linkType: hard +"@types/semver@npm:^7.5.0": + version: 7.5.4 + resolution: "@types/semver@npm:7.5.4" + checksum: e99c3edc8d64f56abcd891b9e44a45c4ae3cab551c8af5aa67b5df2b49e5fd03f74aac9da71fd5357a50a08d5deb95014516956b15b407052e07f25c7a4a606e + languageName: node + linkType: hard + "@types/serve-index@npm:^1.9.1": version: 1.9.1 resolution: "@types/serve-index@npm:1.9.1" @@ -4919,27 +4951,28 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/eslint-plugin@npm:^5.5.0, @typescript-eslint/eslint-plugin@npm:^5.50.0": - version: 5.50.0 - resolution: "@typescript-eslint/eslint-plugin@npm:5.50.0" +"@typescript-eslint/eslint-plugin@npm:6.9.0": + version: 6.9.0 + resolution: "@typescript-eslint/eslint-plugin@npm:6.9.0" dependencies: - "@typescript-eslint/scope-manager": "npm:5.50.0" - "@typescript-eslint/type-utils": "npm:5.50.0" - "@typescript-eslint/utils": "npm:5.50.0" + "@eslint-community/regexpp": "npm:^4.5.1" + "@typescript-eslint/scope-manager": "npm:6.9.0" + "@typescript-eslint/type-utils": "npm:6.9.0" + "@typescript-eslint/utils": "npm:6.9.0" + "@typescript-eslint/visitor-keys": "npm:6.9.0" debug: "npm:^4.3.4" - grapheme-splitter: "npm:^1.0.4" - ignore: "npm:^5.2.0" - natural-compare-lite: "npm:^1.4.0" - regexpp: "npm:^3.2.0" - semver: "npm:^7.3.7" - tsutils: "npm:^3.21.0" + graphemer: "npm:^1.4.0" + ignore: "npm:^5.2.4" + natural-compare: "npm:^1.4.0" + semver: "npm:^7.5.4" + ts-api-utils: "npm:^1.0.1" peerDependencies: - "@typescript-eslint/parser": ^5.0.0 - eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 + "@typescript-eslint/parser": ^6.0.0 || ^6.0.0-alpha + eslint: ^7.0.0 || ^8.0.0 peerDependenciesMeta: typescript: optional: true - checksum: 47426c16d70c94ebdccd53c789cc368ce1f9ea27a4a02fcecbfa89087adae216f6b5d49a924b95f0090d096dd381c57afd4008bebf81a2de2d7e910729718401 + checksum: bcf4578ef5ec046149d3692a622d0ffff125df9d9436a1964ac560024b3ccf8e847e83d608c4b9f1b3bde7a48f4c42c34b1c8dfad99df076c41bfcef9d6704fe languageName: node linkType: hard @@ -4954,20 +4987,21 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/parser@npm:^5.5.0, @typescript-eslint/parser@npm:^5.50.0": - version: 5.50.0 - resolution: "@typescript-eslint/parser@npm:5.50.0" +"@typescript-eslint/parser@npm:6.9.0": + version: 6.9.0 + resolution: "@typescript-eslint/parser@npm:6.9.0" dependencies: - "@typescript-eslint/scope-manager": "npm:5.50.0" - "@typescript-eslint/types": "npm:5.50.0" - "@typescript-eslint/typescript-estree": "npm:5.50.0" + "@typescript-eslint/scope-manager": "npm:6.9.0" + "@typescript-eslint/types": "npm:6.9.0" + "@typescript-eslint/typescript-estree": "npm:6.9.0" + "@typescript-eslint/visitor-keys": "npm:6.9.0" debug: "npm:^4.3.4" peerDependencies: - eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 + eslint: ^7.0.0 || ^8.0.0 peerDependenciesMeta: typescript: optional: true - checksum: e3d47f0ebd0e3c210f34346e95c8b7a1a341e24cc539877576fb79d5769b11a0394bef632d5e7018d045db1bdfc4d777ac9427537c3266a942cf402c4536e36f + checksum: 607813cc677095f77000a77eee58c5e2fd02d45c10e35e51830cb1284d1e3b9ff33c3b06124368e51d7ff312a88311026931026b3eb36f77436b88901ef3a8fd languageName: node linkType: hard @@ -4991,20 +5025,30 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/type-utils@npm:5.50.0": - version: 5.50.0 - resolution: "@typescript-eslint/type-utils@npm:5.50.0" +"@typescript-eslint/scope-manager@npm:6.9.0": + version: 6.9.0 + resolution: "@typescript-eslint/scope-manager@npm:6.9.0" dependencies: - "@typescript-eslint/typescript-estree": "npm:5.50.0" - "@typescript-eslint/utils": "npm:5.50.0" + "@typescript-eslint/types": "npm:6.9.0" + "@typescript-eslint/visitor-keys": "npm:6.9.0" + checksum: ee872441fb9224859b31270e1a7dec3a51078f0475926b8f6132502db68f080eccaa7191915e91c9f8aa53179000af2523af4707c81a8a5218db3815f1887aa6 + languageName: node + linkType: hard + +"@typescript-eslint/type-utils@npm:6.9.0": + version: 6.9.0 + resolution: "@typescript-eslint/type-utils@npm:6.9.0" + dependencies: + "@typescript-eslint/typescript-estree": "npm:6.9.0" + "@typescript-eslint/utils": "npm:6.9.0" debug: "npm:^4.3.4" - tsutils: "npm:^3.21.0" + ts-api-utils: "npm:^1.0.1" peerDependencies: - eslint: "*" + eslint: ^7.0.0 || ^8.0.0 peerDependenciesMeta: typescript: optional: true - checksum: 88b7228af57eaf2487dbf591ae1b2269e137f368759179f181fc0eb0a4b89847ab8774f544036d07296cb2fab855938b7be74929e63a465bf55ee17b551aba67 + checksum: b435914bfce1ef3335a511fe4bb22c178090175997e39569db174e39ffc2b02eb62112ddfe093ef70509e429219dd373a31dba4b5cb899de38583f7c80353201 languageName: node linkType: hard @@ -5022,6 +5066,13 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/types@npm:6.9.0": + version: 6.9.0 + resolution: "@typescript-eslint/types@npm:6.9.0" + checksum: 39a9206062dc8efb9ec4378d7f03e7e59ce85d2171a4e0ed90653eb44ec92089a1d587371600dfa3a28521d818bbc79e8cce825787f7800f381ecee9b497cc40 + languageName: node + linkType: hard + "@typescript-eslint/typescript-estree@npm:5.49.0": version: 5.49.0 resolution: "@typescript-eslint/typescript-estree@npm:5.49.0" @@ -5058,6 +5109,24 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/typescript-estree@npm:6.9.0": + version: 6.9.0 + resolution: "@typescript-eslint/typescript-estree@npm:6.9.0" + dependencies: + "@typescript-eslint/types": "npm:6.9.0" + "@typescript-eslint/visitor-keys": "npm:6.9.0" + debug: "npm:^4.3.4" + globby: "npm:^11.1.0" + is-glob: "npm:^4.0.3" + semver: "npm:^7.5.4" + ts-api-utils: "npm:^1.0.1" + peerDependenciesMeta: + typescript: + optional: true + checksum: f1ca4fd2cb586ff54e58f3f1967c0800ef9489829df9acb5ccea61e90395ec915ac1eeb8ba8c102d34ab161a9c3342c756ec7da983c2512c13104be3e1eb4f69 + languageName: node + linkType: hard + "@typescript-eslint/utils@npm:5.49.0": version: 5.49.0 resolution: "@typescript-eslint/utils@npm:5.49.0" @@ -5076,7 +5145,24 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/utils@npm:5.50.0, @typescript-eslint/utils@npm:^5.43.0": +"@typescript-eslint/utils@npm:6.9.0": + version: 6.9.0 + resolution: "@typescript-eslint/utils@npm:6.9.0" + dependencies: + "@eslint-community/eslint-utils": "npm:^4.4.0" + "@types/json-schema": "npm:^7.0.12" + "@types/semver": "npm:^7.5.0" + "@typescript-eslint/scope-manager": "npm:6.9.0" + "@typescript-eslint/types": "npm:6.9.0" + "@typescript-eslint/typescript-estree": "npm:6.9.0" + semver: "npm:^7.5.4" + peerDependencies: + eslint: ^7.0.0 || ^8.0.0 + checksum: 4937c9ad754681b4f0591eb5be3caa34b2df6c07845f16292120b03755453c4c19f1c34710f6f9eb138d509ec554575b899b44b33e263536d9d43f5b1fbe2208 + languageName: node + linkType: hard + +"@typescript-eslint/utils@npm:^5.43.0": version: 5.50.0 resolution: "@typescript-eslint/utils@npm:5.50.0" dependencies: @@ -5114,6 +5200,16 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/visitor-keys@npm:6.9.0": + version: 6.9.0 + resolution: "@typescript-eslint/visitor-keys@npm:6.9.0" + dependencies: + "@typescript-eslint/types": "npm:6.9.0" + eslint-visitor-keys: "npm:^3.4.1" + checksum: 562ce06df6d4e13257c396f5322b4839383bbd78d68411781ab0a9a336579b0b3480e3b4cb8e67b9e27ebc108560643e0be22712ba453db1cdd7a3424d8d86ac + languageName: node + linkType: hard + "@webassemblyjs/ast@npm:1.11.1": version: 1.11.1 resolution: "@webassemblyjs/ast@npm:1.11.1" @@ -9379,6 +9475,13 @@ __metadata: languageName: node linkType: hard +"eslint-visitor-keys@npm:^3.4.1": + version: 3.4.3 + resolution: "eslint-visitor-keys@npm:3.4.3" + checksum: 3f357c554a9ea794b094a09bd4187e5eacd1bc0d0653c3adeb87962c548e6a1ab8f982b86963ae1337f5d976004146536dcee5d0e2806665b193fbfbf1a9231b + languageName: node + linkType: hard + "eslint-webpack-plugin@npm:^3.1.1": version: 3.2.0 resolution: "eslint-webpack-plugin@npm:3.2.0" @@ -10039,9 +10142,9 @@ __metadata: languageName: node linkType: hard -"fork-ts-checker-webpack-plugin@npm:^6.5.0": - version: 6.5.2 - resolution: "fork-ts-checker-webpack-plugin@npm:6.5.2" +"fork-ts-checker-webpack-plugin@npm:6.5.3": + version: 6.5.3 + resolution: "fork-ts-checker-webpack-plugin@npm:6.5.3" dependencies: "@babel/code-frame": "npm:^7.8.3" "@types/json-schema": "npm:^7.0.5" @@ -10066,7 +10169,7 @@ __metadata: optional: true vue-template-compiler: optional: true - checksum: 4a7037d654c07eb4e881d0626fdfdfac22fe90531e1e203846be89d68e863d3f9fcfc004b9037669455bf461081c83091eddf6485a7b131e7e6706c8939eeb67 + checksum: 415263839afe11c291be60e3335ece3ccdc80c5e0d91eeecf0d3060cfb72c7b0cb33be326dd24b325939357d53215e10c41e8187edb5db8a08fe9aaa8aa6c510 languageName: node linkType: hard @@ -10567,6 +10670,13 @@ __metadata: languageName: node linkType: hard +"graphemer@npm:^1.4.0": + version: 1.4.0 + resolution: "graphemer@npm:1.4.0" + checksum: 6dd60dba97007b21e3a829fab3f771803cc1292977fe610e240ea72afd67e5690ac9eeaafc4a99710e78962e5936ab5a460787c2a1180f1cb0ccfac37d29f897 + languageName: node + linkType: hard + "graphlib@npm:^2.1.8": version: 2.1.8 resolution: "graphlib@npm:2.1.8" @@ -11057,6 +11167,13 @@ __metadata: languageName: node linkType: hard +"ignore@npm:^5.2.4": + version: 5.2.4 + resolution: "ignore@npm:5.2.4" + checksum: 4f7caf5d2005da21a382d4bd1d2aa741a3bed51de185c8562dd7f899a81a620ac4fd0619b06f7029a38ae79e4e4c134399db3bd0192c703c3ef54bb82df3086c + languageName: node + linkType: hard + "immer@npm:^9.0.7": version: 9.0.18 resolution: "immer@npm:9.0.18" @@ -14462,13 +14579,6 @@ __metadata: languageName: node linkType: hard -"natural-compare-lite@npm:^1.4.0": - version: 1.4.0 - resolution: "natural-compare-lite@npm:1.4.0" - checksum: 5222ac3986a2b78dd6069ac62cbb52a7bf8ffc90d972ab76dfe7b01892485d229530ed20d0c62e79a6b363a663b273db3bde195a1358ce9e5f779d4453887225 - languageName: node - linkType: hard - "natural-compare@npm:^1.4.0": version: 1.4.0 resolution: "natural-compare@npm:1.4.0" @@ -18861,6 +18971,15 @@ __metadata: languageName: node linkType: hard +"ts-api-utils@npm:^1.0.1": + version: 1.0.3 + resolution: "ts-api-utils@npm:1.0.3" + peerDependencies: + typescript: ">=4.2.0" + checksum: 1350a5110eb1e534e9a6178f4081fb8a4fcc439749e19f4ad699baec9090fcb90fe532d5e191d91a062dc6e454a14a8d7eb2ad202f57135a30c4a44a3024f039 + languageName: node + linkType: hard + "ts-interface-checker@npm:^0.1.9": version: 0.1.13 resolution: "ts-interface-checker@npm:0.1.13" @@ -19130,7 +19249,7 @@ __metadata: languageName: node linkType: hard -"typescript@npm:^4.6.4, typescript@npm:^4.9.5": +"typescript@npm:^4.6.4": version: 4.9.5 resolution: "typescript@npm:4.9.5" bin: @@ -19140,7 +19259,17 @@ __metadata: languageName: node linkType: hard -"typescript@patch:typescript@npm%3A^4.6.4#optional!builtin, typescript@patch:typescript@npm%3A^4.9.5#optional!builtin": +"typescript@npm:^5.2.2": + version: 5.2.2 + resolution: "typescript@npm:5.2.2" + bin: + tsc: bin/tsc + tsserver: bin/tsserver + checksum: d65e50eb849bd21ff8677e5b9447f9c6e74777e346afd67754934264dcbf4bd59e7d2473f6062d9a015d66bd573311166357e3eb07fea0b52859cf9bb2b58555 + languageName: node + linkType: hard + +"typescript@patch:typescript@npm%3A^4.6.4#optional!builtin": version: 4.9.5 resolution: "typescript@patch:typescript@npm%3A4.9.5#optional!builtin::version=4.9.5&hash=289587" bin: @@ -19150,6 +19279,16 @@ __metadata: languageName: node linkType: hard +"typescript@patch:typescript@npm%3A^5.2.2#optional!builtin": + version: 5.2.2 + resolution: "typescript@patch:typescript@npm%3A5.2.2#optional!builtin::version=5.2.2&hash=f3b441" + bin: + tsc: bin/tsc + tsserver: bin/tsserver + checksum: f79cc2ba802c94c2b78dbb00d767a10adb67368ae764709737dc277273ec148aa4558033a03ce901406b35fddf4eac46dabc94a1e1d12d2587e2b9cfe5707b4a + languageName: node + linkType: hard + "uglify-js@npm:^3.1.4": version: 3.17.4 resolution: "uglify-js@npm:3.17.4"