From 8b0915d013b8f7898a6534611c3f5afc3f801797 Mon Sep 17 00:00:00 2001 From: ZHAO Jin-Xiang Date: Thu, 23 Nov 2023 23:05:11 +0800 Subject: [PATCH] fix: zod-validation-error type error (#4763) --- diffcases/arco-pro/tsconfig.json | 2 - examples/arco-pro/tsconfig.json | 2 - examples/basic-ts/tsconfig.json | 1 - examples/react-storybook/tsconfig.json | 2 - package.json | 2 +- .../template-react-ts/tsconfig.json | 2 - packages/rspack-plugin-html/tsconfig.json | 2 - .../rspack-plugin-react-refresh/tsconfig.json | 2 - packages/rspack-test-tools/tsconfig.json | 1 - packages/rspack/package.json | 2 +- packages/rspack/tsconfig.json | 2 - pnpm-lock.yaml | 188 +++++++----------- scripts/tsconfig.json | 1 - webpack-test/package.json | 2 +- 14 files changed, 75 insertions(+), 136 deletions(-) diff --git a/diffcases/arco-pro/tsconfig.json b/diffcases/arco-pro/tsconfig.json index 6b12eb3aff4..7f30dac3e05 100644 --- a/diffcases/arco-pro/tsconfig.json +++ b/diffcases/arco-pro/tsconfig.json @@ -8,8 +8,6 @@ "esnext" ], "allowJs": true, - // TODO: Remove skipLibCheck when fix upstream type bug - "skipLibCheck": true, "esModuleInterop": true, "allowSyntheticDefaultImports": true, "strict": false, diff --git a/examples/arco-pro/tsconfig.json b/examples/arco-pro/tsconfig.json index 6b12eb3aff4..7f30dac3e05 100644 --- a/examples/arco-pro/tsconfig.json +++ b/examples/arco-pro/tsconfig.json @@ -8,8 +8,6 @@ "esnext" ], "allowJs": true, - // TODO: Remove skipLibCheck when fix upstream type bug - "skipLibCheck": true, "esModuleInterop": true, "allowSyntheticDefaultImports": true, "strict": false, diff --git a/examples/basic-ts/tsconfig.json b/examples/basic-ts/tsconfig.json index b455d1807d6..8da81ce58ee 100644 --- a/examples/basic-ts/tsconfig.json +++ b/examples/basic-ts/tsconfig.json @@ -10,6 +10,5 @@ "esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */, "forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */, "strict": true /* Enable all strict type-checking options. */, - "skipLibCheck": true /* Skip type checking all .d.ts files. */ } } diff --git a/examples/react-storybook/tsconfig.json b/examples/react-storybook/tsconfig.json index d36c8334548..59a4f410bad 100644 --- a/examples/react-storybook/tsconfig.json +++ b/examples/react-storybook/tsconfig.json @@ -2,8 +2,6 @@ "extends": "../../tsconfig.json", "compilerOptions": { "strict": true, - // TODO: Remove skipLibCheck when fix upstream type bug - "skipLibCheck": true, "jsx": "react-jsx", "moduleResolution": "node" }, diff --git a/package.json b/package.json index 80349aa2e38..7b90d4edf6f 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "@rspack/cli": "workspace:*", "@taplo/cli": "^0.5.2", "@types/jest": "29.1.0", - "@types/node": "16", + "@types/node": "^20.9.4", "@types/rimraf": "3.0.2", "commander": "10.0.1", "cross-env": "^7.0.3", diff --git a/packages/create-rspack/template-react-ts/tsconfig.json b/packages/create-rspack/template-react-ts/tsconfig.json index b7d605041c2..1f067d6b6d3 100644 --- a/packages/create-rspack/template-react-ts/tsconfig.json +++ b/packages/create-rspack/template-react-ts/tsconfig.json @@ -3,8 +3,6 @@ "target": "ES6", "lib": ["DOM", "DOM.Iterable", "ESNext"], "module": "ESNext", - // TODO: Remove skipLibCheck when fix upstream type bug - "skipLibCheck": true, "moduleResolution": "bundler", "allowImportingTsExtensions": true, "resolveJsonModule": true, diff --git a/packages/rspack-plugin-html/tsconfig.json b/packages/rspack-plugin-html/tsconfig.json index f33c67ba46d..dfade178923 100644 --- a/packages/rspack-plugin-html/tsconfig.json +++ b/packages/rspack-plugin-html/tsconfig.json @@ -5,8 +5,6 @@ // related issue: https://github.com/nodejs/node/issues/35889 "module": "CommonJS", "moduleResolution": "Node10", - // TODO: Remove skipLibCheck when fix upstream type bug - "skipLibCheck": true, "outDir": "dist", "rootDir": "src" }, diff --git a/packages/rspack-plugin-react-refresh/tsconfig.json b/packages/rspack-plugin-react-refresh/tsconfig.json index 78d3308f115..fe06cc39adc 100644 --- a/packages/rspack-plugin-react-refresh/tsconfig.json +++ b/packages/rspack-plugin-react-refresh/tsconfig.json @@ -1,8 +1,6 @@ { "extends": "../../tsconfig.base.json", "compilerOptions": { - // TODO: Remove skipLibCheck when fix upstream type bug - "skipLibCheck": true, "outDir": "dist", "rootDir": "src" }, diff --git a/packages/rspack-test-tools/tsconfig.json b/packages/rspack-test-tools/tsconfig.json index 8bf5f142898..a64c4877cb1 100644 --- a/packages/rspack-test-tools/tsconfig.json +++ b/packages/rspack-test-tools/tsconfig.json @@ -1,7 +1,6 @@ { "extends": "../../tsconfig.base.json", "compilerOptions": { - "skipLibCheck": true, "outDir": "dist", "rootDir": "src" }, diff --git a/packages/rspack/package.json b/packages/rspack/package.json index 3ef7382b0e5..014384e428a 100644 --- a/packages/rspack/package.json +++ b/packages/rspack/package.json @@ -81,6 +81,6 @@ "watchpack": "^2.4.0", "webpack-sources": "3.2.3", "zod": "^3.21.4", - "zod-validation-error": "1.2.0" + "zod-validation-error": "1.3.1" } } \ No newline at end of file diff --git a/packages/rspack/tsconfig.json b/packages/rspack/tsconfig.json index 57bbb2d1177..06ab00e8a9b 100644 --- a/packages/rspack/tsconfig.json +++ b/packages/rspack/tsconfig.json @@ -1,8 +1,6 @@ { "extends": "../../tsconfig.base.json", "compilerOptions": { - // TODO: Remove skipLibCheck when fix upstream type bug - "skipLibCheck": true, "outDir": "dist", "rootDir": "src" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6ccbabe205f..6625b06da70 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -40,8 +40,8 @@ importers: specifier: 29.1.0 version: 29.1.0 '@types/node': - specifier: '16' - version: 16.11.7 + specifier: ^20.9.4 + version: 20.9.4 '@types/rimraf': specifier: 3.0.2 version: 3.0.2 @@ -59,7 +59,7 @@ importers: version: 3.0.1 jest: specifier: 29.5.0 - version: 29.5.0(@types/node@16.11.7) + version: 29.5.0(@types/node@20.9.4) jest-environment-node: specifier: 29.5.0 version: 29.5.0 @@ -673,10 +673,10 @@ importers: version: link:../../packages/rspack '@types/react': specifier: ^18.0.25 - version: 18.2.6 + version: 18.2.0 '@types/react-dom': specifier: ^18.0.8 - version: 18.2.4 + version: 18.2.1 typescript: specifier: ^5.1.6 version: 5.1.6 @@ -993,10 +993,10 @@ importers: version: 0.0.14-next.2 '@types/react': specifier: ^18.0.25 - version: 18.2.6 + version: 18.2.0 '@types/react-dom': specifier: ^18.0.8 - version: 18.2.4 + version: 18.2.1 prop-types: specifier: ^15.8.1 version: 15.8.1 @@ -1638,8 +1638,8 @@ importers: specifier: ^3.21.4 version: 3.21.4 zod-validation-error: - specifier: 1.2.0 - version: 1.2.0(zod@3.21.4) + specifier: 1.3.1 + version: 1.3.1(zod@3.21.4) devDependencies: '@rspack/core': specifier: workspace:* @@ -2124,8 +2124,8 @@ importers: specifier: workspace:^ version: link:../packages/rspack-plugin-node-polyfill '@types/node': - specifier: ^18.6.3 - version: 18.7.9 + specifier: ^20.9.4 + version: 20.9.4 '@types/rimraf': specifier: 3.0.2 version: 3.0.2 @@ -2218,7 +2218,7 @@ importers: version: 5.16.1 ts-node: specifier: 10.9.1 - version: 10.9.1(@types/node@18.7.9)(typescript@4.9.4) + version: 10.9.1(@types/node@20.9.4)(typescript@4.9.4) typescript: specifier: ^4.7.4 version: 4.9.4 @@ -7827,7 +7827,7 @@ packages: engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@jest/types': 29.5.0 - '@types/node': 18.15.11 + '@types/node': 20.9.4 chalk: 4.1.2 jest-message-util: 29.5.0 jest-util: 29.5.0 @@ -7848,14 +7848,14 @@ packages: '@jest/test-result': 29.5.0 '@jest/transform': 29.5.0 '@jest/types': 29.5.0 - '@types/node': 18.15.11 + '@types/node': 20.9.4 ansi-escapes: 4.3.2 chalk: 4.1.2 ci-info: 3.3.2 exit: 0.1.2 graceful-fs: 4.2.10 jest-changed-files: 29.5.0 - jest-config: 29.5.0(@types/node@18.15.11) + jest-config: 29.5.0(@types/node@20.9.4) jest-haste-map: 29.5.0 jest-message-util: 29.5.0 jest-regex-util: 29.4.3 @@ -7889,7 +7889,7 @@ packages: dependencies: '@jest/fake-timers': 29.5.0 '@jest/types': 29.5.0 - '@types/node': 18.15.11 + '@types/node': 20.9.4 jest-mock: 29.5.0 dev: true @@ -7916,7 +7916,7 @@ packages: dependencies: '@jest/types': 29.5.0 '@sinonjs/fake-timers': 10.0.2 - '@types/node': 18.15.11 + '@types/node': 20.9.4 jest-message-util: 29.5.0 jest-mock: 29.5.0 jest-util: 29.5.0 @@ -7949,7 +7949,7 @@ packages: '@jest/transform': 29.5.0 '@jest/types': 29.5.0 '@jridgewell/trace-mapping': 0.3.17 - '@types/node': 18.15.11 + '@types/node': 20.9.4 chalk: 4.1.2 collect-v8-coverage: 1.0.1 exit: 0.1.2 @@ -8041,7 +8041,7 @@ packages: dependencies: '@types/istanbul-lib-coverage': 2.0.4 '@types/istanbul-reports': 3.0.1 - '@types/node': 18.15.11 + '@types/node': 20.9.4 '@types/yargs': 16.0.5 chalk: 4.1.2 dev: true @@ -8053,7 +8053,7 @@ packages: '@jest/schemas': 29.4.3 '@types/istanbul-lib-coverage': 2.0.4 '@types/istanbul-reports': 3.0.1 - '@types/node': 18.15.11 + '@types/node': 20.9.4 '@types/yargs': 17.0.12 chalk: 4.1.2 @@ -12222,12 +12222,12 @@ packages: resolution: {integrity: sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==} dependencies: '@types/connect': 3.4.35 - '@types/node': 16.11.7 + '@types/node': 20.9.4 /@types/bonjour@3.5.10: resolution: {integrity: sha512-p7ienRMiS41Nu2/igbJxxLDWrSZ0WxM8UQgCeO9KhoVF7cOVFkrKsiDr1EsJIla8vV3oEEjGcz11jc5yimhzZw==} dependencies: - '@types/node': 16.11.7 + '@types/node': 20.9.4 /@types/connect-history-api-fallback@1.3.5: resolution: {integrity: sha512-h8QJa8xSb1WD4fpKBDcATDNGXghFj6/3GRWG6dhmRcu0RX1Ubasur2Uvx5aeEwlf0MwblEC2bMzzMQntxnw/Cw==} @@ -12238,7 +12238,7 @@ packages: /@types/connect@3.4.35: resolution: {integrity: sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==} dependencies: - '@types/node': 18.15.11 + '@types/node': 20.9.4 /@types/d3-timer@2.0.1: resolution: {integrity: sha512-TF8aoF5cHcLO7W7403blM7L1T+6NF3XMyN3fxyUolq2uOcFeicG/khQg/dGxiCJWoAcmYulYN7LYSRKO54IXaA==} @@ -12297,7 +12297,7 @@ packages: /@types/express-serve-static-core@4.17.31: resolution: {integrity: sha512-DxMhY+NAsTwMMFHBTtJFNp5qiHKJ7TeqOo23zVEM9alT1Ml27Q3xcTH0xwxn7Q0BbMcVEJOs/7aQtUWupUQN3Q==} dependencies: - '@types/node': 16.11.7 + '@types/node': 20.9.4 '@types/qs': 6.9.7 '@types/range-parser': 1.2.4 @@ -12327,20 +12327,20 @@ packages: resolution: {integrity: sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==} dependencies: '@types/minimatch': 5.1.2 - '@types/node': 18.15.11 + '@types/node': 20.9.4 dev: true /@types/glob@8.0.0: resolution: {integrity: sha512-l6NQsDDyQUVeoTynNpC9uRvCUint/gSUXQA2euwmTuWGvPY5LSDUu6tkCtJB2SvGQlJQzLaKqcGZP4//7EDveA==} dependencies: '@types/minimatch': 5.1.2 - '@types/node': 18.15.11 + '@types/node': 20.9.4 dev: true /@types/graceful-fs@4.1.5: resolution: {integrity: sha512-anKkLmZZ+xm4p8JWBf4hElkM4XR+EZeA2M9BAkkTldmcyDY4mbdIJnRghDJH3Ov5ooY7/UAoENtmdMSkaAd7Cw==} dependencies: - '@types/node': 18.15.11 + '@types/node': 20.9.4 dev: true /@types/hast@2.3.4: @@ -12367,12 +12367,12 @@ packages: /@types/http-proxy@1.17.9: resolution: {integrity: sha512-QsbSjA/fSk7xB+UXlCT3wHBy5ai9wOcNDWwZAtud+jXhwOM3l+EYZh8Lng4+/6n8uar0J7xILzqftJdJ/Wdfkw==} dependencies: - '@types/node': 16.11.7 + '@types/node': 20.9.4 /@types/interpret@1.1.1: resolution: {integrity: sha512-HZ4d0m2Ebl8DmrOdYZHgYyipj/8Ftq1/ssB/oQR7fqfUrwtTP7IW3BDi2V445nhPBLzZjEkApaPVp83moSCXlA==} dependencies: - '@types/node': 18.15.11 + '@types/node': 20.9.4 dev: true /@types/istanbul-lib-coverage@2.0.4: @@ -12401,12 +12401,12 @@ packages: /@types/jsonfile@6.1.1: resolution: {integrity: sha512-GSgiRCVeapDN+3pqA35IkQwasaCh/0YFH5dEF6S88iDvEn901DjOeH3/QPY+XYP1DFzDZPvIvfeEgk+7br5png==} dependencies: - '@types/node': 18.15.11 + '@types/node': 20.9.4 /@types/keyv@3.1.4: resolution: {integrity: sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==} dependencies: - '@types/node': 18.15.11 + '@types/node': 20.9.4 dev: true /@types/lodash.template@4.5.1: @@ -12451,7 +12451,7 @@ packages: /@types/node-fetch@2.6.4: resolution: {integrity: sha512-1ZX9fcN4Rvkvgv4E6PAY5WXUFWFcRWxZa3EW83UjycOB9ljJCedb2CupIP4RZMEwF/M3eTcCihbBRgwtGbg5Rg==} dependencies: - '@types/node': 18.15.11 + '@types/node': 20.9.4 form-data: 3.0.1 dev: true @@ -12464,6 +12464,11 @@ packages: /@types/node@18.7.9: resolution: {integrity: sha512-0N5Y1XAdcl865nDdjbO0m3T6FdmQ4ijE89/urOHLREyTXbpMWbSafx9y7XIsgWGtwUP2iYTinLyyW3FatAxBLQ==} + /@types/node@20.9.4: + resolution: {integrity: sha512-wmyg8HUhcn6ACjsn8oKYjkN/zUzQeNtMy44weTJSM6p4MMzEOuKbA3OjJ267uPCOW7Xex9dyrNTful8XTQYoDA==} + dependencies: + undici-types: 5.26.5 + /@types/normalize-package-data@2.4.1: resolution: {integrity: sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==} dev: true @@ -12510,12 +12515,6 @@ packages: '@types/react': 18.2.0 dev: true - /@types/react-dom@18.2.4: - resolution: {integrity: sha512-G2mHoTMTL4yoydITgOGwWdWMVd8sNgyEP85xVmMKAPUBwQWm9wBPQUmvbeF4V3WBY1P7mmL4BkjQ0SqUpf1snw==} - dependencies: - '@types/react': 18.2.6 - dev: true - /@types/react-redux@7.1.24: resolution: {integrity: sha512-7FkurKcS1k0FHZEtdbbgN8Oc6b+stGSfZYjQGicofJ0j4U0qIn/jaSvnP2pLwZKiai3/17xqqxkkrxTgN8UNbQ==} dependencies: @@ -12532,13 +12531,6 @@ packages: '@types/scheduler': 0.16.2 csstype: 3.1.2 - /@types/react@18.2.6: - resolution: {integrity: sha512-wRZClXn//zxCFW+ye/D2qY65UsYP1Fpex2YXorHc8awoNamkMZSvBxwxdYVInsHOZZd2Ppq8isnSzJL5Mpf8OA==} - dependencies: - '@types/prop-types': 15.7.5 - '@types/scheduler': 0.16.2 - csstype: 3.1.1 - /@types/rechoir@0.6.1: resolution: {integrity: sha512-HbMQqyZC8W9NxE3R89rW+hFwFXeIdmCT7x91NQjzB4+0CI42K/CJfRak5/jAQ7L5qi1cGcQQdo+GI9pqqUhbKQ==} dependencies: @@ -12552,7 +12544,7 @@ packages: /@types/responselike@1.0.0: resolution: {integrity: sha512-85Y2BjiufFzaMIlvJDvTTB8Fxl2xfLo4HgmHzVBz08w4wDePCTjYw66PdrolO0kzli3yam/YCgRufyo1DdQVTA==} dependencies: - '@types/node': 18.15.11 + '@types/node': 20.9.4 dev: true /@types/retry@0.12.0: @@ -12562,13 +12554,13 @@ packages: resolution: {integrity: sha512-F3OznnSLAUxFrCEu/L5PY8+ny8DtcFRjx7fZZ9bycvXRi3KPTRS9HOitGZwvPg0juRhXFWIeKX58cnX5YqLohQ==} dependencies: '@types/glob': 8.0.0 - '@types/node': 18.15.11 + '@types/node': 20.9.4 dev: true /@types/sass@1.43.1: resolution: {integrity: sha512-BPdoIt1lfJ6B7rw35ncdwBZrAssjcwzI5LByIrYs+tpXlj/CAkuVdRsgZDdP4lq5EjyWzwxZCqAoFyHKFwp32g==} dependencies: - '@types/node': 18.15.11 + '@types/node': 20.9.4 dev: true /@types/scheduler@0.16.2: @@ -12587,7 +12579,7 @@ packages: resolution: {integrity: sha512-z5xyF6uh8CbjAu9760KDKsH2FcDxZ2tFCsA4HIMWE6IkiYMXfVoa+4f9KX+FN0ZLsaMw1WNG2ETLA6N+/YA+cg==} dependencies: '@types/mime': 3.0.1 - '@types/node': 16.11.7 + '@types/node': 20.9.4 /@types/sinon@10.0.13: resolution: {integrity: sha512-UVjDqJblVNQYvVNUsj0PuYYw0ELRmgt1Nt5Vk0pT5f16ROGfcKJY8o1HVuMOJOpD727RrGB9EGvoaTQE5tgxZQ==} @@ -12602,7 +12594,7 @@ packages: /@types/sockjs@0.3.33: resolution: {integrity: sha512-f0KEEe05NvUnat+boPTZ0dgaLZ4SfSouXUgv5noUiefG2ajgKjmETo9ZJyuqsl7dfl2aHlLJUiki6B4ZYldiiw==} dependencies: - '@types/node': 16.11.7 + '@types/node': 20.9.4 /@types/source-list-map@0.1.2: resolution: {integrity: sha512-K5K+yml8LTo9bWJI/rECfIPrGgxdpeNbj+d53lwN4QjW1MCwlkhUms+gtdzigTeUyBr09+u8BwOIY3MXvHdcsA==} @@ -12611,7 +12603,7 @@ packages: /@types/ssri@7.1.1: resolution: {integrity: sha512-DPP/jkDaqGiyU75MyMURxLWyYLwKSjnAuGe9ZCsLp9QZOpXmDfuevk769F0BS86TmRuD5krnp06qw9nSoNO+0g==} dependencies: - '@types/node': 18.15.11 + '@types/node': 20.9.4 dev: false /@types/stack-utils@2.0.1: @@ -12622,7 +12614,7 @@ packages: resolution: {integrity: sha512-KuKJ9Z6xb93uJiIyxo/+ksS7yLjS1KzG6iv5i78dhVg/X3u5t1H7juRWqVmodIdz6wGVaIApo1u01kmFRdJHVw==} dependencies: '@types/hoist-non-react-statics': 3.3.1 - '@types/react': 18.2.6 + '@types/react': 18.2.0 csstype: 3.1.1 dev: false @@ -12716,7 +12708,7 @@ packages: resolution: {integrity: sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==} requiresBuild: true dependencies: - '@types/node': 18.15.11 + '@types/node': 20.9.4 dev: true optional: true @@ -20237,7 +20229,7 @@ packages: '@jest/expect': 29.5.0 '@jest/test-result': 29.5.0 '@jest/types': 29.5.0 - '@types/node': 18.15.11 + '@types/node': 20.9.4 chalk: 4.1.2 co: 4.6.0 dedent: 0.7.0 @@ -20257,7 +20249,7 @@ packages: - supports-color dev: true - /jest-cli@29.5.0(@types/node@16.11.7): + /jest-cli@29.5.0(@types/node@20.9.4): resolution: {integrity: sha512-L1KcP1l4HtfwdxXNFCL5bmUbLQiKrakMUriBEcc1Vfz6gx31ORKdreuWvmQVBit+1ss9NNR3yxjwfwzZNdQXJw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -20274,7 +20266,7 @@ packages: exit: 0.1.2 graceful-fs: 4.2.10 import-local: 3.1.0 - jest-config: 29.5.0(@types/node@16.11.7) + jest-config: 29.5.0(@types/node@20.9.4) jest-util: 29.5.0 jest-validate: 29.5.0 prompts: 2.4.2 @@ -20285,7 +20277,7 @@ packages: - ts-node dev: true - /jest-config@29.5.0(@types/node@16.11.7): + /jest-config@29.5.0(@types/node@20.9.4): resolution: {integrity: sha512-kvDUKBnNJPNBmFFOhDbm59iu1Fii1Q6SxyhXfvylq3UTHbg6o7j/g8k2dZyXWLvfdKB1vAPxNZnMgtKJcmu3kA==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: @@ -20300,46 +20292,7 @@ packages: '@babel/core': 7.23.2 '@jest/test-sequencer': 29.5.0 '@jest/types': 29.5.0 - '@types/node': 16.11.7 - babel-jest: 29.5.0(@babel/core@7.23.2) - chalk: 4.1.2 - ci-info: 3.3.2 - deepmerge: 4.3.1 - glob: 7.2.3 - graceful-fs: 4.2.10 - jest-circus: 29.5.0 - jest-environment-node: 29.5.0 - jest-get-type: 29.4.3 - jest-regex-util: 29.4.3 - jest-resolve: 29.5.0 - jest-runner: 29.5.0 - jest-util: 29.5.0 - jest-validate: 29.5.0 - micromatch: 4.0.5 - parse-json: 5.2.0 - pretty-format: 29.5.0 - slash: 3.0.0 - strip-json-comments: 3.1.1 - transitivePeerDependencies: - - supports-color - dev: true - - /jest-config@29.5.0(@types/node@18.15.11): - resolution: {integrity: sha512-kvDUKBnNJPNBmFFOhDbm59iu1Fii1Q6SxyhXfvylq3UTHbg6o7j/g8k2dZyXWLvfdKB1vAPxNZnMgtKJcmu3kA==} - engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - peerDependencies: - '@types/node': '*' - ts-node: '>=9.0.0' - peerDependenciesMeta: - '@types/node': - optional: true - ts-node: - optional: true - dependencies: - '@babel/core': 7.23.2 - '@jest/test-sequencer': 29.5.0 - '@jest/types': 29.5.0 - '@types/node': 18.15.11 + '@types/node': 20.9.4 babel-jest: 29.5.0(@babel/core@7.23.2) chalk: 4.1.2 ci-info: 3.3.2 @@ -20397,7 +20350,7 @@ packages: '@jest/environment': 29.5.0 '@jest/fake-timers': 29.5.0 '@jest/types': 29.5.0 - '@types/node': 18.15.11 + '@types/node': 20.9.4 jest-mock: 29.5.0 jest-util: 29.5.0 dev: true @@ -20417,7 +20370,7 @@ packages: dependencies: '@jest/types': 29.5.0 '@types/graceful-fs': 4.1.5 - '@types/node': 18.15.11 + '@types/node': 20.9.4 anymatch: 3.1.2 fb-watchman: 2.0.1 graceful-fs: 4.2.10 @@ -20468,7 +20421,7 @@ packages: engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} dependencies: '@jest/types': 27.5.1 - '@types/node': 18.15.11 + '@types/node': 20.9.4 dev: true /jest-mock@29.5.0: @@ -20476,7 +20429,7 @@ packages: engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@jest/types': 29.5.0 - '@types/node': 18.15.11 + '@types/node': 20.9.4 jest-util: 29.5.0 dev: true @@ -20531,7 +20484,7 @@ packages: '@jest/test-result': 29.5.0 '@jest/transform': 29.5.0 '@jest/types': 29.5.0 - '@types/node': 18.15.11 + '@types/node': 20.9.4 chalk: 4.1.2 emittery: 0.13.1 graceful-fs: 4.2.10 @@ -20562,7 +20515,7 @@ packages: '@jest/test-result': 29.5.0 '@jest/transform': 29.5.0 '@jest/types': 29.5.0 - '@types/node': 18.15.11 + '@types/node': 20.9.4 chalk: 4.1.2 cjs-module-lexer: 1.2.2 collect-v8-coverage: 1.0.1 @@ -20626,7 +20579,7 @@ packages: engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@jest/types': 29.5.0 - '@types/node': 18.15.11 + '@types/node': 20.9.4 chalk: 4.1.2 ci-info: 3.3.2 graceful-fs: 4.2.10 @@ -20638,7 +20591,7 @@ packages: engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@jest/types': 29.5.0 - '@types/node': 18.15.11 + '@types/node': 20.9.4 chalk: 4.1.2 ci-info: 3.3.2 graceful-fs: 4.2.10 @@ -20663,7 +20616,7 @@ packages: dependencies: '@jest/test-result': 29.5.0 '@jest/types': 29.5.0 - '@types/node': 18.15.11 + '@types/node': 20.9.4 ansi-escapes: 4.3.2 chalk: 4.1.2 emittery: 0.13.1 @@ -20675,7 +20628,7 @@ packages: resolution: {integrity: sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==} engines: {node: '>= 10.13.0'} dependencies: - '@types/node': 18.15.11 + '@types/node': 20.9.4 merge-stream: 2.0.0 supports-color: 8.1.1 @@ -20693,13 +20646,13 @@ packages: resolution: {integrity: sha512-NcrQnevGoSp4b5kg+akIpthoAFHxPBcb5P6mYPY0fUNT+sSvmtu6jlkEle3anczUKIKEbMxFimk9oTP/tpIPgA==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@types/node': 18.15.11 + '@types/node': 20.9.4 jest-util: 29.5.0 merge-stream: 2.0.0 supports-color: 8.1.1 dev: true - /jest@29.5.0(@types/node@16.11.7): + /jest@29.5.0(@types/node@20.9.4): resolution: {integrity: sha512-juMg3he2uru1QoXX078zTa7pO85QyB9xajZc6bU+d9yEGwrKX6+vGmJQ3UdVZsvTEUARIdObzH68QItim6OSSQ==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -20712,7 +20665,7 @@ packages: '@jest/core': 29.5.0 '@jest/types': 29.5.0 import-local: 3.1.0 - jest-cli: 29.5.0(@types/node@16.11.7) + jest-cli: 29.5.0(@types/node@20.9.4) transitivePeerDependencies: - '@types/node' - supports-color @@ -27379,7 +27332,7 @@ packages: dependencies: bs-logger: 0.2.6 fast-json-stable-stringify: 2.1.0 - jest: 29.5.0(@types/node@16.11.7) + jest: 29.5.0(@types/node@20.9.4) jest-util: 29.5.0 json5: 2.2.3 lodash.memoize: 4.1.2 @@ -27461,7 +27414,7 @@ packages: yn: 3.1.1 dev: true - /ts-node@10.9.1(@types/node@18.7.9)(typescript@4.9.4): + /ts-node@10.9.1(@types/node@20.9.4)(typescript@4.9.4): resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} hasBin: true peerDependencies: @@ -27480,7 +27433,7 @@ packages: '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.3 - '@types/node': 18.7.9 + '@types/node': 20.9.4 acorn: 8.8.2 acorn-walk: 8.2.0 arg: 4.1.3 @@ -27692,6 +27645,9 @@ packages: xtend: 4.0.2 dev: true + /undici-types@5.26.5: + resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} + /unfetch@4.2.0: resolution: {integrity: sha512-F9p7yYCn6cIW9El1zi0HI6vqpeIvBsr3dSuRO6Xuppb1u5rXpCPmMvLSyECLhybr9isec8Ohl0hPekMVrEinDA==} dev: true @@ -29592,9 +29548,9 @@ packages: engines: {node: '>=12.20'} dev: true - /zod-validation-error@1.2.0(zod@3.21.4): - resolution: {integrity: sha512-laJkD/ugwEh8CpuH+xXv5L9Z+RLz3lH8alNxolfaHZJck611OJj97R4Rb+ZqA7WNly2kNtTo4QwjdjXw9scpiw==} - engines: {node: ^14.17 || >=16.0.0} + /zod-validation-error@1.3.1(zod@3.21.4): + resolution: {integrity: sha512-cNEXpla+tREtNdAnNKY4xKY1SGOn2yzyuZMu4O0RQylX9apRpUjNcPkEc3uHIAr5Ct7LenjZt6RzjEH6+JsqVQ==} + engines: {node: '>=16.0.0'} peerDependencies: zod: ^3.18.0 dependencies: diff --git a/scripts/tsconfig.json b/scripts/tsconfig.json index 16409b4a6ed..c71ce929099 100644 --- a/scripts/tsconfig.json +++ b/scripts/tsconfig.json @@ -104,6 +104,5 @@ /* Completeness */ // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ - "skipLibCheck": true /* Skip type checking all .d.ts files. */ } } diff --git a/webpack-test/package.json b/webpack-test/package.json index f3ea67ba532..bf47f27fd78 100644 --- a/webpack-test/package.json +++ b/webpack-test/package.json @@ -17,7 +17,7 @@ "@rspack/core": "workspace:*", "@rspack/plugin-minify": "workspace:^", "@rspack/plugin-node-polyfill": "workspace:^", - "@types/node": "^18.6.3", + "@types/node": "^20.9.4", "@types/rimraf": "3.0.2", "@types/sinon": "10.0.13", "@types/watchpack": "^2.4.0",