@fedify/fedify 2.4.0-dev.2027 → 2.4.0-dev.2030

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.
Files changed (61) hide show
  1. package/dist/{builder-BM255b90.mjs → builder-BYJ5otJa.mjs} +2 -2
  2. package/dist/compat/transformers.test.mjs +1 -1
  3. package/dist/{compound-proof-CPvNisT2.mjs → compound-proof-BIvUoJxm.mjs} +74 -2
  4. package/dist/{deno-BcZNXlJn.mjs → deno-Vj_9wePq.mjs} +1 -1
  5. package/dist/{docloader-iHi0-9mK.mjs → docloader-qUudHZVH.mjs} +2 -2
  6. package/dist/federation/builder.test.mjs +1 -1
  7. package/dist/federation/compound-fanout.test.mjs +3 -3
  8. package/dist/federation/handler-compound-proof.test.mjs +3 -3
  9. package/dist/federation/handler.test.mjs +5 -5
  10. package/dist/federation/idempotency.test.mjs +2 -2
  11. package/dist/federation/metrics.test.mjs +1 -1
  12. package/dist/federation/middleware.test.mjs +7 -7
  13. package/dist/federation/mod.cjs +1 -1
  14. package/dist/federation/mod.js +1 -1
  15. package/dist/federation/outgoing-proof.test.d.mts +2 -0
  16. package/dist/federation/outgoing-proof.test.mjs +396 -0
  17. package/dist/federation/send.test.mjs +3 -3
  18. package/dist/federation/tasks/enqueue.test.mjs +1 -1
  19. package/dist/federation/tasks/tasks.test.mjs +2 -2
  20. package/dist/federation/temporal.test.mjs +1 -1
  21. package/dist/federation/webfinger.test.mjs +1 -1
  22. package/dist/{federation-C0ijTwhx.cjs → federation-CTnaljmy.cjs} +200 -50
  23. package/dist/{http-CWXKwHPv.cjs → http-B5F1JMh0.cjs} +1 -1
  24. package/dist/{http-KZWtR1H8.js → http-By8tnmEr.js} +1 -1
  25. package/dist/{http-fIK5D83n.mjs → http-D4WPcJUe.mjs} +3 -3
  26. package/dist/{key-Xb1hVVZO.mjs → key-B_Zc5Jbd.mjs} +2 -2
  27. package/dist/{kv-cache-Dos4tOWb.cjs → kv-cache-8K70pjtX.cjs} +1 -1
  28. package/dist/{kv-cache-CU1rmQFB.mjs → kv-cache-BXdT7pJQ.mjs} +1 -1
  29. package/dist/{kv-cache-HOO6BsuW.js → kv-cache-BswMKQjC.js} +1 -1
  30. package/dist/{ld-DFHvxLtx.mjs → ld-B16KUSIQ.mjs} +3 -3
  31. package/dist/{metrics-D7RydU_p.mjs → metrics-DpQqUAmh.mjs} +1 -1
  32. package/dist/{middleware-DgU5bJnn.mjs → middleware-BL5HFFVU.mjs} +1 -1
  33. package/dist/{middleware-BsYD_ufs.mjs → middleware-C7_hqDnl.mjs} +139 -61
  34. package/dist/{middleware-iffqYoTV.js → middleware-Cxto6Bq2.js} +201 -51
  35. package/dist/mod.cjs +4 -4
  36. package/dist/mod.js +4 -4
  37. package/dist/nodeinfo/handler.test.mjs +1 -1
  38. package/dist/{owner-D53bUI-n.mjs → owner-BIOIhZoM.mjs} +2 -2
  39. package/dist/{owner-B7lgRMdU.js → owner-D-E0bT2O.js} +1 -1
  40. package/dist/{owner-DffLVeYC.cjs → owner-WUYke16i.cjs} +1 -1
  41. package/dist/{proof-4ADU3qy0.mjs → proof-BVxJu5vv.mjs} +4 -4
  42. package/dist/{send-n-W6bG7y.mjs → send-Cr5FJ7iu.mjs} +3 -3
  43. package/dist/sig/compound-proof-discovery.test.mjs +1 -1
  44. package/dist/sig/compound-proof-producer.test.d.mts +2 -0
  45. package/dist/sig/compound-proof-producer.test.mjs +107 -0
  46. package/dist/sig/compound-proof-verification.test.mjs +2 -2
  47. package/dist/sig/compound-proof.test.mjs +2 -2
  48. package/dist/sig/http.test.mjs +2 -2
  49. package/dist/sig/key.test.mjs +1 -1
  50. package/dist/sig/ld.test.mjs +2 -2
  51. package/dist/sig/mod.cjs +2 -2
  52. package/dist/sig/mod.js +2 -2
  53. package/dist/sig/owner.test.mjs +1 -1
  54. package/dist/sig/proof.test.mjs +1 -1
  55. package/dist/{temporal-BFUyXrYg.mjs → temporal-CCf0lZV3.mjs} +1 -1
  56. package/dist/testing/kv.test.mjs +1 -1
  57. package/dist/utils/docloader.test.mjs +2 -2
  58. package/dist/utils/kv-cache.test.mjs +1 -1
  59. package/dist/utils/mod.cjs +1 -1
  60. package/dist/utils/mod.js +1 -1
  61. package/package.json +6 -6
@@ -1,6 +1,6 @@
1
1
  import { Temporal } from "temporal-polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { I as name, L as version, c as fetchKey, f as validateCryptoKey, h as getFederationMetrics, m as getDurationMs, o as exportJwk, p as verifyKeyOwnership, s as fetchActorDocument, y as measureSignatureKeyFetch } from "./http-KZWtR1H8.js";
3
+ import { I as name, L as version, c as fetchKey, f as validateCryptoKey, h as getFederationMetrics, m as getDurationMs, o as exportJwk, p as verifyKeyOwnership, s as fetchActorDocument, y as measureSignatureKeyFetch } from "./http-By8tnmEr.js";
4
4
  import { getLogger } from "@logtape/logtape";
5
5
  import { Activity, CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1, PUBLIC_COLLECTION, getTypeId, isActor } from "@fedify/vocab";
6
6
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
@@ -1,6 +1,6 @@
1
1
  const { URLPattern } = require("urlpattern-polyfill");
2
2
  const require_rolldown_runtime = require("./rolldown-runtime-Dmm3t92W.cjs");
3
- const require_http = require("./http-CWXKwHPv.cjs");
3
+ const require_http = require("./http-B5F1JMh0.cjs");
4
4
  let _logtape_logtape = require("@logtape/logtape");
5
5
  let _fedify_vocab = require("@fedify/vocab");
6
6
  let _opentelemetry_api = require("@opentelemetry/api");
@@ -1,12 +1,12 @@
1
1
  import { Temporal } from "temporal-polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as version, t as name } from "./deno-BcZNXlJn.mjs";
5
- import { n as getDurationMs, r as getFederationMetrics, s as measureSignatureKeyFetch } from "./metrics-D7RydU_p.mjs";
6
- import { r as fetchKey, s as validateCryptoKey } from "./key-Xb1hVVZO.mjs";
4
+ import { n as version, t as name } from "./deno-Vj_9wePq.mjs";
5
+ import { n as getDurationMs, r as getFederationMetrics, s as measureSignatureKeyFetch } from "./metrics-DpQqUAmh.mjs";
6
+ import { r as fetchKey, s as validateCryptoKey } from "./key-B_Zc5Jbd.mjs";
7
7
  import { n as preloadedOnlyDocumentLoader } from "./public-audience--klBIOk1.mjs";
8
8
  import { r as normalizeOutgoingActivityJsonLd } from "./outgoing-jsonld-4IJqPYos.mjs";
9
- import { c as getNormalizationContextLoader } from "./ld-DFHvxLtx.mjs";
9
+ import { c as getNormalizationContextLoader } from "./ld-B16KUSIQ.mjs";
10
10
  import { getLogger } from "@logtape/logtape";
11
11
  import { Activity, DataIntegrityProof, Multikey, getTypeId } from "@fedify/vocab";
12
12
  import { SpanStatusCode, trace } from "@opentelemetry/api";
@@ -1,9 +1,9 @@
1
1
  import "temporal-polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as version, t as name } from "./deno-BcZNXlJn.mjs";
5
- import { n as getDurationMs, r as getFederationMetrics } from "./metrics-D7RydU_p.mjs";
6
- import { n as doubleKnock } from "./http-fIK5D83n.mjs";
4
+ import { n as version, t as name } from "./deno-Vj_9wePq.mjs";
5
+ import { n as getDurationMs, r as getFederationMetrics } from "./metrics-DpQqUAmh.mjs";
6
+ import { n as doubleKnock } from "./http-D4WPcJUe.mjs";
7
7
  import { getLogger } from "@logtape/logtape";
8
8
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
9
9
  import { FetchError, UrlError, validatePublicUrl } from "@fedify/vocab-runtime";
@@ -3,7 +3,7 @@ import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
4
  import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
5
5
  import "../std__assert-DvMDRPes.mjs";
6
- import { n as inspectCompoundPortableObjectApplicability, t as discoverCompoundProofDocuments } from "../compound-proof-CPvNisT2.mjs";
6
+ import { i as inspectCompoundPortableObjectApplicability, n as discoverCompoundProofDocuments } from "../compound-proof-BIvUoJxm.mjs";
7
7
  import { t as map_local_create_note_default } from "../map-local-create-note-B0SeXJms.mjs";
8
8
  import { test } from "@fedify/fixture";
9
9
  //#region src/sig/compound-proof-discovery.test.ts
@@ -0,0 +1,2 @@
1
+ import { Temporal } from "temporal-polyfill";
2
+ import { URLPattern } from "urlpattern-polyfill";
@@ -0,0 +1,107 @@
1
+ import "temporal-polyfill";
2
+ import "urlpattern-polyfill";
3
+ globalThis.addEventListener = () => {};
4
+ import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
5
+ import "../std__assert-DvMDRPes.mjs";
6
+ import { i as inspectCompoundPortableObjectApplicability, r as findUnsupportedCompoundProofShape, t as containsCompoundPortableObject } from "../compound-proof-BIvUoJxm.mjs";
7
+ import { test } from "@fedify/fixture";
8
+ //#region src/sig/compound-proof-producer.test.ts
9
+ const portableId = "ap+ef61://did:key:z6MkAlice/objects/1";
10
+ const proof = {
11
+ type: "DataIntegrityProof",
12
+ proofValue: "z"
13
+ };
14
+ function nest(depth, leaf) {
15
+ let value = leaf;
16
+ for (let i = 0; i < depth; i++) value = {
17
+ type: "Note",
18
+ content: value
19
+ };
20
+ return value;
21
+ }
22
+ test("containsCompoundPortableObject() finds portable maps", () => {
23
+ const cases = [
24
+ [{ id: portableId }, true],
25
+ [{ "@id": "AP://did:key:z6MkAlice/actor" }, true],
26
+ [{
27
+ id: "https://example.com/1",
28
+ object: [{}, { id: portableId }]
29
+ }, true],
30
+ [{
31
+ id: "https://example.com/1",
32
+ actor: portableId
33
+ }, false],
34
+ [{
35
+ id: "https://example.com/1",
36
+ proof: { id: portableId }
37
+ }, false],
38
+ [{
39
+ "@context": [{ id: portableId }],
40
+ id: "https://example.com/1"
41
+ }, false],
42
+ [{
43
+ id: "https://example.com/1",
44
+ object: { id: "ap-like" }
45
+ }, false],
46
+ [[{ id: portableId }], true],
47
+ [null, false]
48
+ ];
49
+ for (const [json, expected] of cases) assertEquals(containsCompoundPortableObject(json), expected, `${json}`);
50
+ });
51
+ test("containsCompoundPortableObject() ignores the inbox limits", () => {
52
+ const deep = nest(100, { id: portableId });
53
+ const limits = {
54
+ maxDepth: 64,
55
+ maxMaps: 1e4,
56
+ maxProofs: 32,
57
+ maxBytes: 10 * 1024 * 1024
58
+ };
59
+ assertEquals(inspectCompoundPortableObjectApplicability(deep, limits), "indeterminate");
60
+ assertEquals(containsCompoundPortableObject(deep), true);
61
+ const large = {
62
+ id: "https://example.com/1",
63
+ content: "x".repeat(11 * 1024 * 1024),
64
+ proof: [proof, proof]
65
+ };
66
+ assertEquals(inspectCompoundPortableObjectApplicability(large, limits), "indeterminate");
67
+ assertEquals(containsCompoundPortableObject(large), false);
68
+ });
69
+ test("containsCompoundPortableObject() terminates on repeated maps", () => {
70
+ const shared = { type: "Note" };
71
+ const cyclic = {
72
+ a: shared,
73
+ b: shared
74
+ };
75
+ shared.parent = cyclic;
76
+ assertEquals(containsCompoundPortableObject(cyclic), false);
77
+ shared.id = portableId;
78
+ assertEquals(containsCompoundPortableObject(cyclic), true);
79
+ });
80
+ test("findUnsupportedCompoundProofShape() reports non-map proofs", () => {
81
+ const cases = [
82
+ [{ proof }, null],
83
+ [{ proof: [proof, proof] }, "/proof"],
84
+ [{ proof: [proof] }, "/proof"],
85
+ [{ proof: [] }, "/proof"],
86
+ [{ proof: null }, "/proof"],
87
+ [{ proof: "z" }, "/proof"],
88
+ [{ proof: 1 }, "/proof"],
89
+ [{ proof: true }, "/proof"],
90
+ [{
91
+ proof,
92
+ object: { proof: [proof, proof] }
93
+ }, "/object/proof"],
94
+ [{ items: [{ proof }, { proof: [proof] }] }, "/items/1/proof"],
95
+ [{ "a/b~c": { proof: [proof] } }, "/a~1b~0c/proof"],
96
+ [{ proof: {
97
+ ...proof,
98
+ nested: { proof: [proof] }
99
+ } }, null],
100
+ [{ "@context": [{ proof: [proof] }] }, null],
101
+ [{ object: { id: portableId } }, null]
102
+ ];
103
+ for (const [json, expected] of cases) assertEquals(findUnsupportedCompoundProofShape(json), expected, JSON.stringify(json));
104
+ assertEquals(findUnsupportedCompoundProofShape(nest(100, { proof: [proof, proof] })), "/content".repeat(100) + "/proof");
105
+ });
106
+ //#endregion
107
+ export {};
@@ -4,8 +4,8 @@ globalThis.addEventListener = () => {};
4
4
  import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
5
5
  import "../std__assert-DvMDRPes.mjs";
6
6
  import { t as assert } from "../assert-D1Eafmd_.mjs";
7
- import { i as verifyMapLocalProof, s as verifyPortableObjectProofPolicy } from "../proof-4ADU3qy0.mjs";
8
- import { i as verifyCompoundProofDocuments, r as verifyCompoundPortableObjectProofs } from "../compound-proof-CPvNisT2.mjs";
7
+ import { i as verifyMapLocalProof, s as verifyPortableObjectProofPolicy } from "../proof-BVxJu5vv.mjs";
8
+ import { a as verifyCompoundPortableObjectProofs, o as verifyCompoundProofDocuments } from "../compound-proof-BIvUoJxm.mjs";
9
9
  import { t as map_local_create_note_default } from "../map-local-create-note-B0SeXJms.mjs";
10
10
  import { t as map_local_context_conflict_default } from "../map-local-context-conflict-DOYEEJ3u.mjs";
11
11
  import { mockDocumentLoader, test } from "@fedify/fixture";
@@ -7,8 +7,8 @@ import { t as assert } from "../assert-D1Eafmd_.mjs";
7
7
  import { n as ed25519PrivateKey, r as ed25519PublicKey } from "../keys-DIJNHW-Y.mjs";
8
8
  import { n as preloadedOnlyDocumentLoader } from "../public-audience--klBIOk1.mjs";
9
9
  import { r as normalizeOutgoingActivityJsonLd } from "../outgoing-jsonld-4IJqPYos.mjs";
10
- import { c as verifyProof, r as signObject } from "../proof-4ADU3qy0.mjs";
11
- import { i as verifyCompoundProofDocuments } from "../compound-proof-CPvNisT2.mjs";
10
+ import { c as verifyProof, r as signObject } from "../proof-BVxJu5vv.mjs";
11
+ import { o as verifyCompoundProofDocuments } from "../compound-proof-BIvUoJxm.mjs";
12
12
  import { t as map_local_create_note_default } from "../map-local-create-note-B0SeXJms.mjs";
13
13
  import { t as map_local_context_conflict_default } from "../map-local-context-conflict-DOYEEJ3u.mjs";
14
14
  import { Create, DataIntegrityProof, Note, Question } from "@fedify/vocab";
@@ -11,8 +11,8 @@ import { t as assertThrows } from "../assert_throws-BYITOvPO.mjs";
11
11
  import "../std__assert-DvMDRPes.mjs";
12
12
  import { t as assertRejects } from "../assert_rejects-CTptdYck.mjs";
13
13
  import { t as assert } from "../assert-D1Eafmd_.mjs";
14
- import { t as exportJwk } from "../key-Xb1hVVZO.mjs";
15
- import { a as parseRfc9421Signature, c as timingSafeEqual, i as formatRfc9421SignatureParameters, l as verifyRequest, n as doubleKnock, o as parseRfc9421SignatureInput, r as formatRfc9421Signature, s as signRequest, t as createRfc9421SignatureBase, u as verifyRequestDetailed } from "../http-fIK5D83n.mjs";
14
+ import { t as exportJwk } from "../key-B_Zc5Jbd.mjs";
15
+ import { a as parseRfc9421Signature, c as timingSafeEqual, i as formatRfc9421SignatureParameters, l as verifyRequest, n as doubleKnock, o as parseRfc9421SignatureInput, r as formatRfc9421Signature, s as signRequest, t as createRfc9421SignatureBase, u as verifyRequestDetailed } from "../http-D4WPcJUe.mjs";
16
16
  import { i as rsaPrivateKey2, l as rsaPublicKey5, o as rsaPublicKey1, s as rsaPublicKey2 } from "../keys-DIJNHW-Y.mjs";
17
17
  import { createTestMeterProvider, createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
18
18
  import { FetchError, exportSpki } from "@fedify/vocab-runtime";
@@ -6,7 +6,7 @@ import { t as assertThrows } from "../assert_throws-BYITOvPO.mjs";
6
6
  import "../std__assert-DvMDRPes.mjs";
7
7
  import { t as assertRejects } from "../assert_rejects-CTptdYck.mjs";
8
8
  import { t as assert } from "../assert-D1Eafmd_.mjs";
9
- import { a as generateCryptoKeyPair, i as fetchKeyDetailed, o as importJwk, r as fetchKey, s as validateCryptoKey, t as exportJwk } from "../key-Xb1hVVZO.mjs";
9
+ import { a as generateCryptoKeyPair, i as fetchKeyDetailed, o as importJwk, r as fetchKey, s as validateCryptoKey, t as exportJwk } from "../key-B_Zc5Jbd.mjs";
10
10
  import { c as rsaPublicKey3, i as rsaPrivateKey2, o as rsaPublicKey1, r as ed25519PublicKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-DIJNHW-Y.mjs";
11
11
  import { CryptographicKey, Multikey } from "@fedify/vocab";
12
12
  import { createTestMeterProvider, createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
@@ -8,9 +8,9 @@ import { t as assertInstanceOf } from "../assert_instance_of-mrXWWNY-.mjs";
8
8
  import { t as assertThrows } from "../assert_throws-BYITOvPO.mjs";
9
9
  import { t as assertRejects } from "../assert_rejects-CTptdYck.mjs";
10
10
  import { t as assert } from "../assert-D1Eafmd_.mjs";
11
- import { a as generateCryptoKeyPair } from "../key-Xb1hVVZO.mjs";
11
+ import { a as generateCryptoKeyPair } from "../key-B_Zc5Jbd.mjs";
12
12
  import { a as rsaPrivateKey3, c as rsaPublicKey3, i as rsaPrivateKey2, n as ed25519PrivateKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-DIJNHW-Y.mjs";
13
- import { a as compactJsonLd, f as isInvalidUrlTypeError, g as verifySignature, h as verifyJsonLd, i as attachSignature, n as UnsafeJsonLdError, o as createSignature, p as signJsonLd, s as detachSignature, u as hasSignatureLike } from "../ld-DFHvxLtx.mjs";
13
+ import { a as compactJsonLd, f as isInvalidUrlTypeError, g as verifySignature, h as verifyJsonLd, i as attachSignature, n as UnsafeJsonLdError, o as createSignature, p as signJsonLd, s as detachSignature, u as hasSignatureLike } from "../ld-B16KUSIQ.mjs";
14
14
  import { CryptographicKey } from "@fedify/vocab";
15
15
  import { createTestMeterProvider, mockDocumentLoader, test } from "@fedify/fixture";
16
16
  import { encodeBase64 } from "byte-encodings/base64";
package/dist/sig/mod.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  const { URLPattern } = require("urlpattern-polyfill");
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const require_http = require("../http-CWXKwHPv.cjs");
4
- const require_owner = require("../owner-DffLVeYC.cjs");
3
+ const require_http = require("../http-B5F1JMh0.cjs");
4
+ const require_owner = require("../owner-WUYke16i.cjs");
5
5
  exports.attachSignature = require_owner.attachSignature;
6
6
  exports.createProof = require_owner.createProof;
7
7
  exports.createSignature = require_owner.createSignature;
package/dist/sig/mod.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Temporal } from "temporal-polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { F as validateAcceptSignature, M as formatAcceptSignature, N as fulfillAcceptSignature, P as parseAcceptSignature, a as verifyRequestDetailed, c as fetchKey, d as importJwk, i as verifyRequest, l as fetchKeyDetailed, o as exportJwk, r as signRequest, u as generateCryptoKeyPair } from "../http-KZWtR1H8.js";
4
- import { S as signJsonLd, T as verifySignature, a as signObject, c as verifyPortableObjectProof, g as detachSignature, h as createSignature, i as hasProofLike, n as getKeyOwner, p as attachSignature, r as createProof, s as verifyObject, t as doesActorOwnKey, u as verifyProof, w as verifyJsonLd, y as hasSignatureLike } from "../owner-B7lgRMdU.js";
3
+ import { F as validateAcceptSignature, M as formatAcceptSignature, N as fulfillAcceptSignature, P as parseAcceptSignature, a as verifyRequestDetailed, c as fetchKey, d as importJwk, i as verifyRequest, l as fetchKeyDetailed, o as exportJwk, r as signRequest, u as generateCryptoKeyPair } from "../http-By8tnmEr.js";
4
+ import { S as signJsonLd, T as verifySignature, a as signObject, c as verifyPortableObjectProof, g as detachSignature, h as createSignature, i as hasProofLike, n as getKeyOwner, p as attachSignature, r as createProof, s as verifyObject, t as doesActorOwnKey, u as verifyProof, w as verifyJsonLd, y as hasSignatureLike } from "../owner-D-E0bT2O.js";
5
5
  export { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, exportJwk, fetchKey, fetchKeyDetailed, formatAcceptSignature, fulfillAcceptSignature, generateCryptoKeyPair, getKeyOwner, hasProofLike, hasSignatureLike, importJwk, parseAcceptSignature, signJsonLd, signObject, signRequest, validateAcceptSignature, verifyJsonLd, verifyObject, verifyPortableObjectProof, verifyProof, verifyRequest, verifyRequestDetailed, verifySignature };
@@ -6,7 +6,7 @@ import { t as assertFalse } from "../assert_false-CPdRnc3E.mjs";
6
6
  import "../std__assert-DvMDRPes.mjs";
7
7
  import { t as assert } from "../assert-D1Eafmd_.mjs";
8
8
  import { o as rsaPublicKey1, s as rsaPublicKey2 } from "../keys-DIJNHW-Y.mjs";
9
- import { n as getKeyOwner, t as doesActorOwnKey } from "../owner-D53bUI-n.mjs";
9
+ import { n as getKeyOwner, t as doesActorOwnKey } from "../owner-BIOIhZoM.mjs";
10
10
  import { Create, CryptographicKey, lookupObject } from "@fedify/vocab";
11
11
  import { createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
12
12
  //#region src/sig/owner.test.ts
@@ -10,7 +10,7 @@ import { t as assertRejects } from "../assert_rejects-CTptdYck.mjs";
10
10
  import { t as assert } from "../assert-D1Eafmd_.mjs";
11
11
  import { i as rsaPrivateKey2, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-DIJNHW-Y.mjs";
12
12
  import { r as normalizeOutgoingActivityJsonLd } from "../outgoing-jsonld-4IJqPYos.mjs";
13
- import { a as verifyObject, c as verifyProof, n as hasProofLike, o as verifyPortableObjectProof, r as signObject, t as createProof } from "../proof-4ADU3qy0.mjs";
13
+ import { a as verifyObject, c as verifyProof, n as hasProofLike, o as verifyPortableObjectProof, r as signObject, t as createProof } from "../proof-BVxJu5vv.mjs";
14
14
  import { Create, DataIntegrityProof, Document, Multikey, Note, PUBLIC_COLLECTION, Place, Translation } from "@fedify/vocab";
15
15
  import { createTestMeterProvider, mockDocumentLoader, test } from "@fedify/fixture";
16
16
  import { decodeMultibase, encodeMultibase, exportDidKey, exportMultibaseKey, formatIri, importMultibaseKey, parseIri } from "@fedify/vocab-runtime";
@@ -1,7 +1,7 @@
1
1
  import { Temporal } from "temporal-polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { c as getNormalizationContextLoader } from "./ld-DFHvxLtx.mjs";
4
+ import { c as getNormalizationContextLoader } from "./ld-B16KUSIQ.mjs";
5
5
  import jsonld from "@fedify/vocab-runtime/jsonld";
6
6
  //#region src/federation/temporal.ts
7
7
  function isPlainObject(value) {
@@ -6,7 +6,7 @@ import { t as MemoryKvStore } from "../kv-DCHkaJ9-.mjs";
6
6
  import { t as ManualClockKvStore } from "../kv-DBRWVx3Q.mjs";
7
7
  import { n as baseOptions, o as stringSchema, t as MockQueue } from "../tasks-dbCShlCb.mjs";
8
8
  import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
9
- import { o as createFederation } from "../middleware-BsYD_ufs.mjs";
9
+ import { o as createFederation } from "../middleware-C7_hqDnl.mjs";
10
10
  //#region src/testing/kv.test.ts
11
11
  test("ManualClockKvStore keeps an entry at its exact expiration instant", async () => {
12
12
  const kv = new ManualClockKvStore();
@@ -5,9 +5,9 @@ import { t as esm_default } from "../esm-BHXXx4Wx.mjs";
5
5
  import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
6
6
  import "../std__assert-DvMDRPes.mjs";
7
7
  import { t as assertRejects } from "../assert_rejects-CTptdYck.mjs";
8
- import { l as verifyRequest } from "../http-fIK5D83n.mjs";
8
+ import { l as verifyRequest } from "../http-D4WPcJUe.mjs";
9
9
  import { i as rsaPrivateKey2 } from "../keys-DIJNHW-Y.mjs";
10
- import { t as getAuthenticatedDocumentLoader } from "../docloader-iHi0-9mK.mjs";
10
+ import { t as getAuthenticatedDocumentLoader } from "../docloader-qUudHZVH.mjs";
11
11
  import { mockDocumentLoader, test } from "@fedify/fixture";
12
12
  import { FetchError, UrlError } from "@fedify/vocab-runtime";
13
13
  //#region src/utils/docloader.test.ts
@@ -1,7 +1,7 @@
1
1
  import { Temporal } from "temporal-polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as kvCache, t as MockKvStore } from "../kv-cache-CU1rmQFB.mjs";
4
+ import { n as kvCache, t as MockKvStore } from "../kv-cache-BXdT7pJQ.mjs";
5
5
  import { deepStrictEqual, throws } from "node:assert";
6
6
  import { createTestMeterProvider, mockDocumentLoader, test } from "@fedify/fixture";
7
7
  import { preloadedContexts } from "@fedify/vocab-runtime";
@@ -1,5 +1,5 @@
1
1
  const { URLPattern } = require("urlpattern-polyfill");
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const require_kv_cache = require("../kv-cache-Dos4tOWb.cjs");
3
+ const require_kv_cache = require("../kv-cache-8K70pjtX.cjs");
4
4
  exports.getAuthenticatedDocumentLoader = require_kv_cache.getAuthenticatedDocumentLoader;
5
5
  exports.kvCache = require_kv_cache.kvCache;
package/dist/utils/mod.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import { Temporal } from "temporal-polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { n as getAuthenticatedDocumentLoader, t as kvCache } from "../kv-cache-HOO6BsuW.js";
3
+ import { n as getAuthenticatedDocumentLoader, t as kvCache } from "../kv-cache-BswMKQjC.js";
4
4
  export { getAuthenticatedDocumentLoader, kvCache };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/fedify",
3
- "version": "2.4.0-dev.2027+fcf88bfc",
3
+ "version": "2.4.0-dev.2030+e6b3de3d",
4
4
  "description": "An ActivityPub server framework",
5
5
  "keywords": [
6
6
  "ActivityPub",
@@ -151,10 +151,10 @@
151
151
  "structured-field-values": "^2.0.4",
152
152
  "temporal-polyfill": "^1.0.1",
153
153
  "urlpattern-polyfill": "^10.1.0",
154
- "@fedify/vocab": "2.4.0-dev.2027+fcf88bfc",
155
- "@fedify/uri-template": "2.4.0-dev.2027+fcf88bfc",
156
- "@fedify/vocab-runtime": "2.4.0-dev.2027+fcf88bfc",
157
- "@fedify/webfinger": "2.4.0-dev.2027+fcf88bfc"
154
+ "@fedify/vocab": "2.4.0-dev.2030+e6b3de3d",
155
+ "@fedify/uri-template": "2.4.0-dev.2030+e6b3de3d",
156
+ "@fedify/webfinger": "2.4.0-dev.2030+e6b3de3d",
157
+ "@fedify/vocab-runtime": "2.4.0-dev.2030+e6b3de3d"
158
158
  },
159
159
  "devDependencies": {
160
160
  "@std/assert": "npm:@jsr/std__assert@^0.226.0",
@@ -167,7 +167,7 @@
167
167
  "typescript": "^6.0.0",
168
168
  "wrangler": "^4.17.0",
169
169
  "@fedify/fixture": "2.0.0",
170
- "@fedify/vocab-tools": "^2.4.0-dev.2027+fcf88bfc"
170
+ "@fedify/vocab-tools": "^2.4.0-dev.2030+e6b3de3d"
171
171
  },
172
172
  "scripts": {
173
173
  "build:self": "tsdown",