Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump deps #34

Merged
merged 2 commits into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/deno.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ jobs:
- name: Run linter
run: deno lint

- name: Check types
run: deno task check:types

- name: Cache Chrome (Linux)
uses: actions/cache@v3
with:
Expand All @@ -39,7 +42,7 @@ jobs:
run: PUPPETEER_PRODUCT=chrome deno run -A https://deno.land/x/[email protected]/install.ts

- name: Run tests
run: deno test -A --coverage=cov/
run: deno test -A --no-check --coverage=cov/
env:
BLOG_NOTION_API_KEY: ${{ secrets.BLOG_NOTION_API_KEY }}
BLOG_NOTION_DATABASE_ID: ${{ secrets.BLOG_NOTION_DATABASE_ID }}
Expand Down
16 changes: 16 additions & 0 deletions .vscode/import_map.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"scopes": {
"THIS FILE EXISTS ONLY FOR VSCODE! IT IS NOT USED AT RUNTIME": {}
},
"imports": {
"$fresh/": "https://raw.githubusercontent.com/denoland/fresh/844370cadd1ed28fd76f796c2afc1e2411bfc425/",
"preact": "https://esm.sh/[email protected]",
"preact/": "https://esm.sh/[email protected]/",
"$std/": "https://deno.land/[email protected]/",
"@preact/signals-core": "https://esm.sh/*@preact/[email protected]",
"@preact/signals": "https://esm.sh/*@preact/[email protected]",
"tailwindcss": "npm:[email protected]",
"tailwindcss/": "npm:/[email protected]/",
"tailwindcss/plugin": "npm:/[email protected]/plugin.js"
}
}
13 changes: 3 additions & 10 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,10 @@
},
"tasks": {
"check:types": "deno check **/*.ts && deno check **/*.tsx",
"coverage": "rm -rf coverage && deno test -A --parallel --coverage && deno coverage --html",
"coverage": "rm -rf coverage && deno test -A --parallel --no-check --coverage && deno coverage --html",
"fixture": "deno run -A --watch=static/,routes/ tests/fixture/dev.ts",
"ok": "deno fmt --check && deno lint && deno task check:types && deno task test",
"test": "deno test -A --parallel"
"test": "deno test -A --parallel --no-check"
},
"imports": {
"$fresh/": "https://raw.githubusercontent.com/denoland/fresh/844370cadd1ed28fd76f796c2afc1e2411bfc425/",
"tailwindcss": "npm:[email protected]",
"preact": "https://esm.sh/[email protected]",
"preact/": "https://esm.sh/[email protected]/",
"@preact/signals-core": "https://esm.sh/*@preact/[email protected]",
"$std/": "https://deno.land/[email protected]/"
}
"importMap": "./.vscode/import_map.json"
}
17 changes: 9 additions & 8 deletions deps.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export * as preact from "https://esm.sh/[email protected].2";
export * as preact from "https://esm.sh/[email protected].3";
export type {
FreshContext,
Handlers,
MiddlewareHandlerContext,
PageProps,
Expand All @@ -12,16 +13,16 @@ export {
extname,
fromFileUrl,
join,
} from "https://deno.land/std@0.208.0/path/mod.ts";
export * as JSONC from "https://deno.land/std@0.208.0/jsonc/mod.ts";
export { extract } from "https://deno.land/std@0.208.0/front_matter/yaml.ts";
export { CSS, render, Renderer } from "https://deno.land/x/gfm@0.5.0/mod.ts";
export { load } from "https://deno.land/std@0.208.0/dotenv/mod.ts";
export { existsSync } from "https://deno.land/std@0.208.0/fs/mod.ts";
} 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";
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 { 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/dax@0.35.0/mod.ts";
export { $ } from "https://deno.land/x/dax@0.38.0/mod.ts";
16 changes: 8 additions & 8 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].2",
"preact/": "https://esm.sh/[email protected].2/",
"@preact/signals": "https://esm.sh/*@preact/[email protected].1",
"@preact/signals-core": "https://esm.sh/*@preact/[email protected].0",
"tailwindcss": "npm:tailwindcss@3.3.5",
"tailwindcss/": "npm:/tailwindcss@3.3.5/",
"tailwindcss/plugin": "npm:/tailwindcss@3.3.5/plugin.js",
"$std/": "https://deno.land/std@0.208.0/"
"preact": "https://esm.sh/[email protected].3",
"preact/": "https://esm.sh/[email protected].3/",
"@preact/signals": "https://esm.sh/*@preact/[email protected].2",
"@preact/signals-core": "https://esm.sh/*@preact/[email protected].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/"
},
"compilerOptions": { "jsx": "react-jsx", "jsxImportSource": "preact" },
"lint": { "rules": { "tags": ["fresh", "recommended"] } },
Expand Down
16 changes: 8 additions & 8 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].2",
"preact/": "https://esm.sh/[email protected].2/",
"@preact/signals": "https://esm.sh/*@preact/[email protected].1",
"@preact/signals-core": "https://esm.sh/*@preact/[email protected].0",
"tailwindcss": "npm:tailwindcss@3.3.5",
"tailwindcss/": "npm:/tailwindcss@3.3.5/",
"tailwindcss/plugin": "npm:/tailwindcss@3.3.5/plugin.js",
"$std/": "https://deno.land/std@0.208.0/"
"preact": "https://esm.sh/[email protected].3",
"preact/": "https://esm.sh/[email protected].3/",
"@preact/signals": "https://esm.sh/*@preact/[email protected].2",
"@preact/signals-core": "https://esm.sh/*@preact/[email protected].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/"
},
"compilerOptions": { "jsx": "react-jsx", "jsxImportSource": "preact" },
"lint": { "rules": { "tags": ["fresh", "recommended"] } },
Expand Down
16 changes: 8 additions & 8 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].2",
"preact/": "https://esm.sh/[email protected].2/",
"@preact/signals": "https://esm.sh/*@preact/[email protected].1",
"@preact/signals-core": "https://esm.sh/*@preact/[email protected].0",
"tailwindcss": "npm:tailwindcss@3.3.5",
"tailwindcss/": "npm:/tailwindcss@3.3.5/",
"tailwindcss/plugin": "npm:/tailwindcss@3.3.5/plugin.js",
"$std/": "https://deno.land/std@0.208.0/"
"preact": "https://esm.sh/[email protected].3",
"preact/": "https://esm.sh/[email protected].3/",
"@preact/signals": "https://esm.sh/*@preact/[email protected].2",
"@preact/signals-core": "https://esm.sh/*@preact/[email protected].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/"
},
"compilerOptions": { "jsx": "react-jsx", "jsxImportSource": "preact" },
"lint": { "rules": { "tags": ["fresh", "recommended"] } },
Expand Down
16 changes: 8 additions & 8 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].2",
"preact/": "https://esm.sh/[email protected].2/",
"@preact/signals": "https://esm.sh/*@preact/[email protected].1",
"@preact/signals-core": "https://esm.sh/*@preact/[email protected].0",
"tailwindcss": "npm:tailwindcss@3.3.5",
"tailwindcss/": "npm:/tailwindcss@3.3.5/",
"tailwindcss/plugin": "npm:/tailwindcss@3.3.5/plugin.js",
"$std/": "https://deno.land/std@0.208.0/"
"preact": "https://esm.sh/[email protected].3",
"preact/": "https://esm.sh/[email protected].3/",
"@preact/signals": "https://esm.sh/*@preact/[email protected].2",
"@preact/signals-core": "https://esm.sh/*@preact/[email protected].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/"
},
"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.195.0/assert/mod.ts";
} from "https://deno.land/std@0.214.0/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
16 changes: 8 additions & 8 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].2",
"preact/": "https://esm.sh/[email protected].2/",
"@preact/signals": "https://esm.sh/*@preact/[email protected].1",
"@preact/signals-core": "https://esm.sh/*@preact/[email protected].0",
"tailwindcss": "npm:tailwindcss@3.3.5",
"tailwindcss/": "npm:/tailwindcss@3.3.5/",
"tailwindcss/plugin": "npm:/tailwindcss@3.3.5/plugin.js",
"$std/": "https://deno.land/std@0.208.0/"
"preact": "https://esm.sh/[email protected].3",
"preact/": "https://esm.sh/[email protected].3/",
"@preact/signals": "https://esm.sh/*@preact/[email protected].2",
"@preact/signals-core": "https://esm.sh/*@preact/[email protected].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/"
},
"compilerOptions": { "jsx": "react-jsx", "jsxImportSource": "preact" },
"lint": { "rules": { "tags": ["fresh", "recommended"] } },
Expand Down
16 changes: 8 additions & 8 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].2",
"preact/": "https://esm.sh/[email protected].2/",
"@preact/signals": "https://esm.sh/*@preact/[email protected].1",
"@preact/signals-core": "https://esm.sh/*@preact/[email protected].0",
"tailwindcss": "npm:tailwindcss@3.3.5",
"tailwindcss/": "npm:/tailwindcss@3.3.5/",
"tailwindcss/plugin": "npm:/tailwindcss@3.3.5/plugin.js",
"$std/": "https://deno.land/std@0.208.0/"
"preact": "https://esm.sh/[email protected].3",
"preact/": "https://esm.sh/[email protected].3/",
"@preact/signals": "https://esm.sh/*@preact/[email protected].2",
"@preact/signals-core": "https://esm.sh/*@preact/[email protected].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/"
},
"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.195.0/dotenv/load.ts";
import "https://deno.land/std@0.214.0/dotenv/load.ts";

parameterizedTests(notionConfig);

Expand Down
16 changes: 8 additions & 8 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].2",
"preact/": "https://esm.sh/[email protected].2/",
"@preact/signals": "https://esm.sh/*@preact/[email protected].1",
"@preact/signals-core": "https://esm.sh/*@preact/[email protected].0",
"tailwindcss": "npm:tailwindcss@3.3.5",
"tailwindcss/": "npm:/tailwindcss@3.3.5/",
"tailwindcss/plugin": "npm:/tailwindcss@3.3.5/plugin.js",
"$std/": "https://deno.land/std@0.208.0/"
"preact": "https://esm.sh/[email protected].3",
"preact/": "https://esm.sh/[email protected].3/",
"@preact/signals": "https://esm.sh/*@preact/[email protected].2",
"@preact/signals-core": "https://esm.sh/*@preact/[email protected].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/"
},
"compilerOptions": { "jsx": "react-jsx", "jsxImportSource": "preact" },
"lint": { "rules": { "tags": ["fresh", "recommended"] } },
Expand Down
16 changes: 8 additions & 8 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].2",
"preact/": "https://esm.sh/[email protected].2/",
"@preact/signals": "https://esm.sh/*@preact/[email protected].1",
"@preact/signals-core": "https://esm.sh/*@preact/[email protected].0",
"tailwindcss": "npm:tailwindcss@3.3.5",
"tailwindcss/": "npm:/tailwindcss@3.3.5/",
"tailwindcss/plugin": "npm:/tailwindcss@3.3.5/plugin.js",
"$std/": "https://deno.land/std@0.208.0/"
"preact": "https://esm.sh/[email protected].3",
"preact/": "https://esm.sh/[email protected].3/",
"@preact/signals": "https://esm.sh/*@preact/[email protected].2",
"@preact/signals-core": "https://esm.sh/*@preact/[email protected].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/"
},
"compilerOptions": { "jsx": "react-jsx", "jsxImportSource": "preact" },
"lint": { "rules": { "tags": ["fresh", "recommended"] } },
Expand Down
12 changes: 6 additions & 6 deletions tests/test_deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@ export {
DOMParser,
Element,
HTMLDocument,
} from "https://deno.land/x/[email protected].38/deno-dom-wasm.ts";
} from "https://deno.land/x/[email protected].45/deno-dom-wasm.ts";
export {
assert,
assertEquals,
assertNotEquals,
assertStringIncludes,
} from "https://deno.land/std@0.208.0/assert/mod.ts";
} from "https://deno.land/std@0.214.0/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.208.0/async/delay.ts";
export { delay } from "https://deno.land/std@0.214.0/async/delay.ts";
export {
TextLineStream,
} from "https://deno.land/std@0.208.0/streams/text_line_stream.ts";
export { $ } from "https://deno.land/x/dax@0.35.0/mod.ts";
export { STATUS_CODE } from "https://deno.land/std@0.208.0/http/status.ts";
} 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";
Loading