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 -14
View File
@@ -7,26 +7,26 @@ export {
join,
relative,
resolve,
SEP,
SEPARATOR,
toFileUrl,
} from "https://deno.land/std@0.211.0/path/mod.ts";
export { normalize } from "https://deno.land/std@0.211.0/path/posix/mod.ts";
export { DAY, WEEK } from "https://deno.land/std@0.211.0/datetime/constants.ts";
export * as colors from "https://deno.land/std@0.211.0/fmt/colors.ts";
} from "https://deno.land/std@0.216.0/path/mod.ts";
export { normalize } from "https://deno.land/std@0.216.0/path/posix/mod.ts";
export { DAY, WEEK } from "https://deno.land/std@0.216.0/datetime/constants.ts";
export * as colors from "https://deno.land/std@0.216.0/fmt/colors.ts";
export {
walk,
type WalkEntry,
WalkError,
} from "https://deno.land/std@0.211.0/fs/walk.ts";
export { parse } from "https://deno.land/std@0.211.0/flags/mod.ts";
} from "https://deno.land/std@0.216.0/fs/walk.ts";
export { parse } from "https://deno.land/std@0.216.0/flags/mod.ts";
export {
gte,
lt,
greaterOrEqual,
lessThan,
parse as semverParse,
} from "https://deno.land/std@0.211.0/semver/mod.ts";
export { emptyDir, existsSync } from "https://deno.land/std@0.211.0/fs/mod.ts";
export * as JSONC from "https://deno.land/std@0.211.0/jsonc/mod.ts";
export { assertEquals } from "https://deno.land/std@0.211.0/assert/mod.ts";
} from "https://deno.land/std@0.216.0/semver/mod.ts";
export { emptyDir, existsSync } from "https://deno.land/std@0.216.0/fs/mod.ts";
export * as JSONC from "https://deno.land/std@0.216.0/jsonc/mod.ts";
export { assertEquals } from "https://deno.land/std@0.216.0/assert/mod.ts";
// ts-morph
export { Node, Project } from "https://deno.land/x/ts_morph@20.0.0/mod.ts";
export { Node, Project } from "https://deno.land/x/ts_morph@21.0.1/mod.ts";
+4 -4
View File
@@ -1,10 +1,10 @@
export const RECOMMENDED_PREACT_VERSION = "10.19.2";
export const RECOMMENDED_PREACT_SIGNALS_VERSION = "1.2.1";
export const RECOMMENDED_PREACT_SIGNALS_CORE_VERSION = "1.5.0";
export const RECOMMENDED_PREACT_VERSION = "10.19.5";
export const RECOMMENDED_PREACT_SIGNALS_VERSION = "1.2.2";
export const RECOMMENDED_PREACT_SIGNALS_CORE_VERSION = "1.5.1";
export const RECOMMENDED_TWIND_CORE_VERSION = "1.1.3";
export const RECOMMENDED_TWIND_PRESET_AUTOPREFIX_VERSION = "1.0.7";
export const RECOMMENDED_TWIND_PRESET_TAILWIND_VERSION = "1.1.4";
export const RECOMMENDED_STD_VERSION = "0.211.0";
export const RECOMMENDED_STD_VERSION = "0.216.0";
export const RECOMMENDED_TAILIWIND_VERSION = "3.4.1";
export function freshImports(imports: Record<string, string>) {
+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`;
+2 -2
View File
@@ -1,4 +1,4 @@
import { colors, join, lt, semverParse } from "./deps.ts";
import { colors, join, lessThan, semverParse } from "./deps.ts";
export interface CheckFile {
last_checked: string;
@@ -118,7 +118,7 @@ export async function updateCheck(
if (
(!checkFile.last_shown ||
Date.now() >= new Date(checkFile.last_shown).getTime() + interval) &&
lt(currentVersion, latestVersion)
lessThan(currentVersion, latestVersion)
) {
checkFile.last_shown = new Date().toISOString();