chore: bump deps (#2000)
This commit is contained in:
Vendored
+1
-1
@@ -12,7 +12,7 @@
|
|||||||
"@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/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.193.0/",
|
"$std/": "https://deno.land/std@0.205.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"
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-3
@@ -4,7 +4,7 @@ export {
|
|||||||
join,
|
join,
|
||||||
relative,
|
relative,
|
||||||
toFileUrl,
|
toFileUrl,
|
||||||
} from "https://deno.land/std@0.193.0/path/mod.ts";
|
} from "https://deno.land/std@0.205.0/path/mod.ts";
|
||||||
export { escape as regexpEscape } from "https://deno.land/std@0.193.0/regexp/escape.ts";
|
export { escape as regexpEscape } from "https://deno.land/std@0.205.0/regexp/escape.ts";
|
||||||
|
|
||||||
export { denoPlugins } from "https://deno.land/x/esbuild_deno_loader@0.8.2/mod.ts";
|
export { denoPlugins } from "https://deno.land/x/esbuild_deno_loader@0.8.2/mod.ts";
|
||||||
|
export { assertEquals } from "https://deno.land/std@0.205.0/assert/mod.ts";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { assertEquals } from "$std/testing/asserts.ts";
|
import { assertEquals } from "./deps.ts";
|
||||||
import { fromFileUrl, join, toFileUrl } from "../server/deps.ts";
|
import { fromFileUrl, join, toFileUrl } from "../server/deps.ts";
|
||||||
import { EsbuildBuilder } from "./esbuild.ts";
|
import { EsbuildBuilder } from "./esbuild.ts";
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
import { getServerContext } from "../server/context.ts";
|
import { getServerContext } from "../server/context.ts";
|
||||||
import { join } from "../server/deps.ts";
|
import { join } from "../server/deps.ts";
|
||||||
import { colors, fs } from "./deps.ts";
|
import { colors, emptyDir } from "./deps.ts";
|
||||||
import { BuildSnapshotJson } from "../build/mod.ts";
|
import { BuildSnapshotJson } from "../build/mod.ts";
|
||||||
import { BUILD_ID } from "../server/build_id.ts";
|
import { BUILD_ID } from "../server/build_id.ts";
|
||||||
import { InternalFreshState } from "../server/types.ts";
|
import { InternalFreshState } from "../server/types.ts";
|
||||||
@@ -12,7 +12,7 @@ export async function build(
|
|||||||
const plugins = state.config.plugins;
|
const plugins = state.config.plugins;
|
||||||
|
|
||||||
// Ensure that build dir is empty
|
// Ensure that build dir is empty
|
||||||
await fs.emptyDir(outDir);
|
await emptyDir(outDir);
|
||||||
|
|
||||||
await Promise.all(plugins.map((plugin) => plugin.buildStart?.(state.config)));
|
await Promise.all(plugins.map((plugin) => plugin.buildStart?.(state.config)));
|
||||||
|
|
||||||
|
|||||||
+14
-12
@@ -5,25 +5,27 @@ export {
|
|||||||
extname,
|
extname,
|
||||||
fromFileUrl,
|
fromFileUrl,
|
||||||
join,
|
join,
|
||||||
posix,
|
|
||||||
relative,
|
relative,
|
||||||
resolve,
|
resolve,
|
||||||
SEP,
|
SEP,
|
||||||
toFileUrl,
|
toFileUrl,
|
||||||
} from "https://deno.land/std@0.193.0/path/mod.ts";
|
} from "https://deno.land/std@0.205.0/path/mod.ts";
|
||||||
export { DAY, WEEK } from "https://deno.land/std@0.193.0/datetime/constants.ts";
|
export { normalize } from "https://deno.land/std@0.205.0/path/posix/mod.ts";
|
||||||
export * as colors from "https://deno.land/std@0.193.0/fmt/colors.ts";
|
export { DAY, WEEK } from "https://deno.land/std@0.205.0/datetime/constants.ts";
|
||||||
|
export * as colors from "https://deno.land/std@0.205.0/fmt/colors.ts";
|
||||||
export {
|
export {
|
||||||
walk,
|
walk,
|
||||||
type WalkEntry,
|
type WalkEntry,
|
||||||
WalkError,
|
WalkError,
|
||||||
} from "https://deno.land/std@0.193.0/fs/walk.ts";
|
} from "https://deno.land/std@0.205.0/fs/walk.ts";
|
||||||
export { parse } from "https://deno.land/std@0.193.0/flags/mod.ts";
|
export { parse } from "https://deno.land/std@0.205.0/flags/mod.ts";
|
||||||
export { gte } from "https://deno.land/std@0.193.0/semver/mod.ts";
|
export {
|
||||||
export { existsSync } from "https://deno.land/std@0.193.0/fs/mod.ts";
|
gte,
|
||||||
export * as semver from "https://deno.land/std@0.195.0/semver/mod.ts";
|
lt,
|
||||||
export * as JSONC from "https://deno.land/std@0.195.0/jsonc/mod.ts";
|
parse as semverParse,
|
||||||
export * as fs from "https://deno.land/std@0.195.0/fs/mod.ts";
|
} from "https://deno.land/std@0.205.0/semver/mod.ts";
|
||||||
|
export { emptyDir, existsSync } from "https://deno.land/std@0.205.0/fs/mod.ts";
|
||||||
|
export * as JSONC from "https://deno.land/std@0.205.0/jsonc/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@20.0.0/mod.ts";
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@ export const RECOMMENDED_PREACT_VERSION = "10.18.1";
|
|||||||
export const RECOMMENDED_PREACT_SIGNALS_VERSION = "1.2.1";
|
export const RECOMMENDED_PREACT_SIGNALS_VERSION = "1.2.1";
|
||||||
export const RECOMMENDED_PREACT_SIGNALS_CORE_VERSION = "1.5.0";
|
export const RECOMMENDED_PREACT_SIGNALS_CORE_VERSION = "1.5.0";
|
||||||
export const RECOMMENDED_TWIND_VERSION = "0.16.19";
|
export const RECOMMENDED_TWIND_VERSION = "0.16.19";
|
||||||
export const RECOMMENDED_STD_VERSION = "0.193.0";
|
export const RECOMMENDED_STD_VERSION = "0.205.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;
|
||||||
|
|||||||
+11
-3
@@ -1,11 +1,19 @@
|
|||||||
import { gte, join, posix, relative, walk, WalkEntry } from "./deps.ts";
|
import {
|
||||||
|
gte,
|
||||||
|
join,
|
||||||
|
normalize,
|
||||||
|
relative,
|
||||||
|
semverParse,
|
||||||
|
walk,
|
||||||
|
WalkEntry,
|
||||||
|
} from "./deps.ts";
|
||||||
import { error } from "./error.ts";
|
import { error } from "./error.ts";
|
||||||
const MIN_DENO_VERSION = "1.31.0";
|
const MIN_DENO_VERSION = "1.31.0";
|
||||||
const TEST_FILE_PATTERN = /[._]test\.(?:[tj]sx?|[mc][tj]s)$/;
|
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(Deno.version.deno, MIN_DENO_VERSION)) {
|
if (!gte(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`;
|
||||||
|
|
||||||
@@ -100,7 +108,7 @@ export async function collect(
|
|||||||
* Import specifiers must have forward slashes
|
* Import specifiers must have forward slashes
|
||||||
*/
|
*/
|
||||||
function toImportSpecifier(file: string) {
|
function toImportSpecifier(file: string) {
|
||||||
let specifier = posix.normalize(file).replace(/\\/g, "/");
|
let specifier = normalize(file).replace(/\\/g, "/");
|
||||||
if (!specifier.startsWith(".")) {
|
if (!specifier.startsWith(".")) {
|
||||||
specifier = "./" + specifier;
|
specifier = "./" + specifier;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { colors, join, semver } from "./deps.ts";
|
import { colors, join, lt, semverParse } from "./deps.ts";
|
||||||
|
|
||||||
export interface CheckFile {
|
export interface CheckFile {
|
||||||
last_checked: string;
|
last_checked: string;
|
||||||
@@ -113,12 +113,12 @@ export async function updateCheck(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Only show update message if current version is smaller than latest
|
// Only show update message if current version is smaller than latest
|
||||||
const currentVersion = semver.parse(checkFile.current_version);
|
const currentVersion = semverParse(checkFile.current_version);
|
||||||
const latestVersion = semver.parse(checkFile.latest_version);
|
const latestVersion = semverParse(checkFile.latest_version);
|
||||||
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) &&
|
||||||
semver.lt(currentVersion, latestVersion)
|
lt(currentVersion, latestVersion)
|
||||||
) {
|
) {
|
||||||
checkFile.last_shown = new Date().toISOString();
|
checkFile.last_shown = new Date().toISOString();
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import { assertEquals } from "$std/testing/asserts.ts";
|
|
||||||
import { assertSnapshot } from "$std/testing/snapshot.ts";
|
import { assertSnapshot } from "$std/testing/snapshot.ts";
|
||||||
import { createCodeFrame, getFirstUserFile } from "./code_frame.ts";
|
import { createCodeFrame, getFirstUserFile } from "./code_frame.ts";
|
||||||
import { colors } from "./deps.ts";
|
import { assertEquals, colors } from "./deps.ts";
|
||||||
|
|
||||||
function testCodeFrame(text: string, line: number, column: number) {
|
function testCodeFrame(text: string, line: number, column: number) {
|
||||||
const codeFrame = createCodeFrame(text, line, column);
|
const codeFrame = createCodeFrame(text, line, column);
|
||||||
|
|||||||
+13
-9
@@ -6,18 +6,22 @@ export {
|
|||||||
isAbsolute,
|
isAbsolute,
|
||||||
join,
|
join,
|
||||||
toFileUrl,
|
toFileUrl,
|
||||||
} from "https://deno.land/std@0.193.0/path/mod.ts";
|
} from "https://deno.land/std@0.205.0/path/mod.ts";
|
||||||
export { walk } from "https://deno.land/std@0.193.0/fs/walk.ts";
|
export { walk } from "https://deno.land/std@0.205.0/fs/walk.ts";
|
||||||
export * as colors from "https://deno.land/std@0.193.0/fmt/colors.ts";
|
export * as colors from "https://deno.land/std@0.205.0/fmt/colors.ts";
|
||||||
export {
|
export {
|
||||||
type Handler as ServeHandler,
|
type Handler as ServeHandler,
|
||||||
serve,
|
serve,
|
||||||
} from "https://deno.land/std@0.193.0/http/server.ts";
|
} from "https://deno.land/std@0.205.0/http/server.ts";
|
||||||
export { Status } from "https://deno.land/std@0.193.0/http/http_status.ts";
|
export { Status } from "https://deno.land/std@0.205.0/http/http_status.ts";
|
||||||
export {
|
export {
|
||||||
typeByExtension,
|
typeByExtension,
|
||||||
} from "https://deno.land/std@0.193.0/media_types/mod.ts";
|
} from "https://deno.land/std@0.205.0/media_types/mod.ts";
|
||||||
export { toHashString } from "https://deno.land/std@0.193.0/crypto/to_hash_string.ts";
|
export { toHashString } from "https://deno.land/std@0.205.0/crypto/to_hash_string.ts";
|
||||||
export { escape } from "https://deno.land/std@0.193.0/regexp/escape.ts";
|
export { escape } from "https://deno.land/std@0.205.0/regexp/escape.ts";
|
||||||
export * as JSONC from "https://deno.land/std@0.193.0/jsonc/mod.ts";
|
export * as JSONC from "https://deno.land/std@0.205.0/jsonc/mod.ts";
|
||||||
export { renderToString } from "https://esm.sh/*preact-render-to-string@6.2.2";
|
export { renderToString } from "https://esm.sh/*preact-render-to-string@6.2.2";
|
||||||
|
export {
|
||||||
|
assertEquals,
|
||||||
|
assertThrows,
|
||||||
|
} from "https://deno.land/std@0.205.0/assert/mod.ts";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { assertEquals, assertThrows } from "$std/testing/asserts.ts";
|
import { assertEquals, assertThrows } from "./deps.ts";
|
||||||
import { pathToPattern, sortRoutePaths } from "./fs_extract.ts";
|
import { pathToPattern, sortRoutePaths } from "./fs_extract.ts";
|
||||||
|
|
||||||
Deno.test("pathToPattern", async (t) => {
|
Deno.test("pathToPattern", async (t) => {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { assertEquals } from "$std/testing/asserts.ts";
|
import { assertEquals } from "./deps.ts";
|
||||||
import { IS_PATTERN, patternToRegExp } from "./router.ts";
|
import { IS_PATTERN, patternToRegExp } from "./router.ts";
|
||||||
|
|
||||||
function testPattern(input: string, test: string) {
|
function testPattern(input: string, test: string) {
|
||||||
|
|||||||
+6
-4
@@ -1,14 +1,16 @@
|
|||||||
import * as path from "$std/path/mod.ts";
|
import * as path from "$std/path/mod.ts";
|
||||||
import { puppeteer } from "./deps.ts";
|
import {
|
||||||
import { assert } from "$std/_util/asserts.ts";
|
assert,
|
||||||
|
assertNotMatch,
|
||||||
|
assertStringIncludes,
|
||||||
|
puppeteer,
|
||||||
|
} from "./deps.ts";
|
||||||
import {
|
import {
|
||||||
getStdOutput,
|
getStdOutput,
|
||||||
startFreshServer,
|
startFreshServer,
|
||||||
waitForText,
|
waitForText,
|
||||||
} from "$fresh/tests/test_utils.ts";
|
} from "$fresh/tests/test_utils.ts";
|
||||||
import { BuildSnapshotJson } from "$fresh/src/build/mod.ts";
|
import { BuildSnapshotJson } from "$fresh/src/build/mod.ts";
|
||||||
import { assertStringIncludes } from "$std/testing/asserts.ts";
|
|
||||||
import { assertNotMatch } from "$std/testing/asserts.ts";
|
|
||||||
|
|
||||||
function runBuild(fixture: string, subDirPath: string, outDir: string) {
|
function runBuild(fixture: string, subDirPath: string, outDir: string) {
|
||||||
return new Deno.Command(Deno.execPath(), {
|
return new Deno.Command(Deno.execPath(), {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import {
|
|||||||
assertMatch,
|
assertMatch,
|
||||||
assertNotEquals,
|
assertNotEquals,
|
||||||
assertNotMatch,
|
assertNotMatch,
|
||||||
} from "$std/testing/asserts.ts";
|
} from "./deps.ts";
|
||||||
import versions from "../versions.json" assert { type: "json" };
|
import versions from "../versions.json" assert { type: "json" };
|
||||||
import { CheckFile } from "$fresh/src/dev/update_check.ts";
|
import { CheckFile } from "$fresh/src/dev/update_check.ts";
|
||||||
import { WEEK } from "$fresh/src/dev/deps.ts";
|
import { WEEK } from "$fresh/src/dev/deps.ts";
|
||||||
|
|||||||
+10
-7
@@ -9,16 +9,17 @@ export {
|
|||||||
assertEquals,
|
assertEquals,
|
||||||
assertExists,
|
assertExists,
|
||||||
assertMatch,
|
assertMatch,
|
||||||
|
assertNotEquals,
|
||||||
assertNotMatch,
|
assertNotMatch,
|
||||||
assertRejects,
|
assertRejects,
|
||||||
assertStringIncludes,
|
assertStringIncludes,
|
||||||
} from "https://deno.land/std@0.193.0/testing/asserts.ts";
|
} from "https://deno.land/std@0.205.0/assert/mod.ts";
|
||||||
export { assertSnapshot } from "https://deno.land/std@0.193.0/testing/snapshot.ts";
|
export { assertSnapshot } from "https://deno.land/std@0.205.0/testing/snapshot.ts";
|
||||||
export {
|
export {
|
||||||
TextLineStream,
|
TextLineStream,
|
||||||
} from "https://deno.land/std@0.193.0/streams/text_line_stream.ts";
|
} from "https://deno.land/std@0.205.0/streams/text_line_stream.ts";
|
||||||
export { delay } from "https://deno.land/std@0.193.0/async/delay.ts";
|
export { delay } from "https://deno.land/std@0.205.0/async/delay.ts";
|
||||||
export { retry } from "https://deno.land/std@0.193.0/async/retry.ts";
|
export { retry } from "https://deno.land/std@0.205.0/async/retry.ts";
|
||||||
export {
|
export {
|
||||||
default as puppeteer,
|
default as puppeteer,
|
||||||
Page,
|
Page,
|
||||||
@@ -31,11 +32,13 @@ export {
|
|||||||
} from "https://esm.sh/linkedom@0.15.1";
|
} from "https://esm.sh/linkedom@0.15.1";
|
||||||
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 * as fs from "https://deno.land/std@0.195.0/fs/mod.ts";
|
export { copy } from "https://deno.land/std@0.205.0/fs/mod.ts";
|
||||||
export {
|
export {
|
||||||
basename,
|
basename,
|
||||||
dirname,
|
dirname,
|
||||||
|
extname,
|
||||||
fromFileUrl,
|
fromFileUrl,
|
||||||
join,
|
join,
|
||||||
relative,
|
relative,
|
||||||
} from "https://deno.land/std@0.193.0/path/mod.ts";
|
} from "https://deno.land/std@0.205.0/path/mod.ts";
|
||||||
|
export * as JSONC from "https://deno.land/std@0.205.0/jsonc/mod.ts";
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import {
|
|||||||
assertTextMany,
|
assertTextMany,
|
||||||
withFakeServe,
|
withFakeServe,
|
||||||
} from "$fresh/tests/test_utils.ts";
|
} from "$fresh/tests/test_utils.ts";
|
||||||
import { assertNotMatch } from "$std/testing/asserts.ts";
|
import { assertNotMatch } from "./deps.ts";
|
||||||
|
|
||||||
Deno.test("doesn't apply internal app template", async () => {
|
Deno.test("doesn't apply internal app template", async () => {
|
||||||
await withFakeServe(
|
await withFakeServe(
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import * as path from "https://deno.land/std@0.192.0/path/mod.ts";
|
import { basename, dirname, extname, fromFileUrl } from "../../deps.ts";
|
||||||
|
|
||||||
const __dirname = path.dirname(path.fromFileUrl(import.meta.url));
|
const __dirname = dirname(fromFileUrl(import.meta.url));
|
||||||
|
|
||||||
const links: string[] = [];
|
const links: string[] = [];
|
||||||
for (const file of Deno.readDirSync(__dirname)) {
|
for (const file of Deno.readDirSync(__dirname)) {
|
||||||
if (file.name.startsWith("index")) continue;
|
if (file.name.startsWith("index")) continue;
|
||||||
const name = path.basename(file.name, path.extname(file.name));
|
const name = basename(file.name, extname(file.name));
|
||||||
links.push(name);
|
links.push(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import * as path from "https://deno.land/std@0.192.0/path/mod.ts";
|
import { basename, dirname, extname, fromFileUrl } from "../../deps.ts";
|
||||||
|
|
||||||
const __dirname = path.dirname(path.fromFileUrl(import.meta.url));
|
const __dirname = dirname(fromFileUrl(import.meta.url));
|
||||||
|
|
||||||
const links: string[] = [];
|
const links: string[] = [];
|
||||||
for (const file of Deno.readDirSync(__dirname)) {
|
for (const file of Deno.readDirSync(__dirname)) {
|
||||||
if (file.name.startsWith("index")) continue;
|
if (file.name.startsWith("index")) continue;
|
||||||
const name = path.basename(file.name, path.extname(file.name));
|
const name = basename(file.name, extname(file.name));
|
||||||
links.push(name);
|
links.push(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import * as path from "https://deno.land/std@0.192.0/path/mod.ts";
|
import { basename, dirname, extname, fromFileUrl } from "../../deps.ts";
|
||||||
|
|
||||||
const __dirname = path.dirname(path.fromFileUrl(import.meta.url));
|
const __dirname = dirname(fromFileUrl(import.meta.url));
|
||||||
|
|
||||||
const links: string[] = [];
|
const links: string[] = [];
|
||||||
for (const file of Deno.readDirSync(__dirname)) {
|
for (const file of Deno.readDirSync(__dirname)) {
|
||||||
if (file.name.startsWith("index")) continue;
|
if (file.name.startsWith("index")) continue;
|
||||||
const name = path.basename(file.name, path.extname(file.name));
|
const name = basename(file.name, extname(file.name));
|
||||||
links.push(name);
|
links.push(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { defineConfig } from "$fresh/src/server/defines.ts";
|
import { defineConfig } from "$fresh/src/server/defines.ts";
|
||||||
import * as path from "https://deno.land/std@0.193.0/path/mod.ts";
|
import { relative } from "../deps.ts";
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [
|
plugins: [
|
||||||
@@ -24,7 +24,7 @@ export default defineConfig({
|
|||||||
{
|
{
|
||||||
name: "c",
|
name: "c",
|
||||||
buildStart(config) {
|
buildStart(config) {
|
||||||
const outDir = path.relative(Deno.cwd(), config.build.outDir);
|
const outDir = relative(Deno.cwd(), config.build.outDir);
|
||||||
console.log(`Plugin c: ${outDir}`);
|
console.log(`Plugin c: ${outDir}`);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import * as path from "https://deno.land/std@0.192.0/path/mod.ts";
|
import { basename, dirname, extname, fromFileUrl } from "../../deps.ts";
|
||||||
|
|
||||||
const __dirname = path.dirname(path.fromFileUrl(import.meta.url));
|
const __dirname = dirname(fromFileUrl(import.meta.url));
|
||||||
|
|
||||||
const links: string[] = [];
|
const links: string[] = [];
|
||||||
for (const file of Deno.readDirSync(__dirname)) {
|
for (const file of Deno.readDirSync(__dirname)) {
|
||||||
if (file.name.startsWith("index")) continue;
|
if (file.name.startsWith("index")) continue;
|
||||||
const name = path.basename(file.name, path.extname(file.name));
|
const name = basename(file.name, extname(file.name));
|
||||||
links.push(name);
|
links.push(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
"preact/": "https://esm.sh/preact@10.15.1/",
|
"preact/": "https://esm.sh/preact@10.15.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",
|
||||||
"$std/": "https://deno.land/std@0.190.0/"
|
"$std/": "https://deno.land/std@0.205.0/"
|
||||||
},
|
},
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"jsx": "react-jsx",
|
"jsx": "react-jsx",
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import * as path from "https://deno.land/std@0.192.0/path/mod.ts";
|
import { basename, dirname, extname, fromFileUrl } from "../../deps.ts";
|
||||||
|
|
||||||
const __dirname = path.dirname(path.fromFileUrl(import.meta.url));
|
const __dirname = dirname(fromFileUrl(import.meta.url));
|
||||||
|
|
||||||
const links: string[] = [];
|
const links: string[] = [];
|
||||||
for (const file of Deno.readDirSync(__dirname)) {
|
for (const file of Deno.readDirSync(__dirname)) {
|
||||||
if (file.name.startsWith("index")) continue;
|
if (file.name.startsWith("index")) continue;
|
||||||
const name = path.basename(file.name, path.extname(file.name));
|
const name = basename(file.name, extname(file.name));
|
||||||
links.push(name);
|
links.push(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import * as path from "https://deno.land/std@0.192.0/path/mod.ts";
|
import { basename, dirname, extname, fromFileUrl } from "../../deps.ts";
|
||||||
|
|
||||||
const __dirname = path.dirname(path.fromFileUrl(import.meta.url));
|
const __dirname = dirname(fromFileUrl(import.meta.url));
|
||||||
|
|
||||||
const links: string[] = [];
|
const links: string[] = [];
|
||||||
for (const file of Deno.readDirSync(__dirname)) {
|
for (const file of Deno.readDirSync(__dirname)) {
|
||||||
if (file.name.startsWith("index")) continue;
|
if (file.name.startsWith("index")) continue;
|
||||||
const name = path.basename(file.name, path.extname(file.name));
|
const name = basename(file.name, extname(file.name));
|
||||||
links.push(name);
|
links.push(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
import { copy } from "https://deno.land/std@0.204.0/fs/copy.ts";
|
|
||||||
import {
|
import {
|
||||||
basename,
|
basename,
|
||||||
|
copy,
|
||||||
delay,
|
delay,
|
||||||
dirname,
|
dirname,
|
||||||
join,
|
join,
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import { assert, assertEquals, assertMatch } from "$std/testing/asserts.ts";
|
import { assert, assertEquals, assertMatch, Page } from "./deps.ts";
|
||||||
import { Page } from "./deps.ts";
|
|
||||||
import {
|
import {
|
||||||
assertMetaContent,
|
assertMetaContent,
|
||||||
assertNoComments,
|
assertNoComments,
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { assertMatch } from "$std/testing/asserts.ts";
|
|
||||||
import { ServerContext, Status } from "../server.ts";
|
import { ServerContext, Status } from "../server.ts";
|
||||||
import {
|
import {
|
||||||
assert,
|
assert,
|
||||||
assertEquals,
|
assertEquals,
|
||||||
|
assertMatch,
|
||||||
assertStringIncludes,
|
assertStringIncludes,
|
||||||
delay,
|
delay,
|
||||||
join,
|
join,
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import {
|
|||||||
parseHtml,
|
parseHtml,
|
||||||
withFakeServe,
|
withFakeServe,
|
||||||
} from "$fresh/tests/test_utils.ts";
|
} from "$fresh/tests/test_utils.ts";
|
||||||
import { assertEquals } from "$std/testing/asserts.ts";
|
import { assertEquals } from "./deps.ts";
|
||||||
import { createHandler } from "$fresh/server.ts";
|
import { createHandler } from "$fresh/server.ts";
|
||||||
import manifest from "./fixture/fresh.gen.ts";
|
import manifest from "./fixture/fresh.gen.ts";
|
||||||
import config from "./fixture/fresh.config.ts";
|
import config from "./fixture/fresh.config.ts";
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
import { startFreshServerExpectErrors } from "./test_utils.ts";
|
import { startFreshServerExpectErrors } from "./test_utils.ts";
|
||||||
import { dirname, join } from "$std/path/mod.ts";
|
import { dirname, join } from "$std/path/mod.ts";
|
||||||
import { assertStringIncludes } from "./deps.ts";
|
import { assertEquals, assertStringIncludes } from "./deps.ts";
|
||||||
import { ServerContext } from "$fresh/server.ts";
|
import { ServerContext } from "$fresh/server.ts";
|
||||||
import manifest from "./fixture/fresh.gen.ts";
|
import manifest from "./fixture/fresh.gen.ts";
|
||||||
import { assertEquals } from "$std/testing/asserts.ts";
|
|
||||||
|
|
||||||
const dir = dirname(import.meta.url);
|
const dir = dirname(import.meta.url);
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { assertEquals } from "$std/testing/asserts.ts";
|
import { assertEquals } from "./deps.ts";
|
||||||
import {
|
import {
|
||||||
assertTextMany,
|
assertTextMany,
|
||||||
parseHtml,
|
parseHtml,
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,4 @@
|
|||||||
import { colors, toFileUrl } from "$fresh/src/server/deps.ts";
|
import { colors, toFileUrl } from "$fresh/src/server/deps.ts";
|
||||||
import { assert } from "$std/_util/asserts.ts";
|
|
||||||
import * as path from "$std/path/mod.ts";
|
import * as path from "$std/path/mod.ts";
|
||||||
import {
|
import {
|
||||||
FromManifestConfig,
|
FromManifestConfig,
|
||||||
@@ -8,6 +7,7 @@ import {
|
|||||||
ServerContext,
|
ServerContext,
|
||||||
} from "$fresh/server.ts";
|
} from "$fresh/server.ts";
|
||||||
import {
|
import {
|
||||||
|
assert,
|
||||||
assertEquals,
|
assertEquals,
|
||||||
basename,
|
basename,
|
||||||
delay,
|
delay,
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
import * as path from "$std/path/mod.ts";
|
import * as path from "$std/path/mod.ts";
|
||||||
import { DenoConfig } from "$fresh/server.ts";
|
import { DenoConfig } from "$fresh/server.ts";
|
||||||
import { JSONC } from "../src/server/deps.ts";
|
|
||||||
import {
|
import {
|
||||||
assertEquals,
|
assertEquals,
|
||||||
assertExists,
|
assertExists,
|
||||||
assertMatch,
|
assertMatch,
|
||||||
assertRejects,
|
assertRejects,
|
||||||
assertStringIncludes,
|
assertStringIncludes,
|
||||||
|
JSONC,
|
||||||
retry,
|
retry,
|
||||||
} from "./deps.ts";
|
} from "./deps.ts";
|
||||||
|
|
||||||
|
|||||||
@@ -231,7 +231,7 @@ await start(manifest, { plugins: [twindPlugin(twindConfig)] });\n`;
|
|||||||
for (const n of nodes) {
|
for (const n of nodes) {
|
||||||
if (!n.wasForgotten() && Node.isJsxAttribute(n)) {
|
if (!n.wasForgotten() && Node.isJsxAttribute(n)) {
|
||||||
const init = n.getInitializer();
|
const init = n.getInitializer();
|
||||||
const name = n.getName();
|
const name = n.getStructure().name;
|
||||||
if (
|
if (
|
||||||
Node.isJsxExpression(init) &&
|
Node.isJsxExpression(init) &&
|
||||||
(name === "class" || name === "className")
|
(name === "class" || name === "className")
|
||||||
|
|||||||
+1
-1
@@ -13,7 +13,7 @@
|
|||||||
"preact/": "https://esm.sh/preact@10.15.1/",
|
"preact/": "https://esm.sh/preact@10.15.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",
|
||||||
"$std/": "https://deno.land/std@0.193.0/",
|
"$std/": "https://deno.land/std@0.205.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"
|
||||||
},
|
},
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import { assertArrayIncludes, assertEquals } from "$std/testing/asserts.ts";
|
import { assertArrayIncludes, assertEquals } from "$std/assert/mod.ts";
|
||||||
import { withPageName } from "../tests/test_utils.ts";
|
import { withPageName } from "../tests/test_utils.ts";
|
||||||
import { dirname, join } from "$std/path/mod.ts";
|
import { dirname, join } from "$std/path/mod.ts";
|
||||||
import VERSIONS from "../versions.json" assert { type: "json" };
|
import VERSIONS from "../versions.json" assert { type: "json" };
|
||||||
|
|||||||
@@ -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.193.0/path/mod.ts";
|
import { join } from "https://deno.land/std@0.205.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