From 28c677f5df3d8f072e45566ed931347ae6325d53 Mon Sep 17 00:00:00 2001 From: Leo Kettmeir Date: Fri, 3 Jul 2026 01:49:05 +0200 Subject: [PATCH] chore: use versions.json from dl.deno.land (#130) --- .github/workflows/test.yml | 2 +- dist/main.mjs | 4 ++-- src/version.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f3162b4..3eaaa50 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,7 +21,7 @@ jobs: - "1.33.1" - "canary" - "~1.32" - - "b290fd01f3f5d32f9d010fc719ced0240759c049" + - "4e8b2f46ab638ae6fa20cf53a9a4cd3b5f4550bf" - "rc" - "lts" diff --git a/dist/main.mjs b/dist/main.mjs index d4dc23d..b543ae5 100644 --- a/dist/main.mjs +++ b/dist/main.mjs @@ -19385,8 +19385,8 @@ async function resolveRelease(range) { kind: "stable" }; } else { - const res = await fetchWithRetries("https://deno.com/versions.json"); - if (res.status !== 200) throw new Error("Failed to fetch stable version info from deno.com/versions.json. Please try again later."); + const res = await fetchWithRetries("https://dl.deno.land/versions.json"); + if (res.status !== 200) throw new Error("Failed to fetch stable version info from dl.deno.land/versions.json. Please try again later."); const versionJson = await res.json(); if (typeof versionJson !== "object" || versionJson === null) throw new Error("Fetched stable version info is invalid."); if (!("cli" in versionJson)) throw new Error("Fetched stable version info is invalid."); diff --git a/src/version.ts b/src/version.ts index 226b168..0e4a9fc 100644 --- a/src/version.ts +++ b/src/version.ts @@ -159,10 +159,10 @@ async function resolveRelease(range: string): Promise { } return { version, kind: "stable" }; } else { - const res = await fetchWithRetries("https://deno.com/versions.json"); + const res = await fetchWithRetries("https://dl.deno.land/versions.json"); if (res.status !== 200) { throw new Error( - "Failed to fetch stable version info from deno.com/versions.json. Please try again later.", + "Failed to fetch stable version info from dl.deno.land/versions.json. Please try again later.", ); } const versionJson = await res.json();