Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
deer committed Mar 2, 2024
1 parent b1dcf16 commit 426b46a
Show file tree
Hide file tree
Showing 16 changed files with 55 additions and 47 deletions.
6 changes: 3 additions & 3 deletions .vscode/import_map.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
},
"imports": {
"$fresh/": "https://raw.githubusercontent.com/denoland/fresh/844370cadd1ed28fd76f796c2afc1e2411bfc425/",
"preact": "https://esm.sh/[email protected].3",
"preact/": "https://esm.sh/[email protected].3/",
"$std/": "https://deno.land/std@0.214.0/",
"preact": "https://esm.sh/[email protected].6",
"preact/": "https://esm.sh/[email protected].6/",
"$std/": "https://deno.land/std@0.218.2/",
"@preact/signals-core": "https://esm.sh/*@preact/[email protected]",
"@preact/signals": "https://esm.sh/*@preact/[email protected]",
"tailwindcss": "npm:[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Reed von Redwitz
Copyright (c) 2024 Reed von Redwitz

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
15 changes: 8 additions & 7 deletions deps.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * as preact from "https://esm.sh/[email protected].3";
export * as preact from "https://esm.sh/[email protected].6";
export type {
FreshContext,
Handlers,
Expand All @@ -13,16 +13,17 @@ export {
extname,
fromFileUrl,
join,
} from "https://deno.land/std@0.214.0/path/mod.ts";
export * as JSONC from "https://deno.land/std@0.214.0/jsonc/mod.ts";
export { extract } from "https://deno.land/std@0.214.0/front_matter/yaml.ts";
} from "https://deno.land/std@0.218.2/path/mod.ts";
export * as JSONC from "https://deno.land/std@0.218.2/jsonc/mod.ts";
export { extract } from "https://deno.land/std@0.218.2/front_matter/yaml.ts";
export { CSS, render, Renderer } from "https://deno.land/x/[email protected]/mod.ts";
export { load } from "https://deno.land/std@0.214.0/dotenv/mod.ts";
export { existsSync } from "https://deno.land/std@0.214.0/fs/mod.ts";
export { load } from "https://deno.land/std@0.218.2/dotenv/mod.ts";
export { existsSync } from "https://deno.land/std@0.218.2/fs/mod.ts";
export { Client } from "https://deno.land/x/[email protected]/src/mod.ts";
export type {
CodeBlockObjectResponse,
PageObjectResponse,
RichTextItemResponse,
} from "https://deno.land/x/[email protected]/src/api-endpoints.ts";
export { $ } from "https://deno.land/x/[email protected]/mod.ts";
export { $ } from "jsr:@david/[email protected]";
export { upNlevels } from "jsr:@deer/[email protected]";
11 changes: 9 additions & 2 deletions src/plugin/blog.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import { dirname, existsSync, fromFileUrl, join, Plugin } from "../../deps.ts";
import {
dirname,
existsSync,
fromFileUrl,
join,
Plugin,
upNlevels,
} from "../../deps.ts";
import { handler as blogSlugHandler } from "../routes/blog/[slug].tsx";
import { createPostPage } from "../routes/blog/[slug].tsx";
import { AppBuilder } from "../routes/_app.tsx";
Expand Down Expand Up @@ -71,7 +78,7 @@ export function blogPlugin(
return {
name: "blog_plugin",
location: import.meta.url,
projectLocation: new URL("../../", import.meta.url).href,
projectLocation: upNlevels(import.meta.url, 2),
middlewares: [{
middleware: {
handler: contextMiddleware(
Expand Down
6 changes: 3 additions & 3 deletions tests/custom_titles_fixture/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
},
"imports": {
"$fresh/": "https://raw.githubusercontent.com/denoland/fresh/844370cadd1ed28fd76f796c2afc1e2411bfc425/",
"preact": "https://esm.sh/[email protected].3",
"preact/": "https://esm.sh/[email protected].3/",
"preact": "https://esm.sh/[email protected].6",
"preact/": "https://esm.sh/[email protected].6/",
"@preact/signals": "https://esm.sh/*@preact/[email protected]",
"@preact/signals-core": "https://esm.sh/*@preact/[email protected]",
"tailwindcss": "npm:[email protected]",
"tailwindcss/": "npm:/[email protected]/",
"tailwindcss/plugin": "npm:/[email protected]/plugin.js",
"$std/": "https://deno.land/std@0.214.0/"
"$std/": "https://deno.land/std@0.218.2/"
},
"compilerOptions": { "jsx": "react-jsx", "jsxImportSource": "preact" },
"lint": { "rules": { "tags": ["fresh", "recommended"] } },
Expand Down
6 changes: 3 additions & 3 deletions tests/empty_posts_dir_fixture/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
},
"imports": {
"$fresh/": "https://raw.githubusercontent.com/denoland/fresh/844370cadd1ed28fd76f796c2afc1e2411bfc425/",
"preact": "https://esm.sh/[email protected].3",
"preact/": "https://esm.sh/[email protected].3/",
"preact": "https://esm.sh/[email protected].6",
"preact/": "https://esm.sh/[email protected].6/",
"@preact/signals": "https://esm.sh/*@preact/[email protected]",
"@preact/signals-core": "https://esm.sh/*@preact/[email protected]",
"tailwindcss": "npm:[email protected]",
"tailwindcss/": "npm:/[email protected]/",
"tailwindcss/plugin": "npm:/[email protected]/plugin.js",
"$std/": "https://deno.land/std@0.214.0/"
"$std/": "https://deno.land/std@0.218.2/"
},
"compilerOptions": { "jsx": "react-jsx", "jsxImportSource": "preact" },
"lint": { "rules": { "tags": ["fresh", "recommended"] } },
Expand Down
6 changes: 3 additions & 3 deletions tests/fixture/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
},
"imports": {
"$fresh/": "https://raw.githubusercontent.com/denoland/fresh/844370cadd1ed28fd76f796c2afc1e2411bfc425/",
"preact": "https://esm.sh/[email protected].3",
"preact/": "https://esm.sh/[email protected].3/",
"preact": "https://esm.sh/[email protected].6",
"preact/": "https://esm.sh/[email protected].6/",
"@preact/signals": "https://esm.sh/*@preact/[email protected]",
"@preact/signals-core": "https://esm.sh/*@preact/[email protected]",
"tailwindcss": "npm:[email protected]",
"tailwindcss/": "npm:/[email protected]/",
"tailwindcss/plugin": "npm:/[email protected]/plugin.js",
"$std/": "https://deno.land/std@0.214.0/"
"$std/": "https://deno.land/std@0.218.2/"
},
"compilerOptions": { "jsx": "react-jsx", "jsxImportSource": "preact" },
"lint": { "rules": { "tags": ["fresh", "recommended"] } },
Expand Down
6 changes: 3 additions & 3 deletions tests/localization_fixture/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
},
"imports": {
"$fresh/": "https://raw.githubusercontent.com/denoland/fresh/844370cadd1ed28fd76f796c2afc1e2411bfc425/",
"preact": "https://esm.sh/[email protected].3",
"preact/": "https://esm.sh/[email protected].3/",
"preact": "https://esm.sh/[email protected].6",
"preact/": "https://esm.sh/[email protected].6/",
"@preact/signals": "https://esm.sh/*@preact/[email protected]",
"@preact/signals-core": "https://esm.sh/*@preact/[email protected]",
"tailwindcss": "npm:[email protected]",
"tailwindcss/": "npm:/[email protected]/",
"tailwindcss/plugin": "npm:/[email protected]/plugin.js",
"$std/": "https://deno.land/std@0.214.0/"
"$std/": "https://deno.land/std@0.218.2/"
},
"compilerOptions": { "jsx": "react-jsx", "jsxImportSource": "preact" },
"lint": { "rules": { "tags": ["fresh", "recommended"] } },
Expand Down
2 changes: 1 addition & 1 deletion tests/localization_test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
assertEquals,
assertExists,
} from "https://deno.land/std@0.214.0/assert/mod.ts";
} from "https://deno.land/std@0.218.2/assert/mod.ts";
import blogConfig from "./localization_fixture/blog.config.ts";
import { languages } from "../src/utils/localization.ts";
import { createHandler } from "../deps.ts";
Expand Down
6 changes: 3 additions & 3 deletions tests/no_posts_dir_fixture/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
},
"imports": {
"$fresh/": "https://raw.githubusercontent.com/denoland/fresh/844370cadd1ed28fd76f796c2afc1e2411bfc425/",
"preact": "https://esm.sh/[email protected].3",
"preact/": "https://esm.sh/[email protected].3/",
"preact": "https://esm.sh/[email protected].6",
"preact/": "https://esm.sh/[email protected].6/",
"@preact/signals": "https://esm.sh/*@preact/[email protected]",
"@preact/signals-core": "https://esm.sh/*@preact/[email protected]",
"tailwindcss": "npm:[email protected]",
"tailwindcss/": "npm:/[email protected]/",
"tailwindcss/plugin": "npm:/[email protected]/plugin.js",
"$std/": "https://deno.land/std@0.214.0/"
"$std/": "https://deno.land/std@0.218.2/"
},
"compilerOptions": { "jsx": "react-jsx", "jsxImportSource": "preact" },
"lint": { "rules": { "tags": ["fresh", "recommended"] } },
Expand Down
6 changes: 3 additions & 3 deletions tests/notion_no_posts_dir_fixture/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
},
"imports": {
"$fresh/": "https://raw.githubusercontent.com/denoland/fresh/844370cadd1ed28fd76f796c2afc1e2411bfc425/",
"preact": "https://esm.sh/[email protected].3",
"preact/": "https://esm.sh/[email protected].3/",
"preact": "https://esm.sh/[email protected].6",
"preact/": "https://esm.sh/[email protected].6/",
"@preact/signals": "https://esm.sh/*@preact/[email protected]",
"@preact/signals-core": "https://esm.sh/*@preact/[email protected]",
"tailwindcss": "npm:[email protected]",
"tailwindcss/": "npm:/[email protected]/",
"tailwindcss/plugin": "npm:/[email protected]/plugin.js",
"$std/": "https://deno.land/std@0.214.0/"
"$std/": "https://deno.land/std@0.218.2/"
},
"compilerOptions": { "jsx": "react-jsx", "jsxImportSource": "preact" },
"lint": { "rules": { "tags": ["fresh", "recommended"] } },
Expand Down
2 changes: 1 addition & 1 deletion tests/notion_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import manifest from "./fixture/fresh.gen.ts";
import { blogPlugin } from "../src/plugin/blog.ts";
import { Context } from "../src/routes/_middleware.ts";

import "https://deno.land/std@0.214.0/dotenv/load.ts";
import "https://deno.land/std@0.218.2/dotenv/load.ts";

parameterizedTests(notionConfig);

Expand Down
6 changes: 3 additions & 3 deletions tests/responsive_navbar_fixture/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
},
"imports": {
"$fresh/": "https://raw.githubusercontent.com/denoland/fresh/844370cadd1ed28fd76f796c2afc1e2411bfc425/",
"preact": "https://esm.sh/[email protected].3",
"preact/": "https://esm.sh/[email protected].3/",
"preact": "https://esm.sh/[email protected].6",
"preact/": "https://esm.sh/[email protected].6/",
"@preact/signals": "https://esm.sh/*@preact/[email protected]",
"@preact/signals-core": "https://esm.sh/*@preact/[email protected]",
"tailwindcss": "npm:[email protected]",
"tailwindcss/": "npm:/[email protected]/",
"tailwindcss/plugin": "npm:/[email protected]/plugin.js",
"$std/": "https://deno.land/std@0.214.0/"
"$std/": "https://deno.land/std@0.218.2/"
},
"compilerOptions": { "jsx": "react-jsx", "jsxImportSource": "preact" },
"lint": { "rules": { "tags": ["fresh", "recommended"] } },
Expand Down
6 changes: 3 additions & 3 deletions tests/separate_index_fixture/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
},
"imports": {
"$fresh/": "https://raw.githubusercontent.com/denoland/fresh/844370cadd1ed28fd76f796c2afc1e2411bfc425/",
"preact": "https://esm.sh/[email protected].3",
"preact/": "https://esm.sh/[email protected].3/",
"preact": "https://esm.sh/[email protected].6",
"preact/": "https://esm.sh/[email protected].6/",
"@preact/signals": "https://esm.sh/*@preact/[email protected]",
"@preact/signals-core": "https://esm.sh/*@preact/[email protected]",
"tailwindcss": "npm:[email protected]",
"tailwindcss/": "npm:/[email protected]/",
"tailwindcss/plugin": "npm:/[email protected]/plugin.js",
"$std/": "https://deno.land/std@0.214.0/"
"$std/": "https://deno.land/std@0.218.2/"
},
"compilerOptions": { "jsx": "react-jsx", "jsxImportSource": "preact" },
"lint": { "rules": { "tags": ["fresh", "recommended"] } },
Expand Down
6 changes: 3 additions & 3 deletions tests/styles_fixture/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
},
"imports": {
"$fresh/": "https://raw.githubusercontent.com/denoland/fresh/844370cadd1ed28fd76f796c2afc1e2411bfc425/",
"preact": "https://esm.sh/[email protected].3",
"preact/": "https://esm.sh/[email protected].3/",
"preact": "https://esm.sh/[email protected].6",
"preact/": "https://esm.sh/[email protected].6/",
"@preact/signals": "https://esm.sh/*@preact/[email protected]",
"@preact/signals-core": "https://esm.sh/*@preact/[email protected]",
"tailwindcss": "npm:[email protected]",
"tailwindcss/": "npm:/[email protected]/",
"tailwindcss/plugin": "npm:/[email protected]/plugin.js",
"$std/": "https://deno.land/std@0.214.0/"
"$std/": "https://deno.land/std@0.218.2/"
},
"compilerOptions": { "jsx": "react-jsx", "jsxImportSource": "preact" },
"lint": { "rules": { "tags": ["fresh", "recommended"] } },
Expand Down
10 changes: 5 additions & 5 deletions tests/test_deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ export {
assertEquals,
assertNotEquals,
assertStringIncludes,
} from "https://deno.land/std@0.214.0/assert/mod.ts";
} from "https://deno.land/std@0.218.2/assert/mod.ts";
export {
default as puppeteer,
Page,
} from "https://deno.land/x/[email protected]/mod.ts";
export type {
ChromeArgOptions,
} from "https://deno.land/x/[email protected]/src/deno/LaunchOptions.ts";
export { delay } from "https://deno.land/std@0.214.0/async/delay.ts";
export { delay } from "https://deno.land/std@0.218.2/async/delay.ts";
export {
TextLineStream,
} from "https://deno.land/std@0.214.0/streams/text_line_stream.ts";
export { $ } from "https://deno.land/x/dax@0.38.0/mod.ts";
export { STATUS_CODE } from "https://deno.land/std@0.214.0/http/status.ts";
} from "https://deno.land/std@0.218.2/streams/text_line_stream.ts";
export { $ } from "jsr:@david/dax@0.39.2";
export { STATUS_CODE } from "https://deno.land/std@0.218.2/http/status.ts";

0 comments on commit 426b46a

Please sign in to comment.