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:
@@ -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>";
|
||||
|
||||
@@ -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>";
|
||||
|
||||
Reference in New Issue
Block a user