@fedify/fedify 2.0.36-dev.2746 → 2.0.36-dev.2760

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 (47) hide show
  1. package/dist/{builder-CnyFdlUn.mjs → builder-CyuiJaas.mjs} +3 -3
  2. package/dist/compat/transformers.test.mjs +1 -1
  3. package/dist/{deno-DCXndlEx.mjs → deno-Bbso5CSl.mjs} +1 -1
  4. package/dist/{docloader-7M06kit4.mjs → docloader-CP5VuWA0.mjs} +2 -2
  5. package/dist/federation/builder.test.mjs +1 -1
  6. package/dist/federation/handler.test.mjs +43 -14
  7. package/dist/federation/idempotency.test.mjs +2 -2
  8. package/dist/federation/inbox.test.mjs +1 -1
  9. package/dist/federation/middleware.test.mjs +7 -7
  10. package/dist/federation/mod.cjs +1 -1
  11. package/dist/federation/mod.js +1 -1
  12. package/dist/federation/send.test.mjs +3 -3
  13. package/dist/federation/temporal.test.mjs +1 -1
  14. package/dist/federation/webfinger.test.mjs +1 -1
  15. package/dist/{http-hi5IS6qw.mjs → http-Cp7sQLeG.mjs} +2 -2
  16. package/dist/{http-hjoPA7jZ.js → http-D03Qcwc-.js} +1 -1
  17. package/dist/{http-BhaAN2KG.cjs → http-DBBUPm9V.cjs} +1 -1
  18. package/dist/{inbox-Bygi511A.mjs → inbox-DTuh59nR.mjs} +1 -1
  19. package/dist/{key-DYyRTxPH.mjs → key-CsY0Ifod.mjs} +1 -1
  20. package/dist/{kv-cache-Bjnv9p9e.cjs → kv-cache-BpjVni_0.cjs} +1 -1
  21. package/dist/{kv-cache-YZ2bpa_P.js → kv-cache-CVxDhqGp.js} +1 -1
  22. package/dist/{ld-CKUnk1Ps.mjs → ld-dYjiHKj1.mjs} +2 -2
  23. package/dist/{middleware-BDCfPddM.cjs → middleware-2zkNwQvz.cjs} +1 -1
  24. package/dist/{middleware-yx080dbw.mjs → middleware-3x7W0auZ.mjs} +11 -11
  25. package/dist/{middleware-C_4rWloR.cjs → middleware-5EN1mHvx.cjs} +4 -4
  26. package/dist/{middleware-D5uql06B.js → middleware-DFR4tBL2.js} +3 -3
  27. package/dist/{middleware-dYPOyDLN.mjs → middleware-DvCyN-xk.mjs} +1 -1
  28. package/dist/mod.cjs +4 -4
  29. package/dist/mod.js +4 -4
  30. package/dist/nodeinfo/handler.test.mjs +1 -1
  31. package/dist/{owner-CqHBbNXl.mjs → owner-A1Xol6Zh.mjs} +2 -2
  32. package/dist/{proof-DLqGjdaL.cjs → proof-CCZCT2xF.cjs} +1 -1
  33. package/dist/{proof-CDalRU9r.mjs → proof-DCqYLXDl.mjs} +2 -2
  34. package/dist/{proof-D2RNLHHt.js → proof-DGOXBmlo.js} +1 -1
  35. package/dist/{send-XHpoZpxW.mjs → send-yQno-6bP.mjs} +2 -2
  36. package/dist/sig/http.test.mjs +2 -2
  37. package/dist/sig/key.test.mjs +2 -2
  38. package/dist/sig/ld.test.mjs +2 -2
  39. package/dist/sig/mod.cjs +2 -2
  40. package/dist/sig/mod.js +2 -2
  41. package/dist/sig/owner.test.mjs +1 -1
  42. package/dist/sig/proof.test.mjs +26 -3
  43. package/dist/{temporal-D3yEsvvS.mjs → temporal-C26UV3h7.mjs} +1 -1
  44. package/dist/utils/docloader.test.mjs +2 -2
  45. package/dist/utils/mod.cjs +1 -1
  46. package/dist/utils/mod.js +1 -1
  47. package/package.json +6 -6
@@ -2,8 +2,8 @@ import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
4
  import { n as RouterError, t as Router } from "./router-CrMLXoOr.mjs";
5
- import { n as version, t as name } from "./deno-DCXndlEx.mjs";
6
- import { t as InboxListenerSet } from "./inbox-Bygi511A.mjs";
5
+ import { n as version, t as name } from "./deno-Bbso5CSl.mjs";
6
+ import { t as InboxListenerSet } from "./inbox-DTuh59nR.mjs";
7
7
  import { getTypeId } from "@fedify/vocab";
8
8
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
9
9
  import { getLogger } from "@logtape/logtape";
@@ -43,7 +43,7 @@ var FederationBuilderImpl = class {
43
43
  this.collectionTypeIds = {};
44
44
  }
45
45
  async build(options) {
46
- const { FederationImpl } = await import("./middleware-dYPOyDLN.mjs");
46
+ const { FederationImpl } = await import("./middleware-DvCyN-xk.mjs");
47
47
  const f = new FederationImpl(options);
48
48
  const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
49
49
  f.router = this.router.clone();
@@ -4,7 +4,7 @@ globalThis.addEventListener = () => {};
4
4
  import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
5
5
  import { n as assertInstanceOf, t as assert } from "../assert-BhQd8QHP.mjs";
6
6
  import { t as MemoryKvStore } from "../kv-BrZHNugx.mjs";
7
- import { _ as autoIdAssigner, g as actorDehydrator, n as FederationImpl } from "../middleware-yx080dbw.mjs";
7
+ import { _ as autoIdAssigner, g as actorDehydrator, n as FederationImpl } from "../middleware-3x7W0auZ.mjs";
8
8
  import { test } from "@fedify/fixture";
9
9
  import { Follow, Person } from "@fedify/vocab";
10
10
  //#region src/compat/transformers.test.ts
@@ -3,6 +3,6 @@ import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
4
  //#region deno.json
5
5
  var name = "@fedify/fedify";
6
- var version = "2.0.36-dev.2746+2371871b";
6
+ var version = "2.0.36-dev.2760+4342c983";
7
7
  //#endregion
8
8
  export { version as n, name as t };
@@ -1,8 +1,8 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { o as validateCryptoKey } from "./key-DYyRTxPH.mjs";
5
- import { r as doubleKnockScoped } from "./http-hi5IS6qw.mjs";
4
+ import { o as validateCryptoKey } from "./key-CsY0Ifod.mjs";
5
+ import { r as doubleKnockScoped } from "./http-Cp7sQLeG.mjs";
6
6
  import { curry } from "es-toolkit";
7
7
  import { FetchError, UrlError, createActivityPubRequest, getRemoteDocument, logRequest } from "@fedify/vocab-runtime";
8
8
  import { openDirectFetch, openPublicFetch } from "@fedify/vocab-runtime/internal";
@@ -5,7 +5,7 @@ import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
5
5
  import { i as assertExists, n as assertStrictEquals } from "../std__assert-DflMZha5.mjs";
6
6
  import { t as assertThrows } from "../assert_throws-D4DNWrux.mjs";
7
7
  import { t as MemoryKvStore } from "../kv-BrZHNugx.mjs";
8
- import { n as createFederationBuilder } from "../builder-CnyFdlUn.mjs";
8
+ import { n as createFederationBuilder } from "../builder-CyuiJaas.mjs";
9
9
  import { test } from "@fedify/fixture";
10
10
  import { Activity, Note, Person } from "@fedify/vocab";
11
11
  //#region src/federation/builder.test.ts
@@ -7,15 +7,15 @@ import "../std__assert-DflMZha5.mjs";
7
7
  import { r as assertFalse } from "../assert_throws-D4DNWrux.mjs";
8
8
  import { t as assert } from "../assert-BhQd8QHP.mjs";
9
9
  import { t as assertRejects } from "../assert_rejects-WyYSTDDX.mjs";
10
- import { i as generateCryptoKeyPair } from "../key-DYyRTxPH.mjs";
11
- import { c as signRequest } from "../http-hi5IS6qw.mjs";
10
+ import { i as generateCryptoKeyPair } from "../key-CsY0Ifod.mjs";
11
+ import { c as signRequest } from "../http-Cp7sQLeG.mjs";
12
12
  import { a as rsaPrivateKey3, c as rsaPublicKey3, n as ed25519PrivateKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-CCxRJhWa.mjs";
13
- import { a as compactJsonLd, m as signJsonLd } from "../ld-CKUnk1Ps.mjs";
13
+ import { a as compactJsonLd, m as signJsonLd } from "../ld-dYjiHKj1.mjs";
14
14
  import { t as ldSignatureWithoutCreated } from "../ld-signature-_KYhPsqt.mjs";
15
- import { n as signObject } from "../proof-CDalRU9r.mjs";
15
+ import { n as signObject } from "../proof-DCqYLXDl.mjs";
16
16
  import { t as MemoryKvStore } from "../kv-BrZHNugx.mjs";
17
- import { a as createFederation, c as handleCollection, d as handleObject, f as respondWithObject, l as handleCustomCollection, p as respondWithObjectIfAcceptable, s as handleActor, u as handleInbox } from "../middleware-yx080dbw.mjs";
18
- import { t as InboxListenerSet } from "../inbox-Bygi511A.mjs";
17
+ import { a as createFederation, c as handleCollection, d as handleObject, f as respondWithObject, l as handleCustomCollection, p as respondWithObjectIfAcceptable, s as handleActor, u as handleInbox } from "../middleware-3x7W0auZ.mjs";
18
+ import { t as InboxListenerSet } from "../inbox-DTuh59nR.mjs";
19
19
  import { createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
20
20
  import { Create, CryptographicKey, Multikey, Note, Person } from "@fedify/vocab";
21
21
  import { configure, reset } from "@logtape/logtape";
@@ -578,7 +578,13 @@ test("handleCollection()", async () => {
578
578
  "@id": "fedibird:emojiReactions",
579
579
  "@type": "@id"
580
580
  }
581
- }
581
+ },
582
+ { orderedItems: {
583
+ "@id": "https://www.w3.org/ns/activitystreams#items",
584
+ "@type": "@id",
585
+ "@container": "@list",
586
+ "@context": null
587
+ } }
582
588
  ],
583
589
  id: "https://example.com/users/someone",
584
590
  type: "OrderedCollection",
@@ -661,7 +667,13 @@ test("handleCollection()", async () => {
661
667
  "@id": "fedibird:emojiReactions",
662
668
  "@type": "@id"
663
669
  }
664
- }
670
+ },
671
+ { orderedItems: {
672
+ "@id": "https://www.w3.org/ns/activitystreams#items",
673
+ "@type": "@id",
674
+ "@container": "@list",
675
+ "@context": null
676
+ } }
665
677
  ],
666
678
  id: "https://example.com/users/someone",
667
679
  type: "OrderedCollection",
@@ -777,7 +789,13 @@ test("handleCollection()", async () => {
777
789
  "@id": "fedibird:emojiReactions",
778
790
  "@type": "@id"
779
791
  }
780
- }
792
+ },
793
+ { orderedItems: {
794
+ "@id": "https://www.w3.org/ns/activitystreams#items",
795
+ "@type": "@id",
796
+ "@container": "@list",
797
+ "@context": null
798
+ } }
781
799
  ],
782
800
  id: "https://example.com/users/someone?cursor=0",
783
801
  type: "OrderedCollectionPage",
@@ -835,7 +853,13 @@ test("handleCollection()", async () => {
835
853
  "@id": "fedibird:emojiReactions",
836
854
  "@type": "@id"
837
855
  }
838
- }
856
+ },
857
+ { orderedItems: {
858
+ "@id": "https://www.w3.org/ns/activitystreams#items",
859
+ "@type": "@id",
860
+ "@container": "@list",
861
+ "@context": null
862
+ } }
839
863
  ],
840
864
  id: "https://example.com/users/someone?cursor=2",
841
865
  type: "OrderedCollectionPage",
@@ -3028,8 +3052,13 @@ test("handleCustomCollection()", async () => {
3028
3052
  }
3029
3053
  }
3030
3054
  ];
3055
+ const ITEM_CONTEXT = [...CONTEXT, { items: {
3056
+ "@id": "https://www.w3.org/ns/activitystreams#items",
3057
+ "@type": "@id",
3058
+ "@context": null
3059
+ } }];
3031
3060
  assertEquals(await response.json(), {
3032
- "@context": CONTEXT,
3061
+ "@context": ITEM_CONTEXT,
3033
3062
  id: "https://example.com/",
3034
3063
  type: "Collection",
3035
3064
  items: [
@@ -3084,7 +3113,7 @@ test("handleCustomCollection()", async () => {
3084
3113
  assertEquals(response.status, 200);
3085
3114
  assertEquals(response.headers.get("Content-Type"), "application/activity+json");
3086
3115
  assertEquals(await response.json(), {
3087
- "@context": CONTEXT,
3116
+ "@context": ITEM_CONTEXT,
3088
3117
  id: "https://example.com/",
3089
3118
  type: "Collection",
3090
3119
  items: [
@@ -3142,7 +3171,7 @@ test("handleCustomCollection()", async () => {
3142
3171
  assertEquals(response.status, 200);
3143
3172
  assertEquals(response.headers.get("Content-Type"), "application/activity+json");
3144
3173
  assertEquals(await response.json(), {
3145
- "@context": CONTEXT,
3174
+ "@context": ITEM_CONTEXT,
3146
3175
  id: "https://example.com/?cursor=0",
3147
3176
  type: "CollectionPage",
3148
3177
  partOf: "https://example.com/",
@@ -3171,7 +3200,7 @@ test("handleCustomCollection()", async () => {
3171
3200
  assertEquals(response.status, 200);
3172
3201
  assertEquals(response.headers.get("Content-Type"), "application/activity+json");
3173
3202
  assertEquals(await response.json(), {
3174
- "@context": CONTEXT,
3203
+ "@context": ITEM_CONTEXT,
3175
3204
  id: "https://example.com/?cursor=2",
3176
3205
  type: "CollectionPage",
3177
3206
  partOf: "https://example.com/",
@@ -4,9 +4,9 @@ globalThis.addEventListener = () => {};
4
4
  import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
5
5
  import "../std__assert-DflMZha5.mjs";
6
6
  import { n as ed25519PrivateKey, r as ed25519PublicKey, t as ed25519Multikey } from "../keys-CCxRJhWa.mjs";
7
- import { n as signObject } from "../proof-CDalRU9r.mjs";
7
+ import { n as signObject } from "../proof-DCqYLXDl.mjs";
8
8
  import { t as MemoryKvStore } from "../kv-BrZHNugx.mjs";
9
- import { a as createFederation } from "../middleware-yx080dbw.mjs";
9
+ import { a as createFederation } from "../middleware-3x7W0auZ.mjs";
10
10
  import { mockDocumentLoader, test } from "@fedify/fixture";
11
11
  import { Create, Follow, Person } from "@fedify/vocab";
12
12
  //#region src/federation/idempotency.test.ts
@@ -3,7 +3,7 @@ import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
4
  import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
5
5
  import { r as assertFalse, t as assertThrows } from "../assert_throws-D4DNWrux.mjs";
6
- import { n as actorsHaveSameOrigin, t as InboxListenerSet } from "../inbox-Bygi511A.mjs";
6
+ import { n as actorsHaveSameOrigin, t as InboxListenerSet } from "../inbox-DTuh59nR.mjs";
7
7
  import { test } from "@fedify/fixture";
8
8
  import { Activity, Create, Invite, Offer, Update } from "@fedify/vocab";
9
9
  //#region src/federation/inbox.test.ts
@@ -9,16 +9,16 @@ import { r as assertFalse, t as assertThrows } from "../assert_throws-D4DNWrux.m
9
9
  import { n as assertInstanceOf, t as assert } from "../assert-BhQd8QHP.mjs";
10
10
  import { t as assertNotEquals } from "../assert_not_equals-BkxW5QJI.mjs";
11
11
  import { t as assertRejects } from "../assert_rejects-WyYSTDDX.mjs";
12
- import { c as signRequest, u as verifyRequest } from "../http-hi5IS6qw.mjs";
12
+ import { c as signRequest, u as verifyRequest } from "../http-Cp7sQLeG.mjs";
13
13
  import { a as rsaPrivateKey3, c as rsaPublicKey3, i as rsaPrivateKey2, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-CCxRJhWa.mjs";
14
- import { n as getAuthenticatedDocumentLoader } from "../docloader-7M06kit4.mjs";
15
- import { a as compactJsonLd, c as detachSignature, g as verifyJsonLd, i as attachSignature, m as signJsonLd } from "../ld-CKUnk1Ps.mjs";
14
+ import { n as getAuthenticatedDocumentLoader } from "../docloader-CP5VuWA0.mjs";
15
+ import { a as compactJsonLd, c as detachSignature, g as verifyJsonLd, i as attachSignature, m as signJsonLd } from "../ld-dYjiHKj1.mjs";
16
16
  import { t as ldSignatureWithoutCreated } from "../ld-signature-_KYhPsqt.mjs";
17
- import { t as doesActorOwnKey } from "../owner-CqHBbNXl.mjs";
18
- import { n as signObject, r as verifyObject } from "../proof-CDalRU9r.mjs";
17
+ import { t as doesActorOwnKey } from "../owner-A1Xol6Zh.mjs";
18
+ import { n as signObject, r as verifyObject } from "../proof-DCqYLXDl.mjs";
19
19
  import { t as MemoryKvStore } from "../kv-BrZHNugx.mjs";
20
- import { a as createFederation, i as KvSpecDeterminer, n as FederationImpl, r as InboxContextImpl, t as ContextImpl } from "../middleware-yx080dbw.mjs";
21
- import { t as SendActivityError } from "../send-XHpoZpxW.mjs";
20
+ import { a as createFederation, i as KvSpecDeterminer, n as FederationImpl, r as InboxContextImpl, t as ContextImpl } from "../middleware-3x7W0auZ.mjs";
21
+ import { t as SendActivityError } from "../send-yQno-6bP.mjs";
22
22
  import { createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
23
23
  import * as vocab from "@fedify/vocab";
24
24
  import { Create, Offer, Person, getTypeId, lookupObject } from "@fedify/vocab";
@@ -2,7 +2,7 @@ const { Temporal } = require("@js-temporal/polyfill");
2
2
  const { URLPattern } = require("urlpattern-polyfill");
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
4
  require("../chunk-DDcVe30Y.cjs");
5
- const require_middleware = require("../middleware-C_4rWloR.cjs");
5
+ const require_middleware = require("../middleware-5EN1mHvx.cjs");
6
6
  let es_toolkit = require("es-toolkit");
7
7
  //#region src/federation/kv.ts
8
8
  /**
@@ -1,6 +1,6 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { a as createExponentialBackoffPolicy, c as buildCollectionSynchronizationHeader, d as Router, f as RouterError, i as SendActivityError, l as digest, o as respondWithObject, r as handleWebFinger, s as respondWithObjectIfAcceptable, t as createFederation, u as createFederationBuilder } from "../middleware-D5uql06B.js";
3
+ import { a as createExponentialBackoffPolicy, c as buildCollectionSynchronizationHeader, d as Router, f as RouterError, i as SendActivityError, l as digest, o as respondWithObject, r as handleWebFinger, s as respondWithObjectIfAcceptable, t as createFederation, u as createFederationBuilder } from "../middleware-DFR4tBL2.js";
4
4
  import { isEqual } from "es-toolkit";
5
5
  //#region src/federation/kv.ts
6
6
  /**
@@ -8,10 +8,10 @@ import { r as assertFalse } from "../assert_throws-D4DNWrux.mjs";
8
8
  import { n as assertInstanceOf, t as assert } from "../assert-BhQd8QHP.mjs";
9
9
  import { t as assertNotEquals } from "../assert_not_equals-BkxW5QJI.mjs";
10
10
  import { t as assertRejects } from "../assert_rejects-WyYSTDDX.mjs";
11
- import { u as verifyRequest } from "../http-hi5IS6qw.mjs";
11
+ import { u as verifyRequest } from "../http-Cp7sQLeG.mjs";
12
12
  import { i as rsaPrivateKey2, n as ed25519PrivateKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-CCxRJhWa.mjs";
13
- import { t as doesActorOwnKey } from "../owner-CqHBbNXl.mjs";
14
- import { i as sendActivity, n as extractInboxes, r as fetchWithValidatedRedirects, t as SendActivityError } from "../send-XHpoZpxW.mjs";
13
+ import { t as doesActorOwnKey } from "../owner-A1Xol6Zh.mjs";
14
+ import { i as sendActivity, n as extractInboxes, r as fetchWithValidatedRedirects, t as SendActivityError } from "../send-yQno-6bP.mjs";
15
15
  import { createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
16
16
  import { Activity, Application, Endpoints, Group, Person, Service } from "@fedify/vocab";
17
17
  import { FetchError, UrlError } from "@fedify/vocab-runtime";
@@ -4,7 +4,7 @@ globalThis.addEventListener = () => {};
4
4
  import "../std__assert-DflMZha5.mjs";
5
5
  import { r as assertFalse } from "../assert_throws-D4DNWrux.mjs";
6
6
  import { t as assert } from "../assert-BhQd8QHP.mjs";
7
- import { t as hasMalformedKnownTemporalLiteral } from "../temporal-D3yEsvvS.mjs";
7
+ import { t as hasMalformedKnownTemporalLiteral } from "../temporal-C26UV3h7.mjs";
8
8
  import { test } from "@fedify/fixture";
9
9
  //#region src/federation/temporal.test.ts
10
10
  test("hasMalformedKnownTemporalLiteral() detects expanded proof timestamps", async () => {
@@ -5,7 +5,7 @@ import { n as createRequestContext } from "../context-Juj6bdHC.mjs";
5
5
  import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
6
6
  import "../std__assert-DflMZha5.mjs";
7
7
  import { t as MemoryKvStore } from "../kv-BrZHNugx.mjs";
8
- import { a as createFederation, o as handleWebFinger } from "../middleware-yx080dbw.mjs";
8
+ import { a as createFederation, o as handleWebFinger } from "../middleware-3x7W0auZ.mjs";
9
9
  import { test } from "@fedify/fixture";
10
10
  import { Image, Link, Person } from "@fedify/vocab";
11
11
  //#region src/federation/webfinger.test.ts
@@ -1,8 +1,8 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as version, t as name } from "./deno-DCXndlEx.mjs";
5
- import { o as validateCryptoKey, r as fetchKey } from "./key-DYyRTxPH.mjs";
4
+ import { n as version, t as name } from "./deno-Bbso5CSl.mjs";
5
+ import { o as validateCryptoKey, r as fetchKey } from "./key-CsY0Ifod.mjs";
6
6
  import { CryptographicKey } from "@fedify/vocab";
7
7
  import { SpanStatusCode, trace } from "@opentelemetry/api";
8
8
  import { FetchError } from "@fedify/vocab-runtime";
@@ -11,7 +11,7 @@ import { decodeBase64, encodeBase64 } from "byte-encodings/base64";
11
11
  import { Item, decodeDict, encodeItem } from "structured-field-values";
12
12
  //#region deno.json
13
13
  var name = "@fedify/fedify";
14
- var version = "2.0.36-dev.2746+2371871b";
14
+ var version = "2.0.36-dev.2760+4342c983";
15
15
  //#endregion
16
16
  //#region src/sig/key.ts
17
17
  /** Classifies decoding failures without hiding unexpected loader errors. */
@@ -12,7 +12,7 @@ let byte_encodings_base64 = require("byte-encodings/base64");
12
12
  let structured_field_values = require("structured-field-values");
13
13
  //#region deno.json
14
14
  var name = "@fedify/fedify";
15
- var version = "2.0.36-dev.2746+2371871b";
15
+ var version = "2.0.36-dev.2760+4342c983";
16
16
  //#endregion
17
17
  //#region src/sig/key.ts
18
18
  /** Classifies decoding failures without hiding unexpected loader errors. */
@@ -1,7 +1,7 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as version, t as name } from "./deno-DCXndlEx.mjs";
4
+ import { n as version, t as name } from "./deno-Bbso5CSl.mjs";
5
5
  import { Activity, getTypeId } from "@fedify/vocab";
6
6
  import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
7
7
  import { getLogger } from "@logtape/logtape";
@@ -1,7 +1,7 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as version, t as name } from "./deno-DCXndlEx.mjs";
4
+ import { n as version, t as name } from "./deno-Bbso5CSl.mjs";
5
5
  import { CryptographicKey, Object as Object$1, isActor } from "@fedify/vocab";
6
6
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
7
7
  import { FetchError, UrlError, getDocumentLoader } from "@fedify/vocab-runtime";
@@ -1,7 +1,7 @@
1
1
  const { Temporal } = require("@js-temporal/polyfill");
2
2
  const { URLPattern } = require("urlpattern-polyfill");
3
3
  require("./chunk-DDcVe30Y.cjs");
4
- const require_http = require("./http-BhaAN2KG.cjs");
4
+ const require_http = require("./http-DBBUPm9V.cjs");
5
5
  let _logtape_logtape = require("@logtape/logtape");
6
6
  let es_toolkit = require("es-toolkit");
7
7
  let _fedify_vocab_runtime = require("@fedify/vocab-runtime");
@@ -1,6 +1,6 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { l as validateCryptoKey, t as doubleKnockScoped } from "./http-hjoPA7jZ.js";
3
+ import { l as validateCryptoKey, t as doubleKnockScoped } from "./http-D03Qcwc-.js";
4
4
  import { getLogger } from "@logtape/logtape";
5
5
  import { curry } from "es-toolkit";
6
6
  import { FetchError, UrlError, createActivityPubRequest, getRemoteDocument, logRequest, preloadedContexts } from "@fedify/vocab-runtime";
@@ -1,8 +1,8 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as version, t as name } from "./deno-DCXndlEx.mjs";
5
- import { o as validateCryptoKey, r as fetchKey } from "./key-DYyRTxPH.mjs";
4
+ import { n as version, t as name } from "./deno-Bbso5CSl.mjs";
5
+ import { o as validateCryptoKey, r as fetchKey } from "./key-CsY0Ifod.mjs";
6
6
  import { Activity, CryptographicKey, Object as Object$1, getTypeId } from "@fedify/vocab";
7
7
  import { SpanStatusCode, trace } from "@opentelemetry/api";
8
8
  import { getDocumentLoader, preloadedContexts } from "@fedify/vocab-runtime";
@@ -1,4 +1,4 @@
1
1
  const { Temporal } = require("@js-temporal/polyfill");
2
2
  const { URLPattern } = require("urlpattern-polyfill");
3
- const require_middleware = require("./middleware-C_4rWloR.cjs");
3
+ const require_middleware = require("./middleware-5EN1mHvx.cjs");
4
4
  exports.FederationImpl = require_middleware.FederationImpl;
@@ -2,24 +2,24 @@ import { Temporal } from "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
4
  import { n as RouterError } from "./router-CrMLXoOr.mjs";
5
- import { n as version, t as name } from "./deno-DCXndlEx.mjs";
6
- import { a as importJwk, o as validateCryptoKey, t as exportJwk } from "./key-DYyRTxPH.mjs";
7
- import { u as verifyRequest } from "./http-hi5IS6qw.mjs";
8
- import { n as getAuthenticatedDocumentLoader } from "./docloader-7M06kit4.mjs";
5
+ import { n as version, t as name } from "./deno-Bbso5CSl.mjs";
6
+ import { a as importJwk, o as validateCryptoKey, t as exportJwk } from "./key-CsY0Ifod.mjs";
7
+ import { u as verifyRequest } from "./http-Cp7sQLeG.mjs";
8
+ import { n as getAuthenticatedDocumentLoader } from "./docloader-CP5VuWA0.mjs";
9
9
  import { n as kvCache } from "./kv-cache-BrjuJue8.mjs";
10
- import { a as compactJsonLd, c as detachSignature, d as hasVerifiableSignature, f as isClearlyMalformedContextReference, h as verifyCompactJsonLd, l as getNormalizationContextLoader, m as signJsonLd, p as isInvalidUrlTypeError, r as assertSafeJsonLd, s as describeSignatureShape, t as InvalidContextReferenceError, v as wrapContextLoaderForJsonLd } from "./ld-CKUnk1Ps.mjs";
11
- import { n as getKeyOwner, t as doesActorOwnKey } from "./owner-CqHBbNXl.mjs";
12
- import { n as signObject, r as verifyObject } from "./proof-CDalRU9r.mjs";
10
+ import { a as compactJsonLd, c as detachSignature, d as hasVerifiableSignature, f as isClearlyMalformedContextReference, h as verifyCompactJsonLd, l as getNormalizationContextLoader, m as signJsonLd, p as isInvalidUrlTypeError, r as assertSafeJsonLd, s as describeSignatureShape, t as InvalidContextReferenceError, v as wrapContextLoaderForJsonLd } from "./ld-dYjiHKj1.mjs";
11
+ import { n as getKeyOwner, t as doesActorOwnKey } from "./owner-A1Xol6Zh.mjs";
12
+ import { n as signObject, r as verifyObject } from "./proof-DCqYLXDl.mjs";
13
13
  import { d as MAX_BODY_SIZE, f as readBoundedText, t as getNodeInfo, u as BodyTooLargeError } from "./client-DLAWT9ep.mjs";
14
14
  import { t as nodeInfoToJson } from "./types-C37hquWI.mjs";
15
- import { n as actorsHaveSameOrigin, r as routeActivity } from "./inbox-Bygi511A.mjs";
16
- import { t as FederationBuilderImpl } from "./builder-CnyFdlUn.mjs";
15
+ import { n as actorsHaveSameOrigin, r as routeActivity } from "./inbox-DTuh59nR.mjs";
16
+ import { t as FederationBuilderImpl } from "./builder-CyuiJaas.mjs";
17
17
  import { t as buildCollectionSynchronizationHeader } from "./collection-ChgDTHLz.mjs";
18
18
  import { t as KvKeyCache } from "./keycache-crDMn2HK.mjs";
19
19
  import { t as acceptsJsonLd } from "./negotiation-BehA2uul.mjs";
20
- import { t as hasMalformedKnownTemporalLiteral } from "./temporal-D3yEsvvS.mjs";
20
+ import { t as hasMalformedKnownTemporalLiteral } from "./temporal-C26UV3h7.mjs";
21
21
  import { t as createExponentialBackoffPolicy } from "./retry-B_E3V_Dx.mjs";
22
- import { i as sendActivity, n as extractInboxes, t as SendActivityError } from "./send-XHpoZpxW.mjs";
22
+ import { i as sendActivity, n as extractInboxes, t as SendActivityError } from "./send-yQno-6bP.mjs";
23
23
  import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId, lookupObject, traverseCollection } from "@fedify/vocab";
24
24
  import { lookupWebFinger } from "@fedify/webfinger";
25
25
  import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
@@ -2,10 +2,10 @@ const { Temporal } = require("@js-temporal/polyfill");
2
2
  const { URLPattern } = require("urlpattern-polyfill");
3
3
  const require_chunk = require("./chunk-DDcVe30Y.cjs");
4
4
  const require_transformers = require("./transformers-NeAONrAq.cjs");
5
- const require_http = require("./http-BhaAN2KG.cjs");
5
+ const require_http = require("./http-DBBUPm9V.cjs");
6
6
  const require_types = require("./types-DOvyymM4.cjs");
7
- const require_proof = require("./proof-DLqGjdaL.cjs");
8
- const require_kv_cache = require("./kv-cache-Bjnv9p9e.cjs");
7
+ const require_proof = require("./proof-CCZCT2xF.cjs");
8
+ const require_kv_cache = require("./kv-cache-BpjVni_0.cjs");
9
9
  let _logtape_logtape = require("@logtape/logtape");
10
10
  let _fedify_vocab = require("@fedify/vocab");
11
11
  let _opentelemetry_api = require("@opentelemetry/api");
@@ -351,7 +351,7 @@ var FederationBuilderImpl = class {
351
351
  this.collectionTypeIds = {};
352
352
  }
353
353
  async build(options) {
354
- const { FederationImpl } = await Promise.resolve().then(() => require("./middleware-BDCfPddM.cjs"));
354
+ const { FederationImpl } = await Promise.resolve().then(() => require("./middleware-2zkNwQvz.cjs"));
355
355
  const f = new FederationImpl(options);
356
356
  const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
357
357
  f.router = this.router.clone();
@@ -2,10 +2,10 @@ import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
3
  import { t as __exportAll } from "./chunk-CRNNMoPX.js";
4
4
  import { r as getDefaultActivityTransformers } from "./transformers-BGMIq1cs.js";
5
- import { c as importJwk, d as name, f as version, i as exportJwk, l as validateCryptoKey, r as verifyRequest, t as doubleKnockScoped } from "./http-hjoPA7jZ.js";
5
+ import { c as importJwk, d as name, f as version, i as exportJwk, l as validateCryptoKey, r as verifyRequest, t as doubleKnockScoped } from "./http-D03Qcwc-.js";
6
6
  import { a as MAX_BODY_SIZE, i as BodyTooLargeError, n as getNodeInfo, o as readBoundedText, t as nodeInfoToJson } from "./types-B1_pRFE_.js";
7
- import { S as wrapContextLoaderForJsonLd, _ as isInvalidUrlTypeError, a as doesActorOwnKey, c as assertSafeJsonLd, f as describeSignatureShape, g as isClearlyMalformedContextReference, h as hasVerifiableSignature, m as getNormalizationContextLoader, n as signObject, o as getKeyOwner, p as detachSignature, r as verifyObject, s as InvalidContextReferenceError, u as compactJsonLd, v as signJsonLd, y as verifyCompactJsonLd } from "./proof-D2RNLHHt.js";
8
- import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./kv-cache-YZ2bpa_P.js";
7
+ import { S as wrapContextLoaderForJsonLd, _ as isInvalidUrlTypeError, a as doesActorOwnKey, c as assertSafeJsonLd, f as describeSignatureShape, g as isClearlyMalformedContextReference, h as hasVerifiableSignature, m as getNormalizationContextLoader, n as signObject, o as getKeyOwner, p as detachSignature, r as verifyObject, s as InvalidContextReferenceError, u as compactJsonLd, v as signJsonLd, y as verifyCompactJsonLd } from "./proof-DGOXBmlo.js";
8
+ import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./kv-cache-CVxDhqGp.js";
9
9
  import { getLogger, withContext } from "@logtape/logtape";
10
10
  import { Activity, Collection, CollectionPage, CryptographicKey, Link, Multikey, Object as Object$1, OrderedCollection, OrderedCollectionPage, getTypeId, lookupObject, traverseCollection } from "@fedify/vocab";
11
11
  import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
@@ -1,5 +1,5 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as FederationImpl } from "./middleware-yx080dbw.mjs";
4
+ import { n as FederationImpl } from "./middleware-3x7W0auZ.mjs";
5
5
  export { FederationImpl };
package/dist/mod.cjs CHANGED
@@ -4,11 +4,11 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
4
  require("./chunk-DDcVe30Y.cjs");
5
5
  const require_transformers = require("./transformers-NeAONrAq.cjs");
6
6
  require("./compat/mod.cjs");
7
- const require_http = require("./http-BhaAN2KG.cjs");
8
- const require_middleware = require("./middleware-C_4rWloR.cjs");
7
+ const require_http = require("./http-DBBUPm9V.cjs");
8
+ const require_middleware = require("./middleware-5EN1mHvx.cjs");
9
9
  const require_types = require("./types-DOvyymM4.cjs");
10
- const require_proof = require("./proof-DLqGjdaL.cjs");
11
- const require_kv_cache = require("./kv-cache-Bjnv9p9e.cjs");
10
+ const require_proof = require("./proof-CCZCT2xF.cjs");
11
+ const require_kv_cache = require("./kv-cache-BpjVni_0.cjs");
12
12
  const require_federation_mod = require("./federation/mod.cjs");
13
13
  require("./nodeinfo/mod.cjs");
14
14
  require("./runtime/mod.cjs");
package/dist/mod.js CHANGED
@@ -3,11 +3,11 @@ import { URLPattern } from "urlpattern-polyfill";
3
3
  import "./chunk-CRNNMoPX.js";
4
4
  import { n as autoIdAssigner, r as getDefaultActivityTransformers, t as actorDehydrator } from "./transformers-BGMIq1cs.js";
5
5
  import "./compat/mod.js";
6
- import { c as importJwk, i as exportJwk, n as signRequest, o as fetchKey, r as verifyRequest, s as generateCryptoKeyPair } from "./http-hjoPA7jZ.js";
7
- import { a as createExponentialBackoffPolicy, c as buildCollectionSynchronizationHeader, d as Router, f as RouterError, i as SendActivityError, l as digest, o as respondWithObject, r as handleWebFinger, s as respondWithObjectIfAcceptable, t as createFederation, u as createFederationBuilder } from "./middleware-D5uql06B.js";
6
+ import { c as importJwk, i as exportJwk, n as signRequest, o as fetchKey, r as verifyRequest, s as generateCryptoKeyPair } from "./http-D03Qcwc-.js";
7
+ import { a as createExponentialBackoffPolicy, c as buildCollectionSynchronizationHeader, d as Router, f as RouterError, i as SendActivityError, l as digest, o as respondWithObject, r as handleWebFinger, s as respondWithObjectIfAcceptable, t as createFederation, u as createFederationBuilder } from "./middleware-DFR4tBL2.js";
8
8
  import { n as getNodeInfo, r as parseNodeInfo, t as nodeInfoToJson } from "./types-B1_pRFE_.js";
9
- import { a as doesActorOwnKey, b as verifyJsonLd, d as createSignature, i as verifyProof, l as attachSignature, n as signObject, o as getKeyOwner, p as detachSignature, r as verifyObject, t as createProof, v as signJsonLd, x as verifySignature } from "./proof-D2RNLHHt.js";
10
- import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./kv-cache-YZ2bpa_P.js";
9
+ import { a as doesActorOwnKey, b as verifyJsonLd, d as createSignature, i as verifyProof, l as attachSignature, n as signObject, o as getKeyOwner, p as detachSignature, r as verifyObject, t as createProof, v as signJsonLd, x as verifySignature } from "./proof-DGOXBmlo.js";
10
+ import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./kv-cache-CVxDhqGp.js";
11
11
  import { InProcessMessageQueue, MemoryKvStore, ParallelMessageQueue } from "./federation/mod.js";
12
12
  import "./nodeinfo/mod.js";
13
13
  import "./runtime/mod.js";
@@ -5,7 +5,7 @@ import { n as createRequestContext } from "../context-Juj6bdHC.mjs";
5
5
  import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
6
6
  import "../std__assert-DflMZha5.mjs";
7
7
  import { t as MemoryKvStore } from "../kv-BrZHNugx.mjs";
8
- import { a as createFederation, h as handleNodeInfoJrd, m as handleNodeInfo } from "../middleware-yx080dbw.mjs";
8
+ import { a as createFederation, h as handleNodeInfoJrd, m as handleNodeInfo } from "../middleware-3x7W0auZ.mjs";
9
9
  import { test } from "@fedify/fixture";
10
10
  //#region src/nodeinfo/handler.test.ts
11
11
  test("handleNodeInfo()", async () => {
@@ -1,8 +1,8 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as version, t as name } from "./deno-DCXndlEx.mjs";
5
- import { n as fetchActorDocument, s as verifyKeyOwnership, t as exportJwk } from "./key-DYyRTxPH.mjs";
4
+ import { n as version, t as name } from "./deno-Bbso5CSl.mjs";
5
+ import { n as fetchActorDocument, s as verifyKeyOwnership, t as exportJwk } from "./key-CsY0Ifod.mjs";
6
6
  import { CryptographicKey, Object as Object$1, isActor } from "@fedify/vocab";
7
7
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
8
8
  import { getDocumentLoader } from "@fedify/vocab-runtime";
@@ -1,7 +1,7 @@
1
1
  const { Temporal } = require("@js-temporal/polyfill");
2
2
  const { URLPattern } = require("urlpattern-polyfill");
3
3
  const require_chunk = require("./chunk-DDcVe30Y.cjs");
4
- const require_http = require("./http-BhaAN2KG.cjs");
4
+ const require_http = require("./http-DBBUPm9V.cjs");
5
5
  let _logtape_logtape = require("@logtape/logtape");
6
6
  let _fedify_vocab = require("@fedify/vocab");
7
7
  let _opentelemetry_api = require("@opentelemetry/api");
@@ -1,8 +1,8 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as version, t as name } from "./deno-DCXndlEx.mjs";
5
- import { o as validateCryptoKey, r as fetchKey } from "./key-DYyRTxPH.mjs";
4
+ import { n as version, t as name } from "./deno-Bbso5CSl.mjs";
5
+ import { o as validateCryptoKey, r as fetchKey } from "./key-CsY0Ifod.mjs";
6
6
  import { Activity, DataIntegrityProof, Multikey, getTypeId } from "@fedify/vocab";
7
7
  import { SpanStatusCode, trace } from "@opentelemetry/api";
8
8
  import { asCryptoKey } from "@fedify/vocab-runtime/internal";
@@ -1,6 +1,6 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { a as fetchActorDocument, d as name, f as version, i as exportJwk, l as validateCryptoKey, o as fetchKey, u as verifyKeyOwnership } from "./http-hjoPA7jZ.js";
3
+ import { a as fetchActorDocument, d as name, f as version, i as exportJwk, l as validateCryptoKey, o as fetchKey, u as verifyKeyOwnership } from "./http-D03Qcwc-.js";
4
4
  import { getLogger } from "@logtape/logtape";
5
5
  import { Activity, CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1, getTypeId, isActor } from "@fedify/vocab";
6
6
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
@@ -1,8 +1,8 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as version, t as name } from "./deno-DCXndlEx.mjs";
5
- import { r as doubleKnockScoped } from "./http-hi5IS6qw.mjs";
4
+ import { n as version, t as name } from "./deno-Bbso5CSl.mjs";
5
+ import { r as doubleKnockScoped } from "./http-Cp7sQLeG.mjs";
6
6
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
7
7
  import { FetchError, UrlError } from "@fedify/vocab-runtime";
8
8
  import { openDirectFetch, openPublicFetch } from "@fedify/vocab-runtime/internal";
@@ -7,8 +7,8 @@ import { i as assertExists, t as assertStringIncludes } from "../std__assert-Dfl
7
7
  import { r as assertFalse, t as assertThrows } from "../assert_throws-D4DNWrux.mjs";
8
8
  import { t as assert } from "../assert-BhQd8QHP.mjs";
9
9
  import { t as assertRejects } from "../assert_rejects-WyYSTDDX.mjs";
10
- import { t as exportJwk } from "../key-DYyRTxPH.mjs";
11
- import { a as formatRfc9421SignatureParameters, c as signRequest, i as formatRfc9421Signature, l as timingSafeEqual, n as doubleKnock, o as parseRfc9421Signature, r as doubleKnockScoped, s as parseRfc9421SignatureInput, t as createRfc9421SignatureBase, u as verifyRequest } from "../http-hi5IS6qw.mjs";
10
+ import { t as exportJwk } from "../key-CsY0Ifod.mjs";
11
+ import { a as formatRfc9421SignatureParameters, c as signRequest, i as formatRfc9421Signature, l as timingSafeEqual, n as doubleKnock, o as parseRfc9421Signature, r as doubleKnockScoped, s as parseRfc9421SignatureInput, t as createRfc9421SignatureBase, u as verifyRequest } from "../http-Cp7sQLeG.mjs";
12
12
  import { i as rsaPrivateKey2, l as rsaPublicKey5, o as rsaPublicKey1, s as rsaPublicKey2 } from "../keys-CCxRJhWa.mjs";
13
13
  import { mockDocumentLoader, test } from "@fedify/fixture";
14
14
  import { FetchError, exportSpki } from "@fedify/vocab-runtime";
@@ -6,9 +6,9 @@ import { n as assertStrictEquals } from "../std__assert-DflMZha5.mjs";
6
6
  import { r as assertFalse, t as assertThrows } from "../assert_throws-D4DNWrux.mjs";
7
7
  import { t as assert } from "../assert-BhQd8QHP.mjs";
8
8
  import { t as assertRejects } from "../assert_rejects-WyYSTDDX.mjs";
9
- import { a as importJwk, i as generateCryptoKeyPair, o as validateCryptoKey, r as fetchKey, t as exportJwk } from "../key-DYyRTxPH.mjs";
9
+ import { a as importJwk, i as generateCryptoKeyPair, o as validateCryptoKey, r as fetchKey, t as exportJwk } from "../key-CsY0Ifod.mjs";
10
10
  import { c as rsaPublicKey3, i as rsaPrivateKey2, o as rsaPublicKey1, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-CCxRJhWa.mjs";
11
- import { v as wrapContextLoaderForJsonLd } from "../ld-CKUnk1Ps.mjs";
11
+ import { v as wrapContextLoaderForJsonLd } from "../ld-dYjiHKj1.mjs";
12
12
  import { mockDocumentLoader, test } from "@fedify/fixture";
13
13
  import { CryptographicKey, Multikey, Person } from "@fedify/vocab";
14
14
  import { FetchError, UrlError, getDocumentLoader } from "@fedify/vocab-runtime";
@@ -5,9 +5,9 @@ import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
5
5
  import { r as assertFalse, t as assertThrows } from "../assert_throws-D4DNWrux.mjs";
6
6
  import { n as assertInstanceOf, t as assert } from "../assert-BhQd8QHP.mjs";
7
7
  import { t as assertRejects } from "../assert_rejects-WyYSTDDX.mjs";
8
- import { i as generateCryptoKeyPair } from "../key-DYyRTxPH.mjs";
8
+ import { i as generateCryptoKeyPair } from "../key-CsY0Ifod.mjs";
9
9
  import { a as rsaPrivateKey3, c as rsaPublicKey3, i as rsaPrivateKey2, n as ed25519PrivateKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-CCxRJhWa.mjs";
10
- import { _ as verifySignature, a as compactJsonLd, c as detachSignature, d as hasVerifiableSignature, g as verifyJsonLd, i as attachSignature, m as signJsonLd, n as UnsafeJsonLdError, o as createSignature, p as isInvalidUrlTypeError, s as describeSignatureShape, u as hasSignature } from "../ld-CKUnk1Ps.mjs";
10
+ import { _ as verifySignature, a as compactJsonLd, c as detachSignature, d as hasVerifiableSignature, g as verifyJsonLd, i as attachSignature, m as signJsonLd, n as UnsafeJsonLdError, o as createSignature, p as isInvalidUrlTypeError, s as describeSignatureShape, u as hasSignature } from "../ld-dYjiHKj1.mjs";
11
11
  import { t as ldSignatureWithoutCreated } from "../ld-signature-_KYhPsqt.mjs";
12
12
  import { mockDocumentLoader, test } from "@fedify/fixture";
13
13
  import { Create, CryptographicKey, Note } from "@fedify/vocab";
package/dist/sig/mod.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  const { Temporal } = require("@js-temporal/polyfill");
2
2
  const { URLPattern } = require("urlpattern-polyfill");
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
- const require_http = require("../http-BhaAN2KG.cjs");
5
- const require_proof = require("../proof-DLqGjdaL.cjs");
4
+ const require_http = require("../http-DBBUPm9V.cjs");
5
+ const require_proof = require("../proof-CCZCT2xF.cjs");
6
6
  exports.attachSignature = require_proof.attachSignature;
7
7
  exports.createProof = require_proof.createProof;
8
8
  exports.createSignature = require_proof.createSignature;
package/dist/sig/mod.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { c as importJwk, i as exportJwk, n as signRequest, o as fetchKey, r as verifyRequest, s as generateCryptoKeyPair } from "../http-hjoPA7jZ.js";
4
- import { a as doesActorOwnKey, b as verifyJsonLd, d as createSignature, i as verifyProof, l as attachSignature, n as signObject, o as getKeyOwner, p as detachSignature, r as verifyObject, t as createProof, v as signJsonLd, x as verifySignature } from "../proof-D2RNLHHt.js";
3
+ import { c as importJwk, i as exportJwk, n as signRequest, o as fetchKey, r as verifyRequest, s as generateCryptoKeyPair } from "../http-D03Qcwc-.js";
4
+ import { a as doesActorOwnKey, b as verifyJsonLd, d as createSignature, i as verifyProof, l as attachSignature, n as signObject, o as getKeyOwner, p as detachSignature, r as verifyObject, t as createProof, v as signJsonLd, x as verifySignature } from "../proof-DGOXBmlo.js";
5
5
  export { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, exportJwk, fetchKey, generateCryptoKeyPair, getKeyOwner, importJwk, signJsonLd, signObject, signRequest, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
@@ -6,7 +6,7 @@ import "../std__assert-DflMZha5.mjs";
6
6
  import { r as assertFalse } from "../assert_throws-D4DNWrux.mjs";
7
7
  import { t as assert } from "../assert-BhQd8QHP.mjs";
8
8
  import { o as rsaPublicKey1, s as rsaPublicKey2 } from "../keys-CCxRJhWa.mjs";
9
- import { n as getKeyOwner, t as doesActorOwnKey } from "../owner-CqHBbNXl.mjs";
9
+ import { n as getKeyOwner, t as doesActorOwnKey } from "../owner-A1Xol6Zh.mjs";
10
10
  import { createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
11
11
  import { Create, CryptographicKey, lookupObject } from "@fedify/vocab";
12
12
  //#region src/sig/owner.test.ts
@@ -6,10 +6,10 @@ import "../std__assert-DflMZha5.mjs";
6
6
  import { n as assertInstanceOf } from "../assert-BhQd8QHP.mjs";
7
7
  import { t as assertRejects } from "../assert_rejects-WyYSTDDX.mjs";
8
8
  import { i as rsaPrivateKey2, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-CCxRJhWa.mjs";
9
- import { _ as verifySignature, c as detachSignature, m as signJsonLd } from "../ld-CKUnk1Ps.mjs";
10
- import { i as verifyProof, n as signObject, r as verifyObject, t as createProof } from "../proof-CDalRU9r.mjs";
9
+ import { _ as verifySignature, c as detachSignature, m as signJsonLd } from "../ld-dYjiHKj1.mjs";
10
+ import { i as verifyProof, n as signObject, r as verifyObject, t as createProof } from "../proof-DCqYLXDl.mjs";
11
11
  import { mockDocumentLoader, test } from "@fedify/fixture";
12
- import { Create, DataIntegrityProof, Multikey, Note, Place } from "@fedify/vocab";
12
+ import { Create, DataIntegrityProof, Multikey, Note, OrderedCollectionPage, Place } from "@fedify/vocab";
13
13
  import { decodeMultibase, importMultibaseKey } from "@fedify/vocab-runtime";
14
14
  import { decodeHex, encodeHex } from "byte-encodings/hex";
15
15
  //#region src/sig/proof.test.ts
@@ -153,6 +153,29 @@ test("signObject()", async () => {
153
153
  contextLoader: mockDocumentLoader
154
154
  }), TypeError, "Unsupported algorithm");
155
155
  });
156
+ test("collection serialization preserves cached object integrity proofs", async () => {
157
+ const options = {
158
+ documentLoader: mockDocumentLoader,
159
+ contextLoader: mockDocumentLoader
160
+ };
161
+ const source = await (await signObject(fep8b32TestVectorActivity, fep8b32TestVectorPrivateKey, fep8b32TestVectorKeyId, {
162
+ ...options,
163
+ created: Temporal.Instant.from("2023-02-24T23:36:38Z")
164
+ })).toJsonLd(options);
165
+ assertInstanceOf(await verifyObject(Create, source, options), Create);
166
+ const cached = await Create.fromJsonLd(source, options);
167
+ const json = await new OrderedCollectionPage({
168
+ id: new URL("https://server.example/outbox?page=1"),
169
+ items: [cached]
170
+ }).toJsonLd(options);
171
+ assertEquals(json.orderedItems[0], source);
172
+ assertEquals(await cached.toJsonLd(), source);
173
+ assertInstanceOf(await verifyObject(Create, json.orderedItems[0], options), Create);
174
+ const restored = await OrderedCollectionPage.fromJsonLd(json, options);
175
+ const items = await Array.fromAsync(restored.getItems(options));
176
+ assertEquals(items.length, 1);
177
+ assertEquals(await items[0].toJsonLd(), source);
178
+ });
156
179
  test("signObject() migrates proofs from an older context", async () => {
157
180
  const oldContext = [
158
181
  "https://w3id.org/identity/v1",
@@ -1,7 +1,7 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { l as getNormalizationContextLoader } from "./ld-CKUnk1Ps.mjs";
4
+ import { l as getNormalizationContextLoader } from "./ld-dYjiHKj1.mjs";
5
5
  import jsonld from "@fedify/vocab-runtime/jsonld";
6
6
  import { normalizeDateTimeLiteral } from "@fedify/vocab-runtime/temporal";
7
7
  //#region src/federation/temporal.ts
@@ -5,9 +5,9 @@ import { t as esm_default } from "../esm-DVILvP5e.mjs";
5
5
  import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
6
6
  import "../std__assert-DflMZha5.mjs";
7
7
  import { t as assertRejects } from "../assert_rejects-WyYSTDDX.mjs";
8
- import { u as verifyRequest } from "../http-hi5IS6qw.mjs";
8
+ import { u as verifyRequest } from "../http-Cp7sQLeG.mjs";
9
9
  import { i as rsaPrivateKey2 } from "../keys-CCxRJhWa.mjs";
10
- import { n as getAuthenticatedDocumentLoader, t as createAuthenticatedDocumentLoader } from "../docloader-7M06kit4.mjs";
10
+ import { n as getAuthenticatedDocumentLoader, t as createAuthenticatedDocumentLoader } from "../docloader-CP5VuWA0.mjs";
11
11
  import { mockDocumentLoader, test } from "@fedify/fixture";
12
12
  import { FetchError, UrlError } from "@fedify/vocab-runtime";
13
13
  import { openDirectFetch, openPublicFetch } from "@fedify/vocab-runtime/internal";
@@ -1,6 +1,6 @@
1
1
  const { Temporal } = require("@js-temporal/polyfill");
2
2
  const { URLPattern } = require("urlpattern-polyfill");
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
- const require_kv_cache = require("../kv-cache-Bjnv9p9e.cjs");
4
+ const require_kv_cache = require("../kv-cache-BpjVni_0.cjs");
5
5
  exports.getAuthenticatedDocumentLoader = require_kv_cache.getAuthenticatedDocumentLoader;
6
6
  exports.kvCache = require_kv_cache.kvCache;
package/dist/utils/mod.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { n as getAuthenticatedDocumentLoader, t as kvCache } from "../kv-cache-YZ2bpa_P.js";
3
+ import { n as getAuthenticatedDocumentLoader, t as kvCache } from "../kv-cache-CVxDhqGp.js";
4
4
  export { getAuthenticatedDocumentLoader, kvCache };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/fedify",
3
- "version": "2.0.36-dev.2746+2371871b",
3
+ "version": "2.0.36-dev.2760+4342c983",
4
4
  "description": "An ActivityPub server framework",
5
5
  "keywords": [
6
6
  "ActivityPub",
@@ -144,9 +144,9 @@
144
144
  "uri-template-router": "^1.0.0",
145
145
  "url-template": "^3.1.1",
146
146
  "urlpattern-polyfill": "^10.1.0",
147
- "@fedify/vocab": "2.0.36-dev.2746+2371871b",
148
- "@fedify/webfinger": "2.0.36-dev.2746+2371871b",
149
- "@fedify/vocab-runtime": "2.0.36-dev.2746+2371871b"
147
+ "@fedify/vocab": "2.0.36-dev.2760+4342c983",
148
+ "@fedify/webfinger": "2.0.36-dev.2760+4342c983",
149
+ "@fedify/vocab-runtime": "2.0.36-dev.2760+4342c983"
150
150
  },
151
151
  "devDependencies": {
152
152
  "@std/assert": "npm:@jsr/std__assert@^0.226.0",
@@ -158,8 +158,8 @@
158
158
  "tsx": "^4.19.4",
159
159
  "typescript": "^6.0.0",
160
160
  "wrangler": "^4.17.0",
161
- "@fedify/vocab-tools": "^2.0.36-dev.2746+2371871b",
162
- "@fedify/fixture": "2.0.0"
161
+ "@fedify/fixture": "2.0.0",
162
+ "@fedify/vocab-tools": "^2.0.36-dev.2760+4342c983"
163
163
  },
164
164
  "scripts": {
165
165
  "build:self": "tsdown",