@fedify/fedify 2.5.0-dev.2364 → 2.5.0-dev.2378

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 (101) hide show
  1. package/dist/{builder-ClDm_1c7.mjs → builder-J1K0IJj6.mjs} +2 -2
  2. package/dist/compat/mod.d.cts +1 -1
  3. package/dist/compat/mod.d.ts +1 -1
  4. package/dist/compat/transformers.test.mjs +1 -1
  5. package/dist/{compound-proof-D03g5HXz.mjs → compound-proof-DtmVrMV7.mjs} +47 -19
  6. package/dist/{context-tsYPJ2Ew.d.cts → context-BjD_CTxh.d.cts} +1 -1
  7. package/dist/{context-7NyiqIcg.d.ts → context-C2-UDo2c.d.ts} +1 -1
  8. package/dist/{deno-Bp8q024B.mjs → deno-Ci6tSK9-.mjs} +1 -1
  9. package/dist/{docloader-DarxdYmj.mjs → docloader-DZ9h6KJS.mjs} +2 -2
  10. package/dist/federation/builder.test.mjs +1 -1
  11. package/dist/federation/compound-fanout.test.mjs +3 -3
  12. package/dist/federation/handler-compound-proof.test.mjs +3 -3
  13. package/dist/federation/handler.test.mjs +4 -5
  14. package/dist/federation/hashlink-media.test.mjs +2 -2
  15. package/dist/federation/idempotency.test.mjs +2 -2
  16. package/dist/federation/inbox-report.test.mjs +5 -5
  17. package/dist/federation/metrics.test.mjs +1 -1
  18. package/dist/federation/middleware.test.mjs +7 -7
  19. package/dist/federation/mod.cjs +1 -1
  20. package/dist/federation/mod.d.cts +3 -3
  21. package/dist/federation/mod.d.ts +3 -3
  22. package/dist/federation/mod.js +1 -1
  23. package/dist/federation/outgoing-proof.test.mjs +4 -5
  24. package/dist/federation/portable-actor.test.mjs +3 -3
  25. package/dist/federation/portable-chain.test.mjs +3 -3
  26. package/dist/federation/portable-collection.test.mjs +4 -4
  27. package/dist/federation/portable-delivery.test.mjs +2 -2
  28. package/dist/federation/portable-gateway-keys.test.mjs +4 -4
  29. package/dist/federation/portable-inbox.test.mjs +4 -4
  30. package/dist/federation/portable-parse-uri.test.mjs +1 -1
  31. package/dist/federation/portable-route-activity.test.mjs +2 -2
  32. package/dist/federation/portable.test.mjs +3 -3
  33. package/dist/federation/send.test.mjs +3 -3
  34. package/dist/federation/tasks/enqueue.test.mjs +1 -1
  35. package/dist/federation/tasks/tasks.test.mjs +2 -2
  36. package/dist/federation/temporal.test.mjs +1 -1
  37. package/dist/federation/webfinger.test.mjs +1 -1
  38. package/dist/{federation-BW53Wxj7.cjs → federation-lzy7M3hT.cjs} +48 -20
  39. package/dist/{http-D6JDnBO1.mjs → http-CFyizTHa.mjs} +4 -4
  40. package/dist/{http-Cg5Yj_yk.js → http-Cmz7x6Iw.js} +151 -19
  41. package/dist/{http-Btzv2JZU.cjs → http-D1RPHoq3.cjs} +161 -17
  42. package/dist/{key-DYxuyd-s.d.cts → key-DhsBxxZN.d.ts} +6 -2
  43. package/dist/{key-C1nv7_jD.d.ts → key-nYGY4QB9.d.cts} +6 -2
  44. package/dist/{kv-cache-CamfvHLY.js → kv-cache-C0-HuvwP.js} +1 -1
  45. package/dist/{kv-cache-0qHe-sN1.cjs → kv-cache-Jym5nP3J.cjs} +1 -1
  46. package/dist/{kv-cache-BoekCvYF.mjs → kv-cache-rOQX3I3c.mjs} +1 -1
  47. package/dist/{key-R5cUSA6S.mjs → ld-DJ--ZUpr.mjs} +760 -16
  48. package/dist/{metrics-DUdlIyrB.mjs → metrics-Dwgav7s_.mjs} +1 -1
  49. package/dist/{middleware-Hl0lTClT.mjs → middleware-BbBsa5iR.mjs} +13 -14
  50. package/dist/{middleware-DLB1TqQ1.mjs → middleware-CJWxuUy5.mjs} +1 -1
  51. package/dist/{middleware-BYOXwJvI.js → middleware-CqgRIsWM.js} +48 -20
  52. package/dist/{mod-Dw-nPxQh.d.cts → mod-B5-wdzmJ.d.cts} +1 -1
  53. package/dist/{mod-BojP2Bw3.d.cts → mod-BBPd4M_0.d.cts} +1 -1
  54. package/dist/{mod-CtpF2BU5.d.ts → mod-BRpER-B0.d.ts} +1 -1
  55. package/dist/{mod-Xj5P4s4d.d.ts → mod-CUYBGKof.d.ts} +1 -1
  56. package/dist/{mod-DEZXwV6J.d.ts → mod-DkhfZC1u.d.ts} +1 -1
  57. package/dist/{mod-CavhAgLw.d.cts → mod-xAfaLS4T.d.cts} +1 -1
  58. package/dist/mod.cjs +4 -4
  59. package/dist/mod.d.cts +5 -5
  60. package/dist/mod.d.ts +5 -5
  61. package/dist/mod.js +4 -4
  62. package/dist/nodeinfo/handler.test.mjs +1 -1
  63. package/dist/{owner-CKHKMnp-.mjs → owner-Btd7SwMj.mjs} +3 -3
  64. package/dist/{portable-collection-CyTnj1m9.cjs → portable-collection-BvWxS1sL.cjs} +1 -1
  65. package/dist/{portable-collection-Dhg0By3t.js → portable-collection-DwQT28O2.js} +1 -1
  66. package/dist/{portable-collection-DxVKitQN.mjs → portable-collection-gb9V8XEO.mjs} +2 -2
  67. package/dist/{portable-key-BOBhrrKN.mjs → portable-key-Cwti99nP.mjs} +1 -1
  68. package/dist/{proof-BGyUYuOb.mjs → proof-Bwzv6mXZ.mjs} +44 -11
  69. package/dist/{send-DmlYxKmb.mjs → send-BrQYUSb4.mjs} +3 -3
  70. package/dist/sig/compound-proof-discovery.test.mjs +1 -1
  71. package/dist/sig/compound-proof-producer.test.mjs +1 -1
  72. package/dist/sig/compound-proof-verification.test.mjs +168 -2
  73. package/dist/sig/compound-proof.test.mjs +2 -2
  74. package/dist/sig/http.test.mjs +2 -2
  75. package/dist/sig/key.test.mjs +208 -3
  76. package/dist/sig/ld.test.mjs +1 -2
  77. package/dist/sig/mitra-receive-interop.test.mjs +4 -4
  78. package/dist/sig/mitra-send-interop.test.mjs +3 -3
  79. package/dist/sig/mod.cjs +2 -2
  80. package/dist/sig/mod.d.cts +2 -2
  81. package/dist/sig/mod.d.ts +2 -2
  82. package/dist/sig/mod.js +2 -2
  83. package/dist/sig/owner.test.mjs +1 -1
  84. package/dist/sig/portable-collection.test.mjs +1 -1
  85. package/dist/sig/portable-interop.test.mjs +3 -3
  86. package/dist/sig/portable-key.test.mjs +5 -6
  87. package/dist/sig/proof.test.mjs +3 -3
  88. package/dist/sig/tootik-request-interop.test.mjs +4 -4
  89. package/dist/sig/tootik-send-interop.test.mjs +3 -3
  90. package/dist/sig/verification.test.mjs +3 -3
  91. package/dist/{temporal-Bvota1RR.mjs → temporal-BRaCTxVe.mjs} +1 -1
  92. package/dist/testing/kv.test.mjs +1 -1
  93. package/dist/testing/mod.d.mts +5 -1
  94. package/dist/utils/docloader.test.mjs +2 -2
  95. package/dist/utils/kv-cache.test.mjs +1 -1
  96. package/dist/utils/mod.cjs +1 -1
  97. package/dist/utils/mod.d.cts +1 -1
  98. package/dist/utils/mod.d.ts +1 -1
  99. package/dist/utils/mod.js +1 -1
  100. package/package.json +6 -6
  101. package/dist/ld-B6RQHcnq.mjs +0 -658
@@ -2,9 +2,9 @@ import "temporal-polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
4
  import { a as verificationObservation } from "../verification-Dpfcw8ml.mjs";
5
- import { h as verifyJsonLd, p as signJsonLd } from "../ld-B6RQHcnq.mjs";
6
- import { a as signObject, s as verifyObject } from "../proof-BGyUYuOb.mjs";
7
- import { l as signRequest, p as verifyRequestDetailed } from "../http-D6JDnBO1.mjs";
5
+ import { h as verifyJsonLd, p as signJsonLd } from "../ld-DJ--ZUpr.mjs";
6
+ import { c as verifyObject, o as signObject } from "../proof-Bwzv6mXZ.mjs";
7
+ import { l as signRequest, p as verifyRequestDetailed } from "../http-CFyizTHa.mjs";
8
8
  import { i as rsaPrivateKey2, n as ed25519PrivateKey, o as rsaPublicKey1, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-DIJNHW-Y.mjs";
9
9
  import { Activity, Create, CryptographicKey, Multikey } from "@fedify/vocab";
10
10
  import { FetchError } 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-B6RQHcnq.mjs";
4
+ import { c as getNormalizationContextLoader } from "./ld-DJ--ZUpr.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-IG3pHfvZ.mjs";
8
8
  import { t as assertEquals } from "../assert_equals-Z6IcEbWU.mjs";
9
- import { o as createFederation } from "../middleware-Hl0lTClT.mjs";
9
+ import { o as createFederation } from "../middleware-BbBsa5iR.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();
@@ -233,7 +233,11 @@ type CompoundProofDiscoveryFailureReason = {
233
233
  type CompoundProofVerificationFailureReason = {
234
234
  /** A nested secured map does not carry its own JSON-LD context. */readonly type: "missingContext";
235
235
  } | {
236
- /** The direct proof is malformed, unsupported, or invalid. */readonly type: "invalidProof";
236
+ /**
237
+ * The direct proof is malformed, unsupported, invalid, or left unverified
238
+ * because the portable-object policy rejects its map.
239
+ */
240
+ readonly type: "invalidProof";
237
241
  };
238
242
  /** Why one portable map did not pass compound proof policy. */
239
243
  type CompoundPortableObjectFailureReason = CompoundProofVerificationFailureReason | VerifyPortableObjectProofFailureReason | {
@@ -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 { f as verifyRequest } from "../http-D6JDnBO1.mjs";
8
+ import { f as verifyRequest } from "../http-CFyizTHa.mjs";
9
9
  import { i as rsaPrivateKey2 } from "../keys-DIJNHW-Y.mjs";
10
- import { t as getAuthenticatedDocumentLoader } from "../docloader-DarxdYmj.mjs";
10
+ import { t as getAuthenticatedDocumentLoader } from "../docloader-DZ9h6KJS.mjs";
11
11
  import { configure, reset } from "@logtape/logtape";
12
12
  import { FetchError, UrlError } from "@fedify/vocab-runtime";
13
13
  import { mockDocumentLoader, test } from "@fedify/fixture";
@@ -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-BoekCvYF.mjs";
4
+ import { n as kvCache, t as MockKvStore } from "../kv-cache-rOQX3I3c.mjs";
5
5
  import { preloadedContexts } from "@fedify/vocab-runtime";
6
6
  import { deepStrictEqual, throws } from "node:assert";
7
7
  import { createTestMeterProvider, mockDocumentLoader, test } from "@fedify/fixture";
@@ -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-0qHe-sN1.cjs");
3
+ const require_kv_cache = require("../kv-cache-Jym5nP3J.cjs");
4
4
  exports.getAuthenticatedDocumentLoader = require_kv_cache.getAuthenticatedDocumentLoader;
5
5
  exports.kvCache = require_kv_cache.kvCache;
@@ -1,3 +1,3 @@
1
1
  /// <reference lib="esnext.temporal" />
2
- import { n as getAuthenticatedDocumentLoader, t as kvCache } from "../mod-Dw-nPxQh.cjs";
2
+ import { n as getAuthenticatedDocumentLoader, t as kvCache } from "../mod-B5-wdzmJ.cjs";
3
3
  export { getAuthenticatedDocumentLoader, kvCache };
@@ -1,3 +1,3 @@
1
1
  /// <reference lib="esnext.temporal" />
2
- import { n as getAuthenticatedDocumentLoader, t as kvCache } from "../mod-DEZXwV6J.js";
2
+ import { n as getAuthenticatedDocumentLoader, t as kvCache } from "../mod-DkhfZC1u.js";
3
3
  export { getAuthenticatedDocumentLoader, 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-CamfvHLY.js";
3
+ import { n as getAuthenticatedDocumentLoader, t as kvCache } from "../kv-cache-C0-HuvwP.js";
4
4
  export { getAuthenticatedDocumentLoader, kvCache };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/fedify",
3
- "version": "2.5.0-dev.2364+4d9b5f4d",
3
+ "version": "2.5.0-dev.2378+fea9c751",
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.5.0-dev.2364+4d9b5f4d",
155
- "@fedify/uri-template": "2.5.0-dev.2364+4d9b5f4d",
156
- "@fedify/vocab-runtime": "2.5.0-dev.2364+4d9b5f4d",
157
- "@fedify/webfinger": "2.5.0-dev.2364+4d9b5f4d"
154
+ "@fedify/uri-template": "2.5.0-dev.2378+fea9c751",
155
+ "@fedify/webfinger": "2.5.0-dev.2378+fea9c751",
156
+ "@fedify/vocab-runtime": "2.5.0-dev.2378+fea9c751",
157
+ "@fedify/vocab": "2.5.0-dev.2378+fea9c751"
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.5.0-dev.2364+4d9b5f4d"
170
+ "@fedify/vocab-tools": "^2.5.0-dev.2378+fea9c751"
171
171
  },
172
172
  "scripts": {
173
173
  "build:self": "tsdown",