chore: bump deps and update copyright year (#1069)
This commit is contained in:
Vendored
+8
-11
@@ -4,16 +4,13 @@
|
||||
},
|
||||
"imports": {
|
||||
"$fresh/": "../",
|
||||
|
||||
"twind": "https://esm.sh/twind@0.16.17",
|
||||
"twind/": "https://esm.sh/twind@0.16.17/",
|
||||
|
||||
"preact": "https://esm.sh/preact@10.11.0",
|
||||
"preact/": "https://esm.sh/preact@10.11.0/",
|
||||
"preact-render-to-string": "https://esm.sh/*preact-render-to-string@5.2.4",
|
||||
"@preact/signals": "https://esm.sh/*@preact/signals@1.0.3",
|
||||
"@preact/signals-core": "https://esm.sh/@preact/signals-core@1.0.1",
|
||||
|
||||
"$std/": "https://deno.land/std@0.150.0/"
|
||||
"twind": "https://esm.sh/twind@0.16.19",
|
||||
"twind/": "https://esm.sh/twind@0.16.19/",
|
||||
"preact": "https://esm.sh/preact@10.13.1",
|
||||
"preact/": "https://esm.sh/preact@10.13.1/",
|
||||
"preact-render-to-string": "https://esm.sh/*preact-render-to-string@5.2.6",
|
||||
"@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.178.0/"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,21 +1,20 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2021 Luca Casonato
|
||||
Copyright (c) 2021-2023 Luca Casonato
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"imports": {
|
||||
"$fresh/": "../../",
|
||||
"preact": "https://esm.sh/preact@10.11.0",
|
||||
"preact/": "https://esm.sh/preact@10.11.0/",
|
||||
"preact-render-to-string": "https://esm.sh/*preact-render-to-string@5.2.4"
|
||||
"preact": "https://esm.sh/preact@10.13.1",
|
||||
"preact/": "https://esm.sh/preact@10.13.1/",
|
||||
"preact-render-to-string": "https://esm.sh/*preact-render-to-string@5.2.6"
|
||||
}
|
||||
}
|
||||
|
||||
+5
-5
@@ -6,10 +6,10 @@ export {
|
||||
join,
|
||||
resolve,
|
||||
toFileUrl,
|
||||
} from "https://deno.land/std@0.150.0/path/mod.ts";
|
||||
export { walk } from "https://deno.land/std@0.150.0/fs/walk.ts";
|
||||
export { parse } from "https://deno.land/std@0.150.0/flags/mod.ts";
|
||||
export { gte } from "https://deno.land/std@0.150.0/semver/mod.ts";
|
||||
} from "https://deno.land/std@0.178.0/path/mod.ts";
|
||||
export { walk } from "https://deno.land/std@0.178.0/fs/walk.ts";
|
||||
export { parse } from "https://deno.land/std@0.178.0/flags/mod.ts";
|
||||
export { gte } from "https://deno.land/std@0.178.0/semver/mod.ts";
|
||||
|
||||
// ts-morph
|
||||
export { Node, Project } from "https://deno.land/x/ts_morph@16.0.0/mod.ts";
|
||||
export { Node, Project } from "https://deno.land/x/ts_morph@17.0.1/mod.ts";
|
||||
|
||||
+5
-5
@@ -1,8 +1,8 @@
|
||||
export const RECOMMENDED_PREACT_VERSION = "10.11.0";
|
||||
export const RECOMMENDED_PREACT_RTS_VERSION = "5.2.4";
|
||||
export const RECOMMENDED_PREACT_SIGNALS_VERSION = "1.0.3";
|
||||
export const RECOMMENDED_PREACT_SIGNALS_CORE_VERSION = "1.0.1";
|
||||
export const RECOMMENDED_TWIND_VERSION = "0.16.17";
|
||||
export const RECOMMENDED_PREACT_VERSION = "10.13.1";
|
||||
export const RECOMMENDED_PREACT_RTS_VERSION = "5.2.6";
|
||||
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 function freshImports(imports: Record<string, string>) {
|
||||
imports["$fresh/"] = new URL("../../", import.meta.url).href;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { BuildOptions } from "https://deno.land/x/esbuild@v0.14.51/mod.js";
|
||||
import { BuildOptions } from "https://deno.land/x/esbuild@v0.17.11/mod.js";
|
||||
import { BUILD_ID } from "./constants.ts";
|
||||
import { denoPlugin, esbuild, toFileUrl } from "./deps.ts";
|
||||
import { Island, Plugin } from "./types.ts";
|
||||
@@ -12,7 +12,7 @@ let esbuildInitialized: boolean | Promise<void> = false;
|
||||
async function ensureEsbuildInitialized() {
|
||||
if (esbuildInitialized === false) {
|
||||
if (Deno.run === undefined) {
|
||||
const wasmURL = new URL("./esbuild_v0.14.51.wasm", import.meta.url).href;
|
||||
const wasmURL = new URL("./esbuild_v0.17.11.wasm", import.meta.url).href;
|
||||
esbuildInitialized = fetch(wasmURL).then(async (r) => {
|
||||
const resp = new Response(r.body, {
|
||||
headers: { "Content-Type": "application/wasm" },
|
||||
|
||||
@@ -391,8 +391,10 @@ export class ServerContext {
|
||||
*/
|
||||
#handlers(): [
|
||||
rutt.Routes<RouterState>,
|
||||
rutt.Handler<RouterState>,
|
||||
rutt.ErrorHandler<RouterState>,
|
||||
{
|
||||
otherHandler: rutt.Handler<RouterState>;
|
||||
errorHandler: rutt.ErrorHandler<RouterState>;
|
||||
},
|
||||
] {
|
||||
const routes: rutt.Routes<RouterState> = {};
|
||||
|
||||
@@ -539,7 +541,7 @@ export class ServerContext {
|
||||
}
|
||||
}
|
||||
|
||||
const unknownHandler: rutt.Handler<RouterState> = (
|
||||
const otherHandler: rutt.Handler<RouterState> = (
|
||||
req,
|
||||
ctx,
|
||||
) =>
|
||||
@@ -575,7 +577,7 @@ export class ServerContext {
|
||||
);
|
||||
};
|
||||
|
||||
return [routes, unknownHandler, errorHandler];
|
||||
return [routes, { otherHandler, errorHandler }];
|
||||
}
|
||||
|
||||
#staticFileHandler(
|
||||
|
||||
+13
-11
@@ -3,29 +3,31 @@ export {
|
||||
extname,
|
||||
fromFileUrl,
|
||||
toFileUrl,
|
||||
} from "https://deno.land/std@0.150.0/path/mod.ts";
|
||||
export { walk } from "https://deno.land/std@0.150.0/fs/walk.ts";
|
||||
export { serve } from "https://deno.land/std@0.150.0/http/server.ts";
|
||||
} from "https://deno.land/std@0.178.0/path/mod.ts";
|
||||
export { walk } from "https://deno.land/std@0.178.0/fs/walk.ts";
|
||||
export { serve } from "https://deno.land/std@0.178.0/http/server.ts";
|
||||
export type {
|
||||
ConnInfo,
|
||||
Handler as RequestHandler,
|
||||
ServeInit,
|
||||
} from "https://deno.land/std@0.150.0/http/server.ts";
|
||||
export { Status } from "https://deno.land/std@0.150.0/http/http_status.ts";
|
||||
} from "https://deno.land/std@0.178.0/http/server.ts";
|
||||
export { Status } from "https://deno.land/std@0.178.0/http/http_status.ts";
|
||||
export {
|
||||
typeByExtension,
|
||||
} from "https://deno.land/std@0.150.0/media_types/mod.ts";
|
||||
} from "https://deno.land/std@0.178.0/media_types/mod.ts";
|
||||
|
||||
// -- rutt --
|
||||
export * as rutt from "https://deno.land/x/rutt@0.0.14/mod.ts";
|
||||
export * as rutt from "https://deno.land/x/rutt@0.1.0/mod.ts";
|
||||
|
||||
// -- esbuild --
|
||||
// @deno-types="https://deno.land/x/esbuild@v0.14.51/mod.d.ts"
|
||||
import * as esbuildWasm from "https://deno.land/x/esbuild@v0.14.51/wasm.js";
|
||||
import * as esbuildNative from "https://deno.land/x/esbuild@v0.14.51/mod.js";
|
||||
// @deno-types="https://deno.land/x/esbuild@v0.17.11/mod.d.ts"
|
||||
import * as esbuildWasm from "https://deno.land/x/esbuild@v0.17.11/wasm.js";
|
||||
import * as esbuildNative from "https://deno.land/x/esbuild@v0.17.11/mod.js";
|
||||
// @ts-ignore trust me
|
||||
const esbuild: typeof esbuildWasm = Deno.run === undefined
|
||||
? esbuildWasm
|
||||
: esbuildNative;
|
||||
export { esbuild, esbuildWasm as esbuildTypes };
|
||||
export { denoPlugin } from "https://deno.land/x/esbuild_deno_loader@0.5.2/mod.ts";
|
||||
|
||||
// TODO(lino-levan): Replace with versioned import
|
||||
export { denoPlugin } from "https://raw.githubusercontent.com/lucacasonato/esbuild_deno_loader/8031f71afa1bbcd3237a94b11f53a2e5c5c0e7bf/mod.ts";
|
||||
|
||||
Binary file not shown.
+1
-1
@@ -87,7 +87,7 @@ export type Handler<T = any, State = Record<string, unknown>> = (
|
||||
|
||||
// deno-lint-ignore no-explicit-any
|
||||
export type Handlers<T = any, State = Record<string, unknown>> = {
|
||||
[K in typeof rutt.METHODS[number]]?: Handler<T, State>;
|
||||
[K in typeof rutt.knownMethods[number]]?: Handler<T, State>;
|
||||
};
|
||||
|
||||
export interface RouteModule {
|
||||
|
||||
+4
-4
@@ -8,10 +8,10 @@ export {
|
||||
assert,
|
||||
assertEquals,
|
||||
assertStringIncludes,
|
||||
} from "https://deno.land/std@0.150.0/testing/asserts.ts";
|
||||
} from "https://deno.land/std@0.178.0/testing/asserts.ts";
|
||||
export {
|
||||
TextLineStream,
|
||||
} from "https://deno.land/std@0.150.0/streams/delimiter.ts";
|
||||
export { delay } from "https://deno.land/std@0.150.0/async/delay.ts";
|
||||
export { retry } from "https://deno.land/std@0.170.0/async/retry.ts";
|
||||
} from "https://deno.land/std@0.178.0/streams/text_line_stream.ts";
|
||||
export { delay } from "https://deno.land/std@0.178.0/async/delay.ts";
|
||||
export { retry } from "https://deno.land/std@0.178.0/async/retry.ts";
|
||||
export { default as puppeteer } from "https://deno.land/x/puppeteer@16.2.0/mod.ts";
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"imports": {
|
||||
"$fresh/": "../../",
|
||||
"preact": "https://esm.sh/preact@10.11.0",
|
||||
"preact/": "https://esm.sh/preact@10.11.0/",
|
||||
"preact-render-to-string": "https://esm.sh/*preact-render-to-string@5.2.4"
|
||||
"preact": "https://esm.sh/preact@10.13.1",
|
||||
"preact/": "https://esm.sh/preact@10.13.1/",
|
||||
"preact-render-to-string": "https://esm.sh/*preact-render-to-string@5.2.6"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"imports": {
|
||||
"$fresh/": "../../",
|
||||
"preact": "https://esm.sh/preact@10.11.0",
|
||||
"preact/": "https://esm.sh/preact@10.11.0/",
|
||||
"preact-render-to-string": "https://esm.sh/*preact-render-to-string@5.2.4"
|
||||
"preact": "https://esm.sh/preact@10.13.1",
|
||||
"preact/": "https://esm.sh/preact@10.13.1/",
|
||||
"preact-render-to-string": "https://esm.sh/*preact-render-to-string@5.2.6"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"imports": {
|
||||
"$fresh/": "../../",
|
||||
"preact": "https://esm.sh/preact@10.10.0",
|
||||
"preact/": "https://esm.sh/preact@10.10.0/",
|
||||
"preact-render-to-string": "https://esm.sh/preact-render-to-string@5.2.1?external=preact"
|
||||
"preact": "https://esm.sh/preact@10.13.1",
|
||||
"preact/": "https://esm.sh/preact@10.13.1/",
|
||||
"preact-render-to-string": "https://esm.sh/preact-render-to-string@5.2.6?external=preact"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"imports": {
|
||||
"$fresh/": "../../",
|
||||
"preact": "https://esm.sh/preact@10.11.0",
|
||||
"preact/": "https://esm.sh/preact@10.11.0/",
|
||||
"preact-render-to-string": "https://esm.sh/*preact-render-to-string@5.2.4"
|
||||
"preact": "https://esm.sh/preact@10.13.1",
|
||||
"preact/": "https://esm.sh/preact@10.13.1/",
|
||||
"preact-render-to-string": "https://esm.sh/*preact-render-to-string@5.2.6"
|
||||
}
|
||||
}
|
||||
|
||||
+8
-11
@@ -1,17 +1,14 @@
|
||||
{
|
||||
"imports": {
|
||||
"$fresh/": "../",
|
||||
|
||||
"twind": "https://esm.sh/twind@0.16.17",
|
||||
"twind/": "https://esm.sh/twind@0.16.17/",
|
||||
|
||||
"preact": "https://esm.sh/preact@10.11.0",
|
||||
"preact/": "https://esm.sh/preact@10.11.0/",
|
||||
"preact-render-to-string": "https://esm.sh/*preact-render-to-string@5.2.4",
|
||||
"@preact/signals": "https://esm.sh/*@preact/signals@1.0.3",
|
||||
"@preact/signals-core": "https://esm.sh/@preact/signals-core@1.0.1",
|
||||
|
||||
"$std/": "https://deno.land/std@0.150.0/",
|
||||
"twind": "https://esm.sh/twind@0.16.19",
|
||||
"twind/": "https://esm.sh/twind@0.16.19/",
|
||||
"preact": "https://esm.sh/preact@10.13.1",
|
||||
"preact/": "https://esm.sh/preact@10.13.1/",
|
||||
"preact-render-to-string": "https://esm.sh/*preact-render-to-string@5.2.6",
|
||||
"@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.178.0/",
|
||||
"$ga4": "https://raw.githubusercontent.com/denoland/ga4/main/mod.ts"
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
import { assertEquals } from "$std/testing/asserts.ts";
|
||||
import { TextLineStream } from "$std/streams/delimiter.ts";
|
||||
import { TextLineStream } from "$std/streams/text_line_stream.ts";
|
||||
import { delay } from "$std/async/delay.ts";
|
||||
|
||||
Deno.test("CORS should not set on GET /fresh-badge.svg", {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
export * as gfm from "https://deno.land/x/gfm@0.1.23/mod.ts";
|
||||
import "https://esm.sh/prismjs@1.27.0/components/prism-jsx.js?no-check";
|
||||
import "https://esm.sh/prismjs@1.27.0/components/prism-typescript.js?no-check";
|
||||
import "https://esm.sh/prismjs@1.27.0/components/prism-tsx.js?no-check";
|
||||
import "https://esm.sh/prismjs@1.27.0/components/prism-diff.js?no-check";
|
||||
export * as gfm from "https://deno.land/x/gfm@0.2.1/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";
|
||||
import "https://esm.sh/prismjs@1.29.0/components/prism-diff.js?no-check";
|
||||
|
||||
export { extract as frontMatter } from "$std/encoding/front_matter.ts";
|
||||
export { extract as frontMatter } from "$std/encoding/front_matter/yaml.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@v1.2.14/mod.ts";
|
||||
import { join } from "https://deno.land/std@0.137.0/path/mod.ts";
|
||||
import { Image } from "https://deno.land/x/imagescript@1.2.15/mod.ts";
|
||||
import { join } from "https://deno.land/std@0.178.0/path/mod.ts";
|
||||
|
||||
const url = Deno.args[0];
|
||||
const id = Deno.args[1];
|
||||
|
||||
Reference in New Issue
Block a user