@fedify/fedify 2.1.3 → 2.1.5

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 (56) hide show
  1. package/dist/{builder-BKo51w-F.mjs → builder-U7X6o2EL.mjs} +3 -3
  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/{context-BOiMZBu5.d.ts → context-C0fssarc.d.ts} +4 -1
  6. package/dist/{context-BhZVy7RB.d.cts → context-LmrZPwti.d.cts} +4 -1
  7. package/dist/{deno-D5r_9RvZ.mjs → deno-CiA1I28P.mjs} +1 -1
  8. package/dist/{docloader-B9CXCw8i.mjs → docloader-CJVLGKkH.mjs} +2 -2
  9. package/dist/federation/builder.test.mjs +1 -1
  10. package/dist/federation/handler.test.mjs +3 -3
  11. package/dist/federation/idempotency.test.mjs +2 -2
  12. package/dist/federation/inbox.test.mjs +1 -1
  13. package/dist/federation/middleware.test.mjs +89 -29
  14. package/dist/federation/mod.cjs +1 -1
  15. package/dist/federation/mod.d.cts +2 -2
  16. package/dist/federation/mod.d.ts +2 -2
  17. package/dist/federation/mod.js +1 -1
  18. package/dist/federation/send.test.mjs +3 -3
  19. package/dist/federation/webfinger.test.mjs +1 -1
  20. package/dist/{http-BngkmEhl.cjs → http-BnhNwZCE.cjs} +1 -1
  21. package/dist/{http-PS3wuU8D.js → http-DGSZjpV8.js} +1 -1
  22. package/dist/{http-B53alCGi.mjs → http-DhPGYu8c.mjs} +2 -2
  23. package/dist/{inbox-CHsLu5ai.mjs → inbox-CB5LTrsc.mjs} +1 -1
  24. package/dist/{key-D9Np_ZXl.mjs → key-BB7giDb0.mjs} +1 -1
  25. package/dist/{kv-cache-B2Qi5MGv.js → kv-cache-BXyQIJaz.js} +1 -1
  26. package/dist/{kv-cache-YCtINZK4.cjs → kv-cache-uC4u_xNv.cjs} +1 -1
  27. package/dist/{ld-BaxRFhDd.mjs → ld-H4y7rFBj.mjs} +2 -2
  28. package/dist/{middleware-dFn6ozt5.mjs → middleware-BuolCLMa.mjs} +49 -24
  29. package/dist/{middleware-Dn1kk96N.js → middleware-CZQtnknj.js} +42 -17
  30. package/dist/{middleware-C37OmOz_.mjs → middleware-D0LdG_ob.mjs} +1 -1
  31. package/dist/{middleware-CelV2xrI.cjs → middleware-DE76xnt9.cjs} +1 -1
  32. package/dist/{middleware-Bsv-7iX7.cjs → middleware-pa87O65Q.cjs} +43 -18
  33. package/dist/{mod-Bp_CzKd4.d.cts → mod-Cgpc49fA.d.cts} +1 -1
  34. package/dist/{mod-DKOAow7a.d.ts → mod-CnwZoDzx.d.ts} +1 -1
  35. package/dist/mod.cjs +4 -4
  36. package/dist/mod.d.cts +2 -2
  37. package/dist/mod.d.ts +2 -2
  38. package/dist/mod.js +4 -4
  39. package/dist/nodeinfo/handler.test.mjs +1 -1
  40. package/dist/{owner-dxM51u36.mjs → owner-BWPBsNVe.mjs} +2 -2
  41. package/dist/{proof-Dpgqx9RS.js → proof-B4c3-QEV.js} +1 -1
  42. package/dist/{proof-CH5U0k7G.mjs → proof-CYvplcHt.mjs} +2 -2
  43. package/dist/{proof-D39qiki3.cjs → proof-lKHWkcgD.cjs} +1 -1
  44. package/dist/{send-D1-4ZnQq.mjs → send-CiKoUUxl.mjs} +2 -2
  45. package/dist/sig/http.test.mjs +2 -2
  46. package/dist/sig/key.test.mjs +1 -1
  47. package/dist/sig/ld.test.mjs +2 -2
  48. package/dist/sig/mod.cjs +2 -2
  49. package/dist/sig/mod.js +2 -2
  50. package/dist/sig/owner.test.mjs +1 -1
  51. package/dist/sig/proof.test.mjs +1 -1
  52. package/dist/testing/mod.d.mts +4 -1
  53. package/dist/utils/docloader.test.mjs +2 -2
  54. package/dist/utils/mod.cjs +1 -1
  55. package/dist/utils/mod.js +1 -1
  56. package/package.json +6 -6
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-BngkmEhl.cjs");
5
- const require_proof = require("../proof-D39qiki3.cjs");
4
+ const require_http = require("../http-BnhNwZCE.cjs");
5
+ const require_proof = require("../proof-lKHWkcgD.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 "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
- import { a as verifyRequestDetailed, c as fetchKeyDetailed, f as formatAcceptSignature, h as validateAcceptSignature, i as verifyRequest, l as generateCryptoKeyPair, m as parseAcceptSignature, o as exportJwk, p as fulfillAcceptSignature, r as signRequest, s as fetchKey, u as importJwk } from "../http-PS3wuU8D.js";
4
- import { a as doesActorOwnKey, c as createSignature, d as signJsonLd, f as verifyJsonLd, i as verifyProof, l as detachSignature, n as signObject, o as getKeyOwner, p as verifySignature, r as verifyObject, s as attachSignature, t as createProof } from "../proof-Dpgqx9RS.js";
3
+ import { a as verifyRequestDetailed, c as fetchKeyDetailed, f as formatAcceptSignature, h as validateAcceptSignature, i as verifyRequest, l as generateCryptoKeyPair, m as parseAcceptSignature, o as exportJwk, p as fulfillAcceptSignature, r as signRequest, s as fetchKey, u as importJwk } from "../http-DGSZjpV8.js";
4
+ import { a as doesActorOwnKey, c as createSignature, d as signJsonLd, f as verifyJsonLd, i as verifyProof, l as detachSignature, n as signObject, o as getKeyOwner, p as verifySignature, r as verifyObject, s as attachSignature, t as createProof } from "../proof-B4c3-QEV.js";
5
5
  export { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, exportJwk, fetchKey, fetchKeyDetailed, formatAcceptSignature, fulfillAcceptSignature, generateCryptoKeyPair, getKeyOwner, importJwk, parseAcceptSignature, signJsonLd, signObject, signRequest, validateAcceptSignature, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifyRequestDetailed, verifySignature };
@@ -6,7 +6,7 @@ import "../std__assert-Duiq_YC9.mjs";
6
6
  import { n as assertFalse } from "../assert_rejects-B-qJtC9Z.mjs";
7
7
  import { t as assert } from "../assert-ddO5KLpe.mjs";
8
8
  import { o as rsaPublicKey1, s as rsaPublicKey2 } from "../keys-BAK-tUlf.mjs";
9
- import { n as getKeyOwner, t as doesActorOwnKey } from "../owner-dxM51u36.mjs";
9
+ import { n as getKeyOwner, t as doesActorOwnKey } from "../owner-BWPBsNVe.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,7 +6,7 @@ import "../std__assert-Duiq_YC9.mjs";
6
6
  import { t as assertRejects } from "../assert_rejects-B-qJtC9Z.mjs";
7
7
  import { t as assertInstanceOf } from "../assert_instance_of-C4Ri6VuN.mjs";
8
8
  import { i as rsaPrivateKey2, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-BAK-tUlf.mjs";
9
- import { i as verifyProof, n as signObject, r as verifyObject, t as createProof } from "../proof-CH5U0k7G.mjs";
9
+ import { i as verifyProof, n as signObject, r as verifyObject, t as createProof } from "../proof-CYvplcHt.mjs";
10
10
  import { mockDocumentLoader, test } from "@fedify/fixture";
11
11
  import { Create, DataIntegrityProof, Multikey, Note, Place } from "@fedify/vocab";
12
12
  import { decodeMultibase, importMultibaseKey } from "@fedify/vocab-runtime";
@@ -2121,7 +2121,10 @@ interface GetSignedKeyOptions {
2121
2121
  */
2122
2122
  interface ActorKeyPair extends CryptoKeyPair {
2123
2123
  /**
2124
- * The URI of the public key, which is used for verifying HTTP Signatures.
2124
+ * The URI of the public key for {@link CryptographicKey}, which is used for
2125
+ * verifying HTTP Signatures and Linked Data Signatures. Note that this is
2126
+ * the ID of the {@link cryptographicKey}, not of the {@link multikey};
2127
+ * the {@link Multikey} instance has a distinct ID of its own.
2125
2128
  */
2126
2129
  readonly keyId: URL;
2127
2130
  /**
@@ -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-Duiq_YC9.mjs";
7
7
  import { t as assertRejects } from "../assert_rejects-B-qJtC9Z.mjs";
8
- import { l as verifyRequest } from "../http-B53alCGi.mjs";
8
+ import { l as verifyRequest } from "../http-DhPGYu8c.mjs";
9
9
  import { i as rsaPrivateKey2 } from "../keys-BAK-tUlf.mjs";
10
- import { t as getAuthenticatedDocumentLoader } from "../docloader-B9CXCw8i.mjs";
10
+ import { t as getAuthenticatedDocumentLoader } from "../docloader-CJVLGKkH.mjs";
11
11
  import { mockDocumentLoader, test } from "@fedify/fixture";
12
12
  import { UrlError } from "@fedify/vocab-runtime";
13
13
  //#region src/utils/docloader.test.ts
@@ -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-YCtINZK4.cjs");
4
+ const require_kv_cache = require("../kv-cache-uC4u_xNv.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 "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
- import { n as getAuthenticatedDocumentLoader, t as kvCache } from "../kv-cache-B2Qi5MGv.js";
3
+ import { n as getAuthenticatedDocumentLoader, t as kvCache } from "../kv-cache-BXyQIJaz.js";
4
4
  export { getAuthenticatedDocumentLoader, kvCache };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/fedify",
3
- "version": "2.1.3",
3
+ "version": "2.1.5",
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.1.3",
148
- "@fedify/vocab-runtime": "2.1.3",
149
- "@fedify/webfinger": "2.1.3"
147
+ "@fedify/vocab": "2.1.5",
148
+ "@fedify/vocab-runtime": "2.1.5",
149
+ "@fedify/webfinger": "2.1.5"
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": "^5.9.2",
160
160
  "wrangler": "^4.17.0",
161
- "@fedify/vocab-tools": "^2.1.3",
162
- "@fedify/fixture": "2.0.0"
161
+ "@fedify/fixture": "2.0.0",
162
+ "@fedify/vocab-tools": "^2.1.5"
163
163
  },
164
164
  "scripts": {
165
165
  "build:self": "tsdown",