chore: lift dependency to deno.json + update esbuild (#3142)

This commit is contained in:
Marvin Hagemeister
2025-07-25 19:01:28 +02:00
committed by GitHub
parent c9c85ba36d
commit ff34ec8342
8 changed files with 198 additions and 21 deletions
+6
View File
@@ -2,3 +2,9 @@ export const INTERNAL_PREFIX = "/_frsh";
export const DEV_ERROR_OVERLAY_URL = `${INTERNAL_PREFIX}/error_overlay`;
export const ALIVE_URL = `${INTERNAL_PREFIX}/alive`;
export const PARTIAL_SEARCH_PARAM = "fresh-partial";
export const SECOND = 1000;
export const MINUTE = SECOND * 60;
export const HOUR = MINUTE * 60;
export const DAY = HOUR * 24;
export const WEEK = DAY * 7;
+1 -1
View File
@@ -19,13 +19,13 @@ import {
} from "./dev_build_cache.ts";
import { BUILD_ID } from "../runtime/build_id.ts";
import { updateCheck } from "./update_check.ts";
import { DAY } from "@std/datetime";
import { devErrorOverlay } from "./middlewares/error_overlay/middleware.tsx";
import { automaticWorkspaceFolders } from "./middlewares/automatic_workspace_folders.ts";
import { parseDirPath } from "../config.ts";
import { pathToExportName, UniqueNamer } from "../utils.ts";
import { checkDenoCompilerOptions } from "./check.ts";
import { crawlRouteDir, walkDir } from "./fs_crawl.ts";
import { DAY } from "../constants.ts";
export interface BuildOptions {
/**
+3 -2
View File
@@ -7,7 +7,6 @@ import {
import * as path from "@std/path";
import { SEPARATOR as WINDOWS_SEPARATOR } from "@std/path/windows/constants";
import { encodeHex } from "@std/encoding/hex";
import { crypto } from "@std/crypto";
import { fsAdapter } from "../fs.ts";
import type { FileTransformer } from "./file_transformer.ts";
import { assertInDir, pathToSpec } from "../utils.ts";
@@ -452,9 +451,11 @@ export default {
async function hashContent(
content: Uint8Array | ReadableStream<Uint8Array>,
): Promise<string> {
const buffer = await new Response(content).arrayBuffer();
const hashBuf = await crypto.subtle.digest(
"SHA-256",
content,
buffer,
);
return encodeHex(hashBuf);
}
+1 -1
View File
@@ -1,10 +1,10 @@
import * as path from "@std/path";
import denoJson from "../../deno.json" with { type: "json" };
import { WEEK } from "@std/datetime";
import { getStdOutput } from "../../tests/test_utils.tsx";
import { expect } from "@std/expect";
import { withTmpDir } from "../test_utils.ts";
import type { CheckFile } from "./update_check.ts";
import { WEEK } from "../constants.ts";
const CURRENT_VERSION = denoJson.version;