diff --git a/internal/_is_deno_2.ts b/internal/_is_deno_2.ts index bb43513da..e392e990f 100644 --- a/internal/_is_deno_2.ts +++ b/internal/_is_deno_2.ts @@ -1,4 +1,3 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. // TODO(iuioiua): Remove this file when Deno 2 is released. -// deno-lint-ignore no-explicit-any -export const IS_DENO_2 = (globalThis as any).window === undefined; +export const IS_DENO_2 = Deno.version.deno.startsWith("2.");