Skip to content

Commit 323c475

Browse files
committed
Upgrade dependencies
1 parent a7c2b2f commit 323c475

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+195
-116
lines changed

codegen/__snapshots__/class.test.ts.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ export const snapshot = {};
22

33
snapshot[`generateClasses() 1`] = `
44
"// deno-lint-ignore-file ban-unused-ignore
5-
import { Temporal } from \\"npm:@js-temporal/polyfill@^0.4.4\\";
6-
import jsonld from \\"npm:jsonld@8.3.2\\";
5+
import { Temporal } from \\"@js-temporal/polyfill\\";
6+
import jsonld from \\"jsonld\\";
77
import { LanguageTag, parseLanguageTag }
8-
from \\"npm:@phensley/language-tag@1.8.0\\";
9-
import { exportSPKI, importSPKI } from \\"npm:jose@5.2.2\\";
8+
from \\"@phensley/language-tag\\";
9+
import { exportSPKI, importSPKI } from \\"jose\\";
1010
import { DocumentLoader, fetchDocumentLoader }
1111
from \\"../runtime/docloader.ts\\";
1212
import { LanguageString } from \\"../runtime/langstr.ts\\";

codegen/class.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { assertEquals } from "jsr:@std/assert@^0.218.2";
2-
import { dirname, join } from "jsr:@std/path@^0.218.2";
3-
import { assertSnapshot } from "jsr:@std/testing@^0.218.2/snapshot";
1+
import { assertEquals } from "@std/assert";
2+
import { dirname, join } from "@std/path";
3+
import { assertSnapshot } from "@std/testing/snapshot";
44
import { generateClasses, sortTopologically } from "./class.ts";
55
import { loadSchemaFiles } from "./schema.ts";
66

codegen/class.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ export async function* generateClasses(
6969
): AsyncIterable<string> {
7070
runtimePath = runtimePath.replace(/\/+$/, "");
7171
yield "// deno-lint-ignore-file ban-unused-ignore\n";
72-
yield 'import { Temporal } from "npm:@js-temporal/polyfill@^0.4.4";\n';
73-
yield 'import jsonld from "npm:jsonld@8.3.2";\n';
72+
yield 'import { Temporal } from "@js-temporal/polyfill";\n';
73+
yield 'import jsonld from "jsonld";\n';
7474
yield `import { LanguageTag, parseLanguageTag }
75-
from "npm:@phensley/language-tag@1.8.0";\n`;
76-
yield `import { exportSPKI, importSPKI } from "npm:jose@5.2.2";\n`;
75+
from "@phensley/language-tag";\n`;
76+
yield `import { exportSPKI, importSPKI } from "jose";\n`;
7777
yield `import { DocumentLoader, fetchDocumentLoader }
7878
from "${runtimePath}/docloader.ts";\n`;
7979
yield `import { LanguageString } from "${runtimePath}/langstr.ts";\n`;

codegen/field.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { encodeBase58 } from "jsr:@std/encoding@^0.218.2/base58";
1+
import { encodeBase58 } from "@std/encoding/base58";
22
import { PropertySchema, TypeSchema } from "./schema.ts";
33
import { areAllScalarTypes, getTypeNames } from "./type.ts";
44

codegen/fs.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { join } from "jsr:@std/path@^0.218.2";
2-
import { assertEquals } from "jsr:@std/assert@^0.218.2";
1+
import { assertEquals } from "@std/assert";
2+
import { join } from "@std/path";
33
import { toSet } from "https://deno.land/x/aitertools@0.5.0/mod.ts";
44
import { readDirRecursive } from "./fs.ts";
55

codegen/fs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { join } from "jsr:@std/path@^0.218.2";
1+
import { join } from "@std/path";
22

33
/**
44
* Recursively read a directory, yielding the paths of all files. File paths

codegen/property.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { toPascalCase } from "jsr:@std/text@^0.218.2";
1+
import { toPascalCase } from "@std/text";
22
import { getFieldName } from "./field.ts";
33
import { PropertySchema, TypeSchema } from "./schema.ts";
44
import { areAllScalarTypes, getTypeNames } from "./type.ts";

codegen/schema.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
import { join } from "jsr:@std/path@^0.218.2";
2-
import * as url from "jsr:@std/url@^0.218.2";
3-
import { parse } from "jsr:@std/yaml@^0.218.2";
4-
import {
5-
Schema as JsonSchema,
6-
Validator,
7-
} from "npm:@cfworker/json-schema@1.12.8";
1+
import { Schema as JsonSchema, Validator } from "@cfworker/json-schema";
2+
import { join } from "@std/path";
3+
import * as url from "@std/url";
4+
import { parse } from "@std/yaml";
85
import { readDirRecursive } from "./fs.ts";
96

107
/**

deno.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,29 @@
1010
"./vocab": "./vocab/mod.ts",
1111
"./webfinger": "./webfinger/mod.ts"
1212
},
13+
"imports": {
14+
"@cfworker/json-schema": "npm:@cfworker/json-schema@^1.12.8",
15+
"@js-temporal/polyfill": "npm:@js-temporal/polyfill@^0.4.4",
16+
"@phensley/language-tag": "npm:@phensley/language-tag@^1.8.0",
17+
"@std/assert": "jsr:@std/assert@^0.219.1",
18+
"@std/bytes": "jsr:@std/bytes@^0.219.1",
19+
"@std/collections": "jsr:@std/collections@^0.219.1",
20+
"@std/encoding": "jsr:@std/encoding@^0.219.1",
21+
"@std/encoding/base64": "jsr:@std/encoding@^0.219.1/base64",
22+
"@std/http": "jsr:@std/http@^0.219.1",
23+
"@std/json": "jsr:@std/json@^0.219.1",
24+
"@std/path": "jsr:@std/path@^0.219.1",
25+
"@std/semver": "jsr:@std/semver@^0.219.1",
26+
"@std/testing": "jsr:@std/testing@^0.219.1",
27+
"@std/text": "jsr:@std/text@^0.219.1",
28+
"@std/url": "jsr:@std/url@^0.219.1",
29+
"@std/yaml": "jsr:@std/yaml@^0.219.1",
30+
"fast-check": "npm:fast-check@^3.16.0",
31+
"jose": "npm:jose@^5.2.3",
32+
"jsonld": "npm:jsonld@^8.3.2",
33+
"uri-template-router": "npm:uri-template-router@^0.0.16",
34+
"url-template": "npm:url-template@^3.1.1"
35+
},
1336
"include": [
1437
"vocab/vocab.ts"
1538
],

examples/blog/deno.json

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
"lock": false,
33
"tasks": {
44
"fedify-codegen": "cat ../../vocab/vocab.ts > /dev/null || (deno run --allow-read --allow-write --check ../../codegen/main.ts ../../vocab/ ../runtime/ > ../../vocab/vocab.ts && deno fmt ../../vocab/vocab.ts && deno cache ../../vocab/vocab.ts && deno check ../../vocab/vocab.ts)",
5-
"check": "deno task fedify-codegen && deno fmt --check && deno lint && deno check **/*.ts && deno check **/*.tsx",
6-
"cli": "deno task fedify-codegen && echo \"import '\\$fresh/src/dev/cli.ts'\" | deno run --unstable -A -",
7-
"manifest": "deno task fedify-codegen && deno task cli manifest $(pwd)",
8-
"start": "deno task fedify-codegen && deno run -A --watch=static/,routes/ --unstable-kv dev.ts",
9-
"build": "deno task fedify-codegen && deno run -A dev.ts build",
10-
"preview": "deno task fedify-codegen && deno run -A main.ts",
5+
"generate-import-map": "deno run --allow-read --allow-write generate_import_map.ts",
6+
"codegen": "deno task fedify-codegen && deno task generate-import-map",
7+
"check": "deno task codegen && deno fmt --check && deno lint && deno check **/*.ts && deno check **/*.tsx",
8+
"cli": "deno task codegen && echo \"import '\\$fresh/src/dev/cli.ts'\" | deno run --unstable -A -",
9+
"manifest": "deno task codegen && deno task cli manifest $(pwd)",
10+
"start": "deno task codegen && deno run -A --watch=static/,routes/ --unstable-kv dev.ts",
11+
"build": "deno task codegen && deno run -A dev.ts build",
12+
"preview": "deno task codegen && deno run -A main.ts",
1113
"update": "deno run -A -r https://fresh.deno.dev/update ."
1214
},
1315
"lint": {
@@ -21,23 +23,7 @@
2123
"exclude": [
2224
"**/_fresh/*"
2325
],
24-
"imports": {
25-
"$fresh/": "https://deno.land/x/fresh@1.6.5/",
26-
"preact": "https://esm.sh/preact@10.19.2",
27-
"preact/": "https://esm.sh/preact@10.19.2/",
28-
"@preact/signals": "https://esm.sh/*@preact/signals@1.2.1",
29-
"@preact/signals-core": "https://esm.sh/*@preact/signals-core@1.5.0",
30-
"$std/": "https://deno.land/std@0.217.0/",
31-
"fedify": "../../mod.ts",
32-
"fedify/federation": "../../federation/mod.ts",
33-
"fedify/httpsig": "../../httpsig/mod.ts",
34-
"fedify/runtime": "../../runtime/mod.ts",
35-
"fedify/vocab": "../../vocab/mod.ts",
36-
"fedify/webfinger": "../../webfinger/mod.ts",
37-
"uuidv7": "npm:uuidv7@0.6.3",
38-
"markdown-it": "npm:markdown-it@14.0.0",
39-
"scrypt": "https://deno.land/x/scrypt@v4.3.1/mod.ts"
40-
},
26+
"importMap": "./import_map.g.json",
4127
"compilerOptions": {
4228
"jsx": "react-jsx",
4329
"jsxImportSource": "preact"

0 commit comments

Comments
 (0)