fix: update dependency recommendations (#2320)

closes https://github.com/denoland/fresh/issues/2319

The issue is because `imports.ts` wasn't changed before releasing. I
thought I would go through and bump some other versions as well. This
handles everything except the esbuild stuff and `tests/`.
This commit is contained in:
Reed von Redwitz
2024-02-19 10:33:04 +01:00
committed by GitHub
parent bf0e33eda1
commit 82c75f85e9
69 changed files with 198 additions and 186 deletions
+14 -2
View File
@@ -1,4 +1,11 @@
import { gte, join, relative, semverParse, walk, WalkEntry } from "./deps.ts";
import {
greaterOrEqual,
join,
relative,
semverParse,
walk,
WalkEntry,
} from "./deps.ts";
export { generate, type Manifest } from "./manifest.ts";
import { generate, type Manifest } from "./manifest.ts";
import { error } from "./error.ts";
@@ -7,7 +14,12 @@ const TEST_FILE_PATTERN = /[._]test\.(?:[tj]sx?|[mc][tj]s)$/;
export function ensureMinDenoVersion() {
// Check that the minimum supported Deno version is being used.
if (!gte(semverParse(Deno.version.deno), semverParse(MIN_DENO_VERSION))) {
if (
!greaterOrEqual(
semverParse(Deno.version.deno),
semverParse(MIN_DENO_VERSION),
)
) {
let message =
`Deno version ${MIN_DENO_VERSION} or higher is required. Please update Deno.\n\n`;