@fedify/fedify 1.3.5 → 1.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGES.md +91 -71
- package/README.md +4 -4
- package/esm/deno.js +3 -3
- package/esm/deps/jsr.io/@david/which-runtime/0.2.1/mod.js +10 -0
- package/esm/deps/jsr.io/@std/async/{1.0.9 → 1.0.10}/delay.js +1 -1
- package/esm/deps/jsr.io/@std/bytes/1.0.5/_types.js +2 -0
- package/esm/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/concat.js +1 -1
- package/esm/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/copy.js +1 -1
- package/esm/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/ends_with.js +1 -1
- package/esm/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/equals.js +1 -1
- package/esm/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/includes_needle.js +1 -1
- package/esm/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/index_of_needle.js +1 -1
- package/esm/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/last_index_of_needle.js +1 -1
- package/esm/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/mod.js +1 -1
- package/esm/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/repeat.js +1 -1
- package/esm/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/starts_with.js +1 -1
- package/esm/deps/jsr.io/@std/encoding/1.0.7/_types.js +2 -0
- package/esm/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/_validate_binary_like.js +1 -1
- package/esm/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/base64.js +1 -1
- package/esm/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/base64url.js +1 -1
- package/esm/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/hex.js +1 -1
- package/esm/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/_negotiation/common.js +1 -1
- package/esm/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/_negotiation/encoding.js +1 -1
- package/esm/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/_negotiation/language.js +1 -1
- package/esm/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/_negotiation/media_type.js +1 -1
- package/esm/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/negotiation.js +1 -1
- package/esm/federation/collection.js +1 -1
- package/esm/federation/handler.js +1 -1
- package/esm/mod.js +2 -2
- package/esm/runtime/contexts.js +1 -1
- package/esm/runtime/docloader.js +7 -8
- package/esm/runtime/key.js +4 -4
- package/esm/sig/http.js +3 -3
- package/esm/sig/ld.js +2 -2
- package/esm/sig/proof.js +1 -1
- package/esm/vocab/lookup.js +1 -1
- package/esm/vocab/vocab.js +173 -173
- package/package.json +4 -4
- package/types/deps/jsr.io/@david/which-runtime/0.2.1/mod.d.ts +3 -0
- package/types/deps/jsr.io/@david/which-runtime/0.2.1/mod.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/async/1.0.10/delay.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/bytes/1.0.5/_types.d.ts +9 -0
- package/types/deps/jsr.io/@std/bytes/1.0.5/_types.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/concat.d.ts +3 -1
- package/types/deps/jsr.io/@std/bytes/1.0.5/concat.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/copy.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/ends_with.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/equals.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/includes_needle.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/index_of_needle.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/last_index_of_needle.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/mod.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/repeat.d.ts +3 -1
- package/types/deps/jsr.io/@std/bytes/1.0.5/repeat.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/starts_with.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/encoding/1.0.7/_types.d.ts +9 -0
- package/types/deps/jsr.io/@std/encoding/1.0.7/_types.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/_validate_binary_like.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/base64.d.ts +3 -1
- package/types/deps/jsr.io/@std/encoding/1.0.7/base64.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/base64url.d.ts +3 -1
- package/types/deps/jsr.io/@std/encoding/1.0.7/base64url.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/hex.d.ts +3 -1
- package/types/deps/jsr.io/@std/encoding/1.0.7/hex.d.ts.map +1 -0
- package/types/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/_negotiation/common.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/_negotiation/encoding.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/_negotiation/language.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/_negotiation/media_type.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/negotiation.d.ts.map +1 -1
- package/types/mod.d.ts +2 -2
- package/types/runtime/docloader.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/async/1.0.9/delay.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/bytes/1.0.4/concat.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/bytes/1.0.4/repeat.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.6/base64.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.6/base64url.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/encoding/1.0.6/hex.d.ts.map +0 -1
- /package/types/deps/jsr.io/@std/async/{1.0.9 → 1.0.10}/delay.d.ts +0 -0
- /package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/copy.d.ts +0 -0
- /package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/ends_with.d.ts +0 -0
- /package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/equals.d.ts +0 -0
- /package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/includes_needle.d.ts +0 -0
- /package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/index_of_needle.d.ts +0 -0
- /package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/last_index_of_needle.d.ts +0 -0
- /package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/mod.d.ts +0 -0
- /package/types/deps/jsr.io/@std/bytes/{1.0.4 → 1.0.5}/starts_with.d.ts +0 -0
- /package/types/deps/jsr.io/@std/encoding/{1.0.6 → 1.0.7}/_validate_binary_like.d.ts +0 -0
- /package/types/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/_negotiation/common.d.ts +0 -0
- /package/types/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/_negotiation/encoding.d.ts +0 -0
- /package/types/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/_negotiation/language.d.ts +0 -0
- /package/types/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/_negotiation/media_type.d.ts +0 -0
- /package/types/deps/jsr.io/@std/http/{1.0.12 → 1.0.13}/negotiation.d.ts +0 -0
package/esm/mod.js
CHANGED
@@ -25,10 +25,10 @@
|
|
25
25
|
* If you want to know more about the project, please take a look at the
|
26
26
|
* following resources:
|
27
27
|
*
|
28
|
-
* - [GitHub](https://github.com/
|
28
|
+
* - [GitHub](https://github.com/fedify-dev/fedify)
|
29
29
|
* - Tutorials: [Learning the basics](https://fedify.dev/tutorial/basics)
|
30
30
|
* & [Creating a microblog](https://fedify.dev/tutorial/microblog)
|
31
|
-
* - [Examples](https://github.com/
|
31
|
+
* - [Examples](https://github.com/fedify-dev/fedify/tree/main/examples)
|
32
32
|
*
|
33
33
|
* [ActivityPub]: https://www.w3.org/TR/activitypub/
|
34
34
|
* [fediverse]: https://en.wikipedia.org/wiki/Fediverse
|
package/esm/runtime/contexts.js
CHANGED
package/esm/runtime/docloader.js
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import * as dntShim from "../_dnt.shims.js";
|
2
|
+
import { isDeno, isNode } from "../deps/jsr.io/@david/which-runtime/0.2.1/mod.js";
|
2
3
|
import { HTTPHeaderLink } from "@hugoalh/http-header-link";
|
3
4
|
import { getLogger } from "@logtape/logtape";
|
4
5
|
import process from "node:process";
|
@@ -326,14 +327,12 @@ export function kvCache({ loader, kv, prefix, rules }) {
|
|
326
327
|
*/
|
327
328
|
export function getUserAgent({ software, url } = {}) {
|
328
329
|
const fedify = `Fedify/${metadata.version}`;
|
329
|
-
const runtime =
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
? `
|
334
|
-
:
|
335
|
-
? `Node.js/${process.version}`
|
336
|
-
: null;
|
330
|
+
const runtime = isDeno ? `Deno/${dntShim.Deno.version.deno}` : "Bun" in dntShim.dntGlobalThis
|
331
|
+
// @ts-ignore: `Bun` is a global variable in Bun
|
332
|
+
? `Bun/${Bun.version}`
|
333
|
+
: isNode
|
334
|
+
? `Node.js/${process.version}`
|
335
|
+
: null;
|
337
336
|
const userAgent = software == null ? [fedify] : [software, fedify];
|
338
337
|
if (runtime != null)
|
339
338
|
userAgent.push(runtime);
|
package/esm/runtime/key.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import * as dntShim from "../_dnt.shims.js";
|
2
2
|
import { createPublicKey } from "node:crypto";
|
3
|
-
import { concat } from "../deps/jsr.io/@std/bytes/1.0.
|
4
|
-
import { decodeBase64, encodeBase64 } from "../deps/jsr.io/@std/encoding/1.0.
|
5
|
-
import { decodeBase64Url } from "../deps/jsr.io/@std/encoding/1.0.
|
6
|
-
import { decodeHex } from "../deps/jsr.io/@std/encoding/1.0.
|
3
|
+
import { concat } from "../deps/jsr.io/@std/bytes/1.0.5/concat.js";
|
4
|
+
import { decodeBase64, encodeBase64 } from "../deps/jsr.io/@std/encoding/1.0.7/base64.js";
|
5
|
+
import { decodeBase64Url } from "../deps/jsr.io/@std/encoding/1.0.7/base64url.js";
|
6
|
+
import { decodeHex } from "../deps/jsr.io/@std/encoding/1.0.7/hex.js";
|
7
7
|
import { Integer, Sequence } from "asn1js";
|
8
8
|
import { decode, encode } from "multibase";
|
9
9
|
import { addPrefix, getCodeFromData, rmPrefix } from "multicodec";
|
package/esm/sig/http.js
CHANGED
@@ -2,9 +2,9 @@ import * as dntShim from "../_dnt.shims.js";
|
|
2
2
|
import { getLogger } from "@logtape/logtape";
|
3
3
|
import { SpanStatusCode, trace, } from "@opentelemetry/api";
|
4
4
|
import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_URL_FULL, } from "@opentelemetry/semantic-conventions";
|
5
|
-
import { equals } from "../deps/jsr.io/@std/bytes/1.0.
|
6
|
-
import { decodeBase64, encodeBase64 } from "../deps/jsr.io/@std/encoding/1.0.
|
7
|
-
import { encodeHex } from "../deps/jsr.io/@std/encoding/1.0.
|
5
|
+
import { equals } from "../deps/jsr.io/@std/bytes/1.0.5/mod.js";
|
6
|
+
import { decodeBase64, encodeBase64 } from "../deps/jsr.io/@std/encoding/1.0.7/base64.js";
|
7
|
+
import { encodeHex } from "../deps/jsr.io/@std/encoding/1.0.7/hex.js";
|
8
8
|
import metadata from "../deno.js";
|
9
9
|
import { CryptographicKey } from "../vocab/vocab.js";
|
10
10
|
import { fetchKey, validateCryptoKey } from "./key.js";
|
package/esm/sig/ld.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import * as dntShim from "../_dnt.shims.js";
|
2
2
|
import { getLogger } from "@logtape/logtape";
|
3
3
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
4
|
-
import { decodeBase64, encodeBase64 } from "../deps/jsr.io/@std/encoding/1.0.
|
5
|
-
import { encodeHex } from "../deps/jsr.io/@std/encoding/1.0.
|
4
|
+
import { decodeBase64, encodeBase64 } from "../deps/jsr.io/@std/encoding/1.0.7/base64.js";
|
5
|
+
import { encodeHex } from "../deps/jsr.io/@std/encoding/1.0.7/hex.js";
|
6
6
|
// @ts-ignore TS7016
|
7
7
|
import jsonld from "jsonld";
|
8
8
|
import metadata from "../deno.js";
|
package/esm/sig/proof.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as dntShim from "../_dnt.shims.js";
|
2
2
|
import { getLogger } from "@logtape/logtape";
|
3
3
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
4
|
-
import { encodeHex } from "../deps/jsr.io/@std/encoding/1.0.
|
4
|
+
import { encodeHex } from "../deps/jsr.io/@std/encoding/1.0.7/hex.js";
|
5
5
|
// @ts-ignore: json-canon is not typed
|
6
6
|
import serialize from "json-canon";
|
7
7
|
import metadata from "../deno.js";
|
package/esm/vocab/lookup.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as dntShim from "../_dnt.shims.js";
|
2
2
|
import { getLogger } from "@logtape/logtape";
|
3
3
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
4
|
-
import { delay } from "../deps/jsr.io/@std/async/1.0.
|
4
|
+
import { delay } from "../deps/jsr.io/@std/async/1.0.10/delay.js";
|
5
5
|
import metadata from "../deno.js";
|
6
6
|
import { getDocumentLoader, } from "../runtime/docloader.js";
|
7
7
|
import { lookupWebFinger } from "../webfinger/lookup.js";
|