@fedify/fedify 2.4.0-dev.2219 → 2.4.0-dev.2228

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 (73) hide show
  1. package/dist/{builder-C5rYBZ16.mjs → builder-Wx64uCV2.mjs} +2 -2
  2. package/dist/compat/transformers.test.mjs +1 -1
  3. package/dist/{compound-proof-D0xY7MBs.mjs → compound-proof-B647GUyL.mjs} +2 -2
  4. package/dist/{deno-Dj1TFhf4.mjs → deno-9flirCWb.mjs} +1 -1
  5. package/dist/{docloader-CzyJe90o.mjs → docloader-pjAbs1lc.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/hashlink-media.test.mjs +2 -2
  11. package/dist/federation/idempotency.test.mjs +2 -2
  12. package/dist/federation/metrics.test.mjs +1 -1
  13. package/dist/federation/middleware.test.mjs +7 -7
  14. package/dist/federation/mod.cjs +1 -1
  15. package/dist/federation/mod.js +1 -1
  16. package/dist/federation/outgoing-proof.test.mjs +248 -6
  17. package/dist/federation/portable-actor.test.mjs +3 -3
  18. package/dist/federation/portable-chain.test.mjs +3 -3
  19. package/dist/federation/portable-collection.test.mjs +4 -4
  20. package/dist/federation/portable-delivery.test.mjs +2 -2
  21. package/dist/federation/portable-gateway-keys.test.mjs +4 -4
  22. package/dist/federation/portable-inbox.test.mjs +4 -4
  23. package/dist/federation/portable-parse-uri.test.mjs +1 -1
  24. package/dist/federation/portable-route-activity.test.mjs +2 -2
  25. package/dist/federation/portable.test.mjs +80 -3
  26. package/dist/federation/send.test.mjs +3 -3
  27. package/dist/federation/tasks/enqueue.test.mjs +1 -1
  28. package/dist/federation/tasks/tasks.test.mjs +2 -2
  29. package/dist/federation/temporal.test.mjs +1 -1
  30. package/dist/federation/webfinger.test.mjs +1 -1
  31. package/dist/{federation-DC1yfb-8.cjs → federation-DiycMKQx.cjs} +245 -30
  32. package/dist/{http-Dx7yMmfw.js → http-CHqz_Jp6.js} +1 -1
  33. package/dist/{http-Cuk0w0rp.cjs → http-DC5DyShJ.cjs} +1 -1
  34. package/dist/{http-D-DpP4sd.mjs → http-DysQjjJe.mjs} +4 -4
  35. package/dist/{key-Djyt1BFx.mjs → key-TtgqklZ1.mjs} +2 -2
  36. package/dist/{kv-cache-ecUXfCqW.mjs → kv-cache-B7g5Tvl0.mjs} +1 -1
  37. package/dist/{kv-cache-CUZOCSKZ.js → kv-cache-CgYK8siN.js} +1 -1
  38. package/dist/{kv-cache-BmLTVLXc.cjs → kv-cache-CsNDrjVT.cjs} +1 -1
  39. package/dist/{ld-CNVWdooi.mjs → ld-CHYUee-s.mjs} +3 -3
  40. package/dist/{metrics-BnYleVpg.mjs → metrics-X1lpKWRK.mjs} +1 -1
  41. package/dist/{middleware-BdzcazaN.js → middleware-D2scpP9Q.js} +245 -30
  42. package/dist/{middleware-C2_LcbL3.mjs → middleware-DoAk0Q3s.mjs} +242 -27
  43. package/dist/{middleware-Bh592bk8.mjs → middleware-ndPtgYYI.mjs} +1 -1
  44. package/dist/mod.cjs +4 -4
  45. package/dist/mod.js +4 -4
  46. package/dist/nodeinfo/handler.test.mjs +1 -1
  47. package/dist/{owner-D_BDPwm2.mjs → owner-BP_ouAvi.mjs} +3 -3
  48. package/dist/{portable-collection-C0c0rUN9.js → portable-collection-4SnmDcTc.js} +1 -1
  49. package/dist/{portable-collection-DwJ8YJP2.cjs → portable-collection-Cz9K1Tas.cjs} +1 -1
  50. package/dist/{portable-collection-hcONGyUs.mjs → portable-collection-SqxusPj7.mjs} +2 -2
  51. package/dist/{portable-key-B880yVlC.mjs → portable-key-DYr6MZUl.mjs} +1 -1
  52. package/dist/{proof-z6Prgi5I.mjs → proof-B-iLzyva.mjs} +4 -4
  53. package/dist/{send-Cw545L_2.mjs → send-D0nNms3Q.mjs} +3 -3
  54. package/dist/sig/compound-proof-discovery.test.mjs +1 -1
  55. package/dist/sig/compound-proof-producer.test.mjs +1 -1
  56. package/dist/sig/compound-proof-verification.test.mjs +2 -2
  57. package/dist/sig/compound-proof.test.mjs +2 -2
  58. package/dist/sig/http.test.mjs +2 -2
  59. package/dist/sig/key.test.mjs +1 -1
  60. package/dist/sig/ld.test.mjs +2 -2
  61. package/dist/sig/mod.cjs +2 -2
  62. package/dist/sig/mod.js +2 -2
  63. package/dist/sig/owner.test.mjs +1 -1
  64. package/dist/sig/portable-collection.test.mjs +1 -1
  65. package/dist/sig/portable-key.test.mjs +6 -6
  66. package/dist/sig/proof.test.mjs +5 -3
  67. package/dist/{temporal-Cy-8WCod.mjs → temporal-39Ixir8d.mjs} +1 -1
  68. package/dist/testing/kv.test.mjs +1 -1
  69. package/dist/utils/docloader.test.mjs +2 -2
  70. package/dist/utils/kv-cache.test.mjs +1 -1
  71. package/dist/utils/mod.cjs +1 -1
  72. package/dist/utils/mod.js +1 -1
  73. package/package.json +7 -7
@@ -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-D_BDPwm2.mjs";
9
+ import { n as getKeyOwner, t as doesActorOwnKey } from "../owner-BP_ouAvi.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
@@ -2,7 +2,7 @@ import "temporal-polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
4
  import { n as ed25519PrivateKey, r as ed25519PublicKey } from "../keys-DIJNHW-Y.mjs";
5
- import { t as verifyPortableObject } from "../portable-collection-hcONGyUs.mjs";
5
+ import { t as verifyPortableObject } from "../portable-collection-SqxusPj7.mjs";
6
6
  import { Collection, CollectionPage, Note, OrderedCollection, Person, traverseCollection } from "@fedify/vocab";
7
7
  import { FetchError, encodeMultibase, exportDidKey, preloadedContexts } from "@fedify/vocab-runtime";
8
8
  import { test } from "@fedify/fixture";
@@ -2,13 +2,13 @@ import { Temporal } from "temporal-polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
4
  import { t as MemoryKvStore } from "../kv-DCHkaJ9-.mjs";
5
- import { a as fetchKeyDetailed, i as fetchKey } from "../key-Djyt1BFx.mjs";
6
- import { h as verifyJsonLd, p as signJsonLd } from "../ld-CNVWdooi.mjs";
7
- import { d as verifyProof, r as createProof } from "../proof-z6Prgi5I.mjs";
8
- import { n as resolvePortableActorKey } from "../portable-key-B880yVlC.mjs";
9
- import { f as verifyRequest, l as signRequest, p as verifyRequestDetailed } from "../http-D-DpP4sd.mjs";
5
+ import { a as fetchKeyDetailed, i as fetchKey } from "../key-TtgqklZ1.mjs";
6
+ import { h as verifyJsonLd, p as signJsonLd } from "../ld-CHYUee-s.mjs";
7
+ import { d as verifyProof, r as createProof } from "../proof-B-iLzyva.mjs";
8
+ import { n as resolvePortableActorKey } from "../portable-key-DYr6MZUl.mjs";
9
+ import { f as verifyRequest, l as signRequest, p as verifyRequestDetailed } from "../http-DysQjjJe.mjs";
10
10
  import { a as rsaPrivateKey3, c as rsaPublicKey3, i as rsaPrivateKey2, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2 } from "../keys-DIJNHW-Y.mjs";
11
- import { n as getKeyOwner, t as doesActorOwnKey } from "../owner-D_BDPwm2.mjs";
11
+ import { n as getKeyOwner, t as doesActorOwnKey } from "../owner-BP_ouAvi.mjs";
12
12
  import { t as KvKeyCache } from "../keycache-Da8A8mZa.mjs";
13
13
  import { Create, CryptographicKey, Multikey, Note, Person } from "@fedify/vocab";
14
14
  import { FetchError, encodeMultibase, exportDidKey, exportSpki, parseIri, preloadedContexts } from "@fedify/vocab-runtime";
@@ -10,10 +10,10 @@ import "../std__assert-DvMDRPes.mjs";
10
10
  import { t as assertRejects } from "../assert_rejects-CTptdYck.mjs";
11
11
  import { t as assert } from "../assert-D1Eafmd_.mjs";
12
12
  import { r as normalizeOutgoingActivityJsonLd } from "../outgoing-jsonld-4IJqPYos.mjs";
13
- import { a as signObject, c as verifyPortableObjectProof, d as verifyProof, i as hasProofLike, r as createProof, s as verifyObject } from "../proof-z6Prgi5I.mjs";
14
- import { f as verifyRequest } from "../http-D-DpP4sd.mjs";
13
+ import { a as signObject, c as verifyPortableObjectProof, d as verifyProof, i as hasProofLike, r as createProof, s as verifyObject } from "../proof-B-iLzyva.mjs";
14
+ import { f as verifyRequest } from "../http-DysQjjJe.mjs";
15
15
  import { i as rsaPrivateKey2, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-DIJNHW-Y.mjs";
16
- import { t as getAuthenticatedDocumentLoader } from "../docloader-CzyJe90o.mjs";
16
+ import { t as getAuthenticatedDocumentLoader } from "../docloader-pjAbs1lc.mjs";
17
17
  import { Create, DataIntegrityProof, Document, Multikey, Note, PUBLIC_COLLECTION, Place, Translation } from "@fedify/vocab";
18
18
  import { decodeMultibase, encodeMultibase, exportDidKey, exportMultibaseKey, formatIri, importMultibaseKey, parseIri } from "@fedify/vocab-runtime";
19
19
  import { createTestMeterProvider, mockDocumentLoader, test } from "@fedify/fixture";
@@ -976,7 +976,9 @@ test("verifyPortableObjectProof()", async (t) => {
976
976
  { gateways: [] },
977
977
  { gateways: ["https://gateway.example/path"] },
978
978
  { gateways: ["https://gateway.example/?query"] },
979
+ { gateways: ["https://gateway.example/?"] },
979
980
  { gateways: ["https://gateway.example/#fragment"] },
981
+ { gateways: ["https://gateway.example/#"] },
980
982
  { gateways: ["ftp://gateway.example"] },
981
983
  { gateways: ["https://user:password@gateway.example"] },
982
984
  { gateways: ["gateway.example"] },
@@ -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-CNVWdooi.mjs";
4
+ import { c as getNormalizationContextLoader } from "./ld-CHYUee-s.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-C2_LcbL3.mjs";
9
+ import { o as createFederation } from "../middleware-DoAk0Q3s.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 { f as verifyRequest } from "../http-D-DpP4sd.mjs";
8
+ import { f as verifyRequest } from "../http-DysQjjJe.mjs";
9
9
  import { i as rsaPrivateKey2 } from "../keys-DIJNHW-Y.mjs";
10
- import { t as getAuthenticatedDocumentLoader } from "../docloader-CzyJe90o.mjs";
10
+ import { t as getAuthenticatedDocumentLoader } from "../docloader-pjAbs1lc.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-ecUXfCqW.mjs";
4
+ import { n as kvCache, t as MockKvStore } from "../kv-cache-B7g5Tvl0.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-BmLTVLXc.cjs");
3
+ const require_kv_cache = require("../kv-cache-CsNDrjVT.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-CUZOCSKZ.js";
3
+ import { n as getAuthenticatedDocumentLoader, t as kvCache } from "../kv-cache-CgYK8siN.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.2219+eb70f060",
3
+ "version": "2.4.0-dev.2228+6d017d55",
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/uri-template": "2.4.0-dev.2219+eb70f060",
155
- "@fedify/vocab": "2.4.0-dev.2219+eb70f060",
156
- "@fedify/vocab-runtime": "2.4.0-dev.2219+eb70f060",
157
- "@fedify/webfinger": "2.4.0-dev.2219+eb70f060"
154
+ "@fedify/uri-template": "2.4.0-dev.2228+6d017d55",
155
+ "@fedify/vocab": "2.4.0-dev.2228+6d017d55",
156
+ "@fedify/vocab-runtime": "2.4.0-dev.2228+6d017d55",
157
+ "@fedify/webfinger": "2.4.0-dev.2228+6d017d55"
158
158
  },
159
159
  "devDependencies": {
160
160
  "@std/assert": "npm:@jsr/std__assert@^0.226.0",
@@ -166,8 +166,8 @@
166
166
  "tsx": "^4.21.0",
167
167
  "typescript": "^6.0.0",
168
168
  "wrangler": "^4.17.0",
169
- "@fedify/vocab-tools": "^2.4.0-dev.2219+eb70f060",
170
- "@fedify/fixture": "2.0.0"
169
+ "@fedify/fixture": "2.0.0",
170
+ "@fedify/vocab-tools": "^2.4.0-dev.2228+6d017d55"
171
171
  },
172
172
  "scripts": {
173
173
  "build:self": "tsdown",