diff --git a/__utils__/assert-project/package.json b/__utils__/assert-project/package.json index c2e072e177e..edd50afcddd 100644 --- a/__utils__/assert-project/package.json +++ b/__utils__/assert-project/package.json @@ -19,7 +19,7 @@ "@pnpm/assert-project": "workspace:*", "@types/is-windows": "^1.0.2", "@types/isexe": "2.0.2", - "@types/node": "^16.18.61" + "@types/node": "^18.14.6" }, "directories": { "test": "test" diff --git a/__utils__/prepare/package.json b/__utils__/prepare/package.json index 43c50df3f5f..0031e2d5688 100644 --- a/__utils__/prepare/package.json +++ b/__utils__/prepare/package.json @@ -13,7 +13,7 @@ }, "devDependencies": { "@pnpm/prepare": "workspace:*", - "@types/node": "^16.18.61" + "@types/node": "^18.14.6" }, "scripts": { "lint": "eslint src/**/*.ts", diff --git a/exec/plugin-commands-rebuild/src/implementation/extendRebuildOptions.ts b/exec/plugin-commands-rebuild/src/implementation/extendRebuildOptions.ts index d6ddf3777f5..c8344aa536c 100644 --- a/exec/plugin-commands-rebuild/src/implementation/extendRebuildOptions.ts +++ b/exec/plugin-commands-rebuild/src/implementation/extendRebuildOptions.ts @@ -80,7 +80,7 @@ const defaults = async (opts: RebuildOptions) => { unsafePerm: process.platform === 'win32' || process.platform === 'cygwin' || !process.setgid || - process.getuid() !== 0, + process.getuid?.() !== 0, useLockfile: true, userAgent: `${packageManager.name}/${packageManager.version} npm/? node/${process.version} ${process.platform} ${process.arch}`, } as StrictRebuildOptions diff --git a/package.json b/package.json index 3721d452197..3c0f0c06ac3 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "@pnpm/tsconfig": "workspace:*", "@pnpm/worker": "workspace:*", "@types/jest": "^29.5.8", - "@types/node": "^16.18.61", + "@types/node": "^18.14.6", "c8": "^7.14.0", "concurrently": "8.2.1", "cross-env": "^7.0.3", diff --git a/pkg-manager/core/src/install/extendInstallOptions.ts b/pkg-manager/core/src/install/extendInstallOptions.ts index aaca95f6707..ef17e55946b 100644 --- a/pkg-manager/core/src/install/extendInstallOptions.ts +++ b/pkg-manager/core/src/install/extendInstallOptions.ts @@ -212,7 +212,7 @@ const defaults = (opts: InstallOptions) => { unsafePerm: process.platform === 'win32' || process.platform === 'cygwin' || !process.setgid || - process.getuid() !== 0, + process.getuid?.() !== 0, useLockfile: true, saveLockfile: true, useGitBranchLockfile: false, diff --git a/pkg-manager/link-bins/package.json b/pkg-manager/link-bins/package.json index 16bcd54f9a1..fa51a59ca11 100644 --- a/pkg-manager/link-bins/package.json +++ b/pkg-manager/link-bins/package.json @@ -52,7 +52,7 @@ "@pnpm/link-bins": "workspace:*", "@pnpm/test-fixtures": "workspace:*", "@types/is-windows": "^1.0.2", - "@types/node": "^16.18.61", + "@types/node": "^18.14.6", "@types/normalize-path": "^3.0.2", "@types/ramda": "0.28.20", "cmd-extension": "^1.0.2", diff --git a/pkg-manager/package-bins/package.json b/pkg-manager/package-bins/package.json index 3d247020d05..c5e1ecb9621 100644 --- a/pkg-manager/package-bins/package.json +++ b/pkg-manager/package-bins/package.json @@ -37,7 +37,7 @@ }, "devDependencies": { "@pnpm/package-bins": "workspace:*", - "@types/node": "^16.18.61" + "@types/node": "^18.14.6" }, "funding": "https://opencollective.com/pnpm", "exports": { diff --git a/pkg-manager/package-requester/src/packageRequester.ts b/pkg-manager/package-requester/src/packageRequester.ts index bc3f2d13390..8c17796529b 100644 --- a/pkg-manager/package-requester/src/packageRequester.ts +++ b/pkg-manager/package-requester/src/packageRequester.ts @@ -101,7 +101,6 @@ export function createPackageRequester ( // A lower bound of 16 is enforced to prevent performance degradation, // especially in CI environments. Tests with a threshold lower than 16 // have shown consistent underperformance. - // @ts-expect-error - `availableParallelism` is not exist until update @types/node to v18.14.5 const networkConcurrency = opts.networkConcurrency ?? Math.max(os.availableParallelism?.() ?? os.cpus().length, 16) const requestsQueue = new PQueue({ concurrency: networkConcurrency, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 443fcdb1728..14ad5cc508e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -121,8 +121,8 @@ importers: specifier: ^29.5.8 version: 29.5.8 '@types/node': - specifier: ^16.18.61 - version: 16.18.61 + specifier: ^18.14.6 + version: 18.14.6 c8: specifier: ^7.14.0 version: 7.14.0 @@ -143,7 +143,7 @@ importers: version: 8.0.3 jest: specifier: ^29.7.0 - version: 29.7.0(@babel/types@7.23.3)(@types/node@16.18.61)(ts-node@10.9.1) + version: 29.7.0(@babel/types@7.23.3)(@types/node@18.14.6)(ts-node@10.9.1) keyv: specifier: 4.5.4 version: 4.5.4 @@ -167,7 +167,7 @@ importers: version: 29.1.1(@babel/core@7.23.3)(jest@29.7.0)(typescript@5.2.2) ts-node: specifier: ^10.9.1 - version: 10.9.1(@types/node@16.18.61)(typescript@5.2.2) + version: 10.9.1(@types/node@18.14.6)(typescript@5.2.2) typescript: specifier: 5.2.2 version: 5.2.2 @@ -258,8 +258,8 @@ importers: specifier: 2.0.2 version: 2.0.2 '@types/node': - specifier: ^16.18.61 - version: 16.18.61 + specifier: ^18.14.6 + version: 18.14.6 __utils__/assert-store: dependencies: @@ -355,8 +355,8 @@ importers: specifier: workspace:* version: 'link:' '@types/node': - specifier: ^16.18.61 - version: 16.18.61 + specifier: ^18.14.6 + version: 18.14.6 __utils__/scripts: dependencies: @@ -3527,8 +3527,8 @@ importers: specifier: ^1.0.2 version: 1.0.2 '@types/node': - specifier: ^16.18.61 - version: 16.18.61 + specifier: ^18.14.6 + version: 18.14.6 '@types/normalize-path': specifier: ^3.0.2 version: 3.0.2 @@ -3638,8 +3638,8 @@ importers: specifier: workspace:* version: 'link:' '@types/node': - specifier: ^16.18.61 - version: 16.18.61 + specifier: ^18.14.6 + version: 18.14.6 pkg-manager/package-requester: dependencies: @@ -5579,8 +5579,8 @@ importers: specifier: 2.0.0 version: 2.0.0 '@types/node': - specifier: ^16.18.61 - version: 16.18.61 + specifier: ^18.14.6 + version: 18.14.6 '@types/ssri': specifier: ^7.1.4 version: 7.1.4 @@ -6028,8 +6028,8 @@ importers: specifier: ^1.0.2 version: 1.0.2 '@types/node': - specifier: ^16.18.61 - version: 16.18.61 + specifier: ^18.14.6 + version: 18.14.6 '@types/rimraf': specifier: ^3.0.2 version: 3.0.2 @@ -6081,7 +6081,7 @@ importers: version: link:../fs/symlink-dependency '@rushstack/worker-pool': specifier: 0.4.9 - version: 0.4.9(@types/node@16.18.61) + version: 0.4.9(@types/node@18.14.6) load-json-file: specifier: ^6.2.0 version: 6.2.0 @@ -7710,7 +7710,7 @@ packages: engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@jest/types': 29.6.3 - '@types/node': 16.18.61 + '@types/node': 18.18.9 chalk: 4.1.2 jest-message-util: 29.7.0 jest-util: 29.7.0 @@ -7731,14 +7731,14 @@ packages: '@jest/test-result': 29.7.0 '@jest/transform': 29.7.0(@babel/types@7.23.3) '@jest/types': 29.6.3 - '@types/node': 16.18.61 + '@types/node': 18.18.9 ansi-escapes: 4.3.2 chalk: 4.1.2 ci-info: 3.9.0 exit: 0.1.2 graceful-fs: 4.2.11(patch_hash=ivtm2a2cfr5pomcfbedhmr5v2q) jest-changed-files: 29.7.0 - jest-config: 29.7.0(@babel/types@7.23.3)(@types/node@16.18.61)(ts-node@10.9.1) + jest-config: 29.7.0(@babel/types@7.23.3)(@types/node@18.18.9)(ts-node@10.9.1) jest-haste-map: 29.7.0 jest-message-util: 29.7.0 jest-regex-util: 29.6.3 @@ -7767,7 +7767,7 @@ packages: dependencies: '@jest/fake-timers': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 16.18.61 + '@types/node': 18.18.9 jest-mock: 29.7.0 dev: true @@ -7794,7 +7794,7 @@ packages: dependencies: '@jest/types': 29.6.3 '@sinonjs/fake-timers': 10.3.0 - '@types/node': 16.18.61 + '@types/node': 18.18.9 jest-message-util: 29.7.0 jest-mock: 29.7.0 jest-util: 29.7.0 @@ -7827,7 +7827,7 @@ packages: '@jest/transform': 29.7.0(@babel/types@7.23.3) '@jest/types': 29.6.3 '@jridgewell/trace-mapping': 0.3.20 - '@types/node': 16.18.61 + '@types/node': 18.18.9 chalk: 4.1.2 collect-v8-coverage: 1.0.2 exit: 0.1.2 @@ -7917,7 +7917,7 @@ packages: '@jest/schemas': 29.6.3 '@types/istanbul-lib-coverage': 2.0.6 '@types/istanbul-reports': 3.0.4 - '@types/node': 16.18.61 + '@types/node': 18.18.9 '@types/yargs': 17.0.31 chalk: 4.1.2 dev: true @@ -8659,7 +8659,7 @@ packages: '@reflink/reflink-win32-x64-msvc': 0.1.15 dev: false - /@rushstack/worker-pool@0.4.9(@types/node@16.18.61): + /@rushstack/worker-pool@0.4.9(@types/node@18.14.6): resolution: {integrity: sha512-ibAOeQCuz3g0c88GGawAPO2LVOTZE3uPh4DCEJILZS9SEv9opEUObsovC18EHPgeIuFy4HkoJT+t7l8LURZjIw==} peerDependencies: '@types/node': '*' @@ -8667,7 +8667,7 @@ packages: '@types/node': optional: true dependencies: - '@types/node': 16.18.61 + '@types/node': 18.14.6 dev: false /@sinclair/typebox@0.27.8: @@ -8739,7 +8739,7 @@ packages: /@types/adm-zip@0.5.4: resolution: {integrity: sha512-/pYie/76O0TTqU4L/z1XqQ5mA5QvScaP/EO3lpH7iQ6/AjioYyuvi2IAmQeimuTTnytl03e9g8YFYkGV2Bxojw==} dependencies: - '@types/node': 20.9.0 + '@types/node': 18.18.9 dev: true /@types/archy@0.0.33: @@ -8782,7 +8782,7 @@ packages: /@types/byline@4.2.36: resolution: {integrity: sha512-dO55KDSaOSE+3T8TwP66mzn0u/PM/aSedVMr1tby7WBNjfLIuS6IbYXi1mlau49sVSVB+gXKJscWE0JO3tlXDw==} dependencies: - '@types/node': 20.9.0 + '@types/node': 18.18.9 dev: true /@types/cacheable-request@6.0.3: @@ -8790,13 +8790,13 @@ packages: dependencies: '@types/http-cache-semantics': 4.0.4 '@types/keyv': 3.1.4 - '@types/node': 20.9.0 + '@types/node': 18.18.9 '@types/responselike': 1.0.3 /@types/cross-spawn@6.0.5: resolution: {integrity: sha512-wsIMP68FvGXk+RaWhraz6Xp4v7sl4qwzHAmtPaJEN2NRTXXI9LtFawUpeTsBNL/pd6QoLStdytCaAyiK7AEd/Q==} dependencies: - '@types/node': 20.9.0 + '@types/node': 18.18.9 dev: true /@types/emscripten@1.39.10: @@ -8805,20 +8805,20 @@ packages: /@types/fs-extra@9.0.13: resolution: {integrity: sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==} dependencies: - '@types/node': 20.9.0 + '@types/node': 18.18.9 dev: true /@types/glob@8.1.0: resolution: {integrity: sha512-IO+MJPVhoqz+28h1qLAcBEH2+xHMK6MTyHJc7MTnnYb6wsoLR29POVGJ7LycmVXIqyy/4/2ShP5sUwTXuOwb/w==} dependencies: '@types/minimatch': 5.1.2 - '@types/node': 20.9.0 + '@types/node': 18.18.9 dev: true /@types/graceful-fs@4.1.9: resolution: {integrity: sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==} dependencies: - '@types/node': 20.9.0 + '@types/node': 18.18.9 dev: true /@types/hosted-git-info@3.0.5: @@ -8849,7 +8849,7 @@ packages: /@types/isexe@2.0.2: resolution: {integrity: sha512-V8+kbRpbA/72Q8+3RC95umV1o5N6sUYmz62DeV54YhqGOaiC9rDd0kLjGDKWIj/YdBiOFLMRpMcGLjvz08MSqg==} dependencies: - '@types/node': 16.18.61 + '@types/node': 18.18.9 dev: true /@types/istanbul-lib-coverage@2.0.6: @@ -8890,7 +8890,7 @@ packages: /@types/keyv@3.1.4: resolution: {integrity: sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==} dependencies: - '@types/node': 20.9.0 + '@types/node': 18.18.9 /@types/lodash.clonedeep@4.5.9: resolution: {integrity: sha512-19429mWC+FyaAhOLzsS8kZUsI+/GmBAQ0HFiCPsKGU+7pBXOQWhyrY6xNNDwUSX8SMZMJvuFVMF9O5dQOlQK9Q==} @@ -8933,7 +8933,7 @@ packages: /@types/mz@2.7.7: resolution: {integrity: sha512-cIWlsq4vFIwfsMIMTNGtL8xoXz3itY/LRiwB9cIZJYmTzHvLrFASwih50/UfOyBU+S3vA9kiDuXW7ZxMfCvXJg==} dependencies: - '@types/node': 20.9.0 + '@types/node': 18.18.9 dev: true /@types/node@12.20.55: @@ -8944,24 +8944,18 @@ packages: resolution: {integrity: sha512-s3nugnZumCC//n4moGGe6tkNMyYEdaDBitVjwPxXmR5lnMG5dHePinH2EdxkG3Rh1ghFHHixAG4NJhpJW1rthQ==} dev: false - /@types/node@16.18.61: - resolution: {integrity: sha512-k0N7BqGhJoJzdh6MuQg1V1ragJiXTh8VUBAZTWjJ9cUq23SG0F0xavOwZbhiP4J3y20xd6jxKx+xNUhkMAi76Q==} + /@types/node@18.14.6: + resolution: {integrity: sha512-93+VvleD3mXwlLI/xASjw0FzKcwzl3OdTCzm1LaRfqgS21gfFtK3zDXM5Op9TeeMsJVOaJ2VRDpT9q4Y3d0AvA==} /@types/node@18.18.9: resolution: {integrity: sha512-0f5klcuImLnG4Qreu9hPj/rEfFq6YRc5n2mAjSsH+ec/mJL+3voBH0+8T7o8RpFjH7ovc+TRsL/c7OYIQsPTfQ==} dependencies: undici-types: 5.26.5 - dev: false /@types/node@20.5.1: resolution: {integrity: sha512-4tT2UrL5LBqDwoed9wZ6N3umC4Yhz3W3FloMmiiG4JwmUJWpie0c7lcnUNd4gtMKuDEO4wRVS8B6Xa0uMRsMKg==} dev: true - /@types/node@20.9.0: - resolution: {integrity: sha512-nekiGu2NDb1BcVofVcEKMIwzlx4NjHlcjhoxxKBNLtz15Y1z7MYf549DFvkHSId02Ax6kGwWntIBPC3l/JZcmw==} - dependencies: - undici-types: 5.26.5 - /@types/normalize-package-data@2.4.4: resolution: {integrity: sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==} dev: true @@ -8986,7 +8980,7 @@ packages: /@types/responselike@1.0.3: resolution: {integrity: sha512-H/+L+UkTV33uf49PH5pCAUBVPNj2nDBXTN+qS1dOwyyg24l3CcicicCA7ca+HMvJBZcFgl5r8e+RR6elsb4Lyw==} dependencies: - '@types/node': 20.9.0 + '@types/node': 18.18.9 /@types/retry@0.12.5: resolution: {integrity: sha512-3xSjTp3v03X/lSQLkczaN9UIEwJMoMCA1+Nb5HfbJEQWogdeQIyVtTvxPXDQjZ5zws8rFQfVfRdz03ARihPJgw==} @@ -8996,7 +8990,7 @@ packages: resolution: {integrity: sha512-F3OznnSLAUxFrCEu/L5PY8+ny8DtcFRjx7fZZ9bycvXRi3KPTRS9HOitGZwvPg0juRhXFWIeKX58cnX5YqLohQ==} dependencies: '@types/glob': 8.1.0 - '@types/node': 20.9.0 + '@types/node': 18.18.9 dev: true /@types/semver@6.2.6: @@ -9026,7 +9020,7 @@ packages: /@types/ssri@7.1.4: resolution: {integrity: sha512-K2Ys8+BVrgGFY0cVwf55rIS4fa2ZN+4Y/w2h4BnYIf8kvUdmdKT6l6VUpC3uL9HKG8I8EkD5CXIgRUXHOLHcLw==} dependencies: - '@types/node': 20.9.0 + '@types/node': 18.18.9 /@types/stack-utils@2.0.3: resolution: {integrity: sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==} @@ -9039,20 +9033,20 @@ packages: /@types/tar-stream@2.2.3: resolution: {integrity: sha512-if3mugZfjVkXOMZdFjIHySxY13r6GXPpyOlsDmLffvyI7tLz9wXE8BFjNivXsvUeyJ1KNlOpfLnag+ISmxgxPw==} dependencies: - '@types/node': 20.9.0 + '@types/node': 18.18.9 dev: true /@types/tar@6.1.9: resolution: {integrity: sha512-T3+O+OQd9cdGmOXuKQY9+B0ceZHRlGVPQ7M5QZqkaPyP/vWnxPXM2aCegq8GP/n1n9dBfq2EBUqCSKKjQAVOPA==} dependencies: - '@types/node': 20.9.0 + '@types/node': 18.18.9 minipass: 4.2.8 dev: true /@types/touch@3.1.5: resolution: {integrity: sha512-tnu5L7yEvstLAJCjEQRYTtFIqMgJ4fvlDlgJwemY0V6UbeJ8NQCUuj85tPcCm54q/hAlLXFStIEClNlp8mSlMA==} dependencies: - '@types/node': 16.18.61 + '@types/node': 18.18.9 dev: true /@types/treeify@1.0.3: @@ -9081,7 +9075,7 @@ packages: /@types/write-file-atomic@4.0.3: resolution: {integrity: sha512-qdo+vZRchyJIHNeuI1nrpsLw+hnkgqP/8mlaN6Wle/NKhydHmUN9l4p3ZE8yP90AJNJW4uB8HQhedb4f1vNayQ==} dependencies: - '@types/node': 20.9.0 + '@types/node': 18.18.9 dev: true /@types/yargs-parser@21.0.3: @@ -9383,7 +9377,7 @@ packages: resolution: {integrity: sha512-YmG+oTBCyrAoMIx5g2I9CfyurSpHyoan+9SCj7laaFKseOe3lFEyIVKvwRBQMmSt8uzh+eY5RWeQnoyyOs6AbA==} engines: {node: '>=14.15.0'} peerDependencies: - '@yarnpkg/fslib': 3.0.0-rc.25 + '@yarnpkg/fslib': ^3.0.0-rc.25 dependencies: '@types/emscripten': 1.39.10 '@yarnpkg/fslib': 3.0.0-rc.25 @@ -10747,7 +10741,7 @@ packages: typescript: 5.2.2 dev: true - /create-jest@29.7.0(@babel/types@7.23.3)(@types/node@16.18.61)(ts-node@10.9.1): + /create-jest@29.7.0(@babel/types@7.23.3)(@types/node@18.14.6)(ts-node@10.9.1): resolution: {integrity: sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -10756,7 +10750,7 @@ packages: chalk: 4.1.2 exit: 0.1.2 graceful-fs: 4.2.11(patch_hash=ivtm2a2cfr5pomcfbedhmr5v2q) - jest-config: 29.7.0(@babel/types@7.23.3)(@types/node@16.18.61)(ts-node@10.9.1) + jest-config: 29.7.0(@babel/types@7.23.3)(@types/node@18.14.6)(ts-node@10.9.1) jest-util: 29.7.0 prompts: 2.4.2 transitivePeerDependencies: @@ -13208,7 +13202,7 @@ packages: '@jest/expect': 29.7.0 '@jest/test-result': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 16.18.61 + '@types/node': 18.18.9 chalk: 4.1.2 co: 4.6.0 dedent: 1.5.1 @@ -13230,7 +13224,7 @@ packages: - supports-color dev: true - /jest-cli@29.7.0(@babel/types@7.23.3)(@types/node@16.18.61)(ts-node@10.9.1): + /jest-cli@29.7.0(@babel/types@7.23.3)(@types/node@18.14.6)(ts-node@10.9.1): resolution: {integrity: sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -13244,10 +13238,10 @@ packages: '@jest/test-result': 29.7.0 '@jest/types': 29.6.3 chalk: 4.1.2 - create-jest: 29.7.0(@babel/types@7.23.3)(@types/node@16.18.61)(ts-node@10.9.1) + create-jest: 29.7.0(@babel/types@7.23.3)(@types/node@18.14.6)(ts-node@10.9.1) exit: 0.1.2 import-local: 3.1.0 - jest-config: 29.7.0(@babel/types@7.23.3)(@types/node@16.18.61)(ts-node@10.9.1) + jest-config: 29.7.0(@babel/types@7.23.3)(@types/node@18.14.6)(ts-node@10.9.1) jest-util: 29.7.0 jest-validate: 29.7.0 yargs: 17.7.2 @@ -13259,7 +13253,7 @@ packages: - ts-node dev: true - /jest-config@29.7.0(@babel/types@7.23.3)(@types/node@16.18.61)(ts-node@10.9.1): + /jest-config@29.7.0(@babel/types@7.23.3)(@types/node@18.14.6)(ts-node@10.9.1): resolution: {integrity: sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: @@ -13274,7 +13268,7 @@ packages: '@babel/core': 7.23.3 '@jest/test-sequencer': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 16.18.61 + '@types/node': 18.14.6 babel-jest: 29.7.0(@babel/core@7.23.3)(@babel/types@7.23.3) chalk: 4.1.2 ci-info: 3.9.0 @@ -13294,7 +13288,49 @@ packages: pretty-format: 29.7.0 slash: 3.0.0 strip-json-comments: 3.1.1 - ts-node: 10.9.1(@types/node@16.18.61)(typescript@5.2.2) + ts-node: 10.9.1(@types/node@18.14.6)(typescript@5.2.2) + transitivePeerDependencies: + - '@babel/types' + - babel-plugin-macros + - supports-color + dev: true + + /jest-config@29.7.0(@babel/types@7.23.3)(@types/node@18.18.9)(ts-node@10.9.1): + resolution: {integrity: sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==} + 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.3 + '@jest/test-sequencer': 29.7.0 + '@jest/types': 29.6.3 + '@types/node': 18.18.9 + babel-jest: 29.7.0(@babel/core@7.23.3)(@babel/types@7.23.3) + chalk: 4.1.2 + ci-info: 3.9.0 + deepmerge: 4.3.1 + glob: 7.2.3 + graceful-fs: 4.2.11(patch_hash=ivtm2a2cfr5pomcfbedhmr5v2q) + jest-circus: 29.7.0(@babel/types@7.23.3) + jest-environment-node: 29.7.0 + jest-get-type: 29.6.3 + jest-regex-util: 29.6.3 + jest-resolve: 29.7.0 + jest-runner: 29.7.0(@babel/types@7.23.3) + jest-util: 29.7.0 + jest-validate: 29.7.0 + micromatch: 4.0.5 + parse-json: 5.2.0 + pretty-format: 29.7.0 + slash: 3.0.0 + strip-json-comments: 3.1.1 + ts-node: 10.9.1(@types/node@18.14.6)(typescript@5.2.2) transitivePeerDependencies: - '@babel/types' - babel-plugin-macros @@ -13336,7 +13372,7 @@ packages: '@jest/environment': 29.7.0 '@jest/fake-timers': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 16.18.61 + '@types/node': 18.18.9 jest-mock: 29.7.0 jest-util: 29.7.0 dev: true @@ -13352,7 +13388,7 @@ packages: dependencies: '@jest/types': 29.6.3 '@types/graceful-fs': 4.1.9 - '@types/node': 16.18.61 + '@types/node': 18.18.9 anymatch: 3.1.3 fb-watchman: 2.0.2 graceful-fs: 4.2.11(patch_hash=ivtm2a2cfr5pomcfbedhmr5v2q) @@ -13403,7 +13439,7 @@ packages: engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@jest/types': 29.6.3 - '@types/node': 16.18.61 + '@types/node': 18.18.9 jest-util: 29.7.0 dev: true @@ -13458,7 +13494,7 @@ packages: '@jest/test-result': 29.7.0 '@jest/transform': 29.7.0(@babel/types@7.23.3) '@jest/types': 29.6.3 - '@types/node': 16.18.61 + '@types/node': 18.18.9 chalk: 4.1.2 emittery: 0.13.1 graceful-fs: 4.2.11(patch_hash=ivtm2a2cfr5pomcfbedhmr5v2q) @@ -13490,7 +13526,7 @@ packages: '@jest/test-result': 29.7.0 '@jest/transform': 29.7.0(@babel/types@7.23.3) '@jest/types': 29.6.3 - '@types/node': 16.18.61 + '@types/node': 18.18.9 chalk: 4.1.2 cjs-module-lexer: 1.2.3 collect-v8-coverage: 1.0.2 @@ -13543,7 +13579,7 @@ packages: engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: '@jest/types': 29.6.3 - '@types/node': 16.18.61 + '@types/node': 18.18.9 chalk: 4.1.2 ci-info: 3.9.0 graceful-fs: 4.2.11(patch_hash=ivtm2a2cfr5pomcfbedhmr5v2q) @@ -13568,7 +13604,7 @@ packages: dependencies: '@jest/test-result': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 16.18.61 + '@types/node': 18.18.9 ansi-escapes: 4.3.2 chalk: 4.1.2 emittery: 0.13.1 @@ -13580,13 +13616,13 @@ packages: resolution: {integrity: sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@types/node': 16.18.61 + '@types/node': 18.18.9 jest-util: 29.7.0 merge-stream: 2.0.0 supports-color: 8.1.1 dev: true - /jest@29.7.0(@babel/types@7.23.3)(@types/node@16.18.61)(ts-node@10.9.1): + /jest@29.7.0(@babel/types@7.23.3)(@types/node@18.14.6)(ts-node@10.9.1): resolution: {integrity: sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -13599,7 +13635,7 @@ packages: '@jest/core': 29.7.0(@babel/types@7.23.3)(ts-node@10.9.1) '@jest/types': 29.6.3 import-local: 3.1.0 - jest-cli: 29.7.0(@babel/types@7.23.3)(@types/node@16.18.61)(ts-node@10.9.1) + jest-cli: 29.7.0(@babel/types@7.23.3)(@types/node@18.14.6)(ts-node@10.9.1) transitivePeerDependencies: - '@babel/types' - '@types/node' @@ -16826,7 +16862,7 @@ packages: '@babel/core': 7.23.3 bs-logger: 0.2.6 fast-json-stable-stringify: 2.1.0 - jest: 29.7.0(@babel/types@7.23.3)(@types/node@16.18.61)(ts-node@10.9.1) + jest: 29.7.0(@babel/types@7.23.3)(@types/node@18.14.6)(ts-node@10.9.1) jest-util: 29.7.0 json5: 2.2.3 lodash.memoize: 4.1.2 @@ -16836,7 +16872,7 @@ packages: yargs-parser: 21.1.1 dev: true - /ts-node@10.9.1(@types/node@16.18.61)(typescript@5.2.2): + /ts-node@10.9.1(@types/node@18.14.6)(typescript@5.2.2): resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} hasBin: true peerDependencies: @@ -16855,7 +16891,7 @@ packages: '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 16.18.61 + '@types/node': 18.14.6 acorn: 8.11.2 acorn-walk: 8.3.0 arg: 4.1.3 diff --git a/store/cafs/package.json b/store/cafs/package.json index 9b1f304c88e..eb886565f77 100644 --- a/store/cafs/package.json +++ b/store/cafs/package.json @@ -31,7 +31,7 @@ "@pnpm/store.cafs": "workspace:*", "@pnpm/types": "workspace:*", "@types/is-gzip": "2.0.0", - "@types/node": "^16.18.61", + "@types/node": "^18.14.6", "@types/ssri": "^7.1.4", "tempy": "^1.0.1" }, diff --git a/store/store-path/package.json b/store/store-path/package.json index e528dc3d2ed..6dd2155db52 100644 --- a/store/store-path/package.json +++ b/store/store-path/package.json @@ -40,7 +40,7 @@ "devDependencies": { "@pnpm/store-path": "workspace:*", "@types/is-windows": "^1.0.2", - "@types/node": "^16.18.61", + "@types/node": "^18.14.6", "@types/rimraf": "^3.0.2", "@types/touch": "^3.1.5", "is-windows": "^1.0.2", diff --git a/worker/src/index.ts b/worker/src/index.ts index eaac09255b6..f1cfe47bb2e 100644 --- a/worker/src/index.ts +++ b/worker/src/index.ts @@ -26,7 +26,6 @@ export async function finishWorkers () { } function createTarballWorkerPool (): WorkerPool { - // @ts-expect-error - `availableParallelism` is not exist until update @types/node to v18.14.5 const maxWorkers = Math.max(2, (os.availableParallelism?.() ?? os.cpus().length) - Math.abs(process.env.PNPM_WORKERS ? parseInt(process.env.PNPM_WORKERS) : 0)) - 1 const workerPool = new WorkerPool({ id: 'pnpm',