chore: update deps (#42)
This commit updates dependencies. Preact is now pulled from esm.sh.
This commit is contained in:
+4
-4
@@ -3,12 +3,12 @@ export {
|
||||
join,
|
||||
resolve,
|
||||
toFileUrl,
|
||||
} from "https://deno.land/std@0.95.0/path/mod.ts";
|
||||
export { walk } from "https://deno.land/std@0.95.0/fs/walk.ts";
|
||||
export { parse as parseArgs } from "https://deno.land/std@0.95.0/flags/mod.ts";
|
||||
} from "https://deno.land/std@0.102.0/path/mod.ts";
|
||||
export { walk } from "https://deno.land/std@0.102.0/fs/walk.ts";
|
||||
export { parse as parseArgs } from "https://deno.land/std@0.102.0/flags/mod.ts";
|
||||
export {
|
||||
bold,
|
||||
green,
|
||||
red,
|
||||
yellow,
|
||||
} from "https://deno.land/std@0.95.0/fmt/colors.ts";
|
||||
} from "https://deno.land/std@0.102.0/fmt/colors.ts";
|
||||
|
||||
+11
-11
@@ -1,13 +1,4 @@
|
||||
export * from "https://x.lcas.dev/preact@10.5.12/mod.js";
|
||||
export type {
|
||||
CreateHandle,
|
||||
EffectCallback,
|
||||
Inputs,
|
||||
PropRef,
|
||||
Reducer,
|
||||
Ref,
|
||||
StateUpdater,
|
||||
} from "https://x.lcas.dev/preact@10.5.12/hooks.js";
|
||||
export * from "https://esm.sh/preact@10.5.14";
|
||||
export {
|
||||
useCallback,
|
||||
useContext,
|
||||
@@ -20,4 +11,13 @@ export {
|
||||
useReducer,
|
||||
useRef,
|
||||
useState,
|
||||
} from "https://x.lcas.dev/preact@10.5.12/hooks.js";
|
||||
} from "https://esm.sh/preact@10.5.14/hooks";
|
||||
export type {
|
||||
CreateHandle,
|
||||
EffectCallback,
|
||||
Inputs,
|
||||
PropRef,
|
||||
Reducer,
|
||||
Ref,
|
||||
StateUpdater,
|
||||
} from "https://esm.sh/preact@10.5.14/hooks";
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { generateUuid } from "./deps.ts";
|
||||
|
||||
export const INTERNAL_PREFIX = "/_frsh";
|
||||
export const BUILD_ID = Deno.env.get("DENO_DEPLOYMENT_ID") || generateUuid();
|
||||
export const BUILD_ID = Deno.env.get("DENO_DEPLOYMENT_ID") ||
|
||||
crypto.randomUUID();
|
||||
export const JS_PREFIX = `/js`;
|
||||
|
||||
+4
-11
@@ -1,24 +1,17 @@
|
||||
// -- preact --
|
||||
export { renderToString } from "https://x.lcas.dev/preact@10.5.12/ssr.js";
|
||||
export { renderToString } from "https://esm.sh/preact-render-to-string@5.1.19?deps=preact@10.5.14";
|
||||
|
||||
// -- std --
|
||||
export { extname } from "https://deno.land/std@0.95.0/path/mod.ts";
|
||||
export { generate as generateUuid } from "https://deno.land/std@0.95.0/uuid/v4.ts";
|
||||
export { extname } from "https://deno.land/std@0.102.0/path/mod.ts";
|
||||
|
||||
// -- router --
|
||||
export * as router from "https://crux.land/router@0.0.4";
|
||||
|
||||
// -- media types --
|
||||
export { lookup as mediaTypeLookup } from "https://deno.land/x/media_types@v2.8.4/mod.ts";
|
||||
export { lookup as mediaTypeLookup } from "https://deno.land/x/media_types@v2.9.3/mod.ts";
|
||||
|
||||
// -- esbuild --
|
||||
const start = new Date().getTime();
|
||||
globalThis.performance = {
|
||||
now() {
|
||||
return new Date().getTime() - start;
|
||||
},
|
||||
};
|
||||
// @deno-types="https://unpkg.com/esbuild-wasm@0.11.19/esm/browser.d.ts"
|
||||
import * as esbuild from "https://gist.githubusercontent.com/lucacasonato/358c6b7e8198bfb2cf3d220e49fdcf5f/raw/3714cb0f59606eefc29ed0fea36d4cd93549938b/esbuild-wasm.js";
|
||||
export { esbuild };
|
||||
export { denoPlugin } from "https://raw.githubusercontent.com/lucacasonato/esbuild_deno_loader/fa2219c3df9494da6c33e3e4dffb1a33b5cc0345/mod.ts";
|
||||
export { denoPlugin } from "https://deno.land/x/esbuild_deno_loader@0.2.0/mod.ts";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { generateUuid, renderToString } from "./deps.ts";
|
||||
import { renderToString } from "./deps.ts";
|
||||
import { ComponentChild, h } from "../runtime/deps.ts";
|
||||
import { DATA_CONTEXT } from "../runtime/hooks.ts";
|
||||
import { Page, Renderer } from "./types.ts";
|
||||
@@ -56,7 +56,7 @@ export async function render(opts: RenderOptions): Promise<string> {
|
||||
children: h(opts.page.component, props),
|
||||
});
|
||||
|
||||
const ctx = new RenderContext(generateUuid());
|
||||
const ctx = new RenderContext(crypto.randomUUID());
|
||||
|
||||
let suspended = 0;
|
||||
const renderWithRenderer = (): string | Promise<string> => {
|
||||
|
||||
+1
-1
@@ -2,4 +2,4 @@ export {
|
||||
assert,
|
||||
assertEquals,
|
||||
assertStringIncludes,
|
||||
} from "https://deno.land/std@0.97.0/testing/asserts.ts";
|
||||
} from "https://deno.land/std@0.102.0/testing/asserts.ts";
|
||||
|
||||
Reference in New Issue
Block a user