@fedify/fedify 1.6.1-dev.880 → 1.6.1-dev.883

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 (119) hide show
  1. package/dist/{actor-DvmEmDn9.js → actor-CwAL6Q82.js} +180 -180
  2. package/dist/{actor-DIk6hH_U.js → actor-DezwbbQX.js} +3 -3
  3. package/dist/{actor-f67C7yQD.d.ts → actor-tT_B0pDn.d.ts} +5 -8
  4. package/dist/{assert-Dv75vaGI.js → assert-YJk-1DlZ.js} +1 -1
  5. package/dist/{assert_equals-ClvzlhZu.js → assert_equals-Dnj7ejjL.js} +16 -9
  6. package/dist/{assert_instance_of--9UCVKsi.js → assert_instance_of-DBIoG5k7.js} +1 -1
  7. package/dist/{assert_is_error-D162gXcM.js → assert_is_error-jyzqjHud.js} +1 -1
  8. package/dist/{assert_not_equals-Cyf5m9Ke.js → assert_not_equals-wx-SRs4i.js} +1 -1
  9. package/dist/{assert_rejects-FOHCtlD2.js → assert_rejects-BZjUwo62.js} +2 -2
  10. package/dist/{assert_throws-CRfQJvVx.js → assert_throws-gBPv3v2V.js} +2 -2
  11. package/dist/{authdocloader-B3ME-k-0.js → authdocloader-C-_Lr-KH.js} +3 -3
  12. package/dist/{authdocloader-Bt52x-cz.js → authdocloader-Df1y1MKv.js} +4 -4
  13. package/dist/{builder-DT_CjHJM.js → builder-C8tsk_Xe.js} +3 -3
  14. package/dist/{client-Dw1pCSIt.d.ts → client-Cd552pKL.d.ts} +6 -9
  15. package/dist/{client-CSQzJhcr.js → client-CwjvB-Dh.js} +1 -1
  16. package/dist/{collection-QaGK9TVn.js → collection-Dfb0TPno.js} +1 -1
  17. package/dist/compat/mod.d.ts +12 -12
  18. package/dist/compat/mod.js +1 -1
  19. package/dist/compat/transformers.test.js +21 -21
  20. package/dist/{context-DBM4y1xF.d.ts → context-DRhhOsMk.d.ts} +12 -28
  21. package/dist/{context-DaUJ8XgG.js → context-DfToVZY6.js} +2 -2
  22. package/dist/{docloader-BesQV-nU.js → docloader-BFRgyDAa.js} +1 -2
  23. package/dist/{docloader-DdQSFoDK.js → docloader-BXc5egq6.js} +1 -2
  24. package/dist/{docloader-DTRsVZPo.d.ts → docloader-DlUDOVSe.d.ts} +4 -7
  25. package/dist/{esm-BxIKwi-M.js → esm-Btx3E8og.js} +1 -1
  26. package/dist/federation/builder.test.js +12 -12
  27. package/dist/federation/collection.test.js +9 -9
  28. package/dist/federation/handler.test.js +28 -28
  29. package/dist/federation/inbox.test.js +6 -6
  30. package/dist/federation/keycache.test.js +6 -6
  31. package/dist/federation/kv.test.js +8 -8
  32. package/dist/federation/middleware.test.js +28 -28
  33. package/dist/federation/mod.d.ts +11 -11
  34. package/dist/federation/mod.js +12 -12
  35. package/dist/federation/mq.test.js +10 -10
  36. package/dist/federation/retry.test.js +2 -2
  37. package/dist/federation/router.test.js +9 -9
  38. package/dist/federation/send.test.js +18 -18
  39. package/dist/{federation-Bmj7soSg.js → federation-3B6BDKCK.js} +1 -1
  40. package/dist/{http-nvlEiwC4.js → http-3CJyDlPz.js} +4 -4
  41. package/dist/{http-CZyKN-rt.d.ts → http-BkUCISGt.d.ts} +6 -14
  42. package/dist/{http-DKFoMKYk.js → http-DC3mY9EG.js} +4 -4
  43. package/dist/{inbox-DUxOSixz.js → inbox-CCbuuUqY.js} +4 -4
  44. package/dist/{key-C_i44VCP.js → key-CD8i4ZB_.js} +2 -2
  45. package/dist/{key-B6j6aQIf.js → key-Ce8aGBE5.js} +5 -5
  46. package/dist/{key-DnZNsfoE.js → key-D0WW7EHK.js} +3 -3
  47. package/dist/{key-BiM3rCVA.js → key-Y8a6dgOq.js} +4 -4
  48. package/dist/{keycache-NtvEqcq9.js → keycache-BtADunPo.js} +2 -2
  49. package/dist/{keys-R9p0S8_o.js → keys-BIY57kjo.js} +1 -1
  50. package/dist/{kv-BmsWxOQ2.d.ts → kv-p8sC8PTT.d.ts} +3 -7
  51. package/dist/{ld-BLZnxCWX.js → ld-D4G5WL1G.js} +4 -4
  52. package/dist/{lookup-B38eCiCI.js → lookup-C8V37GPa.js} +1 -1
  53. package/dist/{lookup-DXgwlvAK.js → lookup-CQnVHXIh.js} +3 -3
  54. package/dist/{lookup-CNK83LQK.js → lookup-Ds1_3qy2.js} +1 -1
  55. package/dist/{lookup-nlxO7x0u.d.ts → lookup-vJccIKCS.d.ts} +4 -8
  56. package/dist/middleware-DPuaf71I.js +17 -0
  57. package/dist/{middleware-Bjqgfc8l.js → middleware-DRpRVwO7.js} +18 -18
  58. package/dist/{middleware-FhQhkH0G.js → middleware-Jvf6WsMN.js} +18 -18
  59. package/dist/middleware-XHndzOUD.js +33 -0
  60. package/dist/{mod-iE_61Xjt.d.ts → mod-BTHfUeLo.d.ts} +2 -9
  61. package/dist/{mod-BUAWJ2pK.d.ts → mod-BUTm-sog.d.ts} +5 -9
  62. package/dist/{mod-CsYfI7YL.d.ts → mod-CgmTOt4z.d.ts} +3 -21
  63. package/dist/{mod-Bx6Du4Ct.d.ts → mod-DSPyncxx.d.ts} +5 -11
  64. package/dist/mod.d.ts +14 -14
  65. package/dist/mod.js +12 -12
  66. package/dist/{mq-Bue016Tz.d.ts → mq-nceTGCuc.d.ts} +3 -7
  67. package/dist/nodeinfo/client.test.js +23 -36
  68. package/dist/nodeinfo/handler.test.js +27 -27
  69. package/dist/nodeinfo/mod.d.ts +3 -3
  70. package/dist/nodeinfo/mod.js +2 -2
  71. package/dist/nodeinfo/semver.test.js +8 -8
  72. package/dist/nodeinfo/types.test.js +8 -8
  73. package/dist/{owner-C_Gw25Id.d.ts → owner-CbRc94FP.d.ts} +6 -9
  74. package/dist/{owner-DKsEWurW.js → owner-Dyk0zd-q.js} +3 -3
  75. package/dist/{proof-DtIUHGA0.js → proof-B8Hm2M5c.js} +3 -3
  76. package/dist/{proof-DKetjewp.js → proof-D-CWdNQx.js} +5 -5
  77. package/dist/runtime/authdocloader.test.js +17 -17
  78. package/dist/runtime/docloader.test.js +69 -66
  79. package/dist/runtime/key.test.js +13 -13
  80. package/dist/runtime/langstr.test.js +8 -8
  81. package/dist/runtime/mod.d.ts +5 -5
  82. package/dist/runtime/mod.js +6 -6
  83. package/dist/runtime/multibase/multibase.test.js +8 -8
  84. package/dist/runtime/url.test.js +4 -4
  85. package/dist/{send-Z9IEW2ZG.js → send-CJXTH3ST.js} +3 -3
  86. package/dist/sig/http.test.js +52 -47
  87. package/dist/sig/key.test.js +14 -14
  88. package/dist/sig/ld.test.js +12 -12
  89. package/dist/sig/mod.d.ts +7 -7
  90. package/dist/sig/mod.js +6 -6
  91. package/dist/sig/owner.test.js +16 -16
  92. package/dist/sig/proof.test.js +15 -15
  93. package/dist/{std__assert-CaBUULmX.js → std__assert-CHXwj7zk.js} +1 -1
  94. package/dist/testing/docloader.test.js +8 -8
  95. package/dist/testing/mod.d.ts +0 -1
  96. package/dist/{transformers-jxj-4o2K.js → transformers-ghwJuzGY.js} +1 -1
  97. package/dist/{types-C9A_t_ZN.js → types-D3XNqpGz.js} +1 -1
  98. package/dist/vocab/actor.test.js +60 -49
  99. package/dist/vocab/lookup.test.js +13 -13
  100. package/dist/vocab/mod.d.ts +5 -5
  101. package/dist/vocab/mod.js +4 -4
  102. package/dist/vocab/type.test.js +3 -3
  103. package/dist/vocab/vocab.test.js +129 -132
  104. package/dist/{vocab-CHuz96Ha.js → vocab-CPrCb9BR.js} +3 -3
  105. package/dist/{vocab-7mZSoHR0.js → vocab-CaZSjoCB.js} +178 -178
  106. package/dist/{vocab-C4bpdeio.d.ts → vocab-DSFLLLe6.d.ts} +2 -7
  107. package/dist/webfinger/handler.test.js +27 -27
  108. package/dist/webfinger/lookup.test.js +41 -46
  109. package/dist/webfinger/mod.d.ts +3 -3
  110. package/dist/webfinger/mod.js +2 -2
  111. package/dist/x/cfworkers.d.ts +2 -9
  112. package/dist/x/cfworkers.test.js +8 -8
  113. package/dist/x/hono.d.ts +11 -12
  114. package/dist/x/sveltekit.d.ts +11 -12
  115. package/package.json +2 -3
  116. package/dist/hongminhee__deno-mock-fetch-DJKLj_H-.js +0 -188
  117. package/dist/middleware-B8XTnZdu.js +0 -33
  118. package/dist/middleware-D-_NS4x8.js +0 -17
  119. /package/dist/{denokv-iB_ggPGm.js → denokv-B_GFWjrl.js} +0 -0
@@ -3,9 +3,9 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { deno_default } from "./docloader-DdQSFoDK.js";
7
- import { Application, Group, Organization, Person, Service } from "./vocab-7mZSoHR0.js";
8
- import { lookupWebFinger } from "./lookup-CNK83LQK.js";
6
+ import { deno_default } from "./docloader-BXc5egq6.js";
7
+ import { Application, Group, Organization, Person, Service } from "./vocab-CaZSjoCB.js";
8
+ import { lookupWebFinger } from "./lookup-Ds1_3qy2.js";
9
9
  import { getTypeId } from "./type-D2s5lmbZ.js";
10
10
  import { SpanStatusCode, trace } from "@opentelemetry/api";
11
11
  import { domainToASCII, domainToUnicode } from "node:url";
@@ -1,14 +1,10 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { GetUserAgentOptions } from "./docloader-DTRsVZPo.js";
4
- import { Application$1 as Application, Group$1 as Group, Organization$1 as Organization, Person$1 as Person, Service$1 as Service } from "./vocab-C4bpdeio.js";
3
+ import { GetUserAgentOptions } from "./docloader-DlUDOVSe.js";
4
+ import { Application, Group, Organization, Person, Service } from "./vocab-DSFLLLe6.js";
5
5
  import { TracerProvider } from "@opentelemetry/api";
6
6
 
7
7
  //#region vocab/actor.d.ts
8
- /**
9
- * Actor types are {@link Object} types that are capable of performing
10
- * activities.
11
- */
12
8
  /**
13
9
  * Actor types are {@link Object} types that are capable of performing
14
10
  * activities.
@@ -129,5 +125,6 @@ interface Recipient {
129
125
  */
130
126
  sharedInbox: URL | null;
131
127
  } | null;
132
- } //#endregion
133
- export { Actor, ActorTypeName, GetActorHandleOptions, NormalizeActorHandleOptions, Recipient, getActorClassByTypeName as getActorClassByTypeName$1, getActorHandle as getActorHandle$1, getActorTypeName as getActorTypeName$1, isActor as isActor$1, normalizeActorHandle as normalizeActorHandle$1 };
128
+ }
129
+ //#endregion
130
+ export { Actor, ActorTypeName, GetActorHandleOptions, NormalizeActorHandleOptions, Recipient, getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle };
@@ -3,7 +3,7 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { AssertionError } from "./assert_equals-ClvzlhZu.js";
6
+ import { AssertionError } from "./assert_equals-Dnj7ejjL.js";
7
7
 
8
8
  //#region node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert.js
9
9
  /**
@@ -53,7 +53,7 @@ function constructorsEqual(a, b) {
53
53
  * equal({ foo: "bar" }, { foo: "baz" }); // Returns `false
54
54
  * ```
55
55
  */ function equal(c, d) {
56
- const seen = new Map();
56
+ const seen = /* @__PURE__ */ new Map();
57
57
  return function compare(a, b) {
58
58
  if (a && b && (a instanceof RegExp && b instanceof RegExp || a instanceof URL && b instanceof URL)) return String(a) === String(b);
59
59
  if (a instanceof Date && b instanceof Date) {
@@ -105,7 +105,7 @@ function constructorsEqual(a, b) {
105
105
  }
106
106
 
107
107
  //#endregion
108
- //#region node_modules/.pnpm/@jsr+std__internal@1.0.7/node_modules/@jsr/std__internal/assertion_state.js
108
+ //#region node_modules/.pnpm/@jsr+std__internal@1.0.8/node_modules/@jsr/std__internal/assertion_state.js
109
109
  /**
110
110
  * Check the test suite internal state
111
111
  *
@@ -124,9 +124,16 @@ function constructorsEqual(a, b) {
124
124
  assertionTriggered: false,
125
125
  assertionTriggeredCount: 0
126
126
  };
127
- globalThis.addEventListener("unload", () => {
128
- if (this.#state.assertionCheck || this.#state.assertionCount !== void 0) throw new Error("AssertionCounter was not cleaned up: If tests are not otherwise failing, ensure `expect.hasAssertion` and `expect.assertions` are only run in bdd tests");
127
+ if (typeof globalThis?.addEventListener === "function") globalThis.addEventListener("unload", () => {
128
+ this.#ensureCleanedUp();
129
129
  });
130
+ else if (typeof globalThis?.process?.on === "function") globalThis.process.on("exit", () => {
131
+ this.#ensureCleanedUp();
132
+ });
133
+ else console.warn("AssertionCounter cleanup step was not registered");
134
+ }
135
+ #ensureCleanedUp() {
136
+ if (this.#state.assertionCheck || this.#state.assertionCount !== void 0) throw new Error("AssertionCounter was not cleaned up: If tests are not otherwise failing, ensure `expect.hasAssertion` and `expect.assertions` are only run in bdd tests");
130
137
  }
131
138
  /**
132
139
  * Get the number that through `expect.assertions` api set.
@@ -277,7 +284,7 @@ function constructorsEqual(a, b) {
277
284
  const assertionState = new AssertionState();
278
285
 
279
286
  //#endregion
280
- //#region node_modules/.pnpm/@jsr+std__internal@1.0.7/node_modules/@jsr/std__internal/styles.js
287
+ //#region node_modules/.pnpm/@jsr+std__internal@1.0.8/node_modules/@jsr/std__internal/styles.js
281
288
  const { Deno } = globalThis;
282
289
  const noColor = typeof Deno?.noColor === "boolean" ? Deno.noColor : false;
283
290
  const enabled = !noColor;
@@ -444,7 +451,7 @@ const ANSI_PATTERN = new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-z
444
451
  }
445
452
 
446
453
  //#endregion
447
- //#region node_modules/.pnpm/@jsr+std__internal@1.0.7/node_modules/@jsr/std__internal/build_message.js
454
+ //#region node_modules/.pnpm/@jsr+std__internal@1.0.8/node_modules/@jsr/std__internal/build_message.js
448
455
  /**
449
456
  * Colors the output of assertion diffs.
450
457
  *
@@ -538,7 +545,7 @@ const ANSI_PATTERN = new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-z
538
545
  }
539
546
 
540
547
  //#endregion
541
- //#region node_modules/.pnpm/@jsr+std__internal@1.0.7/node_modules/@jsr/std__internal/diff.js
548
+ //#region node_modules/.pnpm/@jsr+std__internal@1.0.8/node_modules/@jsr/std__internal/diff.js
542
549
  const REMOVED = 1;
543
550
  const COMMON = 2;
544
551
  const ADDED = 3;
@@ -807,7 +814,7 @@ const ADDED = 3;
807
814
  }
808
815
 
809
816
  //#endregion
810
- //#region node_modules/.pnpm/@jsr+std__internal@1.0.7/node_modules/@jsr/std__internal/diff_str.js
817
+ //#region node_modules/.pnpm/@jsr+std__internal@1.0.8/node_modules/@jsr/std__internal/diff_str.js
811
818
  /**
812
819
  * Unescape invisible characters.
813
820
  *
@@ -948,7 +955,7 @@ const NON_WHITESPACE_REGEXP = /\S/;
948
955
  }
949
956
 
950
957
  //#endregion
951
- //#region node_modules/.pnpm/@jsr+std__internal@1.0.7/node_modules/@jsr/std__internal/format.js
958
+ //#region node_modules/.pnpm/@jsr+std__internal@1.0.8/node_modules/@jsr/std__internal/format.js
952
959
  /**
953
960
  * Converts the input into a string. Objects, Sets and Maps are sorted so as to
954
961
  * make tests less flaky.
@@ -3,7 +3,7 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { AssertionError } from "./assert_equals-ClvzlhZu.js";
6
+ import { AssertionError } from "./assert_equals-Dnj7ejjL.js";
7
7
 
8
8
  //#region node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert_instance_of.js
9
9
  /**
@@ -3,7 +3,7 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { AssertionError, stripAnsiCode } from "./assert_equals-ClvzlhZu.js";
6
+ import { AssertionError, stripAnsiCode } from "./assert_equals-Dnj7ejjL.js";
7
7
 
8
8
  //#region node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert_is_error.js
9
9
  /**
@@ -3,7 +3,7 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { AssertionError, equal } from "./assert_equals-ClvzlhZu.js";
6
+ import { AssertionError, equal } from "./assert_equals-Dnj7ejjL.js";
7
7
 
8
8
  //#region node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert_not_equals.js
9
9
  /**
@@ -3,8 +3,8 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { AssertionError } from "./assert_equals-ClvzlhZu.js";
7
- import { assertIsError } from "./assert_is_error-D162gXcM.js";
6
+ import { AssertionError } from "./assert_equals-Dnj7ejjL.js";
7
+ import { assertIsError } from "./assert_is_error-jyzqjHud.js";
8
8
 
9
9
  //#region node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert_false.js
10
10
  /**
@@ -3,8 +3,8 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { AssertionError } from "./assert_equals-ClvzlhZu.js";
7
- import { assertIsError } from "./assert_is_error-D162gXcM.js";
6
+ import { AssertionError } from "./assert_equals-Dnj7ejjL.js";
7
+ import { assertIsError } from "./assert_is_error-jyzqjHud.js";
8
8
 
9
9
  //#region node_modules/.pnpm/@jsr+std__assert@0.226.0/node_modules/@jsr/std__assert/assert_throws.js
10
10
  function assertThrows(fn, errorClassOrMsg, msgIncludesOrMsg, msg) {
@@ -3,10 +3,10 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { createRequest, getRemoteDocument, logRequest } from "./docloader-DdQSFoDK.js";
6
+ import { createRequest, getRemoteDocument, logRequest } from "./docloader-BXc5egq6.js";
7
7
  import { UrlError, validatePublicUrl } from "./url-kTAI6_KP.js";
8
- import { validateCryptoKey } from "./key-DnZNsfoE.js";
9
- import { doubleKnock } from "./http-nvlEiwC4.js";
8
+ import { validateCryptoKey } from "./key-D0WW7EHK.js";
9
+ import { doubleKnock } from "./http-3CJyDlPz.js";
10
10
  import { getLogger } from "@logtape/logtape";
11
11
 
12
12
  //#region runtime/authdocloader.ts
@@ -2,9 +2,9 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import { UrlError, createRequest, getRemoteDocument, logRequest, validatePublicUrl } from "./docloader-BesQV-nU.js";
6
- import { validateCryptoKey } from "./key-C_i44VCP.js";
7
- import { doubleKnock } from "./http-DKFoMKYk.js";
5
+ import { UrlError, createRequest, getRemoteDocument, logRequest, validatePublicUrl } from "./docloader-BFRgyDAa.js";
6
+ import { validateCryptoKey } from "./key-CD8i4ZB_.js";
7
+ import { doubleKnock } from "./http-DC3mY9EG.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
 
10
10
  //#region runtime/authdocloader.ts
@@ -48,4 +48,4 @@ function getAuthenticatedDocumentLoader(identity, { allowPrivateAddress, userAge
48
48
  }
49
49
 
50
50
  //#endregion
51
- export { getAuthenticatedDocumentLoader as getAuthenticatedDocumentLoader$1 };
51
+ export { getAuthenticatedDocumentLoader };
@@ -3,10 +3,10 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { deno_default } from "./docloader-DdQSFoDK.js";
6
+ import { deno_default } from "./docloader-BXc5egq6.js";
7
7
  import { Router, RouterError } from "./router-D_aVZZUc.js";
8
8
  import { getTypeId } from "./type-D2s5lmbZ.js";
9
- import { InboxListenerSet } from "./inbox-DUxOSixz.js";
9
+ import { InboxListenerSet } from "./inbox-CCbuuUqY.js";
10
10
  import { getLogger } from "@logtape/logtape";
11
11
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
12
12
 
@@ -34,7 +34,7 @@ var FederationBuilderImpl = class {
34
34
  this.objectTypeIds = {};
35
35
  }
36
36
  async build(options) {
37
- const { FederationImpl } = await import("./middleware-B8XTnZdu.js");
37
+ const { FederationImpl } = await import("./middleware-XHndzOUD.js");
38
38
  const f = new FederationImpl(options);
39
39
  const trailingSlashInsensitiveValue = f.router.trailingSlashInsensitive;
40
40
  f.router = this.router.clone();
@@ -1,12 +1,8 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { GetUserAgentOptions } from "./docloader-DTRsVZPo.js";
3
+ import { GetUserAgentOptions } from "./docloader-DlUDOVSe.js";
4
4
 
5
5
  //#region nodeinfo/semver.d.ts
6
- /**
7
- * A SemVer object parsed into its constituent parts.
8
- * @since 1.2.0
9
- */
10
6
  /**
11
7
  * A SemVer object parsed into its constituent parts.
12
8
  * @since 1.2.0
@@ -75,7 +71,8 @@ declare function parseSemVer(value: string): SemVer;
75
71
  * @returns The string representation of a semantic version.
76
72
  * @since 1.2.0
77
73
  */
78
- declare function formatSemVer(version: SemVer): string; //#endregion
74
+ declare function formatSemVer(version: SemVer): string;
75
+ //#endregion
79
76
  //#region nodeinfo/types.d.ts
80
77
  /**
81
78
  * The type of the result of parsing JSON.
@@ -207,7 +204,8 @@ interface Usage {
207
204
  * @returns The JSON value that complies with the NodeInfo schema.
208
205
  * @throws {TypeError} If the {@link NodeInfo} object is invalid.
209
206
  */
210
- declare function nodeInfoToJson(nodeInfo: NodeInfo): JsonValue; //#endregion
207
+ declare function nodeInfoToJson(nodeInfo: NodeInfo): JsonValue;
208
+ //#endregion
211
209
  //#region nodeinfo/client.d.ts
212
210
  /**
213
211
  * Options for {@link getNodeInfo} function.
@@ -294,6 +292,5 @@ interface ParseNodeInfoOptions {
294
292
  * @since 1.2.0
295
293
  */
296
294
  declare function parseNodeInfo(data: unknown, options?: ParseNodeInfoOptions): NodeInfo | null;
297
-
298
295
  //#endregion
299
- export { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer as formatSemVer$1, getNodeInfo as getNodeInfo$1, nodeInfoToJson as nodeInfoToJson$1, parseNodeInfo as parseNodeInfo$1, parseSemVer as parseSemVer$1 };
296
+ export { GetNodeInfoOptions, InboundService, JsonValue, NodeInfo, OutboundService, ParseNodeInfoOptions, Protocol, SemVer, Services, Software, Usage, formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer };
@@ -3,7 +3,7 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { getUserAgent } from "./docloader-DdQSFoDK.js";
6
+ import { getUserAgent } from "./docloader-BXc5egq6.js";
7
7
  import { parseSemVer } from "./semver-CbbIgUsa.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
 
@@ -14,7 +14,7 @@ import { encodeHex } from "byte-encodings/hex";
14
14
  * @returns The digest.
15
15
  */
16
16
  async function digest(uris) {
17
- const processed = new Set();
17
+ const processed = /* @__PURE__ */ new Set();
18
18
  const encoder = new TextEncoder();
19
19
  const result = new Uint8Array(32);
20
20
  for (const uri of uris) {
@@ -1,15 +1,15 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import "../kv-BmsWxOQ2.js";
4
- import "../docloader-DTRsVZPo.js";
5
- import "../client-Dw1pCSIt.js";
6
- import "../vocab-C4bpdeio.js";
7
- import "../actor-f67C7yQD.js";
8
- import "../http-CZyKN-rt.js";
9
- import "../owner-C_Gw25Id.js";
10
- import "../mod-Bx6Du4Ct.js";
11
- import "../lookup-nlxO7x0u.js";
12
- import { ActivityTransformer } from "../context-DBM4y1xF.js";
13
- import "../mq-Bue016Tz.js";
14
- import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-CsYfI7YL.js";
3
+ import "../kv-p8sC8PTT.js";
4
+ import "../docloader-DlUDOVSe.js";
5
+ import "../client-Cd552pKL.js";
6
+ import "../vocab-DSFLLLe6.js";
7
+ import "../actor-tT_B0pDn.js";
8
+ import "../http-BkUCISGt.js";
9
+ import "../owner-CbRc94FP.js";
10
+ import "../mod-DSPyncxx.js";
11
+ import "../lookup-vJccIKCS.js";
12
+ import { ActivityTransformer } from "../context-DRhhOsMk.js";
13
+ import "../mq-nceTGCuc.js";
14
+ import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../mod-CgmTOt4z.js";
15
15
  export { ActivityTransformer, actorDehydrator, autoIdAssigner, getDefaultActivityTransformers };
@@ -2,7 +2,7 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import { actorDehydrator$1 as actorDehydrator, autoIdAssigner$1 as autoIdAssigner, getDefaultActivityTransformers$1 as getDefaultActivityTransformers } from "../transformers-jxj-4o2K.js";
5
+ import { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers } from "../transformers-ghwJuzGY.js";
6
6
  import "../compat-Bb5myD13.js";
7
7
 
8
8
  export { actorDehydrator, autoIdAssigner, getDefaultActivityTransformers };
@@ -3,36 +3,36 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { assertEquals } from "../assert_equals-ClvzlhZu.js";
7
- import { assert } from "../assert-Dv75vaGI.js";
8
- import { assertInstanceOf } from "../assert_instance_of--9UCVKsi.js";
6
+ import { assertEquals } from "../assert_equals-Dnj7ejjL.js";
7
+ import { assert } from "../assert-YJk-1DlZ.js";
8
+ import { assertInstanceOf } from "../assert_instance_of-DBIoG5k7.js";
9
9
  import { MemoryKvStore } from "../kv-DohFOP2C.js";
10
- import { FederationImpl, actorDehydrator, autoIdAssigner } from "../middleware-Bjqgfc8l.js";
11
- import "../docloader-DdQSFoDK.js";
10
+ import { FederationImpl, actorDehydrator, autoIdAssigner } from "../middleware-DRpRVwO7.js";
11
+ import "../docloader-BXc5egq6.js";
12
12
  import "../url-kTAI6_KP.js";
13
13
  import "../semver-CbbIgUsa.js";
14
- import "../client-CSQzJhcr.js";
14
+ import "../client-CwjvB-Dh.js";
15
15
  import "../router-D_aVZZUc.js";
16
16
  import "../types-CqoqWDkp.js";
17
17
  import "../multibase-DeCHcK8L.js";
18
- import { Follow, Person } from "../vocab-7mZSoHR0.js";
18
+ import { Follow, Person } from "../vocab-CaZSjoCB.js";
19
19
  import "../langstr-DbWheeIS.js";
20
- import "../lookup-CNK83LQK.js";
20
+ import "../lookup-Ds1_3qy2.js";
21
21
  import "../type-D2s5lmbZ.js";
22
- import "../actor-DIk6hH_U.js";
23
- import "../key-DnZNsfoE.js";
24
- import "../http-nvlEiwC4.js";
25
- import "../authdocloader-B3ME-k-0.js";
26
- import "../ld-BLZnxCWX.js";
27
- import "../owner-DKsEWurW.js";
28
- import "../proof-DtIUHGA0.js";
29
- import "../lookup-DXgwlvAK.js";
30
- import "../inbox-DUxOSixz.js";
31
- import "../builder-DT_CjHJM.js";
32
- import "../collection-QaGK9TVn.js";
33
- import "../keycache-NtvEqcq9.js";
22
+ import "../actor-DezwbbQX.js";
23
+ import "../key-D0WW7EHK.js";
24
+ import "../http-3CJyDlPz.js";
25
+ import "../authdocloader-C-_Lr-KH.js";
26
+ import "../ld-D4G5WL1G.js";
27
+ import "../owner-Dyk0zd-q.js";
28
+ import "../proof-B8Hm2M5c.js";
29
+ import "../lookup-CQnVHXIh.js";
30
+ import "../inbox-CCbuuUqY.js";
31
+ import "../builder-C8tsk_Xe.js";
32
+ import "../collection-Dfb0TPno.js";
33
+ import "../keycache-BtADunPo.js";
34
34
  import "../retry-BiIhZWgD.js";
35
- import "../send-Z9IEW2ZG.js";
35
+ import "../send-CJXTH3ST.js";
36
36
  import { test } from "../testing-jcGLO9Lp.js";
37
37
 
38
38
  //#region compat/transformers.test.ts
@@ -1,27 +1,22 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { KvKey, KvStore } from "./kv-BmsWxOQ2.js";
4
- import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, GetUserAgentOptions } from "./docloader-DTRsVZPo.js";
5
- import { GetNodeInfoOptions, JsonValue, NodeInfo } from "./client-Dw1pCSIt.js";
6
- import { Activity$1 as Activity, Collection$1 as Collection, CryptographicKey$1 as CryptographicKey, Hashtag$1 as Hashtag, Link$2 as Link, Multikey$1 as Multikey, Object$1 } from "./vocab-C4bpdeio.js";
7
- import { Actor, Recipient } from "./actor-f67C7yQD.js";
8
- import { GetKeyOwnerOptions } from "./owner-C_Gw25Id.js";
9
- import { LookupObjectOptions, TraverseCollectionOptions } from "./mod-Bx6Du4Ct.js";
10
- import { LookupWebFingerOptions, ResourceDescriptor } from "./lookup-nlxO7x0u.js";
11
- import { MessageQueue } from "./mq-Bue016Tz.js";
3
+ import { KvKey, KvStore } from "./kv-p8sC8PTT.js";
4
+ import { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, GetUserAgentOptions } from "./docloader-DlUDOVSe.js";
5
+ import { GetNodeInfoOptions, JsonValue, NodeInfo } from "./client-Cd552pKL.js";
6
+ import { Activity, Collection, CryptographicKey, Hashtag, Link, Multikey, Object as Object$1 } from "./vocab-DSFLLLe6.js";
7
+ import { Actor, Recipient } from "./actor-tT_B0pDn.js";
8
+ import { GetKeyOwnerOptions } from "./owner-CbRc94FP.js";
9
+ import { LookupObjectOptions, TraverseCollectionOptions } from "./mod-DSPyncxx.js";
10
+ import { LookupWebFingerOptions, ResourceDescriptor } from "./lookup-vJccIKCS.js";
11
+ import { MessageQueue } from "./mq-nceTGCuc.js";
12
12
  import { Span, TracerProvider } from "@opentelemetry/api";
13
13
 
14
14
  //#region compat/types.d.ts
15
- /**
16
- * A function that transforms an activity object.
17
- * @since 1.4.0
18
- */
19
15
  /**
20
16
  * A function that transforms an activity object.
21
17
  * @since 1.4.0
22
18
  */
23
19
  type ActivityTransformer<TContextData> = (activity: Activity, context: Context<TContextData>) => Activity;
24
-
25
20
  //#endregion
26
21
  //#region federation/collection.d.ts
27
22
  /**
@@ -50,7 +45,6 @@ declare function digest(uris: Iterable<string | URL>): Promise<Uint8Array>;
50
45
  * @returns The header content.
51
46
  */
52
47
  declare function buildCollectionSynchronizationHeader(collectionId: string | URL, actorIds: Iterable<string | URL>): Promise<string>;
53
-
54
48
  //#endregion
55
49
  //#region federation/send.d.ts
56
50
  /**
@@ -67,12 +61,11 @@ interface SenderKeyPair {
67
61
  */
68
62
  keyId: URL;
69
63
  }
70
-
71
- //#endregion
72
- //#region federation/callback.d.ts
73
64
  /**
74
65
  * Parameters for {@link sendActivity}.
75
66
  */
67
+ //#endregion
68
+ //#region federation/callback.d.ts
76
69
  /**
77
70
  * A callback that dispatches a {@link NodeInfo} object.
78
71
  *
@@ -266,7 +259,6 @@ type AuthorizePredicate<TContextData> = (context: RequestContext<TContextData>,
266
259
  * @since 0.7.0
267
260
  */
268
261
  type ObjectAuthorizePredicate<TContextData, TParam extends string> = (context: RequestContext<TContextData>, values: Record<TParam, string>, signedKey: CryptographicKey | null, signedKeyOwner: Actor | null) => boolean | Promise<boolean>;
269
-
270
262
  //#endregion
271
263
  //#region federation/handler.d.ts
272
264
  /**
@@ -299,7 +291,6 @@ declare function respondWithObject(object: Object$1, options?: RespondWithObject
299
291
  * @since 0.3.0
300
292
  */
301
293
  declare function respondWithObjectIfAcceptable(object: Object$1, request: Request, options?: RespondWithObjectOptions): Promise<Response | null>;
302
-
303
294
  //#endregion
304
295
  //#region federation/router.d.ts
305
296
  /**
@@ -385,7 +376,6 @@ declare class RouterError extends Error {
385
376
  */
386
377
  constructor(message: string);
387
378
  }
388
-
389
379
  //#endregion
390
380
  //#region federation/builder.d.ts
391
381
  /**
@@ -394,7 +384,6 @@ declare class RouterError extends Error {
394
384
  * @since 1.6.0
395
385
  */
396
386
  declare function createFederationBuilder<TContextData>(): FederationBuilder<TContextData>;
397
-
398
387
  //#endregion
399
388
  //#region federation/queue.d.ts
400
389
  interface SenderKeyJwkPair {
@@ -451,7 +440,6 @@ interface InboxMessage {
451
440
  identifier: string | null;
452
441
  traceContext: Record<string, string>;
453
442
  }
454
-
455
443
  //#endregion
456
444
  //#region federation/retry.d.ts
457
445
  /**
@@ -516,7 +504,6 @@ interface CreateExponentialBackoffPolicyOptions {
516
504
  * @since 0.12.0
517
505
  */
518
506
  declare function createExponentialBackoffPolicy(options?: CreateExponentialBackoffPolicyOptions): RetryPolicy;
519
-
520
507
  //#endregion
521
508
  //#region federation/middleware.d.ts
522
509
  /**
@@ -604,7 +591,6 @@ interface FederationOrigin {
604
591
  * @since 0.10.0
605
592
  */
606
593
  declare function createFederation<TContextData>(options: CreateFederationOptions<TContextData>): Federation<TContextData>;
607
-
608
594
  //#endregion
609
595
  //#region federation/federation.d.ts
610
596
  /**
@@ -1289,7 +1275,6 @@ interface FederationFetchOptions<TContextData> {
1289
1275
  */
1290
1276
  onUnauthorized?: (request: Request) => Response | Promise<Response>;
1291
1277
  }
1292
-
1293
1278
  //#endregion
1294
1279
  //#region federation/context.d.ts
1295
1280
  /**
@@ -2029,6 +2014,5 @@ interface ActorKeyPair extends CryptoKeyPair {
2029
2014
  */
2030
2015
  multikey: Multikey;
2031
2016
  }
2032
-
2033
2017
  //#endregion
2034
- export { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router as Router$1, RouterError as RouterError$1, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, buildCollectionSynchronizationHeader as buildCollectionSynchronizationHeader$1, createExponentialBackoffPolicy as createExponentialBackoffPolicy$1, createFederation as createFederation$1, createFederationBuilder as createFederationBuilder$1, digest as digest$1, respondWithObject as respondWithObject$1, respondWithObjectIfAcceptable as respondWithObjectIfAcceptable$1 };
2018
+ export { ActivityTransformer, ActorAliasMapper, ActorCallbackSetters, ActorDispatcher, ActorHandleMapper, ActorKeyPair, ActorKeyPairsDispatcher, AuthorizePredicate, CollectionCallbackSetters, CollectionCounter, CollectionCursor, CollectionDispatcher, Context, CreateExponentialBackoffPolicyOptions, CreateFederationOptions, Federatable, Federation, FederationBuilder, FederationFetchOptions, FederationKvPrefixes, FederationOptions, FederationOrigin, FederationQueueOptions, FederationStartQueueOptions, ForwardActivityOptions, GetSignedKeyOptions, InboxContext, InboxErrorHandler, InboxListener, InboxListenerSetters, Message, NodeInfoDispatcher, ObjectAuthorizePredicate, ObjectCallbackSetters, ObjectDispatcher, OutboxErrorHandler, PageItems, ParseUriResult, RequestContext, RespondWithObjectOptions, RetryContext, RetryPolicy, RouteActivityOptions, Router, RouterError, RouterOptions, RouterRouteResult, SendActivityOptions, SendActivityOptionsForCollection, SenderKeyPair, SharedInboxKeyDispatcher, buildCollectionSynchronizationHeader, createExponentialBackoffPolicy, createFederation, createFederationBuilder, digest, respondWithObject, respondWithObjectIfAcceptable };
@@ -4,8 +4,8 @@
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
6
  import { RouterError } from "./router-D_aVZZUc.js";
7
- import { lookupWebFinger } from "./lookup-CNK83LQK.js";
8
- import { lookupObject, traverseCollection } from "./lookup-DXgwlvAK.js";
7
+ import { lookupWebFinger } from "./lookup-Ds1_3qy2.js";
8
+ import { lookupObject, traverseCollection } from "./lookup-CQnVHXIh.js";
9
9
  import { mockDocumentLoader } from "./docloader-09nVWLAZ.js";
10
10
  import { trace } from "@opentelemetry/api";
11
11
 
@@ -10,7 +10,7 @@ import { isIP } from "node:net";
10
10
 
11
11
  //#region deno.json
12
12
  var name = "@fedify/fedify";
13
- var version = "1.6.1-dev.880+8ba8fc31";
13
+ var version = "1.6.1-dev.883+dd017372";
14
14
  var license = "MIT";
15
15
  var exports = {
16
16
  ".": "./mod.ts",
@@ -31,7 +31,6 @@ var imports = {
31
31
  "@cfworker/json-schema": "npm:@cfworker/json-schema@^4.1.1",
32
32
  "@cloudflare/workers-types": "npm:@cloudflare/workers-types@^4.20250529.0",
33
33
  "@es-toolkit/es-toolkit": "jsr:@es-toolkit/es-toolkit@^1.38.0",
34
- "@hongminhee/deno-mock-fetch": "jsr:@hongminhee/deno-mock-fetch@^0.3.2",
35
34
  "@hugoalh/http-header-link": "jsr:@hugoalh/http-header-link@^1.0.2",
36
35
  "@multiformats/base-x": "npm:@multiformats/base-x@^4.0.1",
37
36
  "@opentelemetry/api": "npm:@opentelemetry/api@^1.9.0",
@@ -10,7 +10,7 @@ import process from "node:process";
10
10
 
11
11
  //#region deno.json
12
12
  var name = "@fedify/fedify";
13
- var version = "1.6.1-dev.880+8ba8fc31";
13
+ var version = "1.6.1-dev.883+dd017372";
14
14
  var license = "MIT";
15
15
  var exports = {
16
16
  ".": "./mod.ts",
@@ -31,7 +31,6 @@ var imports = {
31
31
  "@cfworker/json-schema": "npm:@cfworker/json-schema@^4.1.1",
32
32
  "@cloudflare/workers-types": "npm:@cloudflare/workers-types@^4.20250529.0",
33
33
  "@es-toolkit/es-toolkit": "jsr:@es-toolkit/es-toolkit@^1.38.0",
34
- "@hongminhee/deno-mock-fetch": "jsr:@hongminhee/deno-mock-fetch@^0.3.2",
35
34
  "@hugoalh/http-header-link": "jsr:@hugoalh/http-header-link@^1.0.2",
36
35
  "@multiformats/base-x": "npm:@multiformats/base-x@^4.0.1",
37
36
  "@opentelemetry/api": "npm:@opentelemetry/api@^1.9.0",
@@ -1,12 +1,8 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { KvKey, KvStore } from "./kv-BmsWxOQ2.js";
3
+ import { KvKey, KvStore } from "./kv-p8sC8PTT.js";
4
4
 
5
5
  //#region runtime/docloader.d.ts
6
- /**
7
- * A remote JSON-LD document and its context fetched by
8
- * a {@link DocumentLoader}.
9
- */
10
6
  /**
11
7
  * A remote JSON-LD document and its context fetched by
12
8
  * a {@link DocumentLoader}.
@@ -207,5 +203,6 @@ interface GetUserAgentOptions {
207
203
  declare function getUserAgent({
208
204
  software,
209
205
  url
210
- }?: GetUserAgentOptions): string; //#endregion
211
- export { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, FetchError as FetchError$1, GetDocumentLoaderOptions, GetUserAgentOptions, KvCacheParameters, RemoteDocument, fetchDocumentLoader as fetchDocumentLoader$1, getDocumentLoader as getDocumentLoader$1, getUserAgent as getUserAgent$1, kvCache as kvCache$1 };
206
+ }?: GetUserAgentOptions): string;
207
+ //#endregion
208
+ export { AuthenticatedDocumentLoaderFactory, DocumentLoader, DocumentLoaderFactory, DocumentLoaderFactoryOptions, FetchError, GetDocumentLoaderOptions, GetUserAgentOptions, KvCacheParameters, RemoteDocument, fetchDocumentLoader, getDocumentLoader, getUserAgent, kvCache };
@@ -784,7 +784,7 @@ var Route = class {
784
784
  _a.registeredMatchers.push(matcher);
785
785
  }
786
786
  };
787
- _a = Route, _Route_responseSubscriptions = new WeakMap(), _Route_instances = new WeakSet(), _Route_validate = function _Route_validate$1() {
787
+ _a = Route, _Route_responseSubscriptions = /* @__PURE__ */ new WeakMap(), _Route_instances = /* @__PURE__ */ new WeakSet(), _Route_validate = function _Route_validate$1() {
788
788
  if (["matched", "unmatched"].includes(this.config.name)) throw new Error(`fetch-mock: Routes cannot use the reserved name \`${this.config.name}\``);
789
789
  if (!("response" in this.config)) throw new Error("fetch-mock: Each route must define a response");
790
790
  if (!_a.registeredMatchers.some(({ name }) => name in this.config)) throw new Error("fetch-mock: Each route must specify some criteria for matching calls to fetch. To match all calls use '*'");