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
+2 -2
View File
@@ -2,8 +2,8 @@
"lock": false,
"imports": {
"$fresh/": "../../",
"preact": "https://esm.sh/preact@10.15.1",
"preact/": "https://esm.sh/preact@10.15.1/",
"preact": "https://esm.sh/preact@10.19.5",
"preact/": "https://esm.sh/preact@10.19.5/",
"@preact/signals": "https://esm.sh/*@preact/signals@1.1.5",
"@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 { relative, SEP } from "$fresh/tests/deps.ts";
import { relative, SEPARATOR } from "$fresh/tests/deps.ts";
export default defineRoute((_req, ctx) => {
const value = JSON.stringify(ctx, (key, value) => {
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 (value === undefined) return "<undefined>";
+2 -2
View File
@@ -1,10 +1,10 @@
import { PageProps } from "$fresh/server.ts";
import { relative, SEP } from "../../deps.ts";
import { relative, SEPARATOR } from "../../deps.ts";
export default function Page(props: PageProps) {
const value = JSON.stringify(props, (key, value) => {
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 (value === undefined) return "<undefined>";