@fedify/fedify 2.0.0-dev.7 → 2.0.0-dev.85

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 (108) hide show
  1. package/dist/{actor-BLBfgCFC.cjs → actor-Bpgsv6Ii.cjs} +185 -185
  2. package/dist/{actor-CT1vyB17.js → actor-D3v8T9kQ.js} +185 -185
  3. package/dist/{actor-B5o1xrFI.js → actor-DrvDW-tK.js} +1 -1
  4. package/dist/{builder-CiifhBKW.js → builder-D2trc6p7.js} +3 -3
  5. package/dist/compat/mod.d.cts +3 -3
  6. package/dist/compat/mod.d.ts +3 -3
  7. package/dist/compat/transformers.test.js +16 -16
  8. package/dist/{context-PxGADCsD.d.cts → context-DBQ7nMCw.d.cts} +1 -1
  9. package/dist/{context-V-XS2_6O.d.ts → context-mM0Nu5yo.d.ts} +1 -1
  10. package/dist/{docloader-DUfba_vD.js → docloader-DlSrn4Io.js} +2 -2
  11. package/dist/{esm-p1rx_7cC.js → esm-DQKBkSAc.js} +1 -1
  12. package/dist/federation/builder.test.js +5 -5
  13. package/dist/federation/collection.test.js +2 -2
  14. package/dist/federation/handler.test.js +18 -18
  15. package/dist/federation/idempotency.test.js +17 -17
  16. package/dist/federation/inbox.test.js +3 -3
  17. package/dist/federation/keycache.test.js +4 -4
  18. package/dist/federation/kv.test.js +57 -3
  19. package/dist/federation/middleware.test.js +18 -18
  20. package/dist/federation/mod.cjs +8 -8
  21. package/dist/federation/mod.d.cts +3 -3
  22. package/dist/federation/mod.d.ts +3 -3
  23. package/dist/federation/mod.js +8 -8
  24. package/dist/federation/mq.test.js +2 -2
  25. package/dist/federation/negotiation.test.js +2 -2
  26. package/dist/federation/retry.test.js +2 -2
  27. package/dist/federation/router.test.js +2 -2
  28. package/dist/federation/send.test.js +10 -10
  29. package/dist/{federation-CRpdnOMS.cjs → federation-CoW-KDKv.cjs} +22 -0
  30. package/dist/{federation-jcR8-ZxP.js → federation-D0hkM4T7.js} +22 -0
  31. package/dist/{http-pgzDkXD0.js → http-BNxhNjYm.js} +2 -2
  32. package/dist/{http-C78SwacJ.js → http-Bz4YpW-D.js} +2 -2
  33. package/dist/{http-ClCl_dis.cjs → http-Dr7V4DY7.cjs} +2 -2
  34. package/dist/{inbox-BDF2VbZ8.js → inbox-CXOoDyEH.js} +1 -1
  35. package/dist/{key-jo5CucF6.js → key-C_b1t1Na.js} +2 -2
  36. package/dist/{keycache-C5k5PTyM.js → keycache-zfG6F1PW.js} +1 -1
  37. package/dist/{keys-BSzUEVJu.js → keys-C01rMN22.js} +1 -1
  38. package/dist/{kv-BKNZ-Tb-.d.ts → kv-BpJND1Hr.d.ts} +30 -1
  39. package/dist/{kv-CRZrzyXm.js → kv-QzKcOQgP.js} +22 -0
  40. package/dist/{kv-Bxr0Q87_.d.cts → kv-cD_d4hg-.d.cts} +30 -1
  41. package/dist/{kv-cache-ONwNlGJb.js → kv-cache-4I_O-pli.js} +1 -1
  42. package/dist/{kv-cache-DVMGXeBd.cjs → kv-cache-CpjdzlKh.cjs} +1 -1
  43. package/dist/{kv-cache-DN9pfMBe.js → kv-cache-D7LFlByV.js} +13 -0
  44. package/dist/{ld-CWuhgMM4.js → ld-Ba0jIf7k.js} +2 -2
  45. package/dist/{lookup-BvK_-Lja.js → lookup-BUqdDUac.js} +6 -6
  46. package/dist/{lookup-DdOtSFct.cjs → lookup-UA4SKewV.cjs} +6 -6
  47. package/dist/{lookup-Dvhilldd.js → lookup-kl47RWf3.js} +190 -190
  48. package/dist/middleware-B64_UxVQ.js +26 -0
  49. package/dist/middleware-BK7fptEJ.cjs +15 -0
  50. package/dist/{middleware-8uNpzeWq.cjs → middleware-BYqpBCFp.cjs} +7 -7
  51. package/dist/{middleware-C7m5m72k.js → middleware-CwpDL0KB.js} +12 -12
  52. package/dist/{middleware-DMZO9M2Z.js → middleware-Cx0KwuzQ.js} +7 -7
  53. package/dist/middleware-_DVIaAFk.js +15 -0
  54. package/dist/{mod-aAE2wOWV.d.ts → mod-CAdoBu0x.d.ts} +1 -1
  55. package/dist/{mod-BoRKfJPE.d.cts → mod-Dy2fJtmN.d.cts} +1 -1
  56. package/dist/{mod-Cdo6SYlJ.d.ts → mod-GetHzY6F.d.ts} +1 -1
  57. package/dist/{mod-DMpuiKXi.d.cts → mod-fxr25Gv7.d.cts} +1 -1
  58. package/dist/mod.cjs +8 -8
  59. package/dist/mod.d.cts +5 -5
  60. package/dist/mod.d.ts +5 -5
  61. package/dist/mod.js +8 -8
  62. package/dist/nodeinfo/client.test.js +3 -3
  63. package/dist/nodeinfo/handler.test.js +16 -16
  64. package/dist/nodeinfo/types.test.js +2 -2
  65. package/dist/otel/exporter.test.d.ts +3 -0
  66. package/dist/otel/exporter.test.js +900 -0
  67. package/dist/otel/mod.cjs +262 -0
  68. package/dist/otel/mod.d.cts +230 -0
  69. package/dist/otel/mod.d.ts +232 -0
  70. package/dist/otel/mod.js +261 -0
  71. package/dist/{otel-1BmGPuZc.js → otel-Bfe_BgOV.js} +1 -2
  72. package/dist/{owner-_G6LyiEi.js → owner-CgznkTZ6.js} +2 -2
  73. package/dist/{proof-CZ_Wlbae.cjs → proof-AEFUz3SS.cjs} +3 -3
  74. package/dist/{proof-BqpNTnd4.js → proof-BrsOl9bB.js} +3 -3
  75. package/dist/{proof-BkMSGqJy.js → proof-rFeNfcVE.js} +2 -2
  76. package/dist/{send-BCzFH66x.js → send-w_IyjZ0S.js} +2 -2
  77. package/dist/sig/http.test.js +7 -7
  78. package/dist/sig/key.test.js +5 -5
  79. package/dist/sig/ld.test.js +6 -6
  80. package/dist/sig/mod.cjs +4 -4
  81. package/dist/sig/mod.js +4 -4
  82. package/dist/sig/owner.test.js +7 -7
  83. package/dist/sig/proof.test.js +6 -6
  84. package/dist/testing/docloader.test.js +2 -2
  85. package/dist/testing/mod.js +2 -2
  86. package/dist/{testing-cwlO8Sns.js → testing-fIO3Z258.js} +1 -1
  87. package/dist/utils/docloader.test.js +8 -8
  88. package/dist/utils/kv-cache.test.js +6 -3
  89. package/dist/utils/mod.cjs +4 -4
  90. package/dist/utils/mod.d.cts +2 -2
  91. package/dist/utils/mod.d.ts +2 -2
  92. package/dist/utils/mod.js +4 -4
  93. package/dist/vocab/actor.test.js +4 -4
  94. package/dist/vocab/lookup.test.js +4 -4
  95. package/dist/vocab/mod.cjs +3 -3
  96. package/dist/vocab/mod.js +3 -3
  97. package/dist/vocab/type.test.js +2 -2
  98. package/dist/vocab/vocab.test.js +157 -157
  99. package/dist/{vocab-BXz9NayY.js → vocab-BtqMcZvq.js} +2 -2
  100. package/dist/{vocab-_gvYdHDB.cjs → vocab-COVHviQ5.cjs} +2 -2
  101. package/dist/webfinger/handler.test.js +16 -16
  102. package/dist/webfinger/lookup.test.js +3 -3
  103. package/dist/webfinger/mod.cjs +1 -1
  104. package/dist/webfinger/mod.js +1 -1
  105. package/package.json +19 -11
  106. package/dist/middleware-BCFCgNNb.js +0 -26
  107. package/dist/middleware-BDTi2tq7.cjs +0 -15
  108. package/dist/middleware-NNEe-eQ5.js +0 -15
@@ -3,23 +3,23 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Activity, Application, Endpoints, Group, Person, Service } from "../lookup-Dvhilldd.js";
6
+ import { Activity, Application, Endpoints, Group, Person, Service } from "../lookup-kl47RWf3.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import { assert } from "../assert-MZs1qjMx.js";
9
9
  import "../assert_instance_of-DHz7EHNU.js";
10
- import "../actor-B5o1xrFI.js";
11
- import "../key-jo5CucF6.js";
12
- import { verifyRequest } from "../http-pgzDkXD0.js";
13
- import { doesActorOwnKey } from "../owner-_G6LyiEi.js";
14
- import { extractInboxes, sendActivity } from "../send-BCzFH66x.js";
15
- import { mockDocumentLoader, test } from "../testing-cwlO8Sns.js";
10
+ import "../actor-DrvDW-tK.js";
11
+ import "../key-C_b1t1Na.js";
12
+ import { verifyRequest } from "../http-BNxhNjYm.js";
13
+ import { doesActorOwnKey } from "../owner-CgznkTZ6.js";
14
+ import { extractInboxes, sendActivity } from "../send-w_IyjZ0S.js";
15
+ import { mockDocumentLoader, test } from "../testing-fIO3Z258.js";
16
16
  import "../std__assert-DWivtrGR.js";
17
17
  import { assertFalse, assertRejects } from "../assert_rejects-Ce45JcFg.js";
18
18
  import "../assert_throws-BNXdRGWP.js";
19
19
  import { assertNotEquals } from "../assert_not_equals-C80BG-_5.js";
20
- import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-BSzUEVJu.js";
21
- import { createTestTracerProvider } from "../otel-1BmGPuZc.js";
22
- import { esm_default } from "../esm-p1rx_7cC.js";
20
+ import { ed25519Multikey, ed25519PrivateKey, rsaPrivateKey2, rsaPublicKey2 } from "../keys-C01rMN22.js";
21
+ import { createTestTracerProvider } from "../otel-Bfe_BgOV.js";
22
+ import { esm_default } from "../esm-DQKBkSAc.js";
23
23
 
24
24
  //#region src/federation/send.test.ts
25
25
  test("extractInboxes()", () => {
@@ -68,6 +68,28 @@ var MemoryKvStore = class {
68
68
  this.#values[encodedKey] = [newValue, expiration];
69
69
  return Promise.resolve(true);
70
70
  }
71
+ /**
72
+ * {@inheritDoc KvStore.list}
73
+ */
74
+ async *list(prefix) {
75
+ const now = Temporal.Now.instant();
76
+ for (const [encodedKey, entry] of Object.entries(this.#values)) {
77
+ const key = JSON.parse(encodedKey);
78
+ if (prefix != null) {
79
+ if (key.length < prefix.length) continue;
80
+ if (!prefix.every((p, i) => key[i] === p)) continue;
81
+ }
82
+ const [value, expiration] = entry;
83
+ if (expiration != null && now.until(expiration).sign < 0) {
84
+ delete this.#values[encodedKey];
85
+ continue;
86
+ }
87
+ yield {
88
+ key,
89
+ value
90
+ };
91
+ }
92
+ }
71
93
  };
72
94
 
73
95
  //#endregion
@@ -67,6 +67,28 @@ var MemoryKvStore = class {
67
67
  this.#values[encodedKey] = [newValue, expiration];
68
68
  return Promise.resolve(true);
69
69
  }
70
+ /**
71
+ * {@inheritDoc KvStore.list}
72
+ */
73
+ async *list(prefix) {
74
+ const now = Temporal.Now.instant();
75
+ for (const [encodedKey, entry] of Object.entries(this.#values)) {
76
+ const key = JSON.parse(encodedKey);
77
+ if (prefix != null) {
78
+ if (key.length < prefix.length) continue;
79
+ if (!prefix.every((p, i) => key[i] === p)) continue;
80
+ }
81
+ const [value, expiration] = entry;
82
+ if (expiration != null && now.until(expiration).sign < 0) {
83
+ delete this.#values[encodedKey];
84
+ continue;
85
+ }
86
+ yield {
87
+ key,
88
+ value
89
+ };
90
+ }
91
+ }
70
92
  };
71
93
 
72
94
  //#endregion
@@ -3,8 +3,8 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { CryptographicKey, deno_default } from "./lookup-Dvhilldd.js";
7
- import { fetchKey, validateCryptoKey } from "./key-jo5CucF6.js";
6
+ import { CryptographicKey, deno_default } from "./lookup-kl47RWf3.js";
7
+ import { fetchKey, validateCryptoKey } from "./key-C_b1t1Na.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
  import { SpanStatusCode, trace } from "@opentelemetry/api";
10
10
  import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_URL_FULL } from "@opentelemetry/semantic-conventions";
@@ -2,8 +2,8 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import { deno_default } from "./lookup-BvK_-Lja.js";
6
- import { CryptographicKey, Object as Object$1, isActor } from "./actor-CT1vyB17.js";
5
+ import { deno_default } from "./lookup-BUqdDUac.js";
6
+ import { CryptographicKey, Object as Object$1, isActor } from "./actor-D3v8T9kQ.js";
7
7
  import { getLogger } from "@logtape/logtape";
8
8
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
9
9
  import { getDocumentLoader } from "@fedify/vocab-runtime";
@@ -3,8 +3,8 @@
3
3
  const { URLPattern } = require("urlpattern-polyfill");
4
4
 
5
5
  const require_chunk = require('./chunk-DqRYRqnO.cjs');
6
- const require_lookup = require('./lookup-DdOtSFct.cjs');
7
- const require_actor = require('./actor-BLBfgCFC.cjs');
6
+ const require_lookup = require('./lookup-UA4SKewV.cjs');
7
+ const require_actor = require('./actor-Bpgsv6Ii.cjs');
8
8
  const __logtape_logtape = require_chunk.__toESM(require("@logtape/logtape"));
9
9
  const __opentelemetry_api = require_chunk.__toESM(require("@opentelemetry/api"));
10
10
  const __fedify_vocab_runtime = require_chunk.__toESM(require("@fedify/vocab-runtime"));
@@ -3,7 +3,7 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Activity, deno_default, getTypeId } from "./lookup-Dvhilldd.js";
6
+ import { Activity, deno_default, getTypeId } from "./lookup-kl47RWf3.js";
7
7
  import { getLogger } from "@logtape/logtape";
8
8
  import { SpanKind, SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
9
9
 
@@ -3,8 +3,8 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { CryptographicKey, Object as Object$1, deno_default } from "./lookup-Dvhilldd.js";
7
- import { isActor } from "./actor-B5o1xrFI.js";
6
+ import { CryptographicKey, Object as Object$1, deno_default } from "./lookup-kl47RWf3.js";
7
+ import { isActor } from "./actor-DrvDW-tK.js";
8
8
  import { getDocumentLoader } from "@fedify/vocab-runtime";
9
9
  import { getLogger } from "@logtape/logtape";
10
10
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
@@ -3,7 +3,7 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { CryptographicKey, Multikey } from "./lookup-Dvhilldd.js";
6
+ import { CryptographicKey, Multikey } from "./lookup-kl47RWf3.js";
7
7
 
8
8
  //#region src/federation/keycache.ts
9
9
  var KvKeyCache = class {
@@ -3,7 +3,7 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { CryptographicKey, Multikey } from "./lookup-Dvhilldd.js";
6
+ import { CryptographicKey, Multikey } from "./lookup-kl47RWf3.js";
7
7
  import { importSpki } from "@fedify/vocab-runtime";
8
8
 
9
9
  //#region src/testing/keys.ts
@@ -19,6 +19,21 @@ interface KvStoreSetOptions {
19
19
  */
20
20
  ttl?: Temporal.Duration;
21
21
  }
22
+ /**
23
+ * An entry returned by the {@link KvStore.list} method.
24
+ *
25
+ * @since 1.10.0
26
+ */
27
+ interface KvStoreListEntry {
28
+ /**
29
+ * The key of the entry.
30
+ */
31
+ key: KvKey;
32
+ /**
33
+ * The value of the entry.
34
+ */
35
+ value: unknown;
36
+ }
22
37
  /**
23
38
  * An abstract interface for a key–value store.
24
39
  *
@@ -54,6 +69,16 @@ interface KvStore {
54
69
  * @since 1.8.0
55
70
  */
56
71
  cas?: (key: KvKey, expectedValue: unknown, newValue: unknown, options?: KvStoreSetOptions) => Promise<boolean>;
72
+ /**
73
+ * Lists all entries in the store that match the given prefix.
74
+ * If no prefix is given, all entries are returned.
75
+ * @param prefix The prefix to filter keys by. If not specified, all entries
76
+ * are returned.
77
+ * @returns An async iterable of entries matching the prefix.
78
+ * @since 1.10.0
79
+ * @since 2.0.0 This method is now required instead of optional.
80
+ */
81
+ list(prefix?: KvKey): AsyncIterable<KvStoreListEntry>;
57
82
  }
58
83
  /**
59
84
  * A key–value store that stores values in memory.
@@ -79,6 +104,10 @@ declare class MemoryKvStore implements KvStore {
79
104
  * {@inheritDoc KvStore.cas}
80
105
  */
81
106
  cas(key: KvKey, expectedValue: unknown, newValue: unknown, options?: KvStoreSetOptions): Promise<boolean>;
107
+ /**
108
+ * {@inheritDoc KvStore.list}
109
+ */
110
+ list(prefix?: KvKey): AsyncIterable<KvStoreListEntry>;
82
111
  }
83
112
  //#endregion
84
- export { KvKey, KvStore, KvStoreSetOptions, MemoryKvStore };
113
+ export { KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MemoryKvStore };
@@ -68,6 +68,28 @@ var MemoryKvStore = class {
68
68
  this.#values[encodedKey] = [newValue, expiration];
69
69
  return Promise.resolve(true);
70
70
  }
71
+ /**
72
+ * {@inheritDoc KvStore.list}
73
+ */
74
+ async *list(prefix) {
75
+ const now = Temporal.Now.instant();
76
+ for (const [encodedKey, entry] of Object.entries(this.#values)) {
77
+ const key = JSON.parse(encodedKey);
78
+ if (prefix != null) {
79
+ if (key.length < prefix.length) continue;
80
+ if (!prefix.every((p, i) => key[i] === p)) continue;
81
+ }
82
+ const [value, expiration] = entry;
83
+ if (expiration != null && now.until(expiration).sign < 0) {
84
+ delete this.#values[encodedKey];
85
+ continue;
86
+ }
87
+ yield {
88
+ key,
89
+ value
90
+ };
91
+ }
92
+ }
71
93
  };
72
94
 
73
95
  //#endregion
@@ -16,6 +16,21 @@ interface KvStoreSetOptions {
16
16
  */
17
17
  ttl?: Temporal.Duration;
18
18
  }
19
+ /**
20
+ * An entry returned by the {@link KvStore.list} method.
21
+ *
22
+ * @since 1.10.0
23
+ */
24
+ interface KvStoreListEntry {
25
+ /**
26
+ * The key of the entry.
27
+ */
28
+ key: KvKey;
29
+ /**
30
+ * The value of the entry.
31
+ */
32
+ value: unknown;
33
+ }
19
34
  /**
20
35
  * An abstract interface for a key–value store.
21
36
  *
@@ -51,6 +66,16 @@ interface KvStore {
51
66
  * @since 1.8.0
52
67
  */
53
68
  cas?: (key: KvKey, expectedValue: unknown, newValue: unknown, options?: KvStoreSetOptions) => Promise<boolean>;
69
+ /**
70
+ * Lists all entries in the store that match the given prefix.
71
+ * If no prefix is given, all entries are returned.
72
+ * @param prefix The prefix to filter keys by. If not specified, all entries
73
+ * are returned.
74
+ * @returns An async iterable of entries matching the prefix.
75
+ * @since 1.10.0
76
+ * @since 2.0.0 This method is now required instead of optional.
77
+ */
78
+ list(prefix?: KvKey): AsyncIterable<KvStoreListEntry>;
54
79
  }
55
80
  /**
56
81
  * A key–value store that stores values in memory.
@@ -76,6 +101,10 @@ declare class MemoryKvStore implements KvStore {
76
101
  * {@inheritDoc KvStore.cas}
77
102
  */
78
103
  cas(key: KvKey, expectedValue: unknown, newValue: unknown, options?: KvStoreSetOptions): Promise<boolean>;
104
+ /**
105
+ * {@inheritDoc KvStore.list}
106
+ */
107
+ list(prefix?: KvKey): AsyncIterable<KvStoreListEntry>;
79
108
  }
80
109
  //#endregion
81
- export { KvKey, KvStore, KvStoreSetOptions, MemoryKvStore };
110
+ export { KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions, MemoryKvStore };
@@ -2,7 +2,7 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import { doubleKnock, validateCryptoKey } from "./http-C78SwacJ.js";
5
+ import { doubleKnock, validateCryptoKey } from "./http-Bz4YpW-D.js";
6
6
  import { getLogger } from "@logtape/logtape";
7
7
  import { UrlError, createActivityPubRequest, getDocumentLoader, getRemoteDocument, logRequest, preloadedContexts, validatePublicUrl } from "@fedify/vocab-runtime";
8
8
  import { curry } from "es-toolkit";
@@ -3,7 +3,7 @@
3
3
  const { URLPattern } = require("urlpattern-polyfill");
4
4
 
5
5
  const require_chunk = require('./chunk-DqRYRqnO.cjs');
6
- const require_http = require('./http-ClCl_dis.cjs');
6
+ const require_http = require('./http-Dr7V4DY7.cjs');
7
7
  const __logtape_logtape = require_chunk.__toESM(require("@logtape/logtape"));
8
8
  const __fedify_vocab_runtime = require_chunk.__toESM(require("@fedify/vocab-runtime"));
9
9
  const es_toolkit = require_chunk.__toESM(require("es-toolkit"));
@@ -28,6 +28,19 @@ var MockKvStore = class {
28
28
  cas(..._) {
29
29
  return Promise.resolve(false);
30
30
  }
31
+ async *list(prefix) {
32
+ for (const [encodedKey, value] of Object.entries(this.#values)) {
33
+ const key = JSON.parse(encodedKey);
34
+ if (prefix != null) {
35
+ if (key.length < prefix.length) continue;
36
+ if (!prefix.every((p, i) => key[i] === p)) continue;
37
+ }
38
+ yield {
39
+ key,
40
+ value
41
+ };
42
+ }
43
+ }
31
44
  };
32
45
  /**
33
46
  * Decorates a {@link DocumentLoader} with a cache backed by a {@link Deno.Kv}.
@@ -3,8 +3,8 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Activity, CryptographicKey, Object as Object$1, deno_default, getTypeId } from "./lookup-Dvhilldd.js";
7
- import { fetchKey, validateCryptoKey } from "./key-jo5CucF6.js";
6
+ import { Activity, CryptographicKey, Object as Object$1, deno_default, getTypeId } from "./lookup-kl47RWf3.js";
7
+ import { fetchKey, validateCryptoKey } from "./key-C_b1t1Na.js";
8
8
  import { getDocumentLoader } from "@fedify/vocab-runtime";
9
9
  import { getLogger } from "@logtape/logtape";
10
10
  import { SpanStatusCode, trace } from "@opentelemetry/api";
@@ -8,13 +8,14 @@ import { UrlError, getUserAgent, validatePublicUrl } from "@fedify/vocab-runtime
8
8
 
9
9
  //#region deno.json
10
10
  var name = "@fedify/fedify";
11
- var version = "2.0.0-dev.7+a392e496";
11
+ var version = "2.0.0-dev.85+a55c8362";
12
12
  var license = "MIT";
13
13
  var exports = {
14
14
  ".": "./src/mod.ts",
15
15
  "./compat": "./src/compat/mod.ts",
16
16
  "./federation": "./src/federation/mod.ts",
17
17
  "./nodeinfo": "./src/nodeinfo/mod.ts",
18
+ "./otel": "./src/otel/mod.ts",
18
19
  "./sig": "./src/sig/mod.ts",
19
20
  "./testing": "./src/testing/mod.ts",
20
21
  "./vocab": "./src/vocab/mod.ts",
@@ -23,19 +24,18 @@ var exports = {
23
24
  };
24
25
  var imports = {
25
26
  "@multiformats/base-x": "npm:@multiformats/base-x@^4.0.1",
26
- "@opentelemetry/core": "npm:@opentelemetry/core@^1.30.1",
27
- "@opentelemetry/sdk-trace-base": "npm:@opentelemetry/sdk-trace-base@^1.30.1",
27
+ "@opentelemetry/core": "npm:@opentelemetry/core@^2.0.0",
28
+ "@opentelemetry/sdk-trace-base": "npm:@opentelemetry/sdk-trace-base@^2.0.0",
28
29
  "@opentelemetry/semantic-conventions": "npm:@opentelemetry/semantic-conventions@^1.27.0",
29
30
  "@std/assert": "jsr:@std/assert@^0.226.0",
30
31
  "@std/url": "jsr:@std/url@^0.225.1",
31
- "asn1js": "npm:asn1js@^3.0.5",
32
- "es-toolkit": "jsr:@es-toolkit/es-toolkit@^1.39.5",
32
+ "asn1js": "npm:asn1js@^3.0.7",
33
33
  "fast-check": "npm:fast-check@^3.22.0",
34
34
  "fetch-mock": "npm:fetch-mock@^12.5.2",
35
35
  "json-canon": "npm:json-canon@^1.0.1",
36
36
  "jsonld": "npm:jsonld@^9.0.0",
37
37
  "multicodec": "npm:multicodec@^3.2.1",
38
- "pkijs": "npm:pkijs@^3.2.4",
38
+ "pkijs": "npm:pkijs@^3.3.3",
39
39
  "structured-field-values": "npm:structured-field-values@^2.0.4",
40
40
  "uri-template-router": "npm:uri-template-router@^1.0.0",
41
41
  "url-template": "npm:url-template@^3.1.1"
@@ -9,13 +9,14 @@ const __fedify_vocab_runtime = require_chunk.__toESM(require("@fedify/vocab-runt
9
9
 
10
10
  //#region deno.json
11
11
  var name = "@fedify/fedify";
12
- var version = "2.0.0-dev.7+a392e496";
12
+ var version = "2.0.0-dev.85+a55c8362";
13
13
  var license = "MIT";
14
14
  var exports$1 = {
15
15
  ".": "./src/mod.ts",
16
16
  "./compat": "./src/compat/mod.ts",
17
17
  "./federation": "./src/federation/mod.ts",
18
18
  "./nodeinfo": "./src/nodeinfo/mod.ts",
19
+ "./otel": "./src/otel/mod.ts",
19
20
  "./sig": "./src/sig/mod.ts",
20
21
  "./testing": "./src/testing/mod.ts",
21
22
  "./vocab": "./src/vocab/mod.ts",
@@ -24,19 +25,18 @@ var exports$1 = {
24
25
  };
25
26
  var imports = {
26
27
  "@multiformats/base-x": "npm:@multiformats/base-x@^4.0.1",
27
- "@opentelemetry/core": "npm:@opentelemetry/core@^1.30.1",
28
- "@opentelemetry/sdk-trace-base": "npm:@opentelemetry/sdk-trace-base@^1.30.1",
28
+ "@opentelemetry/core": "npm:@opentelemetry/core@^2.0.0",
29
+ "@opentelemetry/sdk-trace-base": "npm:@opentelemetry/sdk-trace-base@^2.0.0",
29
30
  "@opentelemetry/semantic-conventions": "npm:@opentelemetry/semantic-conventions@^1.27.0",
30
31
  "@std/assert": "jsr:@std/assert@^0.226.0",
31
32
  "@std/url": "jsr:@std/url@^0.225.1",
32
- "asn1js": "npm:asn1js@^3.0.5",
33
- "es-toolkit": "jsr:@es-toolkit/es-toolkit@^1.39.5",
33
+ "asn1js": "npm:asn1js@^3.0.7",
34
34
  "fast-check": "npm:fast-check@^3.22.0",
35
35
  "fetch-mock": "npm:fetch-mock@^12.5.2",
36
36
  "json-canon": "npm:json-canon@^1.0.1",
37
37
  "jsonld": "npm:jsonld@^9.0.0",
38
38
  "multicodec": "npm:multicodec@^3.2.1",
39
- "pkijs": "npm:pkijs@^3.2.4",
39
+ "pkijs": "npm:pkijs@^3.3.3",
40
40
  "structured-field-values": "npm:structured-field-values@^2.0.4",
41
41
  "uri-template-router": "npm:uri-template-router@^1.0.0",
42
42
  "url-template": "npm:url-template@^3.1.1"