Skip to content

Commit

Permalink
removed unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed May 9, 2024
1 parent 0ea83fa commit 02a1b49
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions core/utils/lume_version.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { cyan, green, red } from "../../deps/colors.ts";

/** Return the latest stable version from the deno.land/x repository */
export async function getLatestVersion(): Promise<string> {
const response = await fetch("https://cdn.deno.land/lume/meta/versions.json");
Expand All @@ -23,19 +21,3 @@ export function getCurrentVersion(
const { pathname } = url;
return pathname.match(/@([^/]+)/)?.[1] ?? `local (${pathname})`;
}

/** Check the compatibility with the current Deno version */
export function checkDenoSupport(): void {
const minimum = "1.38.0";
const current = Deno.version.deno;

if (current < minimum) {
console.log("----------------------------------------");
console.error(red("Your Deno version is not compatible with Lume"));
console.log(`Lume needs Deno ${green(minimum)} or greater`);
console.log(`Your current version is ${red(current)}`);
console.log(`Run ${cyan("deno upgrade")} and try again`);
console.log("----------------------------------------");
Deno.exit(1);
}
}

0 comments on commit 02a1b49

Please sign in to comment.