chore: bump dependencies (#1428)
This commit is contained in:
Vendored
+1
-1
@@ -13,7 +13,7 @@
|
|||||||
"@preact/signals-core": "https://esm.sh/@preact/signals-core@1.2.3",
|
"@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.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",
|
"@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"
|
"$ga4": "https://raw.githubusercontent.com/denoland/ga4/main/mod.ts"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -2,8 +2,8 @@
|
|||||||
export {
|
export {
|
||||||
fromFileUrl,
|
fromFileUrl,
|
||||||
toFileUrl,
|
toFileUrl,
|
||||||
} from "https://deno.land/std@0.190.0/path/mod.ts";
|
} from "https://deno.land/std@0.193.0/path/mod.ts";
|
||||||
export { escape as regexpEscape } from "https://deno.land/std@0.190.0/regexp/escape.ts";
|
export { escape as regexpEscape } from "https://deno.land/std@0.193.0/regexp/escape.ts";
|
||||||
|
|
||||||
// -- esbuild --
|
// -- esbuild --
|
||||||
// @deno-types="https://deno.land/x/esbuild@v0.17.19/mod.d.ts"
|
// @deno-types="https://deno.land/x/esbuild@v0.17.19/mod.d.ts"
|
||||||
|
|||||||
+5
-5
@@ -9,11 +9,11 @@ export {
|
|||||||
resolve,
|
resolve,
|
||||||
SEP,
|
SEP,
|
||||||
toFileUrl,
|
toFileUrl,
|
||||||
} from "https://deno.land/std@0.190.0/path/mod.ts";
|
} from "https://deno.land/std@0.193.0/path/mod.ts";
|
||||||
export { walk, WalkError } from "https://deno.land/std@0.190.0/fs/walk.ts";
|
export { walk, WalkError } from "https://deno.land/std@0.193.0/fs/walk.ts";
|
||||||
export { parse } from "https://deno.land/std@0.190.0/flags/mod.ts";
|
export { parse } from "https://deno.land/std@0.193.0/flags/mod.ts";
|
||||||
export { gte } from "https://deno.land/std@0.190.0/semver/mod.ts";
|
export { gte } from "https://deno.land/std@0.193.0/semver/mod.ts";
|
||||||
export { existsSync } from "https://deno.land/std@0.190.0/fs/mod.ts";
|
export { existsSync } from "https://deno.land/std@0.193.0/fs/mod.ts";
|
||||||
|
|
||||||
// ts-morph
|
// 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@17.0.1/mod.ts";
|
||||||
|
|||||||
+1
-1
@@ -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_VERSION = "1.1.3";
|
||||||
export const RECOMMENDED_PREACT_SIGNALS_CORE_VERSION = "1.2.3";
|
export const RECOMMENDED_PREACT_SIGNALS_CORE_VERSION = "1.2.3";
|
||||||
export const RECOMMENDED_TWIND_VERSION = "0.16.19";
|
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<string, string>) {
|
export function freshImports(imports: Record<string, string>) {
|
||||||
imports["$fresh/"] = new URL("../../", import.meta.url).href;
|
imports["$fresh/"] = new URL("../../", import.meta.url).href;
|
||||||
|
|||||||
+9
-9
@@ -5,20 +5,20 @@ export {
|
|||||||
fromFileUrl,
|
fromFileUrl,
|
||||||
join,
|
join,
|
||||||
toFileUrl,
|
toFileUrl,
|
||||||
} from "https://deno.land/std@0.190.0/path/mod.ts";
|
} from "https://deno.land/std@0.193.0/path/mod.ts";
|
||||||
export { walk } from "https://deno.land/std@0.190.0/fs/walk.ts";
|
export { walk } from "https://deno.land/std@0.193.0/fs/walk.ts";
|
||||||
export {
|
export {
|
||||||
type Handler as ServeHandler,
|
type Handler as ServeHandler,
|
||||||
serve,
|
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 {
|
export type {
|
||||||
ConnInfo,
|
ConnInfo,
|
||||||
ServeInit,
|
ServeInit,
|
||||||
} from "https://deno.land/std@0.190.0/http/server.ts";
|
} from "https://deno.land/std@0.193.0/http/server.ts";
|
||||||
export { Status } from "https://deno.land/std@0.190.0/http/http_status.ts";
|
export { Status } from "https://deno.land/std@0.193.0/http/http_status.ts";
|
||||||
export {
|
export {
|
||||||
typeByExtension,
|
typeByExtension,
|
||||||
} from "https://deno.land/std@0.190.0/media_types/mod.ts";
|
} from "https://deno.land/std@0.193.0/media_types/mod.ts";
|
||||||
export { toHashString } from "https://deno.land/std@0.190.0/crypto/to_hash_string.ts";
|
export { toHashString } from "https://deno.land/std@0.193.0/crypto/to_hash_string.ts";
|
||||||
export { escape } from "https://deno.land/std@0.190.0/regexp/escape.ts";
|
export { escape } from "https://deno.land/std@0.193.0/regexp/escape.ts";
|
||||||
export * as JSONC from "https://deno.land/std@0.190.0/jsonc/mod.ts";
|
export * as JSONC from "https://deno.land/std@0.193.0/jsonc/mod.ts";
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
import { ServerContext } from "./context.ts";
|
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";
|
import { ConnInfo, serve, ServeHandler } from "./deps.ts";
|
||||||
export { Status } from "./deps.ts";
|
export { Status } from "./deps.ts";
|
||||||
import {
|
import {
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@ import * as path from "$std/path/mod.ts";
|
|||||||
import {
|
import {
|
||||||
assertMatch,
|
assertMatch,
|
||||||
assertNotMatch,
|
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 { Status } from "../src/server/deps.ts";
|
||||||
import {
|
import {
|
||||||
assert,
|
assert,
|
||||||
|
|||||||
+5
-5
@@ -8,13 +8,13 @@ export {
|
|||||||
assert,
|
assert,
|
||||||
assertEquals,
|
assertEquals,
|
||||||
assertStringIncludes,
|
assertStringIncludes,
|
||||||
} from "https://deno.land/std@0.190.0/testing/asserts.ts";
|
} from "https://deno.land/std@0.193.0/testing/asserts.ts";
|
||||||
export { assertSnapshot } from "https://deno.land/std@0.190.0/testing/snapshot.ts";
|
export { assertSnapshot } from "https://deno.land/std@0.193.0/testing/snapshot.ts";
|
||||||
export {
|
export {
|
||||||
TextLineStream,
|
TextLineStream,
|
||||||
} from "https://deno.land/std@0.190.0/streams/text_line_stream.ts";
|
} from "https://deno.land/std@0.193.0/streams/text_line_stream.ts";
|
||||||
export { delay } from "https://deno.land/std@0.190.0/async/delay.ts";
|
export { delay } from "https://deno.land/std@0.193.0/async/delay.ts";
|
||||||
export { retry } from "https://deno.land/std@0.190.0/async/retry.ts";
|
export { retry } from "https://deno.land/std@0.193.0/async/retry.ts";
|
||||||
export {
|
export {
|
||||||
default as puppeteer,
|
default as puppeteer,
|
||||||
Page,
|
Page,
|
||||||
|
|||||||
+1
-1
@@ -10,7 +10,7 @@ import manifest from "./fixture/fresh.gen.ts";
|
|||||||
import options from "./fixture/options.ts";
|
import options from "./fixture/options.ts";
|
||||||
import { BUILD_ID } from "../src/server/build_id.ts";
|
import { BUILD_ID } from "../src/server/build_id.ts";
|
||||||
import { startFreshServer } from "./test_utils.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 ctx = await ServerContext.fromManifest(manifest, options);
|
||||||
const handler = ctx.handler();
|
const handler = ctx.handler();
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { useSignal } from "@preact/signals";
|
import { useSignal } from "@preact/signals";
|
||||||
|
|
||||||
import Prism from "https://esm.sh/prismjs@1.27.0";
|
import Prism from "https://esm.sh/prismjs@1.29.0";
|
||||||
import "https://esm.sh/prismjs@1.27.0/components/prism-typescript?no-check";
|
import "https://esm.sh/prismjs@1.29.0/components/prism-typescript?no-check";
|
||||||
|
|
||||||
interface CodeBoxProps {
|
interface CodeBoxProps {
|
||||||
code: string;
|
code: string;
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@
|
|||||||
"preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.1.0",
|
"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": "https://esm.sh/*@preact/signals@1.1.3",
|
||||||
"@preact/signals-core": "https://esm.sh/@preact/signals-core@1.2.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"
|
"$ga4": "https://raw.githubusercontent.com/denoland/ga4/main/mod.ts"
|
||||||
},
|
},
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ export default function Home(props: PageProps<HomeProps>) {
|
|||||||
<title>{TITLE}</title>
|
<title>{TITLE}</title>
|
||||||
<link
|
<link
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
href="https://esm.sh/prismjs@1.27.0/themes/prism-dark.min.css"
|
href="https://esm.sh/prismjs@1.29.0/themes/prism-dark.min.css"
|
||||||
/>
|
/>
|
||||||
<meta name="description" content={DESCRIPTION} />
|
<meta name="description" content={DESCRIPTION} />
|
||||||
<meta property="og:title" content={TITLE} />
|
<meta property="og:title" content={TITLE} />
|
||||||
|
|||||||
+4
-4
@@ -1,6 +1,6 @@
|
|||||||
import { RouteConfig } from "$fresh/server.ts";
|
import { RouteConfig } from "$fresh/server.ts";
|
||||||
import { Handlers } 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 VERSIONS from "../../versions.json" assert { type: "json" };
|
||||||
import { extname } from "$std/path/mod.ts";
|
import { extname } from "$std/path/mod.ts";
|
||||||
|
|
||||||
@@ -22,16 +22,16 @@ export const handler: Handlers = {
|
|||||||
const isHTML = accept?.includes("text/html");
|
const isHTML = accept?.includes("text/html");
|
||||||
const { version, path } = ctx.params;
|
const { version, path } = ctx.params;
|
||||||
|
|
||||||
const semver = parse(version, { includePrerelease: true });
|
const semver = parse(version);
|
||||||
if (!semver) {
|
if (!semver) {
|
||||||
return new Response("Invalid version", { status: 400 });
|
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 });
|
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 r = await fetch(url, { redirect: "manual" });
|
||||||
const response = new Response(r.body, r);
|
const response = new Response(r.body, r);
|
||||||
response.headers.delete("content-encoding");
|
response.headers.delete("content-encoding");
|
||||||
|
|||||||
@@ -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-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-typescript.js?no-check";
|
||||||
import "https://esm.sh/prismjs@1.29.0/components/prism-tsx.js?no-check";
|
import "https://esm.sh/prismjs@1.29.0/components/prism-tsx.js?no-check";
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import puppeteer from "https://deno.land/x/puppeteer@16.2.0/mod.ts";
|
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 { 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 url = Deno.args[0];
|
||||||
const id = Deno.args[1];
|
const id = Deno.args[1];
|
||||||
|
|||||||
Reference in New Issue
Block a user