From 426b46abe82e74ca2233347ce666f07b2ebdb5c2 Mon Sep 17 00:00:00 2001 From: Reed von Redwitz Date: Sat, 2 Mar 2024 09:47:44 +0100 Subject: [PATCH] chore: update deps --- .vscode/import_map.json | 6 +++--- LICENSE | 2 +- deps.ts | 15 ++++++++------- src/plugin/blog.ts | 11 +++++++++-- tests/custom_titles_fixture/deno.json | 6 +++--- tests/empty_posts_dir_fixture/deno.json | 6 +++--- tests/fixture/deno.json | 6 +++--- tests/localization_fixture/deno.json | 6 +++--- tests/localization_test.ts | 2 +- tests/no_posts_dir_fixture/deno.json | 6 +++--- tests/notion_no_posts_dir_fixture/deno.json | 6 +++--- tests/notion_test.ts | 2 +- tests/responsive_navbar_fixture/deno.json | 6 +++--- tests/separate_index_fixture/deno.json | 6 +++--- tests/styles_fixture/deno.json | 6 +++--- tests/test_deps.ts | 10 +++++----- 16 files changed, 55 insertions(+), 47 deletions(-) diff --git a/.vscode/import_map.json b/.vscode/import_map.json index 6298ce5..4197040 100644 --- a/.vscode/import_map.json +++ b/.vscode/import_map.json @@ -4,9 +4,9 @@ }, "imports": { "$fresh/": "https://raw.githubusercontent.com/denoland/fresh/844370cadd1ed28fd76f796c2afc1e2411bfc425/", - "preact": "https://esm.sh/preact@10.19.3", - "preact/": "https://esm.sh/preact@10.19.3/", - "$std/": "https://deno.land/std@0.214.0/", + "preact": "https://esm.sh/preact@10.19.6", + "preact/": "https://esm.sh/preact@10.19.6/", + "$std/": "https://deno.land/std@0.218.2/", "@preact/signals-core": "https://esm.sh/*@preact/signals-core@1.5.1", "@preact/signals": "https://esm.sh/*@preact/signals@1.2.2", "tailwindcss": "npm:tailwindcss@3.4.1", diff --git a/LICENSE b/LICENSE index ece3014..a09e1c2 100644 --- a/LICENSE +++ b/LICENSE @@ -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 diff --git a/deps.ts b/deps.ts index 1980f89..1c6dfe6 100644 --- a/deps.ts +++ b/deps.ts @@ -1,4 +1,4 @@ -export * as preact from "https://esm.sh/preact@10.19.3"; +export * as preact from "https://esm.sh/preact@10.19.6"; export type { FreshContext, Handlers, @@ -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/gfm@0.6.0/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/notion_sdk@v2.2.3/src/mod.ts"; export type { CodeBlockObjectResponse, PageObjectResponse, RichTextItemResponse, } from "https://deno.land/x/notion_sdk@v2.2.3/src/api-endpoints.ts"; -export { $ } from "https://deno.land/x/dax@0.38.0/mod.ts"; +export { $ } from "jsr:@david/dax@0.39.2"; +export { upNlevels } from "jsr:@deer/upnlevels@0.0.1"; diff --git a/src/plugin/blog.ts b/src/plugin/blog.ts index 84571ec..fd42860 100644 --- a/src/plugin/blog.ts +++ b/src/plugin/blog.ts @@ -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"; @@ -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( diff --git a/tests/custom_titles_fixture/deno.json b/tests/custom_titles_fixture/deno.json index 00fec29..9787179 100644 --- a/tests/custom_titles_fixture/deno.json +++ b/tests/custom_titles_fixture/deno.json @@ -8,14 +8,14 @@ }, "imports": { "$fresh/": "https://raw.githubusercontent.com/denoland/fresh/844370cadd1ed28fd76f796c2afc1e2411bfc425/", - "preact": "https://esm.sh/preact@10.19.3", - "preact/": "https://esm.sh/preact@10.19.3/", + "preact": "https://esm.sh/preact@10.19.6", + "preact/": "https://esm.sh/preact@10.19.6/", "@preact/signals": "https://esm.sh/*@preact/signals@1.2.2", "@preact/signals-core": "https://esm.sh/*@preact/signals-core@1.5.1", "tailwindcss": "npm:tailwindcss@3.4.1", "tailwindcss/": "npm:/tailwindcss@3.4.1/", "tailwindcss/plugin": "npm:/tailwindcss@3.4.1/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"] } }, diff --git a/tests/empty_posts_dir_fixture/deno.json b/tests/empty_posts_dir_fixture/deno.json index 00fec29..9787179 100644 --- a/tests/empty_posts_dir_fixture/deno.json +++ b/tests/empty_posts_dir_fixture/deno.json @@ -8,14 +8,14 @@ }, "imports": { "$fresh/": "https://raw.githubusercontent.com/denoland/fresh/844370cadd1ed28fd76f796c2afc1e2411bfc425/", - "preact": "https://esm.sh/preact@10.19.3", - "preact/": "https://esm.sh/preact@10.19.3/", + "preact": "https://esm.sh/preact@10.19.6", + "preact/": "https://esm.sh/preact@10.19.6/", "@preact/signals": "https://esm.sh/*@preact/signals@1.2.2", "@preact/signals-core": "https://esm.sh/*@preact/signals-core@1.5.1", "tailwindcss": "npm:tailwindcss@3.4.1", "tailwindcss/": "npm:/tailwindcss@3.4.1/", "tailwindcss/plugin": "npm:/tailwindcss@3.4.1/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"] } }, diff --git a/tests/fixture/deno.json b/tests/fixture/deno.json index 00fec29..9787179 100644 --- a/tests/fixture/deno.json +++ b/tests/fixture/deno.json @@ -8,14 +8,14 @@ }, "imports": { "$fresh/": "https://raw.githubusercontent.com/denoland/fresh/844370cadd1ed28fd76f796c2afc1e2411bfc425/", - "preact": "https://esm.sh/preact@10.19.3", - "preact/": "https://esm.sh/preact@10.19.3/", + "preact": "https://esm.sh/preact@10.19.6", + "preact/": "https://esm.sh/preact@10.19.6/", "@preact/signals": "https://esm.sh/*@preact/signals@1.2.2", "@preact/signals-core": "https://esm.sh/*@preact/signals-core@1.5.1", "tailwindcss": "npm:tailwindcss@3.4.1", "tailwindcss/": "npm:/tailwindcss@3.4.1/", "tailwindcss/plugin": "npm:/tailwindcss@3.4.1/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"] } }, diff --git a/tests/localization_fixture/deno.json b/tests/localization_fixture/deno.json index 00fec29..9787179 100644 --- a/tests/localization_fixture/deno.json +++ b/tests/localization_fixture/deno.json @@ -8,14 +8,14 @@ }, "imports": { "$fresh/": "https://raw.githubusercontent.com/denoland/fresh/844370cadd1ed28fd76f796c2afc1e2411bfc425/", - "preact": "https://esm.sh/preact@10.19.3", - "preact/": "https://esm.sh/preact@10.19.3/", + "preact": "https://esm.sh/preact@10.19.6", + "preact/": "https://esm.sh/preact@10.19.6/", "@preact/signals": "https://esm.sh/*@preact/signals@1.2.2", "@preact/signals-core": "https://esm.sh/*@preact/signals-core@1.5.1", "tailwindcss": "npm:tailwindcss@3.4.1", "tailwindcss/": "npm:/tailwindcss@3.4.1/", "tailwindcss/plugin": "npm:/tailwindcss@3.4.1/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"] } }, diff --git a/tests/localization_test.ts b/tests/localization_test.ts index 7ce3994..74cc7de 100644 --- a/tests/localization_test.ts +++ b/tests/localization_test.ts @@ -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"; diff --git a/tests/no_posts_dir_fixture/deno.json b/tests/no_posts_dir_fixture/deno.json index 00fec29..9787179 100644 --- a/tests/no_posts_dir_fixture/deno.json +++ b/tests/no_posts_dir_fixture/deno.json @@ -8,14 +8,14 @@ }, "imports": { "$fresh/": "https://raw.githubusercontent.com/denoland/fresh/844370cadd1ed28fd76f796c2afc1e2411bfc425/", - "preact": "https://esm.sh/preact@10.19.3", - "preact/": "https://esm.sh/preact@10.19.3/", + "preact": "https://esm.sh/preact@10.19.6", + "preact/": "https://esm.sh/preact@10.19.6/", "@preact/signals": "https://esm.sh/*@preact/signals@1.2.2", "@preact/signals-core": "https://esm.sh/*@preact/signals-core@1.5.1", "tailwindcss": "npm:tailwindcss@3.4.1", "tailwindcss/": "npm:/tailwindcss@3.4.1/", "tailwindcss/plugin": "npm:/tailwindcss@3.4.1/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"] } }, diff --git a/tests/notion_no_posts_dir_fixture/deno.json b/tests/notion_no_posts_dir_fixture/deno.json index 00fec29..9787179 100644 --- a/tests/notion_no_posts_dir_fixture/deno.json +++ b/tests/notion_no_posts_dir_fixture/deno.json @@ -8,14 +8,14 @@ }, "imports": { "$fresh/": "https://raw.githubusercontent.com/denoland/fresh/844370cadd1ed28fd76f796c2afc1e2411bfc425/", - "preact": "https://esm.sh/preact@10.19.3", - "preact/": "https://esm.sh/preact@10.19.3/", + "preact": "https://esm.sh/preact@10.19.6", + "preact/": "https://esm.sh/preact@10.19.6/", "@preact/signals": "https://esm.sh/*@preact/signals@1.2.2", "@preact/signals-core": "https://esm.sh/*@preact/signals-core@1.5.1", "tailwindcss": "npm:tailwindcss@3.4.1", "tailwindcss/": "npm:/tailwindcss@3.4.1/", "tailwindcss/plugin": "npm:/tailwindcss@3.4.1/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"] } }, diff --git a/tests/notion_test.ts b/tests/notion_test.ts index 99faf50..3a012a4 100644 --- a/tests/notion_test.ts +++ b/tests/notion_test.ts @@ -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); diff --git a/tests/responsive_navbar_fixture/deno.json b/tests/responsive_navbar_fixture/deno.json index 00fec29..9787179 100644 --- a/tests/responsive_navbar_fixture/deno.json +++ b/tests/responsive_navbar_fixture/deno.json @@ -8,14 +8,14 @@ }, "imports": { "$fresh/": "https://raw.githubusercontent.com/denoland/fresh/844370cadd1ed28fd76f796c2afc1e2411bfc425/", - "preact": "https://esm.sh/preact@10.19.3", - "preact/": "https://esm.sh/preact@10.19.3/", + "preact": "https://esm.sh/preact@10.19.6", + "preact/": "https://esm.sh/preact@10.19.6/", "@preact/signals": "https://esm.sh/*@preact/signals@1.2.2", "@preact/signals-core": "https://esm.sh/*@preact/signals-core@1.5.1", "tailwindcss": "npm:tailwindcss@3.4.1", "tailwindcss/": "npm:/tailwindcss@3.4.1/", "tailwindcss/plugin": "npm:/tailwindcss@3.4.1/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"] } }, diff --git a/tests/separate_index_fixture/deno.json b/tests/separate_index_fixture/deno.json index 00fec29..9787179 100644 --- a/tests/separate_index_fixture/deno.json +++ b/tests/separate_index_fixture/deno.json @@ -8,14 +8,14 @@ }, "imports": { "$fresh/": "https://raw.githubusercontent.com/denoland/fresh/844370cadd1ed28fd76f796c2afc1e2411bfc425/", - "preact": "https://esm.sh/preact@10.19.3", - "preact/": "https://esm.sh/preact@10.19.3/", + "preact": "https://esm.sh/preact@10.19.6", + "preact/": "https://esm.sh/preact@10.19.6/", "@preact/signals": "https://esm.sh/*@preact/signals@1.2.2", "@preact/signals-core": "https://esm.sh/*@preact/signals-core@1.5.1", "tailwindcss": "npm:tailwindcss@3.4.1", "tailwindcss/": "npm:/tailwindcss@3.4.1/", "tailwindcss/plugin": "npm:/tailwindcss@3.4.1/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"] } }, diff --git a/tests/styles_fixture/deno.json b/tests/styles_fixture/deno.json index 00fec29..9787179 100644 --- a/tests/styles_fixture/deno.json +++ b/tests/styles_fixture/deno.json @@ -8,14 +8,14 @@ }, "imports": { "$fresh/": "https://raw.githubusercontent.com/denoland/fresh/844370cadd1ed28fd76f796c2afc1e2411bfc425/", - "preact": "https://esm.sh/preact@10.19.3", - "preact/": "https://esm.sh/preact@10.19.3/", + "preact": "https://esm.sh/preact@10.19.6", + "preact/": "https://esm.sh/preact@10.19.6/", "@preact/signals": "https://esm.sh/*@preact/signals@1.2.2", "@preact/signals-core": "https://esm.sh/*@preact/signals-core@1.5.1", "tailwindcss": "npm:tailwindcss@3.4.1", "tailwindcss/": "npm:/tailwindcss@3.4.1/", "tailwindcss/plugin": "npm:/tailwindcss@3.4.1/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"] } }, diff --git a/tests/test_deps.ts b/tests/test_deps.ts index 60ec646..069cf5b 100644 --- a/tests/test_deps.ts +++ b/tests/test_deps.ts @@ -8,7 +8,7 @@ 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, @@ -16,9 +16,9 @@ export { export type { ChromeArgOptions, } from "https://deno.land/x/puppeteer@16.2.0/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";