From e60ab7ce043ef84505277024765e0a1880ff7caf Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Tue, 27 Jun 2023 12:27:38 +0200 Subject: [PATCH] chore: upgrade to TS 5.1 (#14276) --- .../src/watchers/FSEventsWatcher.ts | 2 +- yarn.lock | 72 ++++++++++++------- 2 files changed, 47 insertions(+), 27 deletions(-) diff --git a/packages/jest-haste-map/src/watchers/FSEventsWatcher.ts b/packages/jest-haste-map/src/watchers/FSEventsWatcher.ts index d151e7c5dd49..ec529bf87baf 100644 --- a/packages/jest-haste-map/src/watchers/FSEventsWatcher.ts +++ b/packages/jest-haste-map/src/watchers/FSEventsWatcher.ts @@ -132,7 +132,7 @@ export class FSEventsWatcher extends EventEmitter { await this.fsEventsWatchStopper(); this.removeAllListeners(); if (typeof callback === 'function') { - process.nextTick(callback.bind(null, null, true)); + process.nextTick(() => callback()); } } diff --git a/yarn.lock b/yarn.lock index 1e6961d14961..1e0c431426fd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3388,27 +3388,27 @@ __metadata: languageName: node linkType: hard -"@microsoft/api-extractor-model@npm:7.27.0": - version: 7.27.0 - resolution: "@microsoft/api-extractor-model@npm:7.27.0" +"@microsoft/api-extractor-model@npm:7.27.3": + version: 7.27.3 + resolution: "@microsoft/api-extractor-model@npm:7.27.3" dependencies: "@microsoft/tsdoc": 0.14.2 "@microsoft/tsdoc-config": ~0.16.1 - "@rushstack/node-core-library": 3.59.1 - checksum: df9818e507fc156acf60dc4bb8759f42506b166b0cf8963a585a38f8f5822169084725472c9196773f0fb77bf5071bfcfacc6d7c698b7ec4a3decdf093375df3 + "@rushstack/node-core-library": 3.59.4 + checksum: 3b2820bc2e7788713037a78821deddce89c9954b404b89b08d903d54f4428ab38213ad9369dd34a000ecc1bbc937d4924dabb284be3ac6b03bd68893a682eb45 languageName: node linkType: hard "@microsoft/api-extractor@npm:^7.35.0": - version: 7.35.0 - resolution: "@microsoft/api-extractor@npm:7.35.0" + version: 7.36.0 + resolution: "@microsoft/api-extractor@npm:7.36.0" dependencies: - "@microsoft/api-extractor-model": 7.27.0 + "@microsoft/api-extractor-model": 7.27.3 "@microsoft/tsdoc": 0.14.2 "@microsoft/tsdoc-config": ~0.16.1 - "@rushstack/node-core-library": 3.59.1 - "@rushstack/rig-package": 0.3.19 - "@rushstack/ts-command-line": 4.13.3 + "@rushstack/node-core-library": 3.59.4 + "@rushstack/rig-package": 0.4.0 + "@rushstack/ts-command-line": 4.15.1 colors: ~1.2.1 lodash: ~4.17.15 resolve: ~1.22.1 @@ -3417,7 +3417,7 @@ __metadata: typescript: ~5.0.4 bin: api-extractor: bin/api-extractor - checksum: 4ba907a23404a45dfd9c4b78864f6b956748cb0bb03a29cc113b0355791358972f71912fdab35d7dadca7ec6e00f42623a2c9504aefc149ce3f2de66913d21af + checksum: c1c990635ce0cc431e5dcc7758229657ad9b04738b28fafb8b1ed7323e5636b1c705f8a4340623f5a2557af87514e5a74b9bbea920b750bc23ec198a039c7b07 languageName: node linkType: hard @@ -4078,9 +4078,9 @@ __metadata: languageName: node linkType: hard -"@rushstack/node-core-library@npm:3.59.1": - version: 3.59.1 - resolution: "@rushstack/node-core-library@npm:3.59.1" +"@rushstack/node-core-library@npm:3.59.4": + version: 3.59.4 + resolution: "@rushstack/node-core-library@npm:3.59.4" dependencies: colors: ~1.2.1 fs-extra: ~7.0.1 @@ -4094,29 +4094,29 @@ __metadata: peerDependenciesMeta: "@types/node": optional: true - checksum: 2011c4ee736379f977d1b610e404f4a5771159c2b73e29d27b0b028c0141a100795d7263cae19621e5e311c516e9392d0e1aba0153c06e77929dba2776cce4c8 + checksum: 977b19fefb69e4e1c46b7a5f0ba1c339ded54caa2082804e9db8bccfda70d66bb94afa6b7b57cbeda008c873866391af41f8fe35a4476f921fe0d004c56bf317 languageName: node linkType: hard -"@rushstack/rig-package@npm:0.3.19": - version: 0.3.19 - resolution: "@rushstack/rig-package@npm:0.3.19" +"@rushstack/rig-package@npm:0.4.0": + version: 0.4.0 + resolution: "@rushstack/rig-package@npm:0.4.0" dependencies: resolve: ~1.22.1 strip-json-comments: ~3.1.1 - checksum: f7af6a917325d09795b5e1207f5c5ebc92ce0a861252698064f16fa8815b6799cfb7df2b9adad08f07b9a8617211ce522f524edb55a638d30b6b4d4a2135e2d5 + checksum: 376ac9996ee758bf47ab21bd078d71b2180b9342dd8cfbab8bf25e38e706b20bcf933a8548b9a0fd102afbb997deeca75a719da987a96a9d3365f4669d230c53 languageName: node linkType: hard -"@rushstack/ts-command-line@npm:4.13.3": - version: 4.13.3 - resolution: "@rushstack/ts-command-line@npm:4.13.3" +"@rushstack/ts-command-line@npm:4.15.1": + version: 4.15.1 + resolution: "@rushstack/ts-command-line@npm:4.15.1" dependencies: "@types/argparse": 1.0.38 argparse: ~1.0.9 colors: ~1.2.1 string-argv: ~0.3.1 - checksum: bef8088712361d1051ca21027cded5358cdf73440d9ea7a7e517d868524a3e483cdac72f0fe0aa5e2ffd7a1feeddb7cff224b06f91e66c0846fdf3d126ec9248 + checksum: 2ea3df8c1b282c42db4ea12c3c1b727dcfa23adb60b595ff662e7d7d965b35a8139db799f1016ccb1ee742ddec833cba97a112c59822b6d1e1f737dfd559730e languageName: node linkType: hard @@ -20280,7 +20280,17 @@ __metadata: languageName: node linkType: hard -"typescript@npm:^5.0.4, typescript@npm:~5.0.4": +"typescript@npm:^5.0.4": + version: 5.1.3 + resolution: "typescript@npm:5.1.3" + bin: + tsc: bin/tsc + tsserver: bin/tsserver + checksum: d9d51862d98efa46534f2800a1071a613751b1585dc78884807d0c179bcd93d6e9d4012a508e276742f5f33c480adefc52ffcafaf9e0e00ab641a14cde9a31c7 + languageName: node + linkType: hard + +"typescript@npm:~5.0.4": version: 5.0.4 resolution: "typescript@npm:5.0.4" bin: @@ -20290,7 +20300,17 @@ __metadata: languageName: node linkType: hard -"typescript@patch:typescript@^5.0.4#~builtin, typescript@patch:typescript@~5.0.4#~builtin": +"typescript@patch:typescript@^5.0.4#~builtin": + version: 5.1.3 + resolution: "typescript@patch:typescript@npm%3A5.1.3#~builtin::version=5.1.3&hash=5da071" + bin: + tsc: bin/tsc + tsserver: bin/tsserver + checksum: 6f0a9dca6bf4ce9dcaf4e282aade55ef4c56ecb5fb98d0a4a5c0113398815aea66d871b5611e83353e5953a19ed9ef103cf5a76ac0f276d550d1e7cd5344f61e + languageName: node + linkType: hard + +"typescript@patch:typescript@~5.0.4#~builtin": version: 5.0.4 resolution: "typescript@patch:typescript@npm%3A5.0.4#~builtin::version=5.0.4&hash=b5f058" bin: