@fedify/fedify 2.0.36-dev.2551 → 2.0.36-dev.2637

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 (61) hide show
  1. package/dist/{builder-Dndt590h.mjs → builder-BC3eRIbe.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-D_rTMbAD.mjs → deno-Dv6PIwH_.mjs} +1 -1
  8. package/dist/{docloader-DpTrZ5sA.mjs → docloader-BgHM-JLc.mjs} +2 -2
  9. package/dist/federation/builder.test.mjs +1 -1
  10. package/dist/federation/handler.test.mjs +8 -8
  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 +696 -8
  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-DGD9d8-A.mjs → http-BWoAqky4.mjs} +2 -2
  22. package/dist/{http-BS1CmlZ6.js → http-CrEB4I8A.js} +1 -1
  23. package/dist/{http-DbDnj-Q7.cjs → http-D69BMfAn.cjs} +1 -1
  24. package/dist/{inbox-BwpBTbhH.mjs → inbox-0Dbv0QVc.mjs} +1 -1
  25. package/dist/{key-1Gf85RN1.mjs → key-ChKDZfvS.mjs} +1 -1
  26. package/dist/{kv-cache-BdA7HpfF.cjs → kv-cache-B0JZ30EF.cjs} +1 -1
  27. package/dist/{kv-cache-BARiicPE.js → kv-cache-CDvE8__9.js} +1 -1
  28. package/dist/{ld-BuuOR_Ms.mjs → ld-DbSNiv8Q.mjs} +99 -10
  29. package/dist/{middleware-C5Nypx4Z.mjs → middleware-BA9cM-vz.mjs} +1 -1
  30. package/dist/{middleware-DDM0j-X6.mjs → middleware-C849kmHB.mjs} +160 -29
  31. package/dist/{middleware-CQRCnFB4.js → middleware-CEufJR5k.js} +152 -21
  32. package/dist/{middleware-DThg01d8.cjs → middleware-C_fDk_dx.cjs} +153 -22
  33. package/dist/{middleware-D9TWYyT_.cjs → middleware-DCtCNota.cjs} +1 -1
  34. package/dist/{mod-w1oyHseQ.d.cts → mod-6uJWdCc0.d.cts} +1 -1
  35. package/dist/{mod-DVPS4yam.d.cts → mod-BA6vqC2S.d.cts} +19 -7
  36. package/dist/{mod-BS-jg3Wx.d.ts → mod-CL9Ep0uo.d.ts} +19 -7
  37. package/dist/{mod-I-34OMN3.d.ts → mod-DtRh015i.d.ts} +1 -1
  38. package/dist/mod.cjs +4 -4
  39. package/dist/mod.d.cts +3 -3
  40. package/dist/mod.d.ts +3 -3
  41. package/dist/mod.js +4 -4
  42. package/dist/nodeinfo/handler.test.mjs +1 -1
  43. package/dist/{owner-BI33UeIv.mjs → owner-BJeJfxnT.mjs} +2 -2
  44. package/dist/{proof-GM73LJjx.mjs → proof-CaMBdk_x.mjs} +36 -12
  45. package/dist/{proof-vVwkNRv4.cjs → proof-DNgQwz9E.cjs} +131 -18
  46. package/dist/{proof-BBHUW8ev.js → proof-DwooE8kV.js} +132 -19
  47. package/dist/{send-nImUK91D.mjs → send-CYrAOC1K.mjs} +2 -2
  48. package/dist/sig/http.test.mjs +2 -2
  49. package/dist/sig/key.test.mjs +2 -2
  50. package/dist/sig/ld.test.mjs +198 -4
  51. package/dist/sig/mod.cjs +2 -2
  52. package/dist/sig/mod.d.cts +1 -1
  53. package/dist/sig/mod.d.ts +1 -1
  54. package/dist/sig/mod.js +2 -2
  55. package/dist/sig/owner.test.mjs +1 -1
  56. package/dist/sig/proof.test.mjs +71 -2
  57. package/dist/{temporal-CfNFB7M_.mjs → temporal-BJoGKOXy.mjs} +1 -1
  58. package/dist/utils/docloader.test.mjs +2 -2
  59. package/dist/utils/mod.cjs +1 -1
  60. package/dist/utils/mod.js +1 -1
  61. 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-D_rTMbAD.mjs";
6
- import { t as InboxListenerSet } from "./inbox-BwpBTbhH.mjs";
5
+ import { n as version, t as name } from "./deno-Dv6PIwH_.mjs";
6
+ import { t as InboxListenerSet } from "./inbox-0Dbv0QVc.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-C5Nypx4Z.mjs");
46
+ const { FederationImpl } = await import("./middleware-BA9cM-vz.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-DDM0j-X6.mjs";
7
+ import { _ as autoIdAssigner, g as actorDehydrator, n as FederationImpl } from "../middleware-C849kmHB.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.2551+8b012df4";
6
+ var version = "2.0.36-dev.2637+cc2cd6fb";
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-1Gf85RN1.mjs";
5
- import { r as doubleKnockScoped } from "./http-DGD9d8-A.mjs";
4
+ import { o as validateCryptoKey } from "./key-ChKDZfvS.mjs";
5
+ import { r as doubleKnockScoped } from "./http-BWoAqky4.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-Dndt590h.mjs";
8
+ import { n as createFederationBuilder } from "../builder-BC3eRIbe.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-1Gf85RN1.mjs";
10
- import { c as signRequest } from "../http-DGD9d8-A.mjs";
9
+ import { i as generateCryptoKeyPair } from "../key-ChKDZfvS.mjs";
10
+ import { c as signRequest } from "../http-BWoAqky4.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-BuuOR_Ms.mjs";
13
- import { n as signObject } from "../proof-GM73LJjx.mjs";
12
+ import { a as compactJsonLd, f as signJsonLd } from "../ld-DbSNiv8Q.mjs";
13
+ import { n as signObject } from "../proof-CaMBdk_x.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-DDM0j-X6.mjs";
16
- import { t as InboxListenerSet } from "../inbox-BwpBTbhH.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-C849kmHB.mjs";
16
+ import { t as InboxListenerSet } from "../inbox-0Dbv0QVc.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
@@ -531,8 +531,8 @@ test("handleCollection()", async () => {
531
531
  assertEquals(response.status, 200);
532
532
  assertEquals(response.headers.get("Content-Type"), "application/activity+json");
533
533
  const createCtx = [
534
- "https://w3id.org/identity/v1",
535
534
  "https://www.w3.org/ns/activitystreams",
535
+ "https://w3id.org/security/v1",
536
536
  "https://w3id.org/security/data-integrity/v1",
537
537
  {
538
538
  toot: "http://joinmastodon.org/ns#",
@@ -2821,8 +2821,8 @@ test("handleCustomCollection()", async () => {
2821
2821
  assertEquals(response.status, 200);
2822
2822
  assertEquals(response.headers.get("Content-Type"), "application/activity+json");
2823
2823
  const createCtx = [
2824
- "https://w3id.org/identity/v1",
2825
2824
  "https://www.w3.org/ns/activitystreams",
2825
+ "https://w3id.org/security/v1",
2826
2826
  "https://w3id.org/security/data-integrity/v1",
2827
2827
  {
2828
2828
  toot: "http://joinmastodon.org/ns#",
@@ -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-GM73LJjx.mjs";
7
+ import { n as signObject } from "../proof-CaMBdk_x.mjs";
8
8
  import { t as MemoryKvStore } from "../kv-mI4Ix2EU.mjs";
9
- import { a as createFederation } from "../middleware-DDM0j-X6.mjs";
9
+ import { a as createFederation } from "../middleware-C849kmHB.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-BwpBTbhH.mjs";
6
+ import { n as actorsHaveSameOrigin, t as InboxListenerSet } from "../inbox-0Dbv0QVc.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