@fedify/fedify 2.0.36-dev.2598 → 2.0.36-dev.2647

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 (57) hide show
  1. package/dist/{builder-B5hI5Xsn.mjs → builder-Cv8baeaM.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-lxjaUTAI.d.ts → context-C00pWP8x.d.ts} +6 -0
  6. package/dist/{context-CnoWxuoB.d.cts → context-ao-qb3eP.d.cts} +6 -0
  7. package/dist/{deno--OYa_lxj.mjs → deno-Bk4jrob6.mjs} +1 -1
  8. package/dist/{docloader-BXR2f83H.mjs → docloader-w8xGNWvP.mjs} +2 -2
  9. package/dist/federation/builder.test.mjs +1 -1
  10. package/dist/federation/handler.test.mjs +6 -6
  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 +602 -6
  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/temporal.test.mjs +1 -1
  20. package/dist/federation/webfinger.test.mjs +1 -1
  21. package/dist/{http-CO_IVq7x.cjs → http-B9ZWGTaN.cjs} +1 -1
  22. package/dist/{http-CfyVeGgF.js → http-C1v_vvt4.js} +1 -1
  23. package/dist/{http-C3d2DXwF.mjs → http-CDK9iAjb.mjs} +2 -2
  24. package/dist/{inbox-huUE3IP8.mjs → inbox-DAm48Q_C.mjs} +1 -1
  25. package/dist/{key-D5e9c_yV.mjs → key-C8OKWl8g.mjs} +1 -1
  26. package/dist/{kv-cache-Zw0soD-7.js → kv-cache-B1Y7_B63.js} +1 -1
  27. package/dist/{kv-cache-BMlo_kyv.cjs → kv-cache-BFFwfQPZ.cjs} +1 -1
  28. package/dist/{ld-9qfz9rP_.mjs → ld-gUJKeHbH.mjs} +2 -2
  29. package/dist/{middleware-Ad6kTSBf.cjs → middleware-3t8hmtzt.cjs} +1 -1
  30. package/dist/{middleware-BKs_a9P1.js → middleware-D-DIq_jJ.js} +85 -34
  31. package/dist/{middleware-BhYpLGA_.mjs → middleware-DLxdIffl.mjs} +93 -42
  32. package/dist/{middleware-CT1Lbohd.mjs → middleware-LgcMsPlF.mjs} +1 -1
  33. package/dist/{middleware-CXoG7ZAW.cjs → middleware-_yMwRAE9.cjs} +86 -35
  34. package/dist/{mod-w1oyHseQ.d.cts → mod-6uJWdCc0.d.cts} +1 -1
  35. package/dist/{mod-I-34OMN3.d.ts → mod-DtRh015i.d.ts} +1 -1
  36. package/dist/mod.cjs +4 -4
  37. package/dist/mod.d.cts +2 -2
  38. package/dist/mod.d.ts +2 -2
  39. package/dist/mod.js +4 -4
  40. package/dist/nodeinfo/handler.test.mjs +1 -1
  41. package/dist/{owner-R4ffU9Ht.mjs → owner-BenEndHH.mjs} +2 -2
  42. package/dist/{proof-CiBs9Q4l.mjs → proof-Bo9pmjQJ.mjs} +2 -2
  43. package/dist/{proof-CE8nwTF6.js → proof-BvtZYI3N.js} +1 -1
  44. package/dist/{proof-BrreJTRF.cjs → proof-DF1RSNYg.cjs} +1 -1
  45. package/dist/{send-DpvZgVSA.mjs → send-PTFa5PEa.mjs} +2 -2
  46. package/dist/sig/http.test.mjs +2 -2
  47. package/dist/sig/key.test.mjs +2 -2
  48. package/dist/sig/ld.test.mjs +2 -2
  49. package/dist/sig/mod.cjs +2 -2
  50. package/dist/sig/mod.js +2 -2
  51. package/dist/sig/owner.test.mjs +1 -1
  52. package/dist/sig/proof.test.mjs +2 -2
  53. package/dist/{temporal-Dd-J410Z.mjs → temporal-CNbx4A18.mjs} +1 -1
  54. package/dist/utils/docloader.test.mjs +2 -2
  55. package/dist/utils/mod.cjs +1 -1
  56. package/dist/utils/mod.js +1 -1
  57. package/package.json +5 -5
@@ -2,8 +2,8 @@ import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
4
  import { n as RouterError, t as Router } from "./router-CrMLXoOr.mjs";
5
- import { n as version, t as name } from "./deno--OYa_lxj.mjs";
6
- import { t as InboxListenerSet } from "./inbox-huUE3IP8.mjs";
5
+ import { n as version, t as name } from "./deno-Bk4jrob6.mjs";
6
+ import { t as InboxListenerSet } from "./inbox-DAm48Q_C.mjs";
7
7
  import { getTypeId } from "@fedify/vocab";
8
8
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
9
9
  import { getLogger } from "@logtape/logtape";
@@ -43,7 +43,7 @@ var FederationBuilderImpl = class {
43
43
  this.collectionTypeIds = {};
44
44
  }
45
45
  async build(options) {
46
- const { FederationImpl } = await import("./middleware-CT1Lbohd.mjs");
46
+ const { FederationImpl } = await import("./middleware-LgcMsPlF.mjs");
47
47
  const f = new FederationImpl(options);
48
48
  const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
49
49
  f.router = this.router.clone();
@@ -1,5 +1,5 @@
1
1
  /// <reference lib="esnext.temporal" />
2
- import { bt as ActivityTransformer, n as Context } from "../context-CnoWxuoB.cjs";
2
+ import { bt as ActivityTransformer, n as Context } from "../context-ao-qb3eP.cjs";
3
3
  import { Activity } from "@fedify/vocab";
4
4
 
5
5
  //#region src/compat/transformers.d.ts
@@ -1,5 +1,5 @@
1
1
  /// <reference lib="esnext.temporal" />
2
- import { bt as ActivityTransformer, n as Context } from "../context-lxjaUTAI.js";
2
+ import { bt as ActivityTransformer, n as Context } from "../context-C00pWP8x.js";
3
3
  import { Activity } from "@fedify/vocab";
4
4
 
5
5
  //#region src/compat/transformers.d.ts
@@ -4,7 +4,7 @@ globalThis.addEventListener = () => {};
4
4
  import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
5
5
  import { n as assertInstanceOf, t as assert } from "../assert-BhQd8QHP.mjs";
6
6
  import { t as MemoryKvStore } from "../kv-mI4Ix2EU.mjs";
7
- import { _ as autoIdAssigner, g as actorDehydrator, n as FederationImpl } from "../middleware-BhYpLGA_.mjs";
7
+ import { _ as autoIdAssigner, g as actorDehydrator, n as FederationImpl } from "../middleware-DLxdIffl.mjs";
8
8
  import { test } from "@fedify/fixture";
9
9
  import { Follow, Person } from "@fedify/vocab";
10
10
  //#region src/compat/transformers.test.ts
@@ -1362,6 +1362,12 @@ interface FederationOptions<TContextData> {
1362
1362
  *
1363
1363
  * By default, the queue starts automatically.
1364
1364
  *
1365
+ * Automatic startup is best-effort: if a queue cannot start listening,
1366
+ * a warning is logged once per federation instance and the failed worker is
1367
+ * not retried, while an explicit {@link Federation.startQueue} call rejects.
1368
+ * Runtimes that consume the queue elsewhere, such as Cloudflare Workers with
1369
+ * {@link Federation.processQueuedTask}, should set this to `true`.
1370
+ *
1365
1371
  * @since 0.12.0
1366
1372
  */
1367
1373
  manuallyStartQueue?: boolean;
@@ -1362,6 +1362,12 @@ interface FederationOptions<TContextData> {
1362
1362
  *
1363
1363
  * By default, the queue starts automatically.
1364
1364
  *
1365
+ * Automatic startup is best-effort: if a queue cannot start listening,
1366
+ * a warning is logged once per federation instance and the failed worker is
1367
+ * not retried, while an explicit {@link Federation.startQueue} call rejects.
1368
+ * Runtimes that consume the queue elsewhere, such as Cloudflare Workers with
1369
+ * {@link Federation.processQueuedTask}, should set this to `true`.
1370
+ *
1365
1371
  * @since 0.12.0
1366
1372
  */
1367
1373
  manuallyStartQueue?: boolean;
@@ -3,6 +3,6 @@ import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
4
  //#region deno.json
5
5
  var name = "@fedify/fedify";
6
- var version = "2.0.36-dev.2598+90504ae2";
6
+ var version = "2.0.36-dev.2647+2864b09d";
7
7
  //#endregion
8
8
  export { version as n, name as t };
@@ -1,8 +1,8 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { o as validateCryptoKey } from "./key-D5e9c_yV.mjs";
5
- import { r as doubleKnockScoped } from "./http-C3d2DXwF.mjs";
4
+ import { o as validateCryptoKey } from "./key-C8OKWl8g.mjs";
5
+ import { r as doubleKnockScoped } from "./http-CDK9iAjb.mjs";
6
6
  import { curry } from "es-toolkit";
7
7
  import { FetchError, UrlError, createActivityPubRequest, getRemoteDocument, logRequest } from "@fedify/vocab-runtime";
8
8
  import { openDirectFetch, openPublicFetch } from "@fedify/vocab-runtime/internal";
@@ -5,7 +5,7 @@ import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
5
5
  import { i as assertExists, n as assertStrictEquals } from "../std__assert-DflMZha5.mjs";
6
6
  import { t as assertThrows } from "../assert_throws-D4DNWrux.mjs";
7
7
  import { t as MemoryKvStore } from "../kv-mI4Ix2EU.mjs";
8
- import { n as createFederationBuilder } from "../builder-B5hI5Xsn.mjs";
8
+ import { n as createFederationBuilder } from "../builder-Cv8baeaM.mjs";
9
9
  import { test } from "@fedify/fixture";
10
10
  import { Activity, Note, Person } from "@fedify/vocab";
11
11
  //#region src/federation/builder.test.ts
@@ -6,14 +6,14 @@ import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
6
6
  import "../std__assert-DflMZha5.mjs";
7
7
  import { t as assert } from "../assert-BhQd8QHP.mjs";
8
8
  import { t as assertRejects } from "../assert_rejects-WyYSTDDX.mjs";
9
- import { i as generateCryptoKeyPair } from "../key-D5e9c_yV.mjs";
10
- import { c as signRequest } from "../http-C3d2DXwF.mjs";
9
+ import { i as generateCryptoKeyPair } from "../key-C8OKWl8g.mjs";
10
+ import { c as signRequest } from "../http-CDK9iAjb.mjs";
11
11
  import { a as rsaPrivateKey3, c as rsaPublicKey3, n as ed25519PrivateKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-CCxRJhWa.mjs";
12
- import { a as compactJsonLd, f as signJsonLd } from "../ld-9qfz9rP_.mjs";
13
- import { n as signObject } from "../proof-CiBs9Q4l.mjs";
12
+ import { a as compactJsonLd, f as signJsonLd } from "../ld-gUJKeHbH.mjs";
13
+ import { n as signObject } from "../proof-Bo9pmjQJ.mjs";
14
14
  import { t as MemoryKvStore } from "../kv-mI4Ix2EU.mjs";
15
- import { a as createFederation, c as handleCollection, d as handleObject, f as respondWithObject, l as handleCustomCollection, p as respondWithObjectIfAcceptable, s as handleActor, u as handleInbox } from "../middleware-BhYpLGA_.mjs";
16
- import { t as InboxListenerSet } from "../inbox-huUE3IP8.mjs";
15
+ import { a as createFederation, c as handleCollection, d as handleObject, f as respondWithObject, l as handleCustomCollection, p as respondWithObjectIfAcceptable, s as handleActor, u as handleInbox } from "../middleware-DLxdIffl.mjs";
16
+ import { t as InboxListenerSet } from "../inbox-DAm48Q_C.mjs";
17
17
  import { createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
18
18
  import { Create, CryptographicKey, Multikey, Note, Person } from "@fedify/vocab";
19
19
  //#region src/federation/handler.test.ts
@@ -4,9 +4,9 @@ globalThis.addEventListener = () => {};
4
4
  import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
5
5
  import "../std__assert-DflMZha5.mjs";
6
6
  import { n as ed25519PrivateKey, r as ed25519PublicKey, t as ed25519Multikey } from "../keys-CCxRJhWa.mjs";
7
- import { n as signObject } from "../proof-CiBs9Q4l.mjs";
7
+ import { n as signObject } from "../proof-Bo9pmjQJ.mjs";
8
8
  import { t as MemoryKvStore } from "../kv-mI4Ix2EU.mjs";
9
- import { a as createFederation } from "../middleware-BhYpLGA_.mjs";
9
+ import { a as createFederation } from "../middleware-DLxdIffl.mjs";
10
10
  import { mockDocumentLoader, test } from "@fedify/fixture";
11
11
  import { Create, Follow, Person } from "@fedify/vocab";
12
12
  //#region src/federation/idempotency.test.ts
@@ -3,7 +3,7 @@ import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
4
  import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
5
5
  import { r as assertFalse, t as assertThrows } from "../assert_throws-D4DNWrux.mjs";
6
- import { n as actorsHaveSameOrigin, t as InboxListenerSet } from "../inbox-huUE3IP8.mjs";
6
+ import { n as actorsHaveSameOrigin, t as InboxListenerSet } from "../inbox-DAm48Q_C.mjs";
7
7
  import { test } from "@fedify/fixture";
8
8
  import { Activity, Create, Invite, Offer, Update } from "@fedify/vocab";
9
9
  //#region src/federation/inbox.test.ts