diff --git a/.vscode/import_map.json b/.vscode/import_map.json index da956c73..2e31f09a 100644 --- a/.vscode/import_map.json +++ b/.vscode/import_map.json @@ -13,7 +13,7 @@ "@preact/signals-core": "https://esm.sh/@preact/signals-core@1.2.3", "@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.190.0/", + "$std/": "https://deno.land/std@0.193.0/", "$ga4": "https://raw.githubusercontent.com/denoland/ga4/main/mod.ts" } } diff --git a/src/build/deps.ts b/src/build/deps.ts index 3f6c8666..412d1ce3 100644 --- a/src/build/deps.ts +++ b/src/build/deps.ts @@ -2,8 +2,8 @@ export { fromFileUrl, toFileUrl, -} from "https://deno.land/std@0.190.0/path/mod.ts"; -export { escape as regexpEscape } from "https://deno.land/std@0.190.0/regexp/escape.ts"; +} 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"; // -- esbuild -- // @deno-types="https://deno.land/x/esbuild@v0.17.19/mod.d.ts" diff --git a/src/dev/deps.ts b/src/dev/deps.ts index dee7ad76..e6d2e1a2 100644 --- a/src/dev/deps.ts +++ b/src/dev/deps.ts @@ -9,11 +9,11 @@ export { resolve, SEP, toFileUrl, -} from "https://deno.land/std@0.190.0/path/mod.ts"; -export { walk, WalkError } from "https://deno.land/std@0.190.0/fs/walk.ts"; -export { parse } from "https://deno.land/std@0.190.0/flags/mod.ts"; -export { gte } from "https://deno.land/std@0.190.0/semver/mod.ts"; -export { existsSync } from "https://deno.land/std@0.190.0/fs/mod.ts"; +} from "https://deno.land/std@0.193.0/path/mod.ts"; +export { walk, 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"; // ts-morph export { Node, Project } from "https://deno.land/x/ts_morph@17.0.1/mod.ts"; diff --git a/src/dev/imports.ts b/src/dev/imports.ts index 7615171f..6f836ec7 100644 --- a/src/dev/imports.ts +++ b/src/dev/imports.ts @@ -3,7 +3,7 @@ export const RECOMMENDED_PREACT_RTS_VERSION = "6.1.0"; export const RECOMMENDED_PREACT_SIGNALS_VERSION = "1.1.3"; export const RECOMMENDED_PREACT_SIGNALS_CORE_VERSION = "1.2.3"; export const RECOMMENDED_TWIND_VERSION = "0.16.19"; -export const RECOMMENDED_STD_VERSION = "0.190.0"; +export const RECOMMENDED_STD_VERSION = "0.193.0"; export function freshImports(imports: Record) { imports["$fresh/"] = new URL("../../", import.meta.url).href; diff --git a/src/server/deps.ts b/src/server/deps.ts index ea4fa708..bda78737 100644 --- a/src/server/deps.ts +++ b/src/server/deps.ts @@ -5,20 +5,20 @@ export { fromFileUrl, join, toFileUrl, -} from "https://deno.land/std@0.190.0/path/mod.ts"; -export { walk } from "https://deno.land/std@0.190.0/fs/walk.ts"; +} 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 { type Handler as ServeHandler, serve, -} from "https://deno.land/std@0.190.0/http/server.ts"; +} from "https://deno.land/std@0.193.0/http/server.ts"; export type { ConnInfo, ServeInit, -} from "https://deno.land/std@0.190.0/http/server.ts"; -export { Status } from "https://deno.land/std@0.190.0/http/http_status.ts"; +} 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"; export { typeByExtension, -} from "https://deno.land/std@0.190.0/media_types/mod.ts"; -export { toHashString } from "https://deno.land/std@0.190.0/crypto/to_hash_string.ts"; -export { escape } from "https://deno.land/std@0.190.0/regexp/escape.ts"; -export * as JSONC from "https://deno.land/std@0.190.0/jsonc/mod.ts"; +} 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"; diff --git a/src/server/mod.ts b/src/server/mod.ts index 65922295..35b6d003 100644 --- a/src/server/mod.ts +++ b/src/server/mod.ts @@ -1,5 +1,5 @@ import { ServerContext } from "./context.ts"; -import * as colors from "https://deno.land/std@0.190.0/fmt/colors.ts"; +import * as colors from "https://deno.land/std@0.193.0/fmt/colors.ts"; import { ConnInfo, serve, ServeHandler } from "./deps.ts"; export { Status } from "./deps.ts"; import { diff --git a/tests/cli_test.ts b/tests/cli_test.ts index 96b24617..c61bc2bf 100644 --- a/tests/cli_test.ts +++ b/tests/cli_test.ts @@ -2,7 +2,7 @@ import * as path from "$std/path/mod.ts"; import { assertMatch, assertNotMatch, -} from "https://deno.land/std@0.190.0/testing/asserts.ts"; +} from "https://deno.land/std@0.193.0/testing/asserts.ts"; import { Status } from "../src/server/deps.ts"; import { assert, diff --git a/tests/deps.ts b/tests/deps.ts index e86870f7..a00ee725 100644 --- a/tests/deps.ts +++ b/tests/deps.ts @@ -8,13 +8,13 @@ export { assert, assertEquals, assertStringIncludes, -} from "https://deno.land/std@0.190.0/testing/asserts.ts"; -export { assertSnapshot } from "https://deno.land/std@0.190.0/testing/snapshot.ts"; +} from "https://deno.land/std@0.193.0/testing/asserts.ts"; +export { assertSnapshot } from "https://deno.land/std@0.193.0/testing/snapshot.ts"; export { TextLineStream, -} from "https://deno.land/std@0.190.0/streams/text_line_stream.ts"; -export { delay } from "https://deno.land/std@0.190.0/async/delay.ts"; -export { retry } from "https://deno.land/std@0.190.0/async/retry.ts"; +} from "https://deno.land/std@0.193.0/streams/text_line_stream.ts"; +export { delay } from "https://deno.land/std@0.193.0/async/delay.ts"; +export { retry } from "https://deno.land/std@0.193.0/async/retry.ts"; export { default as puppeteer, Page, diff --git a/tests/main_test.ts b/tests/main_test.ts index 938e309c..24a0e3a7 100644 --- a/tests/main_test.ts +++ b/tests/main_test.ts @@ -10,7 +10,7 @@ import manifest from "./fixture/fresh.gen.ts"; import options from "./fixture/options.ts"; import { BUILD_ID } from "../src/server/build_id.ts"; import { startFreshServer } from "./test_utils.ts"; -import { assertMatch } from "https://deno.land/std@0.190.0/testing/asserts.ts"; +import { assertMatch } from "https://deno.land/std@0.193.0/testing/asserts.ts"; const ctx = await ServerContext.fromManifest(manifest, options); const handler = ctx.handler(); diff --git a/www/components/gallery/CodeBox.tsx b/www/components/gallery/CodeBox.tsx index 5f66aceb..23d7d770 100644 --- a/www/components/gallery/CodeBox.tsx +++ b/www/components/gallery/CodeBox.tsx @@ -1,7 +1,7 @@ import { useSignal } from "@preact/signals"; -import Prism from "https://esm.sh/prismjs@1.27.0"; -import "https://esm.sh/prismjs@1.27.0/components/prism-typescript?no-check"; +import Prism from "https://esm.sh/prismjs@1.29.0"; +import "https://esm.sh/prismjs@1.29.0/components/prism-typescript?no-check"; interface CodeBoxProps { code: string; diff --git a/www/deno.json b/www/deno.json index bee87de3..d0720838 100644 --- a/www/deno.json +++ b/www/deno.json @@ -12,7 +12,7 @@ "preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.1.0", "@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.190.0/", + "$std/": "https://deno.land/std@0.193.0/", "$ga4": "https://raw.githubusercontent.com/denoland/ga4/main/mod.ts" }, "compilerOptions": { diff --git a/www/routes/components.tsx b/www/routes/components.tsx index 316fcd8c..caae4521 100644 --- a/www/routes/components.tsx +++ b/www/routes/components.tsx @@ -45,7 +45,7 @@ export default function Home(props: PageProps) { {TITLE} diff --git a/www/routes/raw.ts b/www/routes/raw.ts index 2bc3bbc8..4121c3fa 100644 --- a/www/routes/raw.ts +++ b/www/routes/raw.ts @@ -1,6 +1,6 @@ import { RouteConfig } from "$fresh/server.ts"; import { Handlers } from "$fresh/server.ts"; -import { parse } from "$std/semver/mod.ts"; +import { format, parse } from "$std/semver/mod.ts"; import VERSIONS from "../../versions.json" assert { type: "json" }; import { extname } from "$std/path/mod.ts"; @@ -22,16 +22,16 @@ export const handler: Handlers = { const isHTML = accept?.includes("text/html"); const { version, path } = ctx.params; - const semver = parse(version, { includePrerelease: true }); + const semver = parse(version); if (!semver) { return new Response("Invalid version", { status: 400 }); } - if (!VERSIONS.includes(semver.version)) { + if (!VERSIONS.includes(format(semver))) { return new Response("Version not found", { status: 404 }); } - const url = `${BASE_URL}${semver.version}/${path}`; + const url = `${BASE_URL}${format(semver)}/${path}`; const r = await fetch(url, { redirect: "manual" }); const response = new Response(r.body, r); response.headers.delete("content-encoding"); diff --git a/www/utils/markdown.ts b/www/utils/markdown.ts index 26fc1b27..05b95b2d 100644 --- a/www/utils/markdown.ts +++ b/www/utils/markdown.ts @@ -1,4 +1,4 @@ -export * as gfm from "https://deno.land/x/gfm@0.2.1/mod.ts"; +export * as gfm from "https://deno.land/x/gfm@0.2.5/mod.ts"; import "https://esm.sh/prismjs@1.29.0/components/prism-jsx.js?no-check"; import "https://esm.sh/prismjs@1.29.0/components/prism-typescript.js?no-check"; import "https://esm.sh/prismjs@1.29.0/components/prism-tsx.js?no-check"; diff --git a/www/utils/screenshot.ts b/www/utils/screenshot.ts index d8b06d68..cd181fd4 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.190.0/path/mod.ts"; +import { join } from "https://deno.land/std@0.193.0/path/mod.ts"; const url = Deno.args[0]; const id = Deno.args[1];