From 95f21e4f82a8202b7e1a4f576a234017ef5234dd Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Wed, 15 Jan 2025 12:35:21 +0100 Subject: [PATCH] chore: update TypeScript version (#15458) --- .../lru-cache-npm-10.4.3-30c10b861a.patch | 26 ++++ package.json | 3 + packages/jest-haste-map/src/types.ts | 1 + yarn.lock | 123 +++++++++--------- 4 files changed, 95 insertions(+), 58 deletions(-) create mode 100644 .yarn/patches/lru-cache-npm-10.4.3-30c10b861a.patch diff --git a/.yarn/patches/lru-cache-npm-10.4.3-30c10b861a.patch b/.yarn/patches/lru-cache-npm-10.4.3-30c10b861a.patch new file mode 100644 index 000000000000..4a34bc68edcf --- /dev/null +++ b/.yarn/patches/lru-cache-npm-10.4.3-30c10b861a.patch @@ -0,0 +1,26 @@ +diff --git a/dist/commonjs/index.d.ts b/dist/commonjs/index.d.ts +index f59de7602a528afde714e56dcf8c25ee496e39fb..804042b5ff381b8594307296de29d31d1b564c92 100644 +--- a/dist/commonjs/index.d.ts ++++ b/dist/commonjs/index.d.ts +@@ -837,7 +837,7 @@ export declare namespace LRUCache { + * + * Changing any of these will alter the defaults for subsequent method calls. + */ +-export declare class LRUCache implements Map { ++export declare class LRUCache { + #private; + /** + * {@link LRUCache.OptionsBase.ttl} +diff --git a/dist/esm/index.d.ts b/dist/esm/index.d.ts +index f59de7602a528afde714e56dcf8c25ee496e39fb..804042b5ff381b8594307296de29d31d1b564c92 100644 +--- a/dist/esm/index.d.ts ++++ b/dist/esm/index.d.ts +@@ -837,7 +837,7 @@ export declare namespace LRUCache { + * + * Changing any of these will alter the defaults for subsequent method calls. + */ +-export declare class LRUCache implements Map { ++export declare class LRUCache { + #private; + /** + * {@link LRUCache.OptionsBase.ttl} diff --git a/package.json b/package.json index c1155c3015da..dc2100f385a6 100644 --- a/package.json +++ b/package.json @@ -201,6 +201,9 @@ "babel-jest": "workspace:*", "jest": "workspace:*", "jest-environment-node": "workspace:*", + "lru-cache@^10.0.1": "patch:lru-cache@npm:10.4.3#./.yarn/patches/lru-cache-npm-10.4.3-30c10b861a.patch", + "lru-cache@^10.2.0": "patch:lru-cache@npm:10.4.3#./.yarn/patches/lru-cache-npm-10.4.3-30c10b861a.patch", + "lru-cache@^10.2.2": "patch:lru-cache@npm:10.4.3#./.yarn/patches/lru-cache-npm-10.4.3-30c10b861a.patch", "ts-node@^10.5.0": "patch:ts-node@npm:^10.5.0#./.yarn/patches/ts-node-npm-10.9.1-6c268be7f4.patch" }, "packageManager": "yarn@3.8.7" diff --git a/packages/jest-haste-map/src/types.ts b/packages/jest-haste-map/src/types.ts index 3498579771dc..dd2784f57394 100644 --- a/packages/jest-haste-map/src/types.ts +++ b/packages/jest-haste-map/src/types.ts @@ -51,6 +51,7 @@ export interface IHasteFS { globs: ReadonlyArray, root: string | null, ): Set; + getModuleName(file: string): string | null; } export interface IHasteMap { diff --git a/yarn.lock b/yarn.lock index 009673bd0953..29f8003e137b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3858,56 +3858,56 @@ __metadata: languageName: node linkType: hard -"@microsoft/api-extractor-model@npm:7.29.5": - version: 7.29.5 - resolution: "@microsoft/api-extractor-model@npm:7.29.5" +"@microsoft/api-extractor-model@npm:7.30.2": + version: 7.30.2 + resolution: "@microsoft/api-extractor-model@npm:7.30.2" dependencies: - "@microsoft/tsdoc": ~0.15.0 - "@microsoft/tsdoc-config": ~0.17.0 - "@rushstack/node-core-library": 5.6.0 - checksum: 3ec6b4b5f2503cffe6f8ab5b16f3911c04563d7703f205e3c7703413950f4c0ab5629636885f79cf32c3a2b788cf1c5f94309cd0bec969f2c3a1a5716d4efc5b + "@microsoft/tsdoc": ~0.15.1 + "@microsoft/tsdoc-config": ~0.17.1 + "@rushstack/node-core-library": 5.10.2 + checksum: 22b41ef5c4e7690271659b70a6da25c63a89ac832a77e049eda5da2d55e9cb3f4a84a4c934880a5bff41ae4ec506ebaca2d29f8c0c083c5314d41089afa6eab6 languageName: node linkType: hard "@microsoft/api-extractor@npm:^7.35.0": - version: 7.47.6 - resolution: "@microsoft/api-extractor@npm:7.47.6" + version: 7.49.1 + resolution: "@microsoft/api-extractor@npm:7.49.1" dependencies: - "@microsoft/api-extractor-model": 7.29.5 - "@microsoft/tsdoc": ~0.15.0 - "@microsoft/tsdoc-config": ~0.17.0 - "@rushstack/node-core-library": 5.6.0 + "@microsoft/api-extractor-model": 7.30.2 + "@microsoft/tsdoc": ~0.15.1 + "@microsoft/tsdoc-config": ~0.17.1 + "@rushstack/node-core-library": 5.10.2 "@rushstack/rig-package": 0.5.3 - "@rushstack/terminal": 0.13.4 - "@rushstack/ts-command-line": 4.22.5 + "@rushstack/terminal": 0.14.5 + "@rushstack/ts-command-line": 4.23.3 lodash: ~4.17.15 minimatch: ~3.0.3 resolve: ~1.22.1 semver: ~7.5.4 source-map: ~0.6.1 - typescript: 5.4.2 + typescript: 5.7.2 bin: api-extractor: bin/api-extractor - checksum: 1fb2054e8eb6729946cd73679c05402dde28a32dc72ae9f9d682f3486828ae646b734839f1165f76b260b77a8e01e150004301d47591ecfd7ec00cf9a1e2d8bb + checksum: 79816db4768f6479ff7c162a424b29a24be2a2a534d072238ade684e3e28d6cd049880e1a2b5468046584695dadb2812129e25dd120da084416efe6e6fb35a46 languageName: node linkType: hard -"@microsoft/tsdoc-config@npm:~0.17.0": - version: 0.17.0 - resolution: "@microsoft/tsdoc-config@npm:0.17.0" +"@microsoft/tsdoc-config@npm:~0.17.1": + version: 0.17.1 + resolution: "@microsoft/tsdoc-config@npm:0.17.1" dependencies: - "@microsoft/tsdoc": 0.15.0 + "@microsoft/tsdoc": 0.15.1 ajv: ~8.12.0 jju: ~1.4.0 resolve: ~1.22.2 - checksum: dd2de8247d0fc29608da83edf4ab73a21370f6ce10d089853303e91b135fdb1436ccec3bd1024f235dd3180dfe5dae7342989eadd03af55cf06f0e974e5fc213 + checksum: 19d3301af62c62eac5b3c244564070b18c529c0985d299b9e93d04cc75d2c1342458063d494c941f814c7154463ee364acdc76ea552db92cbbb0a3e28bbca87c languageName: node linkType: hard -"@microsoft/tsdoc@npm:0.15.0, @microsoft/tsdoc@npm:~0.15.0": - version: 0.15.0 - resolution: "@microsoft/tsdoc@npm:0.15.0" - checksum: 3f693cff07b220b68563e3f86e9f94a9c8d0791a7446f76149c7d62ae5ed5cb4578bb48b9b5f9baa3dd9a9f77be81903c74654a41e0ca4ecf78936654952a8d4 +"@microsoft/tsdoc@npm:0.15.1, @microsoft/tsdoc@npm:~0.15.1": + version: 0.15.1 + resolution: "@microsoft/tsdoc@npm:0.15.1" + checksum: 526f125c48b4e5511571ee552ff38691405131c0b72df85f091b1aa47571315e7ba5258cd9f48c41b8ef80f2c1f489e9b09c8b1fcc1599b7f8a35f917e03ec65 languageName: node linkType: hard @@ -4763,9 +4763,9 @@ __metadata: languageName: node linkType: hard -"@rushstack/node-core-library@npm:5.6.0": - version: 5.6.0 - resolution: "@rushstack/node-core-library@npm:5.6.0" +"@rushstack/node-core-library@npm:5.10.2": + version: 5.10.2 + resolution: "@rushstack/node-core-library@npm:5.10.2" dependencies: ajv: ~8.13.0 ajv-draft-04: ~1.0.0 @@ -4780,7 +4780,7 @@ __metadata: peerDependenciesMeta: "@types/node": optional: true - checksum: 1970e7ec59d269e84a41d61a4a36e9c05f4a6683f97aefd138af1cadabeac03f7be83112545fd5164b9ee7bf0ecd80e63c25782e37d2ebd2e6c4d01a4936169b + checksum: 68703cdc55f3b09146fb44c9c86e082829b3e543c7657a9de8b02cab48e83f395ebab6e2f320fe7e92ee477ae846f5ee2b4114ec53e4fee0ee1437c2c13f36aa languageName: node linkType: hard @@ -4794,30 +4794,30 @@ __metadata: languageName: node linkType: hard -"@rushstack/terminal@npm:0.13.4": - version: 0.13.4 - resolution: "@rushstack/terminal@npm:0.13.4" +"@rushstack/terminal@npm:0.14.5": + version: 0.14.5 + resolution: "@rushstack/terminal@npm:0.14.5" dependencies: - "@rushstack/node-core-library": 5.6.0 + "@rushstack/node-core-library": 5.10.2 supports-color: ~8.1.1 peerDependencies: "@types/node": "*" peerDependenciesMeta: "@types/node": optional: true - checksum: 23008b08e911e3dfd502dba5c9346674e662daaf7a12e17b32f7ff3b79941935ae2251f0abb8e6c3acfa49b387be8a80dd86bb5b0b99d54bdd2cdac2bfd77890 + checksum: a622059ed01747d3bc014d5bc8be0ff7946d0b7ccadd66cb91c6ccc76dfef8593b35891b20102247e317ca6591221dea804fc3693bb2f47c3ce258fda1ad5665 languageName: node linkType: hard -"@rushstack/ts-command-line@npm:4.22.5": - version: 4.22.5 - resolution: "@rushstack/ts-command-line@npm:4.22.5" +"@rushstack/ts-command-line@npm:4.23.3": + version: 4.23.3 + resolution: "@rushstack/ts-command-line@npm:4.23.3" dependencies: - "@rushstack/terminal": 0.13.4 + "@rushstack/terminal": 0.14.5 "@types/argparse": 1.0.38 argparse: ~1.0.9 string-argv: ~0.3.1 - checksum: d57d6a614ce79b2a65eeff1aadfc09a2b00871139ea7cdb7dddaae7951e6bae17f25d4933f09bea1f66537e806bdb4014f3cabed4ae97164e26efd53cf78feac + checksum: f0da03366dcc86e51e2e981a54108b047ffa8f7ddedcc873f33369d5cc8202b2cb357cf4ecb5eea5d36339dd59544a29084a88399ae43a155ae764bdb2540cd5 languageName: node linkType: hard @@ -5682,9 +5682,9 @@ __metadata: linkType: hard "@types/node@npm:~16.18.0": - version: 16.18.105 - resolution: "@types/node@npm:16.18.105" - checksum: d4ee65479dceea89b660fe50c2508060c17c61f4128d2227c2852b04ca6b5587a200ae55b3eb0d0306ba256619d3ea9d6eb54e250086be8e93d8037f17b0a772 + version: 16.18.123 + resolution: "@types/node@npm:16.18.123" + checksum: e928451aae16229c661ee0a5680d8feb87667d2d4bb358cff24f4b7324b89187602568ac88112608c7ea44d46878acfa0589d343a1d94625b306f303339adee1 languageName: node linkType: hard @@ -14481,7 +14481,7 @@ __metadata: languageName: node linkType: hard -"lru-cache@npm:^10.0.1, lru-cache@npm:^10.2.0, lru-cache@npm:^10.2.2": +"lru-cache@npm:10.4.3": version: 10.4.3 resolution: "lru-cache@npm:10.4.3" checksum: 6476138d2125387a6d20f100608c2583d415a4f64a0fecf30c9e2dda976614f09cad4baa0842447bd37dd459a7bd27f57d9d8f8ce558805abd487c583f3d774a @@ -14506,6 +14506,13 @@ __metadata: languageName: node linkType: hard +"lru-cache@patch:lru-cache@npm:10.4.3#./.yarn/patches/lru-cache-npm-10.4.3-30c10b861a.patch::locator=%40jest%2Fmonorepo%40workspace%3A.": + version: 10.4.3 + resolution: "lru-cache@patch:lru-cache@npm%3A10.4.3#./.yarn/patches/lru-cache-npm-10.4.3-30c10b861a.patch::version=10.4.3&hash=e5e8aa&locator=%40jest%2Fmonorepo%40workspace%3A." + checksum: e233132d19d30ecb90091ab0f30dd6f97b933267c67356a5127975678e550b5ecc6418659bad88dc011f311065ae19bef36117328d5f8d9136d8ec4d61e36c02 + languageName: node + linkType: hard + "lz-string@npm:^1.5.0": version: 1.5.0 resolution: "lz-string@npm:1.5.0" @@ -20754,43 +20761,43 @@ __metadata: languageName: node linkType: hard -"typescript@npm:5.4.2": - version: 5.4.2 - resolution: "typescript@npm:5.4.2" +"typescript@npm:5.7.2": + version: 5.7.2 + resolution: "typescript@npm:5.7.2" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 96d80fde25a09bcb04d399082fb27a808a9e17c2111e43849d2aafbd642d835e4f4ef0de09b0ba795ec2a700be6c4c2c3f62bf4660c05404c948727b5bbfb32a + checksum: b55300c4cefee8ee380d14fa9359ccb41ff8b54c719f6bc49b424899d662a5ce62ece390ce769568c7f4d14af844085255e63788740084444eb12ef423b13433 languageName: node linkType: hard "typescript@npm:^5.0.4": - version: 5.5.4 - resolution: "typescript@npm:5.5.4" + version: 5.7.3 + resolution: "typescript@npm:5.7.3" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: b309040f3a1cd91c68a5a58af6b9fdd4e849b8c42d837b2c2e73f9a4f96a98c4f1ed398a9aab576ee0a4748f5690cf594e6b99dbe61de7839da748c41e6d6ca8 + checksum: 6c38b1e989918e576f0307e6ee013522ea480dfce5f3ca85c9b2d8adb1edeffd37f4f30cd68de0c38a44563d12ba922bdb7e36aa2dac9c51de5d561e6e9a2e9c languageName: node linkType: hard -"typescript@patch:typescript@5.4.2#~builtin": - version: 5.4.2 - resolution: "typescript@patch:typescript@npm%3A5.4.2#~builtin::version=5.4.2&hash=5adc0c" +"typescript@patch:typescript@5.7.2#~builtin": + version: 5.7.2 + resolution: "typescript@patch:typescript@npm%3A5.7.2#~builtin::version=5.7.2&hash=5786d5" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 797ac213c03a19749181c745647b4cab03d13bf4b6b738b05a3426f46c6b540f908989e839d9b0c89d7a4ee2bdb50493b4d4898d4ef1c897c3e9d0b082e78a67 + checksum: e9fa1fd1f4203d399a5264e8612f9a64d9daf4ea7c926f346e11f6c8137acc6e29386c171c6b4085950ce714243be1627f60e76e5bd135124e226ce55309380f languageName: node linkType: hard "typescript@patch:typescript@^5.0.4#~builtin": - version: 5.5.4 - resolution: "typescript@patch:typescript@npm%3A5.5.4#~builtin::version=5.5.4&hash=379a07" + version: 5.7.3 + resolution: "typescript@patch:typescript@npm%3A5.7.3#~builtin::version=5.7.3&hash=5786d5" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: e14c87e8bd51f9ac741051a2c3bde75b2a3ab17dee2c50239f7e1a0868673f3b7d4d87684df41a59a8f57c6ddc5d06d65d120764d992441af5de07b98cf9c67b + checksum: 081eb086b0247a54cd8d61e34c10c3325037b0fdf00e135738d923e4e79f492e128be31ed03980039874ef1aa2e6fded8067f7be0cd92790efd2576e1d70e723 languageName: node linkType: hard