@fedify/fedify 2.0.10 → 2.0.12

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-opzCVeXZ.mjs → builder-D6J-5hKa.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-Dyg7P1qW.d.ts → context-DKccFiYD.d.ts} +4 -1
  6. package/dist/{context-CNIt-Qn7.d.cts → context-Kt2s6UWW.d.cts} +4 -1
  7. package/dist/{deno-CrjRl2cm.mjs → deno-SCNd7qf9.mjs} +1 -1
  8. package/dist/{docloader-35wi0JO1.mjs → docloader-hJEqcTL7.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-BGjkvEDc.js → http-8mR6zS99.js} +1 -1
  21. package/dist/{http-VQAKycaZ.mjs → http-B98y63Kd.mjs} +2 -2
  22. package/dist/{http-DLnqzOtY.cjs → http-CJBoXT7y.cjs} +1 -1
  23. package/dist/{inbox-B6DfJ3h9.mjs → inbox-C23H7V44.mjs} +1 -1
  24. package/dist/{key-C9oV7wk8.mjs → key-DB6mlGEl.mjs} +1 -1
  25. package/dist/{kv-cache-QxhhotWv.js → kv-cache-CZPQRg2z.js} +1 -1
  26. package/dist/{kv-cache-BAEaVRvi.cjs → kv-cache-DyDvcvqh.cjs} +1 -1
  27. package/dist/{ld-BfEccFSP.mjs → ld-BLu-KvLW.mjs} +2 -2
  28. package/dist/{middleware-DuFvBMT2.cjs → middleware-C2p8Tgjt.cjs} +1 -1
  29. package/dist/{middleware-CGkdTPmX.mjs → middleware-CNP01MGn.mjs} +1 -1
  30. package/dist/{middleware-Dj7uT9F8.cjs → middleware-DTZLVRS1.cjs} +43 -18
  31. package/dist/{middleware-ReZIkikn.mjs → middleware-Do_Wjr4i.mjs} +49 -24
  32. package/dist/{middleware-Bc4sY_YW.js → middleware-ROrpLy17.js} +42 -17
  33. package/dist/{mod-BnAKGh2w.d.ts → mod-Cwmyxyoc.d.ts} +1 -1
  34. package/dist/{mod-DWoQffTD.d.cts → mod-DiGQkv-4.d.cts} +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-CRLqJlP_.mjs → owner-CnWzoI3C.mjs} +2 -2
  41. package/dist/{proof-DvQ28mUJ.js → proof-3N_8Goy3.js} +1 -1
  42. package/dist/{proof-B4SaJCmK.cjs → proof-CpP_LUUi.cjs} +1 -1
  43. package/dist/{proof-9SGtq4tE.mjs → proof-gNE8tyl0.mjs} +2 -2
  44. package/dist/{send-DN2ywoe8.mjs → send-Bt03lAUy.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
@@ -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-CtZLJq76.mjs";
9
- import { n as getKeyOwner, t as doesActorOwnKey } from "../owner-CRLqJlP_.mjs";
9
+ import { n as getKeyOwner, t as doesActorOwnKey } from "../owner-CnWzoI3C.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-CtZLJq76.mjs";
9
- import { i as verifyProof, n as signObject, r as verifyObject, t as createProof } from "../proof-9SGtq4tE.mjs";
9
+ import { i as verifyProof, n as signObject, r as verifyObject, t as createProof } from "../proof-gNE8tyl0.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";
@@ -2041,7 +2041,10 @@ interface GetSignedKeyOptions {
2041
2041
  */
2042
2042
  interface ActorKeyPair extends CryptoKeyPair {
2043
2043
  /**
2044
- * The URI of the public key, which is used for verifying HTTP Signatures.
2044
+ * The URI of the public key for {@link CryptographicKey}, which is used for
2045
+ * verifying HTTP Signatures and Linked Data Signatures. Note that this is
2046
+ * the ID of the {@link cryptographicKey}, not of the {@link multikey};
2047
+ * the {@link Multikey} instance has a distinct ID of its own.
2045
2048
  */
2046
2049
  readonly keyId: URL;
2047
2050
  /**
@@ -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-VQAKycaZ.mjs";
8
+ import { l as verifyRequest } from "../http-B98y63Kd.mjs";
9
9
  import { i as rsaPrivateKey2 } from "../keys-CtZLJq76.mjs";
10
- import { t as getAuthenticatedDocumentLoader } from "../docloader-35wi0JO1.mjs";
10
+ import { t as getAuthenticatedDocumentLoader } from "../docloader-hJEqcTL7.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-BAEaVRvi.cjs");
4
+ const require_kv_cache = require("../kv-cache-DyDvcvqh.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-QxhhotWv.js";
3
+ import { n as getAuthenticatedDocumentLoader, t as kvCache } from "../kv-cache-CZPQRg2z.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.10",
3
+ "version": "2.0.12",
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.10",
148
- "@fedify/webfinger": "2.0.10",
149
- "@fedify/vocab-runtime": "2.0.10"
147
+ "@fedify/vocab": "2.0.12",
148
+ "@fedify/vocab-runtime": "2.0.12",
149
+ "@fedify/webfinger": "2.0.12"
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.0.10",
162
- "@fedify/fixture": "2.0.0"
161
+ "@fedify/fixture": "2.0.0",
162
+ "@fedify/vocab-tools": "^2.0.12"
163
163
  },
164
164
  "scripts": {
165
165
  "build:self": "tsdown",