@fedify/fedify 2.4.0-pr.934.40 → 2.4.0-pr.936.41

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 (70) hide show
  1. package/README.md +0 -3
  2. package/dist/{builder-BBPwtB2v.mjs → builder-DonuxRl_.mjs} +2 -2
  3. package/dist/compat/mod.d.cts +1 -1
  4. package/dist/compat/mod.d.ts +1 -1
  5. package/dist/compat/transformers.test.mjs +1 -1
  6. package/dist/{context-Cjnr0ig1.d.ts → context-Zii1f5xS.d.ts} +1 -1
  7. package/dist/{context-C05Rgxmu.d.cts → context-lxX6I7as.d.cts} +1 -1
  8. package/dist/{deno-D3c0o_N0.mjs → deno-BHzKn9Ig.mjs} +1 -1
  9. package/dist/{docloader-BCecHIxU.mjs → docloader-e1khNUKy.mjs} +2 -2
  10. package/dist/federation/builder.test.mjs +1 -1
  11. package/dist/federation/handler.test.mjs +5 -3
  12. package/dist/federation/idempotency.test.mjs +2 -2
  13. package/dist/federation/metrics.test.mjs +1 -1
  14. package/dist/federation/middleware.test.mjs +7 -7
  15. package/dist/federation/mod.cjs +9 -288
  16. package/dist/federation/mod.d.cts +3 -3
  17. package/dist/federation/mod.d.ts +3 -3
  18. package/dist/federation/mod.js +1 -279
  19. package/dist/federation/mq.test.mjs +1 -20
  20. package/dist/federation/send.test.mjs +3 -3
  21. package/dist/federation/tasks/enqueue.test.mjs +2 -39
  22. package/dist/federation/tasks/tasks.test.mjs +3 -3
  23. package/dist/federation/temporal.test.mjs +1 -1
  24. package/dist/federation/webfinger.test.mjs +1 -1
  25. package/dist/{http-Dm0JAUa_.mjs → http-CPVMUgsW.mjs} +3 -3
  26. package/dist/{http-Ctb_KhZ8.js → http-CsmQ-BQ4.js} +1 -1
  27. package/dist/{http-jr0TkgZe.cjs → http-hlIjmewS.cjs} +1 -1
  28. package/dist/{key-C_gNKtxm.mjs → key-DfPsX8hv.mjs} +2 -2
  29. package/dist/{kv-cache-BxUZRBC2.js → kv-cache-5bnX3-Jq.js} +1 -1
  30. package/dist/{kv-cache-D-hbjJAD.cjs → kv-cache-DQ29C4XL.cjs} +1 -1
  31. package/dist/{kv-cache-B7H7lZ84.mjs → kv-cache-KyGqJqSp.mjs} +1 -1
  32. package/dist/{ld-DAPAVL_7.mjs → ld-Cj9F_5AP.mjs} +3 -3
  33. package/dist/{metrics-DN13mCAw.d.cts → metrics-CoUJLQhZ.d.cts} +1 -19
  34. package/dist/{metrics-BMaatuZi.mjs → metrics-DMk-nTxI.mjs} +1 -1
  35. package/dist/{metrics-v_e0n5GQ.d.ts → metrics-Dc4jR-IC.d.ts} +1 -19
  36. package/dist/{middleware-DfPBAh9L.mjs → middleware-CEctxBN6.mjs} +1 -1
  37. package/dist/{middleware-O2LHXFEk.mjs → middleware-CvwTUgnP.mjs} +15 -14
  38. package/dist/{middleware-BW7WQltk.cjs → middleware-FrSMAYEx.cjs} +325 -40
  39. package/dist/{middleware-CfZR_riY.js → middleware-Y-kpsp6S.js} +278 -6
  40. package/dist/{mod-BrpVsSfY.d.cts → mod-BtEaIEcD.d.cts} +1 -1
  41. package/dist/{mod-BsCE5Ihq.d.ts → mod-DLc2Ot6f.d.ts} +1 -1
  42. package/dist/{mod-CNef4in0.d.ts → mod-UMmveiO0.d.ts} +1 -1
  43. package/dist/{mod-DdONo-ep.d.cts → mod-gOlPDuT8.d.cts} +1 -1
  44. package/dist/mod.cjs +6 -6
  45. package/dist/mod.d.cts +4 -4
  46. package/dist/mod.d.ts +4 -4
  47. package/dist/mod.js +5 -5
  48. package/dist/{mq-Bo7Etgh6.mjs → mq-llHKivST.mjs} +0 -6
  49. package/dist/nodeinfo/handler.test.mjs +1 -1
  50. package/dist/{owner-Dcx-czqn.mjs → owner-Br9YYzn_.mjs} +2 -2
  51. package/dist/{proof-BkAxvrjt.mjs → proof-B4ngoaNQ.mjs} +3 -3
  52. package/dist/{proof-D-H_PnJW.js → proof-B6E0XUXJ.js} +1 -1
  53. package/dist/{proof-NY0D8Oux.cjs → proof-NN4xCQGL.cjs} +1 -1
  54. package/dist/{send-D_j7E-oC.mjs → send-CxHKUNzv.mjs} +3 -3
  55. package/dist/sig/http.test.mjs +2 -2
  56. package/dist/sig/key.test.mjs +1 -1
  57. package/dist/sig/ld.test.mjs +2 -2
  58. package/dist/sig/mod.cjs +2 -2
  59. package/dist/sig/mod.js +2 -2
  60. package/dist/sig/owner.test.mjs +1 -1
  61. package/dist/sig/proof.test.mjs +1 -1
  62. package/dist/{temporal-yE5EcfNX.mjs → temporal-fsXO5IvD.mjs} +1 -1
  63. package/dist/testing/mod.d.mts +1 -14
  64. package/dist/utils/docloader.test.mjs +2 -2
  65. package/dist/utils/kv-cache.test.mjs +1 -1
  66. package/dist/utils/mod.cjs +1 -1
  67. package/dist/utils/mod.d.cts +1 -1
  68. package/dist/utils/mod.d.ts +1 -1
  69. package/dist/utils/mod.js +1 -1
  70. package/package.json +7 -7
@@ -8,7 +8,7 @@ import { t as assertInstanceOf } from "../assert_instance_of-Q9KTBnrf.mjs";
8
8
  import { t as assert } from "../assert-CJ1KXcvv.mjs";
9
9
  import { i as rsaPrivateKey2, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-Dbyd7bhl.mjs";
10
10
  import { r as normalizeOutgoingActivityJsonLd } from "../outgoing-jsonld-URuqsICz.mjs";
11
- import { a as verifyProof, i as verifyObject, n as hasProofLike, r as signObject, t as createProof } from "../proof-BkAxvrjt.mjs";
11
+ import { a as verifyProof, i as verifyObject, n as hasProofLike, r as signObject, t as createProof } from "../proof-B4ngoaNQ.mjs";
12
12
  import { Create, DataIntegrityProof, Document, Multikey, Note, PUBLIC_COLLECTION, Place } from "@fedify/vocab";
13
13
  import { createTestMeterProvider, mockDocumentLoader, test } from "@fedify/fixture";
14
14
  import { decodeMultibase, exportDidKey, exportMultibaseKey, importMultibaseKey, parseIri } 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-DAPAVL_7.mjs";
4
+ import { c as getNormalizationContextLoader } from "./ld-Cj9F_5AP.mjs";
5
5
  import jsonld from "@fedify/vocab-runtime/jsonld";
6
6
  //#region src/federation/temporal.ts
7
7
  function isPlainObject(value) {
@@ -897,17 +897,6 @@ interface MessageQueue {
897
897
  * @since 2.4.0
898
898
  */
899
899
  readonly nativeDeduplication?: boolean;
900
- /**
901
- * Whether {@link enqueueMany} accepts either every message or no messages.
902
- * Backends that implement `enqueueMany()` by sending messages individually
903
- * must set this to `false`, so Fedify does not use that method for a batch
904
- * governed by one `deduplicationKey`. `true` by default when `enqueueMany`
905
- * is implemented.
906
- *
907
- * @default `true`
908
- * @since 2.4.0
909
- */
910
- readonly atomicEnqueueMany?: boolean;
911
900
  /**
912
901
  * Enqueues a message in the queue.
913
902
  * @param message The message to enqueue.
@@ -917,9 +906,7 @@ interface MessageQueue {
917
906
  /**
918
907
  * Enqueues multiple messages in the queue. This operation is optional,
919
908
  * and may not be supported by all implementations. If not supported,
920
- * Fedify will invoke {@link enqueue} for each message. An implementation
921
- * that may accept only part of a batch before rejecting must declare
922
- * {@link atomicEnqueueMany} `false`.
909
+ * Fedify will invoke {@link enqueue} for each message.
923
910
  *
924
911
  * @param messages The messages to enqueue.
925
912
  * @param options Additional options for enqueuing the messages.
@@ -5,9 +5,9 @@ import { t as esm_default } from "../esm-yYQfPhIY.mjs";
5
5
  import { t as assertEquals } from "../assert_equals-BV7oLMxm.mjs";
6
6
  import "../std__assert-B2NnY9bq.mjs";
7
7
  import { t as assertRejects } from "../assert_rejects-EgstcQy5.mjs";
8
- import { l as verifyRequest } from "../http-Dm0JAUa_.mjs";
8
+ import { l as verifyRequest } from "../http-CPVMUgsW.mjs";
9
9
  import { i as rsaPrivateKey2 } from "../keys-Dbyd7bhl.mjs";
10
- import { t as getAuthenticatedDocumentLoader } from "../docloader-BCecHIxU.mjs";
10
+ import { t as getAuthenticatedDocumentLoader } from "../docloader-e1khNUKy.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,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-B7H7lZ84.mjs";
4
+ import { n as kvCache, t as MockKvStore } from "../kv-cache-KyGqJqSp.mjs";
5
5
  import { deepStrictEqual, throws } from "node:assert";
6
6
  import { createTestMeterProvider, mockDocumentLoader, test } from "@fedify/fixture";
7
7
  import { preloadedContexts } from "@fedify/vocab-runtime";
@@ -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-D-hbjJAD.cjs");
3
+ const require_kv_cache = require("../kv-cache-DQ29C4XL.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-BrpVsSfY.cjs";
2
+ import { n as getAuthenticatedDocumentLoader, t as kvCache } from "../mod-BtEaIEcD.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-CNef4in0.js";
2
+ import { n as getAuthenticatedDocumentLoader, t as kvCache } from "../mod-UMmveiO0.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-BxUZRBC2.js";
3
+ import { n as getAuthenticatedDocumentLoader, t as kvCache } from "../kv-cache-5bnX3-Jq.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-pr.934.40+3331d302",
3
+ "version": "2.4.0-pr.936.41+59c7432c",
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-pr.934.40+3331d302",
155
- "@fedify/vocab": "2.4.0-pr.934.40+3331d302",
156
- "@fedify/webfinger": "2.4.0-pr.934.40+3331d302",
157
- "@fedify/vocab-runtime": "2.4.0-pr.934.40+3331d302"
154
+ "@fedify/uri-template": "2.4.0-pr.936.41+59c7432c",
155
+ "@fedify/vocab-runtime": "2.4.0-pr.936.41+59c7432c",
156
+ "@fedify/webfinger": "2.4.0-pr.936.41+59c7432c",
157
+ "@fedify/vocab": "2.4.0-pr.936.41+59c7432c"
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-pr.934.40+3331d302",
170
- "@fedify/fixture": "2.0.0"
169
+ "@fedify/fixture": "2.0.0",
170
+ "@fedify/vocab-tools": "^2.4.0-pr.936.41+59c7432c"
171
171
  },
172
172
  "scripts": {
173
173
  "build:self": "tsdown",