chore: bump deps (#2000)

This commit is contained in:
Reed von Redwitz
2023-11-03 16:52:54 +01:00
committed by GitHub
parent d06f88cd24
commit da90d92ebd
36 changed files with 104 additions and 88 deletions
+3 -3
View File
@@ -4,7 +4,7 @@ export {
join,
relative,
toFileUrl,
} from "https://deno.land/std@0.193.0/path/mod.ts";
export { escape as regexpEscape } from "https://deno.land/std@0.193.0/regexp/escape.ts";
} from "https://deno.land/std@0.205.0/path/mod.ts";
export { escape as regexpEscape } from "https://deno.land/std@0.205.0/regexp/escape.ts";
export { denoPlugins } from "https://deno.land/x/esbuild_deno_loader@0.8.2/mod.ts";
export { assertEquals } from "https://deno.land/std@0.205.0/assert/mod.ts";
+1 -1
View File
@@ -1,4 +1,4 @@
import { assertEquals } from "$std/testing/asserts.ts";
import { assertEquals } from "./deps.ts";
import { fromFileUrl, join, toFileUrl } from "../server/deps.ts";
import { EsbuildBuilder } from "./esbuild.ts";
+2 -2
View File
@@ -1,6 +1,6 @@
import { getServerContext } from "../server/context.ts";
import { join } from "../server/deps.ts";
import { colors, fs } from "./deps.ts";
import { colors, emptyDir } from "./deps.ts";
import { BuildSnapshotJson } from "../build/mod.ts";
import { BUILD_ID } from "../server/build_id.ts";
import { InternalFreshState } from "../server/types.ts";
@@ -12,7 +12,7 @@ export async function build(
const plugins = state.config.plugins;
// Ensure that build dir is empty
await fs.emptyDir(outDir);
await emptyDir(outDir);
await Promise.all(plugins.map((plugin) => plugin.buildStart?.(state.config)));
+14 -12
View File
@@ -5,25 +5,27 @@ export {
extname,
fromFileUrl,
join,
posix,
relative,
resolve,
SEP,
toFileUrl,
} from "https://deno.land/std@0.193.0/path/mod.ts";
export { DAY, WEEK } from "https://deno.land/std@0.193.0/datetime/constants.ts";
export * as colors from "https://deno.land/std@0.193.0/fmt/colors.ts";
} from "https://deno.land/std@0.205.0/path/mod.ts";
export { normalize } from "https://deno.land/std@0.205.0/path/posix/mod.ts";
export { DAY, WEEK } from "https://deno.land/std@0.205.0/datetime/constants.ts";
export * as colors from "https://deno.land/std@0.205.0/fmt/colors.ts";
export {
walk,
type WalkEntry,
WalkError,
} from "https://deno.land/std@0.193.0/fs/walk.ts";
export { parse } from "https://deno.land/std@0.193.0/flags/mod.ts";
export { gte } from "https://deno.land/std@0.193.0/semver/mod.ts";
export { existsSync } from "https://deno.land/std@0.193.0/fs/mod.ts";
export * as semver from "https://deno.land/std@0.195.0/semver/mod.ts";
export * as JSONC from "https://deno.land/std@0.195.0/jsonc/mod.ts";
export * as fs from "https://deno.land/std@0.195.0/fs/mod.ts";
} from "https://deno.land/std@0.205.0/fs/walk.ts";
export { parse } from "https://deno.land/std@0.205.0/flags/mod.ts";
export {
gte,
lt,
parse as semverParse,
} from "https://deno.land/std@0.205.0/semver/mod.ts";
export { emptyDir, existsSync } from "https://deno.land/std@0.205.0/fs/mod.ts";
export * as JSONC from "https://deno.land/std@0.205.0/jsonc/mod.ts";
// ts-morph
export { Node, Project } from "https://deno.land/x/ts_morph@17.0.1/mod.ts";
export { Node, Project } from "https://deno.land/x/ts_morph@20.0.0/mod.ts";
+1 -1
View File
@@ -2,7 +2,7 @@ export const RECOMMENDED_PREACT_VERSION = "10.18.1";
export const RECOMMENDED_PREACT_SIGNALS_VERSION = "1.2.1";
export const RECOMMENDED_PREACT_SIGNALS_CORE_VERSION = "1.5.0";
export const RECOMMENDED_TWIND_VERSION = "0.16.19";
export const RECOMMENDED_STD_VERSION = "0.193.0";
export const RECOMMENDED_STD_VERSION = "0.205.0";
export function freshImports(imports: Record<string, string>) {
imports["$fresh/"] = new URL("../../", import.meta.url).href;
+11 -3
View File
@@ -1,11 +1,19 @@
import { gte, join, posix, relative, walk, WalkEntry } from "./deps.ts";
import {
gte,
join,
normalize,
relative,
semverParse,
walk,
WalkEntry,
} from "./deps.ts";
import { error } from "./error.ts";
const MIN_DENO_VERSION = "1.31.0";
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(Deno.version.deno, MIN_DENO_VERSION)) {
if (!gte(semverParse(Deno.version.deno), semverParse(MIN_DENO_VERSION))) {
let message =
`Deno version ${MIN_DENO_VERSION} or higher is required. Please update Deno.\n\n`;
@@ -100,7 +108,7 @@ export async function collect(
* Import specifiers must have forward slashes
*/
function toImportSpecifier(file: string) {
let specifier = posix.normalize(file).replace(/\\/g, "/");
let specifier = normalize(file).replace(/\\/g, "/");
if (!specifier.startsWith(".")) {
specifier = "./" + specifier;
}
+4 -4
View File
@@ -1,4 +1,4 @@
import { colors, join, semver } from "./deps.ts";
import { colors, join, lt, semverParse } from "./deps.ts";
export interface CheckFile {
last_checked: string;
@@ -113,12 +113,12 @@ export async function updateCheck(
}
// Only show update message if current version is smaller than latest
const currentVersion = semver.parse(checkFile.current_version);
const latestVersion = semver.parse(checkFile.latest_version);
const currentVersion = semverParse(checkFile.current_version);
const latestVersion = semverParse(checkFile.latest_version);
if (
(!checkFile.last_shown ||
Date.now() >= new Date(checkFile.last_shown).getTime() + interval) &&
semver.lt(currentVersion, latestVersion)
lt(currentVersion, latestVersion)
) {
checkFile.last_shown = new Date().toISOString();
+1 -2
View File
@@ -1,7 +1,6 @@
import { assertEquals } from "$std/testing/asserts.ts";
import { assertSnapshot } from "$std/testing/snapshot.ts";
import { createCodeFrame, getFirstUserFile } from "./code_frame.ts";
import { colors } from "./deps.ts";
import { assertEquals, colors } from "./deps.ts";
function testCodeFrame(text: string, line: number, column: number) {
const codeFrame = createCodeFrame(text, line, column);
+13 -9
View File
@@ -6,18 +6,22 @@ export {
isAbsolute,
join,
toFileUrl,
} from "https://deno.land/std@0.193.0/path/mod.ts";
export { walk } from "https://deno.land/std@0.193.0/fs/walk.ts";
export * as colors from "https://deno.land/std@0.193.0/fmt/colors.ts";
} from "https://deno.land/std@0.205.0/path/mod.ts";
export { walk } from "https://deno.land/std@0.205.0/fs/walk.ts";
export * as colors from "https://deno.land/std@0.205.0/fmt/colors.ts";
export {
type Handler as ServeHandler,
serve,
} from "https://deno.land/std@0.193.0/http/server.ts";
export { Status } from "https://deno.land/std@0.193.0/http/http_status.ts";
} from "https://deno.land/std@0.205.0/http/server.ts";
export { Status } from "https://deno.land/std@0.205.0/http/http_status.ts";
export {
typeByExtension,
} from "https://deno.land/std@0.193.0/media_types/mod.ts";
export { toHashString } from "https://deno.land/std@0.193.0/crypto/to_hash_string.ts";
export { escape } from "https://deno.land/std@0.193.0/regexp/escape.ts";
export * as JSONC from "https://deno.land/std@0.193.0/jsonc/mod.ts";
} from "https://deno.land/std@0.205.0/media_types/mod.ts";
export { toHashString } from "https://deno.land/std@0.205.0/crypto/to_hash_string.ts";
export { escape } from "https://deno.land/std@0.205.0/regexp/escape.ts";
export * as JSONC from "https://deno.land/std@0.205.0/jsonc/mod.ts";
export { renderToString } from "https://esm.sh/*preact-render-to-string@6.2.2";
export {
assertEquals,
assertThrows,
} from "https://deno.land/std@0.205.0/assert/mod.ts";
+1 -1
View File
@@ -1,4 +1,4 @@
import { assertEquals, assertThrows } from "$std/testing/asserts.ts";
import { assertEquals, assertThrows } from "./deps.ts";
import { pathToPattern, sortRoutePaths } from "./fs_extract.ts";
Deno.test("pathToPattern", async (t) => {
+1 -1
View File
@@ -1,4 +1,4 @@
import { assertEquals } from "$std/testing/asserts.ts";
import { assertEquals } from "./deps.ts";
import { IS_PATTERN, patternToRegExp } from "./router.ts";
function testPattern(input: string, test: string) {