fix: update dependency recommendations (#2320)

closes https://github.com/denoland/fresh/issues/2319

The issue is because `imports.ts` wasn't changed before releasing. I
thought I would go through and bump some other versions as well. This
handles everything except the esbuild stuff and `tests/`.
This commit is contained in:
Reed von Redwitz
2024-02-19 10:33:04 +01:00
committed by GitHub
parent bf0e33eda1
commit 82c75f85e9
69 changed files with 198 additions and 186 deletions
+5 -5
View File
@@ -6,13 +6,13 @@
"$fresh/": "../", "$fresh/": "../",
"twind": "https://esm.sh/twind@0.16.19", "twind": "https://esm.sh/twind@0.16.19",
"twind/": "https://esm.sh/twind@0.16.19/", "twind/": "https://esm.sh/twind@0.16.19/",
"preact": "https://esm.sh/preact@10.18.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.18.1/", "preact/": "https://esm.sh/preact@10.19.5/",
"@preact/signals": "https://esm.sh/*@preact/signals@1.2.1", "@preact/signals": "https://esm.sh/*@preact/signals@1.2.2",
"@preact/signals-core": "https://esm.sh/@preact/signals-core@1.5.0", "@preact/signals-core": "https://esm.sh/@preact/signals-core@1.5.1",
"@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.211.0/", "$std/": "https://deno.land/std@0.216.0/",
"$ga4": "https://raw.githubusercontent.com/denoland/ga4/main/mod.ts", "$ga4": "https://raw.githubusercontent.com/denoland/ga4/main/mod.ts",
"$marked-mangle": "https://esm.sh/marked-mangle@1.0.1", "$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", "$fresh-testing-library": "https://deno.land/x/fresh_testing_library@0.11.1/mod.ts",
+4 -4
View File
@@ -5,10 +5,10 @@
}, },
"imports": { "imports": {
"$fresh/": "../", "$fresh/": "../",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/", "preact/": "https://esm.sh/preact@10.19.5/",
"@preact/signals": "https://esm.sh/*@preact/signals@1.1.3", "@preact/signals": "https://esm.sh/*@preact/signals@1.2.2",
"@preact/signals-core": "https://esm.sh/@preact/signals-core@1.2.3" "@preact/signals-core": "https://esm.sh/@preact/signals-core@1.5.1"
}, },
"compilerOptions": { "compilerOptions": {
"jsx": "react-jsx", "jsx": "react-jsx",
@@ -83,8 +83,8 @@ export default {
+ "nodeModulesDir": true, + "nodeModulesDir": true,
"imports": { "imports": {
"$fresh/": "https://deno.land/x/fresh@1.5.2/", "$fresh/": "https://deno.land/x/fresh@1.5.2/",
"preact": "https://esm.sh/preact@10.19.2", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.19.2/", "preact/": "https://esm.sh/preact@10.19.5/",
- "twind": "https://esm.sh/twind@0.16.19", - "twind": "https://esm.sh/twind@0.16.19",
- "twind/": "https://esm.sh/twind@0.16.19/", - "twind/": "https://esm.sh/twind@0.16.19/",
+ "tailwindcss": "npm:tailwindcss@3.4.1", + "tailwindcss": "npm:tailwindcss@3.4.1",
@@ -22,8 +22,8 @@ instead this one particular commit? Just make the following changes to your
"imports": { "imports": {
- "$fresh/": "https://deno.land/x/fresh@1.2.0/", - "$fresh/": "https://deno.land/x/fresh@1.2.0/",
+ "$fresh/": "https://raw.githubusercontent.com/denoland/fresh/the-particular-commit-hash-here/", + "$fresh/": "https://raw.githubusercontent.com/denoland/fresh/the-particular-commit-hash-here/",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/", "preact/": "https://esm.sh/preact@10.19.5/",
``` ```
### Forked Fresh ### Forked Fresh
@@ -39,8 +39,8 @@ been merged yet (at the time of writing this):
"imports": { "imports": {
- "$fresh/": "https://deno.land/x/fresh@1.2.0/", - "$fresh/": "https://deno.land/x/fresh@1.2.0/",
+ "$fresh/": "https://raw.githubusercontent.com/deer/fresh/state_in_props/", + "$fresh/": "https://raw.githubusercontent.com/deer/fresh/state_in_props/",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/", "preact/": "https://esm.sh/preact@10.19.5/",
``` ```
## Creating a new project ## Creating a new project
+3 -3
View File
@@ -1,7 +1,7 @@
import { Plugin, PluginMiddleware, ResolvedFreshConfig } from "../server.ts"; import { Plugin, PluginMiddleware, ResolvedFreshConfig } from "../server.ts";
import type postcss from "npm:postcss@8.4.33"; import type postcss from "npm:postcss@8.4.35";
import * as path from "https://deno.land/std@0.207.0/path/mod.ts"; import * as path from "https://deno.land/std@0.216.0/path/mod.ts";
import { walk } from "https://deno.land/std@0.207.0/fs/walk.ts"; import { walk } from "https://deno.land/std@0.216.0/fs/walk.ts";
import { TailwindPluginOptions } from "./tailwind/types.ts"; import { TailwindPluginOptions } from "./tailwind/types.ts";
async function initTailwind( async function initTailwind(
+2 -2
View File
@@ -1,9 +1,9 @@
import { ResolvedFreshConfig } from "../../server.ts"; import { ResolvedFreshConfig } from "../../server.ts";
import tailwindCss, { Config } from "tailwindcss"; import tailwindCss, { Config } from "tailwindcss";
import postcss from "npm:postcss@8.4.33"; import postcss from "npm:postcss@8.4.35";
import cssnano from "npm:cssnano@6.0.3"; import cssnano from "npm:cssnano@6.0.3";
import autoprefixer from "npm:autoprefixer@10.4.17"; import autoprefixer from "npm:autoprefixer@10.4.17";
import * as path from "https://deno.land/std@0.207.0/path/mod.ts"; import * as path from "https://deno.land/std@0.216.0/path/mod.ts";
import { TailwindPluginOptions } from "./types.ts"; import { TailwindPluginOptions } from "./types.ts";
const CONFIG_EXTENSIONS = ["ts", "js", "mjs"]; const CONFIG_EXTENSIONS = ["ts", "js", "mjs"];
+3 -3
View File
@@ -4,7 +4,7 @@ export {
join, join,
relative, relative,
toFileUrl, toFileUrl,
} from "https://deno.land/std@0.211.0/path/mod.ts"; } from "https://deno.land/std@0.216.0/path/mod.ts";
export { escape as regexpEscape } from "https://deno.land/std@0.211.0/regexp/escape.ts"; export { escape as regexpEscape } from "https://deno.land/std@0.216.0/regexp/escape.ts";
export { denoPlugins } from "https://deno.land/x/esbuild_deno_loader@0.8.5/mod.ts"; export { denoPlugins } from "https://deno.land/x/esbuild_deno_loader@0.8.5/mod.ts";
export { assertEquals } from "https://deno.land/std@0.211.0/assert/mod.ts"; export { assertEquals } from "https://deno.land/std@0.216.0/assert/mod.ts";
+14 -14
View File
@@ -7,26 +7,26 @@ export {
join, join,
relative, relative,
resolve, resolve,
SEP, SEPARATOR,
toFileUrl, toFileUrl,
} from "https://deno.land/std@0.211.0/path/mod.ts"; } from "https://deno.land/std@0.216.0/path/mod.ts";
export { normalize } from "https://deno.land/std@0.211.0/path/posix/mod.ts"; export { normalize } from "https://deno.land/std@0.216.0/path/posix/mod.ts";
export { DAY, WEEK } from "https://deno.land/std@0.211.0/datetime/constants.ts"; export { DAY, WEEK } from "https://deno.land/std@0.216.0/datetime/constants.ts";
export * as colors from "https://deno.land/std@0.211.0/fmt/colors.ts"; export * as colors from "https://deno.land/std@0.216.0/fmt/colors.ts";
export { export {
walk, walk,
type WalkEntry, type WalkEntry,
WalkError, WalkError,
} from "https://deno.land/std@0.211.0/fs/walk.ts"; } from "https://deno.land/std@0.216.0/fs/walk.ts";
export { parse } from "https://deno.land/std@0.211.0/flags/mod.ts"; export { parse } from "https://deno.land/std@0.216.0/flags/mod.ts";
export { export {
gte, greaterOrEqual,
lt, lessThan,
parse as semverParse, parse as semverParse,
} from "https://deno.land/std@0.211.0/semver/mod.ts"; } from "https://deno.land/std@0.216.0/semver/mod.ts";
export { emptyDir, existsSync } from "https://deno.land/std@0.211.0/fs/mod.ts"; export { emptyDir, existsSync } from "https://deno.land/std@0.216.0/fs/mod.ts";
export * as JSONC from "https://deno.land/std@0.211.0/jsonc/mod.ts"; export * as JSONC from "https://deno.land/std@0.216.0/jsonc/mod.ts";
export { assertEquals } from "https://deno.land/std@0.211.0/assert/mod.ts"; export { assertEquals } from "https://deno.land/std@0.216.0/assert/mod.ts";
// ts-morph // ts-morph
export { Node, Project } from "https://deno.land/x/ts_morph@20.0.0/mod.ts"; export { Node, Project } from "https://deno.land/x/ts_morph@21.0.1/mod.ts";
+4 -4
View File
@@ -1,10 +1,10 @@
export const RECOMMENDED_PREACT_VERSION = "10.19.2"; export const RECOMMENDED_PREACT_VERSION = "10.19.5";
export const RECOMMENDED_PREACT_SIGNALS_VERSION = "1.2.1"; export const RECOMMENDED_PREACT_SIGNALS_VERSION = "1.2.2";
export const RECOMMENDED_PREACT_SIGNALS_CORE_VERSION = "1.5.0"; export const RECOMMENDED_PREACT_SIGNALS_CORE_VERSION = "1.5.1";
export const RECOMMENDED_TWIND_CORE_VERSION = "1.1.3"; export const RECOMMENDED_TWIND_CORE_VERSION = "1.1.3";
export const RECOMMENDED_TWIND_PRESET_AUTOPREFIX_VERSION = "1.0.7"; export const RECOMMENDED_TWIND_PRESET_AUTOPREFIX_VERSION = "1.0.7";
export const RECOMMENDED_TWIND_PRESET_TAILWIND_VERSION = "1.1.4"; export const RECOMMENDED_TWIND_PRESET_TAILWIND_VERSION = "1.1.4";
export const RECOMMENDED_STD_VERSION = "0.211.0"; export const RECOMMENDED_STD_VERSION = "0.216.0";
export const RECOMMENDED_TAILIWIND_VERSION = "3.4.1"; export const RECOMMENDED_TAILIWIND_VERSION = "3.4.1";
export function freshImports(imports: Record<string, string>) { export function freshImports(imports: Record<string, string>) {
+14 -2
View File
@@ -1,4 +1,11 @@
import { gte, join, relative, semverParse, walk, WalkEntry } from "./deps.ts"; import {
greaterOrEqual,
join,
relative,
semverParse,
walk,
WalkEntry,
} from "./deps.ts";
export { generate, type Manifest } from "./manifest.ts"; export { generate, type Manifest } from "./manifest.ts";
import { generate, type Manifest } from "./manifest.ts"; import { generate, type Manifest } from "./manifest.ts";
import { error } from "./error.ts"; import { error } from "./error.ts";
@@ -7,7 +14,12 @@ const TEST_FILE_PATTERN = /[._]test\.(?:[tj]sx?|[mc][tj]s)$/;
export function ensureMinDenoVersion() { export function ensureMinDenoVersion() {
// Check that the minimum supported Deno version is being used. // Check that the minimum supported Deno version is being used.
if (!gte(semverParse(Deno.version.deno), semverParse(MIN_DENO_VERSION))) { if (
!greaterOrEqual(
semverParse(Deno.version.deno),
semverParse(MIN_DENO_VERSION),
)
) {
let message = let message =
`Deno version ${MIN_DENO_VERSION} or higher is required. Please update Deno.\n\n`; `Deno version ${MIN_DENO_VERSION} or higher is required. Please update Deno.\n\n`;
+2 -2
View File
@@ -1,4 +1,4 @@
import { colors, join, lt, semverParse } from "./deps.ts"; import { colors, join, lessThan, semverParse } from "./deps.ts";
export interface CheckFile { export interface CheckFile {
last_checked: string; last_checked: string;
@@ -118,7 +118,7 @@ export async function updateCheck(
if ( if (
(!checkFile.last_shown || (!checkFile.last_shown ||
Date.now() >= new Date(checkFile.last_shown).getTime() + interval) && Date.now() >= new Date(checkFile.last_shown).getTime() + interval) &&
lt(currentVersion, latestVersion) lessThan(currentVersion, latestVersion)
) { ) {
checkFile.last_shown = new Date().toISOString(); checkFile.last_shown = new Date().toISOString();
+2 -2
View File
@@ -1,4 +1,4 @@
import { SEP } from "./deps.ts"; import { SEPARATOR } from "./deps.ts";
import { ErrorHandler, FinalHandler, RouteResult, withBase } from "./router.ts"; import { ErrorHandler, FinalHandler, RouteResult, withBase } from "./router.ts";
import { import {
BaseRoute, BaseRoute,
@@ -10,7 +10,7 @@ import {
export const ROOT_BASE_ROUTE = toBaseRoute("/"); export const ROOT_BASE_ROUTE = toBaseRoute("/");
export function toBaseRoute(input: string): BaseRoute { export function toBaseRoute(input: string): BaseRoute {
input = input.replaceAll(SEP, "/"); input = input.replaceAll(SEPARATOR, "/");
if (input.endsWith("_layout")) { if (input.endsWith("_layout")) {
input = input.slice(0, -"_layout".length); input = input.slice(0, -"_layout".length);
+2 -2
View File
@@ -1,4 +1,4 @@
import { contentType, extname, SEP, STATUS_CODE } from "./deps.ts"; import { contentType, extname, SEPARATOR, STATUS_CODE } from "./deps.ts";
import * as router from "./router.ts"; import * as router from "./router.ts";
import { FreshConfig, FreshContext, Manifest } from "./mod.ts"; import { FreshConfig, FreshContext, Manifest } from "./mod.ts";
import { import {
@@ -353,7 +353,7 @@ export class ServerContext {
const { localUrl, path, size, contentType, etag } of this.#extractResult const { localUrl, path, size, contentType, etag } of this.#extractResult
.staticFiles .staticFiles
) { ) {
staticRoutes[path.replaceAll(SEP, "/")] = { staticRoutes[path.replaceAll(SEPARATOR, "/")] = {
baseRoute: toBaseRoute(path), baseRoute: toBaseRoute(path),
methods: { methods: {
"HEAD": this.#staticFileHandler( "HEAD": this.#staticFileHandler(
+13 -13
View File
@@ -6,30 +6,30 @@ export {
fromFileUrl, fromFileUrl,
isAbsolute, isAbsolute,
join, join,
SEP, SEPARATOR,
toFileUrl, toFileUrl,
} from "https://deno.land/std@0.211.0/path/mod.ts"; } from "https://deno.land/std@0.216.0/path/mod.ts";
export { walk } from "https://deno.land/std@0.211.0/fs/walk.ts"; export { walk } from "https://deno.land/std@0.216.0/fs/walk.ts";
export * as colors from "https://deno.land/std@0.211.0/fmt/colors.ts"; export * as colors from "https://deno.land/std@0.216.0/fmt/colors.ts";
export { export {
type Handler as ServeHandler, type Handler as ServeHandler,
serve, serve,
} from "https://deno.land/std@0.211.0/http/server.ts"; } from "https://deno.land/std@0.216.0/http/server.ts";
export { STATUS_CODE } from "https://deno.land/std@0.211.0/http/status.ts"; export { STATUS_CODE } from "https://deno.land/std@0.216.0/http/status.ts";
export { export {
contentType, contentType,
} from "https://deno.land/std@0.211.0/media_types/content_type.ts"; } from "https://deno.land/std@0.216.0/media_types/content_type.ts";
export { encodeHex } from "https://deno.land/std@0.211.0/encoding/hex.ts"; export { encodeHex } from "https://deno.land/std@0.216.0/encoding/hex.ts";
export { escape } from "https://deno.land/std@0.211.0/regexp/escape.ts"; export { escape } from "https://deno.land/std@0.216.0/regexp/escape.ts";
export * as JSONC from "https://deno.land/std@0.211.0/jsonc/mod.ts"; export * as JSONC from "https://deno.land/std@0.216.0/jsonc/mod.ts";
export { renderToString } from "https://esm.sh/*preact-render-to-string@6.3.1"; export { renderToString } from "https://esm.sh/*preact-render-to-string@6.3.1";
export { export {
assertEquals, assertEquals,
assertThrows, assertThrows,
} from "https://deno.land/std@0.211.0/assert/mod.ts"; } from "https://deno.land/std@0.216.0/assert/mod.ts";
export { export {
isIdentifierChar, isIdentifierChar,
isIdentifierStart, isIdentifierStart,
} from "https://esm.sh/@babel/helper-validator-identifier@7.22.20"; } from "https://esm.sh/@babel/helper-validator-identifier@7.22.20";
export { normalize } from "https://deno.land/std@0.211.0/path/posix/mod.ts"; export { normalize } from "https://deno.land/std@0.216.0/path/posix/mod.ts";
export { assertSnapshot } from "https://deno.land/std@0.211.0/testing/snapshot.ts"; export { assertSnapshot } from "https://deno.land/std@0.216.0/testing/snapshot.ts";
+2 -2
View File
@@ -26,7 +26,7 @@ import {
dirname, dirname,
extname, extname,
join, join,
SEP, SEPARATOR,
toFileUrl, toFileUrl,
walk, walk,
} from "./deps.ts"; } from "./deps.ts";
@@ -111,7 +111,7 @@ export async function extractRoutes(
const path = url.substring(baseUrl.length + "routes".length); const path = url.substring(baseUrl.length + "routes".length);
let baseRoute = path.substring(1, path.length - extname(path).length); let baseRoute = path.substring(1, path.length - extname(path).length);
baseRoute = join(state.config.basePath.slice(1), baseRoute).replaceAll( baseRoute = join(state.config.basePath.slice(1), baseRoute).replaceAll(
SEP, SEPARATOR,
"/", "/",
); );
const name = baseRoute.replace(/\//g, "-"); const name = baseRoute.replace(/\//g, "-");
+2 -2
View File
@@ -11,7 +11,7 @@ import {
} from "preact"; } from "preact";
import { assetHashingHook } from "../../runtime/utils.ts"; import { assetHashingHook } from "../../runtime/utils.ts";
import { Partial, PartialProps } from "../../runtime/Partial.tsx"; import { Partial, PartialProps } from "../../runtime/Partial.tsx";
import { join, renderToString, SEP } from "../deps.ts"; import { join, renderToString, SEPARATOR } from "../deps.ts";
import { RenderState } from "./state.ts"; import { RenderState } from "./state.ts";
import { Island } from "../types.ts"; import { Island } from "../types.ts";
import { import {
@@ -238,7 +238,7 @@ options.vnode = (vnode) => {
if (url.startsWith("/") && current?.basePath) { if (url.startsWith("/") && current?.basePath) {
const joinedPath = join("/", current.basePath, url).replaceAll( const joinedPath = join("/", current.basePath, url).replaceAll(
SEP, SEPARATOR,
"/", "/",
); );
out.push(leading + joinedPath + trailing); out.push(leading + joinedPath + trailing);
+13 -13
View File
@@ -15,13 +15,13 @@ export {
assertRejects, assertRejects,
assertStringIncludes, assertStringIncludes,
assertThrows, assertThrows,
} from "https://deno.land/std@0.211.0/assert/mod.ts"; } from "https://deno.land/std@0.216.0/assert/mod.ts";
export { assertSnapshot } from "https://deno.land/std@0.211.0/testing/snapshot.ts"; export { assertSnapshot } from "https://deno.land/std@0.216.0/testing/snapshot.ts";
export { export {
TextLineStream, TextLineStream,
} from "https://deno.land/std@0.211.0/streams/text_line_stream.ts"; } from "https://deno.land/std@0.216.0/streams/text_line_stream.ts";
export { delay } from "https://deno.land/std@0.211.0/async/delay.ts"; export { delay } from "https://deno.land/std@0.216.0/async/delay.ts";
export { retry } from "https://deno.land/std@0.211.0/async/retry.ts"; export { retry } from "https://deno.land/std@0.216.0/async/retry.ts";
export { export {
default as puppeteer, default as puppeteer,
Page, Page,
@@ -31,10 +31,10 @@ export {
DOMParser, DOMParser,
HTMLElement, HTMLElement,
HTMLMetaElement, HTMLMetaElement,
} from "https://esm.sh/linkedom@0.15.1"; } from "https://esm.sh/linkedom@0.16.8";
export { defineConfig, type Preset } from "https://esm.sh/@twind/core@1.1.3"; 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 { default as presetTailwind } from "https://esm.sh/@twind/preset-tailwind@1.1.4";
export { copy } from "https://deno.land/std@0.211.0/fs/mod.ts"; export { copy } from "https://deno.land/std@0.216.0/fs/mod.ts";
export { export {
basename, basename,
dirname, dirname,
@@ -42,10 +42,10 @@ export {
fromFileUrl, fromFileUrl,
join, join,
relative, relative,
SEP, SEPARATOR,
toFileUrl, toFileUrl,
} from "https://deno.land/std@0.211.0/path/mod.ts"; } from "https://deno.land/std@0.216.0/path/mod.ts";
export * as JSONC from "https://deno.land/std@0.211.0/jsonc/mod.ts"; export * as JSONC from "https://deno.land/std@0.216.0/jsonc/mod.ts";
export * as colors from "https://deno.land/std@0.211.0/fmt/colors.ts"; export * as colors from "https://deno.land/std@0.216.0/fmt/colors.ts";
export { STATUS_CODE } from "https://deno.land/std@0.211.0/http/status.ts"; export { STATUS_CODE } from "https://deno.land/std@0.216.0/http/status.ts";
export { stripAnsiCode } from "https://deno.land/std@0.211.0/fmt/colors.ts"; export { stripAnsiCode } from "https://deno.land/std@0.216.0/fmt/colors.ts";
+2 -2
View File
@@ -2,8 +2,8 @@
"lock": false, "lock": false,
"imports": { "imports": {
"$fresh/": "../../", "$fresh/": "../../",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/", "preact/": "https://esm.sh/preact@10.19.5/",
"@preact/signals": "https://esm.sh/*@preact/signals@1.1.5", "@preact/signals": "https://esm.sh/*@preact/signals@1.1.5",
"@preact/signals-core": "https://esm.sh/@preact/signals-core@1.3.1" "@preact/signals-core": "https://esm.sh/@preact/signals-core@1.3.1"
}, },
+2 -2
View File
@@ -1,10 +1,10 @@
import { defineRoute } from "$fresh/server.ts"; import { defineRoute } from "$fresh/server.ts";
import { relative, SEP } from "$fresh/tests/deps.ts"; import { relative, SEPARATOR } from "$fresh/tests/deps.ts";
export default defineRoute((_req, ctx) => { export default defineRoute((_req, ctx) => {
const value = JSON.stringify(ctx, (key, value) => { const value = JSON.stringify(ctx, (key, value) => {
if (key === "outDir" || key == "staticDir") { if (key === "outDir" || key == "staticDir") {
return relative(Deno.cwd(), value).split(SEP).join("/"); return relative(Deno.cwd(), value).split(SEPARATOR).join("/");
} }
if (typeof value === "function") return value.constructor.name; if (typeof value === "function") return value.constructor.name;
if (value === undefined) return "<undefined>"; if (value === undefined) return "<undefined>";
+2 -2
View File
@@ -1,10 +1,10 @@
import { PageProps } from "$fresh/server.ts"; import { PageProps } from "$fresh/server.ts";
import { relative, SEP } from "../../deps.ts"; import { relative, SEPARATOR } from "../../deps.ts";
export default function Page(props: PageProps) { export default function Page(props: PageProps) {
const value = JSON.stringify(props, (key, value) => { const value = JSON.stringify(props, (key, value) => {
if (key === "outDir" || key == "staticDir") { if (key === "outDir" || key == "staticDir") {
return relative(Deno.cwd(), value).split(SEP).join("/"); return relative(Deno.cwd(), value).split(SEPARATOR).join("/");
} }
if (typeof value === "function") return value.constructor.name; if (typeof value === "function") return value.constructor.name;
if (value === undefined) return "<undefined>"; if (value === undefined) return "<undefined>";
+2 -2
View File
@@ -5,8 +5,8 @@
}, },
"imports": { "imports": {
"$fresh/": "../../", "$fresh/": "../../",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/", "preact/": "https://esm.sh/preact@10.19.5/",
"@preact/signals": "https://esm.sh/*@preact/signals@1.2.2", "@preact/signals": "https://esm.sh/*@preact/signals@1.2.2",
"@preact/signals-core": "https://esm.sh/@preact/signals-core@1.5.0", "@preact/signals-core": "https://esm.sh/@preact/signals-core@1.5.0",
"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",
+2 -2
View File
@@ -2,8 +2,8 @@
"lock": false, "lock": false,
"imports": { "imports": {
"$fresh/": "../../", "$fresh/": "../../",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/", "preact/": "https://esm.sh/preact@10.19.5/",
"tailwindcss": "npm:tailwindcss@3.4.1" "tailwindcss": "npm:tailwindcss@3.4.1"
}, },
"compilerOptions": { "compilerOptions": {
+2 -2
View File
@@ -2,8 +2,8 @@
"lock": false, "lock": false,
"imports": { "imports": {
"$fresh/": "../../", "$fresh/": "../../",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/", "preact/": "https://esm.sh/preact@10.19.5/",
"tailwindcss": "npm:tailwindcss@3.4.1" "tailwindcss": "npm:tailwindcss@3.4.1"
}, },
"compilerOptions": { "compilerOptions": {
+2 -2
View File
@@ -2,8 +2,8 @@
"lock": false, "lock": false,
"imports": { "imports": {
"$fresh/": "../../", "$fresh/": "../../",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/", "preact/": "https://esm.sh/preact@10.19.5/",
"@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"
}, },
+2 -2
View File
@@ -2,8 +2,8 @@
"lock": false, "lock": false,
"imports": { "imports": {
"$fresh/": "../../", "$fresh/": "../../",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/", "preact/": "https://esm.sh/preact@10.19.5/",
"preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.2.0", "preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.2.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"
+2 -2
View File
@@ -2,8 +2,8 @@
"lock": false, "lock": false,
"imports": { "imports": {
"$fresh/": "../../", "$fresh/": "../../",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/", "preact/": "https://esm.sh/preact@10.19.5/",
"preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.2.0", "preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.2.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"
+2 -2
View File
@@ -2,8 +2,8 @@
"lock": false, "lock": false,
"imports": { "imports": {
"$fresh/": "../../", "$fresh/": "../../",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/", "preact/": "https://esm.sh/preact@10.19.5/",
"preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.2.0", "preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.2.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"
+2 -2
View File
@@ -2,8 +2,8 @@
"lock": false, "lock": false,
"imports": { "imports": {
"$fresh/": "../../", "$fresh/": "../../",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/", "preact/": "https://esm.sh/preact@10.19.5/",
"@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"
}, },
+2 -2
View File
@@ -2,8 +2,8 @@
"lock": false, "lock": false,
"imports": { "imports": {
"$fresh/": "../../", "$fresh/": "../../",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/", "preact/": "https://esm.sh/preact@10.19.5/",
"preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.2.0", "preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.2.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"
+2 -2
View File
@@ -2,8 +2,8 @@
"lock": false, "lock": false,
"imports": { "imports": {
"$fresh/": "../../", "$fresh/": "../../",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/", "preact/": "https://esm.sh/preact@10.19.5/",
"preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.2.0", "preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.2.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"
+2 -2
View File
@@ -2,8 +2,8 @@
"lock": false, "lock": false,
"imports": { "imports": {
"$fresh/": "../../", "$fresh/": "../../",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/", "preact/": "https://esm.sh/preact@10.19.5/",
"preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.2.0", "preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.2.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"
+2 -2
View File
@@ -2,8 +2,8 @@
"lock": false, "lock": false,
"imports": { "imports": {
"$fresh/": "../../", "$fresh/": "../../",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/" "preact/": "https://esm.sh/preact@10.19.5/"
}, },
"compilerOptions": { "compilerOptions": {
"jsx": "react-jsx", "jsx": "react-jsx",
+2 -2
View File
@@ -2,8 +2,8 @@
"lock": false, "lock": false,
"imports": { "imports": {
"$fresh/": "../../", "$fresh/": "../../",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/" "preact/": "https://esm.sh/preact@10.19.5/"
}, },
"compilerOptions": { "compilerOptions": {
"jsx": "react-jsx", "jsx": "react-jsx",
+2 -2
View File
@@ -2,8 +2,8 @@
"lock": false, "lock": false,
"imports": { "imports": {
"$fresh/": "../../", "$fresh/": "../../",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/", "preact/": "https://esm.sh/preact@10.19.5/",
"preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.2.1" "preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.2.1"
}, },
"compilerOptions": { "compilerOptions": {
+2 -2
View File
@@ -2,8 +2,8 @@
"lock": false, "lock": false,
"imports": { "imports": {
"$fresh/": "../../", "$fresh/": "../../",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/", "preact/": "https://esm.sh/preact@10.19.5/",
"preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.2.1", "preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.2.1",
"@preact/signals": "https://esm.sh/*@preact/signals@1.1.5", "@preact/signals": "https://esm.sh/*@preact/signals@1.1.5",
"@preact/signals-core": "https://esm.sh/@preact/signals-core@1.3.1" "@preact/signals-core": "https://esm.sh/@preact/signals-core@1.3.1"
+2 -2
View File
@@ -2,8 +2,8 @@
"lock": false, "lock": false,
"imports": { "imports": {
"$fresh/": "../../", "$fresh/": "../../",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/" "preact/": "https://esm.sh/preact@10.19.5/"
}, },
"compilerOptions": { "compilerOptions": {
"jsx": "react-jsx", "jsx": "react-jsx",
+2 -2
View File
@@ -5,8 +5,8 @@
}, },
"imports": { "imports": {
"$fresh/": "../../", "$fresh/": "../../",
"preact": "https://esm.sh/preact@10.16.0", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.16.0/", "preact/": "https://esm.sh/preact@10.19.5/",
"@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"
}, },
+2 -2
View File
@@ -2,8 +2,8 @@
"lock": false, "lock": false,
"imports": { "imports": {
"$fresh/": "../../", "$fresh/": "../../",
"preact": "https://esm.sh/preact@10.19.2", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.19.2/", "preact/": "https://esm.sh/preact@10.19.5/",
"@preact/signals": "https://esm.sh/*@preact/signals@1.2.2", "@preact/signals": "https://esm.sh/*@preact/signals@1.2.2",
"@preact/signals-core": "https://esm.sh/@preact/signals-core@1.5.0" "@preact/signals-core": "https://esm.sh/@preact/signals-core@1.5.0"
}, },
+2 -2
View File
@@ -2,7 +2,7 @@
"lock": false, "lock": false,
"imports": { "imports": {
"$fresh/": "../../", "$fresh/": "../../",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/" "preact/": "https://esm.sh/preact@10.19.5/"
} }
} }
+2 -2
View File
@@ -6,7 +6,7 @@
}, },
"imports": { "imports": {
"$fresh/": "../../", "$fresh/": "../../",
"preact": "https://esm.sh/preact@10.19.2", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.19.2/" "preact/": "https://esm.sh/preact@10.19.5/"
} }
} }
+2 -2
View File
@@ -2,8 +2,8 @@
"lock": false, "lock": false,
"imports": { "imports": {
"$fresh/": "../../", "$fresh/": "../../",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/", "preact/": "https://esm.sh/preact@10.19.5/",
"@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"
}, },
+2 -2
View File
@@ -7,8 +7,8 @@
"$fresh/": "../../", "$fresh/": "../../",
"twind": "https://esm.sh/twind@0.16.19", "twind": "https://esm.sh/twind@0.16.19",
"twind/": "https://esm.sh/twind@0.16.19/", "twind/": "https://esm.sh/twind@0.16.19/",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/", "preact/": "https://esm.sh/preact@10.19.5/",
"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"
+2 -2
View File
@@ -2,8 +2,8 @@
"lock": false, "lock": false,
"imports": { "imports": {
"$fresh/": "../../", "$fresh/": "../../",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/" "preact/": "https://esm.sh/preact@10.19.5/"
}, },
"compilerOptions": { "compilerOptions": {
"jsx": "react-jsx", "jsx": "react-jsx",
+2 -2
View File
@@ -2,8 +2,8 @@
"lock": false, "lock": false,
"imports": { "imports": {
"$fresh/": "../../", "$fresh/": "../../",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/", "preact/": "https://esm.sh/preact@10.19.5/",
"preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.2.1", "preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.2.1",
"@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",
+2 -2
View File
@@ -2,8 +2,8 @@
"lock": false, "lock": false,
"imports": { "imports": {
"$fresh/": "../../", "$fresh/": "../../",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/" "preact/": "https://esm.sh/preact@10.19.5/"
}, },
"compilerOptions": { "compilerOptions": {
"jsx": "react-jsx", "jsx": "react-jsx",
+2 -2
View File
@@ -2,8 +2,8 @@
"lock": false, "lock": false,
"imports": { "imports": {
"$fresh/": "../../", "$fresh/": "../../",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/", "preact/": "https://esm.sh/preact@10.19.5/",
"preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.2.1" "preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.2.1"
}, },
"compilerOptions": { "compilerOptions": {
+2 -2
View File
@@ -2,8 +2,8 @@
"lock": false, "lock": false,
"imports": { "imports": {
"$fresh/": "../../", "$fresh/": "../../",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/" "preact/": "https://esm.sh/preact@10.19.5/"
}, },
"compilerOptions": { "compilerOptions": {
"jsx": "react-jsx", "jsx": "react-jsx",
+2 -2
View File
@@ -2,8 +2,8 @@
"lock": false, "lock": false,
"imports": { "imports": {
"$fresh/": "../../", "$fresh/": "../../",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/", "preact/": "https://esm.sh/preact@10.19.5/",
"preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.2.1" "preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.2.1"
}, },
"compilerOptions": { "compilerOptions": {
+2 -2
View File
@@ -2,8 +2,8 @@
"lock": false, "lock": false,
"imports": { "imports": {
"$fresh/": "../../", "$fresh/": "../../",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/", "preact/": "https://esm.sh/preact@10.19.5/",
"preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.2.1" "preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.2.1"
}, },
"compilerOptions": { "compilerOptions": {
+2 -2
View File
@@ -2,8 +2,8 @@
"lock": false, "lock": false,
"imports": { "imports": {
"$fresh/": "../../", "$fresh/": "../../",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/" "preact/": "https://esm.sh/preact@10.19.5/"
}, },
"compilerOptions": { "compilerOptions": {
"jsx": "react-jsx", "jsx": "react-jsx",
+2 -2
View File
@@ -6,8 +6,8 @@
}, },
"imports": { "imports": {
"$fresh/": "../../", "$fresh/": "../../",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/", "preact/": "https://esm.sh/preact@10.19.5/",
"@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.211.0/" "$std/": "https://deno.land/std@0.211.0/"
+2 -2
View File
@@ -2,8 +2,8 @@
"lock": false, "lock": false,
"imports": { "imports": {
"$fresh/": "../../", "$fresh/": "../../",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/", "preact/": "https://esm.sh/preact@10.19.5/",
"preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.2.1", "preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.2.1",
"@preact/signals": "https://esm.sh/*@preact/signals@1.1.5", "@preact/signals": "https://esm.sh/*@preact/signals@1.1.5",
"@preact/signals-core": "https://esm.sh/@preact/signals-core@1.3.1" "@preact/signals-core": "https://esm.sh/@preact/signals-core@1.3.1"
+2 -2
View File
@@ -7,8 +7,8 @@
"$fresh/": "../../", "$fresh/": "../../",
"twind": "https://esm.sh/twind@0.16.19", "twind": "https://esm.sh/twind@0.16.19",
"twind/": "https://esm.sh/twind@0.16.19/", "twind/": "https://esm.sh/twind@0.16.19/",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/", "preact/": "https://esm.sh/preact@10.19.5/",
"@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"
}, },
@@ -1,11 +1,11 @@
import { RouteContext } from "../../../../server.ts"; import { RouteContext } from "../../../../server.ts";
import { delay, relative, SEP } from "../../../deps.ts"; import { delay, relative, SEPARATOR } from "../../../deps.ts";
export default async function Foo(_req: Request, context: RouteContext) { export default async function Foo(_req: Request, context: RouteContext) {
await delay(1); await delay(1);
const value = JSON.stringify(context, (key, value) => { const value = JSON.stringify(context, (key, value) => {
if (key === "outDir" || key == "staticDir") { if (key === "outDir" || key == "staticDir") {
return relative(Deno.cwd(), value).split(SEP).join("/"); return relative(Deno.cwd(), value).split(SEPARATOR).join("/");
} else if (key === "entrypoints") { } else if (key === "entrypoints") {
return {}; return {};
} }
+2 -2
View File
@@ -2,8 +2,8 @@
"lock": false, "lock": false,
"imports": { "imports": {
"$fresh/": "../../", "$fresh/": "../../",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/", "preact/": "https://esm.sh/preact@10.19.5/",
"preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.2.1" "preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.2.1"
}, },
"compilerOptions": { "compilerOptions": {
+2 -2
View File
@@ -2,8 +2,8 @@
"lock": false, "lock": false,
"imports": { "imports": {
"$fresh/": "../../", "$fresh/": "../../",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/", "preact/": "https://esm.sh/preact@10.19.5/",
"tailwindcss": "npm:tailwindcss@3.4.1" "tailwindcss": "npm:tailwindcss@3.4.1"
}, },
"compilerOptions": { "compilerOptions": {
+2 -2
View File
@@ -2,8 +2,8 @@
"lock": false, "lock": false,
"imports": { "imports": {
"$fresh/": "../../", "$fresh/": "../../",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/", "preact/": "https://esm.sh/preact@10.19.5/",
"tailwindcss": "npm:tailwindcss@3.4.1" "tailwindcss": "npm:tailwindcss@3.4.1"
}, },
"compilerOptions": { "compilerOptions": {
+2 -2
View File
@@ -2,8 +2,8 @@
"lock": false, "lock": false,
"imports": { "imports": {
"$fresh/": "../../", "$fresh/": "../../",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/", "preact/": "https://esm.sh/preact@10.19.5/",
"tailwindcss": "npm:tailwindcss@3.4.1" "tailwindcss": "npm:tailwindcss@3.4.1"
}, },
"compilerOptions": { "compilerOptions": {
+2 -2
View File
@@ -2,8 +2,8 @@
"lock": false, "lock": false,
"imports": { "imports": {
"$fresh/": "../../", "$fresh/": "../../",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/", "preact/": "https://esm.sh/preact@10.19.5/",
"tailwindcss": "npm:tailwindcss@3.4.1" "tailwindcss": "npm:tailwindcss@3.4.1"
}, },
"compilerOptions": { "compilerOptions": {
+2 -2
View File
@@ -7,8 +7,8 @@
"$fresh/": "../../", "$fresh/": "../../",
"twind": "https://esm.sh/twind@0.16.19", "twind": "https://esm.sh/twind@0.16.19",
"twind/": "https://esm.sh/twind@0.16.19/", "twind/": "https://esm.sh/twind@0.16.19/",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/", "preact/": "https://esm.sh/preact@10.19.5/",
"@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"
}, },
@@ -8,7 +8,7 @@ import {
import { cleanup, fireEvent, render, setup } from "$fresh-testing-library"; import { cleanup, fireEvent, render, setup } from "$fresh-testing-library";
import { afterEach, beforeAll, describe, it } from "$std/testing/bdd.ts"; import { afterEach, beforeAll, describe, it } from "$std/testing/bdd.ts";
import LinkButton from "../../../../www/components/gallery/LinkButton.tsx"; import LinkButton from "../../../../www/components/gallery/LinkButton.tsx";
import IconHeart from "https://deno.land/x/tabler_icons_tsx@0.0.3/tsx/heart.tsx"; import IconHeart from "https://deno.land/x/tabler_icons_tsx@0.0.6/tsx/heart.tsx";
describe("components/gallery/LinkButton.tsx", () => { describe("components/gallery/LinkButton.tsx", () => {
beforeAll(setup); beforeAll(setup);
+2 -2
View File
@@ -1,8 +1,8 @@
import { asset } from "$fresh/runtime.ts"; import { asset } from "$fresh/runtime.ts";
import { useSignal } from "@preact/signals"; import { useSignal } from "@preact/signals";
import { useEffect, useRef } from "preact/hooks"; import { useEffect, useRef } from "preact/hooks";
import IconCircleChevronsRight from "https://deno.land/x/tabler_icons_tsx@0.0.3/tsx/circle-chevrons-right.tsx"; import IconCircleChevronsRight from "https://deno.land/x/tabler_icons_tsx@0.0.6/tsx/circle-chevrons-right.tsx";
import IconCircleChevronsLeft from "https://deno.land/x/tabler_icons_tsx@0.0.3/tsx/circle-chevrons-left.tsx"; import IconCircleChevronsLeft from "https://deno.land/x/tabler_icons_tsx@0.0.6/tsx/circle-chevrons-left.tsx";
const SLIDE_DATA = [ const SLIDE_DATA = [
{ {
+4 -4
View File
@@ -1,7 +1,7 @@
import IconAlarm from "https://deno.land/x/tabler_icons_tsx@0.0.3/tsx/alarm.tsx"; import IconAlarm from "https://deno.land/x/tabler_icons_tsx@0.0.6/tsx/alarm.tsx";
import IconAirBalloon from "https://deno.land/x/tabler_icons_tsx@0.0.3/tsx/air-balloon.tsx"; import IconAirBalloon from "https://deno.land/x/tabler_icons_tsx@0.0.6/tsx/air-balloon.tsx";
import IconArmchair from "https://deno.land/x/tabler_icons_tsx@0.0.3/tsx/armchair.tsx"; import IconArmchair from "https://deno.land/x/tabler_icons_tsx@0.0.6/tsx/armchair.tsx";
import IconChevronRight from "https://deno.land/x/tabler_icons_tsx@0.0.3/tsx/chevron-right.tsx"; import IconChevronRight from "https://deno.land/x/tabler_icons_tsx@0.0.6/tsx/chevron-right.tsx";
export default function Features() { export default function Features() {
const featureItems = [ const featureItems = [
+2 -2
View File
@@ -1,5 +1,5 @@
import LemonIcon from "https://deno.land/x/tabler_icons_tsx@0.0.3/tsx/lemon-2.tsx"; import LemonIcon from "https://deno.land/x/tabler_icons_tsx@0.0.6/tsx/lemon-2.tsx";
import BrandGithub from "https://deno.land/x/tabler_icons_tsx@0.0.3/tsx/brand-github.tsx"; import BrandGithub from "https://deno.land/x/tabler_icons_tsx@0.0.6/tsx/brand-github.tsx";
export default function Footer() { export default function Footer() {
const menus = [ const menus = [
+1 -1
View File
@@ -1,4 +1,4 @@
import LemonIcon from "https://deno.land/x/tabler_icons_tsx@0.0.3/tsx/lemon-2.tsx"; import LemonIcon from "https://deno.land/x/tabler_icons_tsx@0.0.6/tsx/lemon-2.tsx";
type Props = { type Props = {
active: string; active: string;
+1 -1
View File
@@ -1,4 +1,4 @@
import IconChevronRight from "https://deno.land/x/tabler_icons_tsx@0.0.3/tsx/chevron-right.tsx"; import IconChevronRight from "https://deno.land/x/tabler_icons_tsx@0.0.6/tsx/chevron-right.tsx";
export default function Hero() { export default function Hero() {
return ( return (
+6 -6
View File
@@ -8,13 +8,13 @@
}, },
"imports": { "imports": {
"$fresh/": "../", "$fresh/": "../",
"preact": "https://esm.sh/preact@10.15.1", "preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.15.1/", "preact/": "https://esm.sh/preact@10.19.5/",
"@preact/signals": "https://esm.sh/*@preact/signals@1.1.3", "@preact/signals": "https://esm.sh/*@preact/signals@1.2.2",
"@preact/signals-core": "https://esm.sh/@preact/signals-core@1.2.3", "@preact/signals-core": "https://esm.sh/@preact/signals-core@1.5.1",
"$std/": "https://deno.land/std@0.211.0/", "$std/": "https://deno.land/std@0.216.0/",
"$ga4": "https://raw.githubusercontent.com/denoland/ga4/main/mod.ts", "$ga4": "https://raw.githubusercontent.com/denoland/ga4/main/mod.ts",
"$marked-mangle": "https://esm.sh/marked-mangle@1.0.1", "$marked-mangle": "https://esm.sh/marked-mangle@1.1.7",
"$fresh-testing-library": "https://deno.land/x/fresh_testing_library@0.8.0/mod.ts", "$fresh-testing-library": "https://deno.land/x/fresh_testing_library@0.8.0/mod.ts",
"$fresh-testing-library/": "https://deno.land/x/fresh_testing_library@0.8.0/", "$fresh-testing-library/": "https://deno.land/x/fresh_testing_library@0.8.0/",
"tailwindcss": "npm:tailwindcss@3.4.1", "tailwindcss": "npm:tailwindcss@3.4.1",
+2 -2
View File
@@ -8,8 +8,8 @@ import Hero from "../components/gallery/Hero.tsx";
import Features from "../components/gallery/Features.tsx"; import Features from "../components/gallery/Features.tsx";
import Carousel from "../components/gallery/Carousel.tsx"; import Carousel from "../components/gallery/Carousel.tsx";
import { ComponentChildren } from "preact"; import { ComponentChildren } from "preact";
import IconHappy from "https://deno.land/x/tabler_icons_tsx@0.0.3/tsx/mood-crazy-happy.tsx"; import IconHappy from "https://deno.land/x/tabler_icons_tsx@0.0.6/tsx/mood-crazy-happy.tsx";
import IconHeart from "https://deno.land/x/tabler_icons_tsx@0.0.3/tsx/heart.tsx"; import IconHeart from "https://deno.land/x/tabler_icons_tsx@0.0.6/tsx/heart.tsx";
import Background from "../components/gallery/Background.tsx"; import Background from "../components/gallery/Background.tsx";
import CodeBox from "../components/gallery/CodeBox.tsx"; import CodeBox from "../components/gallery/CodeBox.tsx";
+2 -2
View File
@@ -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.17/mod.ts";
import { join } from "https://deno.land/std@0.211.0/path/mod.ts"; import { join } from "https://deno.land/std@0.216.0/path/mod.ts";
const url = Deno.args[0]; const url = Deno.args[0];
const id = Deno.args[1]; const id = Deno.args[1];