diff --git a/.vscode/import_map.json b/.vscode/import_map.json index 867a8e50..60e08d94 100644 --- a/.vscode/import_map.json +++ b/.vscode/import_map.json @@ -12,7 +12,7 @@ "@preact/signals-core": "https://esm.sh/@preact/signals-core@1.5.0", "@preact/signals-core@1.2.3": "https://esm.sh/@preact/signals-core@1.2.3", "@preact/signals-core@1.3.0": "https://esm.sh/@preact/signals-core@1.3.0", - "$std/": "https://deno.land/std@0.208.0/", + "$std/": "https://deno.land/std@0.211.0/", "$ga4": "https://raw.githubusercontent.com/denoland/ga4/main/mod.ts", "$marked-mangle": "https://esm.sh/marked-mangle@1.0.1", "$fresh-testing-library": "https://deno.land/x/fresh_testing_library@0.11.1/mod.ts", diff --git a/src/build/deps.ts b/src/build/deps.ts index 67d2a126..07d31d90 100644 --- a/src/build/deps.ts +++ b/src/build/deps.ts @@ -4,7 +4,7 @@ export { join, relative, toFileUrl, -} from "https://deno.land/std@0.208.0/path/mod.ts"; -export { escape as regexpEscape } from "https://deno.land/std@0.208.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.208.0/assert/mod.ts"; +} from "https://deno.land/std@0.211.0/path/mod.ts"; +export { escape as regexpEscape } from "https://deno.land/std@0.211.0/regexp/escape.ts"; +export { denoPlugins } from "https://deno.land/x/esbuild_deno_loader@0.8.3/mod.ts"; +export { assertEquals } from "https://deno.land/std@0.211.0/assert/mod.ts"; diff --git a/src/build/esbuild.ts b/src/build/esbuild.ts index fc9f90e6..75cf74ce 100644 --- a/src/build/esbuild.ts +++ b/src/build/esbuild.ts @@ -97,7 +97,6 @@ export class EsbuildBuilder implements Builder { plugins: [ devClientUrlPlugin(opts.basePath), buildIdPlugin(opts.buildID), - // @ts-ignore TODO: types in esbuild loader need to be updated ...denoPlugins({ configPath: opts.configPath }), ], }); diff --git a/src/dev/deps.ts b/src/dev/deps.ts index 5efea053..8370454a 100644 --- a/src/dev/deps.ts +++ b/src/dev/deps.ts @@ -9,24 +9,24 @@ export { resolve, SEP, toFileUrl, -} from "https://deno.land/std@0.208.0/path/mod.ts"; -export { normalize } from "https://deno.land/std@0.208.0/path/posix/mod.ts"; -export { DAY, WEEK } from "https://deno.land/std@0.208.0/datetime/constants.ts"; -export * as colors from "https://deno.land/std@0.208.0/fmt/colors.ts"; +} 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"; export { walk, type WalkEntry, WalkError, -} from "https://deno.land/std@0.208.0/fs/walk.ts"; -export { parse } from "https://deno.land/std@0.208.0/flags/mod.ts"; +} from "https://deno.land/std@0.211.0/fs/walk.ts"; +export { parse } from "https://deno.land/std@0.211.0/flags/mod.ts"; export { gte, lt, parse as semverParse, -} from "https://deno.land/std@0.208.0/semver/mod.ts"; -export { emptyDir, existsSync } from "https://deno.land/std@0.208.0/fs/mod.ts"; -export * as JSONC from "https://deno.land/std@0.208.0/jsonc/mod.ts"; -export { assertEquals } from "https://deno.land/std@0.208.0/assert/mod.ts"; +} 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"; // ts-morph export { Node, Project } from "https://deno.land/x/ts_morph@20.0.0/mod.ts"; diff --git a/src/dev/imports.ts b/src/dev/imports.ts index 27f48afb..3a3ccf5e 100644 --- a/src/dev/imports.ts +++ b/src/dev/imports.ts @@ -2,7 +2,7 @@ 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_TWIND_VERSION = "0.16.19"; -export const RECOMMENDED_STD_VERSION = "0.208.0"; +export const RECOMMENDED_STD_VERSION = "0.211.0"; export const RECOMMENDED_TAILIWIND_VERSION = "3.3.5"; export function freshImports(imports: Record) { diff --git a/src/server/build_id.ts b/src/server/build_id.ts index f5a03941..a3fd68bf 100644 --- a/src/server/build_id.ts +++ b/src/server/build_id.ts @@ -1,4 +1,4 @@ -import { toHashString } from "./deps.ts"; +import { encodeHex } from "./deps.ts"; export const DENO_DEPLOYMENT_ID = Deno.env.get("DENO_DEPLOYMENT_ID"); const deploymentId = DENO_DEPLOYMENT_ID || @@ -10,7 +10,7 @@ const buildIdHash = await crypto.subtle.digest( new TextEncoder().encode(deploymentId), ); -export let BUILD_ID = toHashString(buildIdHash, "hex"); +export let BUILD_ID = encodeHex(buildIdHash); export function setBuildId(buildId: string) { BUILD_ID = buildId; diff --git a/src/server/deps.ts b/src/server/deps.ts index a4ccb4a5..12e5a3c7 100644 --- a/src/server/deps.ts +++ b/src/server/deps.ts @@ -8,28 +8,28 @@ export { join, SEP, toFileUrl, -} from "https://deno.land/std@0.208.0/path/mod.ts"; -export { walk } from "https://deno.land/std@0.208.0/fs/walk.ts"; -export * as colors from "https://deno.land/std@0.208.0/fmt/colors.ts"; +} from "https://deno.land/std@0.211.0/path/mod.ts"; +export { walk } from "https://deno.land/std@0.211.0/fs/walk.ts"; +export * as colors from "https://deno.land/std@0.211.0/fmt/colors.ts"; export { type Handler as ServeHandler, serve, -} from "https://deno.land/std@0.208.0/http/server.ts"; -export { STATUS_CODE } from "https://deno.land/std@0.208.0/http/status.ts"; +} from "https://deno.land/std@0.211.0/http/server.ts"; +export { STATUS_CODE } from "https://deno.land/std@0.211.0/http/status.ts"; export { contentType, -} from "https://deno.land/std@0.208.0/media_types/content_type.ts"; -export { toHashString } from "https://deno.land/std@0.208.0/crypto/to_hash_string.ts"; -export { escape } from "https://deno.land/std@0.208.0/regexp/escape.ts"; -export * as JSONC from "https://deno.land/std@0.208.0/jsonc/mod.ts"; +} from "https://deno.land/std@0.211.0/media_types/content_type.ts"; +export { encodeHex } from "https://deno.land/std@0.211.0/encoding/hex.ts"; +export { escape } from "https://deno.land/std@0.211.0/regexp/escape.ts"; +export * as JSONC from "https://deno.land/std@0.211.0/jsonc/mod.ts"; export { renderToString } from "https://esm.sh/*preact-render-to-string@6.3.1"; export { assertEquals, assertThrows, -} from "https://deno.land/std@0.208.0/assert/mod.ts"; +} from "https://deno.land/std@0.211.0/assert/mod.ts"; export { isIdentifierChar, isIdentifierStart, } from "https://esm.sh/@babel/helper-validator-identifier@7.22.20"; -export { normalize } from "https://deno.land/std@0.208.0/path/posix/mod.ts"; -export { assertSnapshot } from "https://deno.land/std@0.208.0/testing/snapshot.ts"; +export { normalize } from "https://deno.land/std@0.211.0/path/posix/mod.ts"; +export { assertSnapshot } from "https://deno.land/std@0.211.0/testing/snapshot.ts"; diff --git a/tests/deps.ts b/tests/deps.ts index 83c5f620..a7dce31d 100644 --- a/tests/deps.ts +++ b/tests/deps.ts @@ -14,13 +14,13 @@ export { assertNotMatch, assertRejects, assertStringIncludes, -} from "https://deno.land/std@0.208.0/assert/mod.ts"; -export { assertSnapshot } from "https://deno.land/std@0.208.0/testing/snapshot.ts"; +} from "https://deno.land/std@0.211.0/assert/mod.ts"; +export { assertSnapshot } from "https://deno.land/std@0.211.0/testing/snapshot.ts"; export { TextLineStream, -} from "https://deno.land/std@0.208.0/streams/text_line_stream.ts"; -export { delay } from "https://deno.land/std@0.208.0/async/delay.ts"; -export { retry } from "https://deno.land/std@0.208.0/async/retry.ts"; +} from "https://deno.land/std@0.211.0/streams/text_line_stream.ts"; +export { delay } from "https://deno.land/std@0.211.0/async/delay.ts"; +export { retry } from "https://deno.land/std@0.211.0/async/retry.ts"; export { default as puppeteer, Page, @@ -33,7 +33,7 @@ export { } from "https://esm.sh/linkedom@0.15.1"; export { defineConfig, type Preset } from "https://esm.sh/@twind/core@1.1.3"; export { default as presetTailwind } from "https://esm.sh/@twind/preset-tailwind@1.1.4"; -export { copy } from "https://deno.land/std@0.208.0/fs/mod.ts"; +export { copy } from "https://deno.land/std@0.211.0/fs/mod.ts"; export { basename, dirname, @@ -43,8 +43,8 @@ export { relative, SEP, toFileUrl, -} from "https://deno.land/std@0.208.0/path/mod.ts"; -export * as JSONC from "https://deno.land/std@0.208.0/jsonc/mod.ts"; -export * as colors from "https://deno.land/std@0.208.0/fmt/colors.ts"; -export { STATUS_CODE } from "https://deno.land/std@0.208.0/http/status.ts"; -export { stripAnsiCode } from "https://deno.land/std@0.208.0/fmt/colors.ts"; +} from "https://deno.land/std@0.211.0/path/mod.ts"; +export * as JSONC from "https://deno.land/std@0.211.0/jsonc/mod.ts"; +export * as colors from "https://deno.land/std@0.211.0/fmt/colors.ts"; +export { STATUS_CODE } from "https://deno.land/std@0.211.0/http/status.ts"; +export { stripAnsiCode } from "https://deno.land/std@0.211.0/fmt/colors.ts"; diff --git a/tests/fixture_route_analysis/deno.json b/tests/fixture_route_analysis/deno.json index 4ec11b09..528977fe 100644 --- a/tests/fixture_route_analysis/deno.json +++ b/tests/fixture_route_analysis/deno.json @@ -10,7 +10,7 @@ "preact/": "https://esm.sh/preact@10.15.1/", "@preact/signals": "https://esm.sh/*@preact/signals@1.1.3", "@preact/signals-core": "https://esm.sh/*@preact/signals-core@1.2.3", - "$std/": "https://deno.land/std@0.208.0/" + "$std/": "https://deno.land/std@0.211.0/" }, "compilerOptions": { "jsx": "react-jsx", diff --git a/www/deno.json b/www/deno.json index 0a2b7cf6..273711ff 100644 --- a/www/deno.json +++ b/www/deno.json @@ -12,7 +12,7 @@ "preact/": "https://esm.sh/preact@10.15.1/", "@preact/signals": "https://esm.sh/*@preact/signals@1.1.3", "@preact/signals-core": "https://esm.sh/@preact/signals-core@1.2.3", - "$std/": "https://deno.land/std@0.208.0/", + "$std/": "https://deno.land/std@0.211.0/", "$ga4": "https://raw.githubusercontent.com/denoland/ga4/main/mod.ts", "$marked-mangle": "https://esm.sh/marked-mangle@1.0.1", "$fresh-testing-library": "https://deno.land/x/fresh_testing_library@0.8.0/mod.ts", diff --git a/www/utils/screenshot.ts b/www/utils/screenshot.ts index 43097dd7..3e32e84d 100644 --- a/www/utils/screenshot.ts +++ b/www/utils/screenshot.ts @@ -1,6 +1,6 @@ import puppeteer from "https://deno.land/x/puppeteer@16.2.0/mod.ts"; import { Image } from "https://deno.land/x/imagescript@1.2.15/mod.ts"; -import { join } from "https://deno.land/std@0.208.0/path/mod.ts"; +import { join } from "https://deno.land/std@0.211.0/path/mod.ts"; const url = Deno.args[0]; const id = Deno.args[1];