From a3986b641c892c09b514aab76c04324e75e18f9d Mon Sep 17 00:00:00 2001 From: David Sherret Date: Tue, 4 Jul 2023 11:27:04 -0400 Subject: [PATCH] fix: bump default @types/node version range to 18.16.19 (#19706) --- cli/npm/resolution.rs | 2 +- cli/tests/unit_node/_fs/_fs_watch_test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/npm/resolution.rs b/cli/npm/resolution.rs index 95d9fd4c9d..bfba1d67de 100644 --- a/cli/npm/resolution.rs +++ b/cli/npm/resolution.rs @@ -353,7 +353,7 @@ fn get_npm_pending_resolver( // WARNING: When bumping this version, check if anything needs to be // updated in the `setNodeOnlyGlobalNames` call in 99_main_compiler.js types_node_version_req: Some( - VersionReq::parse_from_npm("18.0.0 - 18.11.18").unwrap(), + VersionReq::parse_from_npm("18.0.0 - 18.16.19").unwrap(), ), }, ) diff --git a/cli/tests/unit_node/_fs/_fs_watch_test.ts b/cli/tests/unit_node/_fs/_fs_watch_test.ts index 2316b2db3d..26b0da8b97 100644 --- a/cli/tests/unit_node/_fs/_fs_watch_test.ts +++ b/cli/tests/unit_node/_fs/_fs_watch_test.ts @@ -12,7 +12,7 @@ Deno.test({ name: "watching a file", async fn() { const file = Deno.makeTempFileSync(); - const result: Array<[string, string]> = []; + const result: Array<[string, string | null]> = []; const watcher = watch( file, (eventType, filename) => result.push([eventType, filename]),