@fedify/fedify 2.3.0-dev.1189 → 2.3.0-dev.1212

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 (76) hide show
  1. package/dist/{builder-Dc6s3gPe.mjs → builder-DdbtvTFp.mjs} +2 -2
  2. package/dist/circuit-breaker-CSWsyoef.mjs +337 -0
  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-CRXCkTM6.d.cts → context-DMHK7jqX.d.cts} +224 -3
  7. package/dist/{context-MgCh7YGu.d.ts → context-K9cg8oGx.d.ts} +224 -3
  8. package/dist/{deno-BomxIkHS.mjs → deno-DTaoLXHr.mjs} +1 -1
  9. package/dist/{docloader-CzS6F5sZ.mjs → docloader-CdNiXmNg.mjs} +2 -2
  10. package/dist/federation/builder.test.mjs +1 -1
  11. package/dist/federation/circuit-breaker.test.d.mts +2 -0
  12. package/dist/federation/circuit-breaker.test.mjs +446 -0
  13. package/dist/federation/collection.test.mjs +1 -1
  14. package/dist/federation/handler.test.mjs +3 -3
  15. package/dist/federation/idempotency.test.mjs +2 -2
  16. package/dist/federation/keycache.test.mjs +1 -1
  17. package/dist/federation/metrics.test.mjs +16 -1
  18. package/dist/federation/middleware.test.mjs +817 -6
  19. package/dist/federation/mod.cjs +4 -1
  20. package/dist/federation/mod.d.cts +3 -3
  21. package/dist/federation/mod.d.ts +3 -3
  22. package/dist/federation/mod.js +2 -2
  23. package/dist/federation/negotiation.test.mjs +1 -1
  24. package/dist/federation/retry.test.mjs +1 -1
  25. package/dist/federation/send.test.mjs +43 -10
  26. package/dist/federation/temporal.test.mjs +1 -1
  27. package/dist/federation/webfinger.test.mjs +1 -1
  28. package/dist/{getMachineId-bsd-BY01PL1n.mjs → getMachineId-bsd-Bn0le7-J.mjs} +1 -1
  29. package/dist/{getMachineId-darwin-Dr1gkBkp.mjs → getMachineId-darwin-CVjKuDgj.mjs} +1 -1
  30. package/dist/{getMachineId-win-QEYwcJiy.mjs → getMachineId-win-c5zxTSS1.mjs} +1 -1
  31. package/dist/{http-B-psRIq6.js → http-BEG9kx13.js} +25 -6
  32. package/dist/{http-DtWN_XvX.mjs → http-ByCfCX5K.mjs} +3 -3
  33. package/dist/{http-DnJyL_6c.cjs → http-Czeyq7if.cjs} +30 -5
  34. package/dist/{key-CT2NnJuR.mjs → key-Bhsx9PrC.mjs} +2 -2
  35. package/dist/{kv-cache-Bf8AoV6C.mjs → kv-cache-D4jzgeYW.mjs} +1 -1
  36. package/dist/{kv-cache-DKhLDCH8.js → kv-cache-D9U1AnXH.js} +1 -1
  37. package/dist/{kv-cache-CVre456Y.cjs → kv-cache-qRBN2G2Z.cjs} +1 -1
  38. package/dist/{ld-DCyQasTE.mjs → ld-CHtLb_Uh.mjs} +3 -3
  39. package/dist/{metrics-xgr0P4hO.mjs → metrics-uwSF8DLC.mjs} +25 -6
  40. package/dist/{middleware-DK0thDHX.mjs → middleware-BmSzD5U9.mjs} +279 -40
  41. package/dist/{middleware-DIJ_6KFI.cjs → middleware-CRORNnSU.cjs} +632 -31
  42. package/dist/{middleware-sgx08IEk.mjs → middleware-CyiBzIwY.mjs} +1 -1
  43. package/dist/{middleware-BgbdoV61.js → middleware-DrKDd2JT.js} +615 -32
  44. package/dist/{mod-CpQHB3Ys.d.ts → mod-CfOFqS0w.d.ts} +1 -1
  45. package/dist/{mod-C7HOzGqH.d.cts → mod-YLnSsEHY.d.cts} +1 -1
  46. package/dist/mod.cjs +7 -4
  47. package/dist/mod.d.cts +4 -4
  48. package/dist/mod.d.ts +4 -4
  49. package/dist/mod.js +5 -5
  50. package/dist/nodeinfo/handler.test.mjs +1 -1
  51. package/dist/{owner-BIU_Sl7y.mjs → owner-B0Zrhs0w.mjs} +2 -2
  52. package/dist/{proof-B5defvTr.js → proof-CZhAX94C.js} +1 -1
  53. package/dist/{proof-DDs7BRl7.mjs → proof-DbJFxpzD.mjs} +3 -3
  54. package/dist/{proof-B9xbksrX.cjs → proof-frzCtYji.cjs} +1 -1
  55. package/dist/{send-BuxDCpxz.mjs → send-kst2L0Df.mjs} +21 -7
  56. package/dist/sig/http.test.mjs +2 -2
  57. package/dist/sig/key.test.mjs +1 -1
  58. package/dist/sig/ld.test.mjs +2 -2
  59. package/dist/sig/mod.cjs +2 -2
  60. package/dist/sig/mod.js +2 -2
  61. package/dist/sig/owner.test.mjs +1 -1
  62. package/dist/sig/proof.test.mjs +1 -1
  63. package/dist/{temporal-DHgeMWiP.mjs → temporal-CcGypkzd.mjs} +1 -1
  64. package/dist/testing/mod.d.mts +36 -2
  65. package/dist/utils/docloader.test.mjs +2 -2
  66. package/dist/utils/kv-cache.test.mjs +1 -1
  67. package/dist/utils/mod.cjs +1 -1
  68. package/dist/utils/mod.js +1 -1
  69. package/package.json +6 -6
  70. /package/dist/{collection-CA3V5zyK.mjs → collection-Cc3DVAhE.mjs} +0 -0
  71. /package/dist/{execAsync-Dxb7rNf3.mjs → execAsync-Dmet7-28.mjs} +0 -0
  72. /package/dist/{getMachineId-linux-Bbhofx-s.mjs → getMachineId-linux-DbG4BXa-.mjs} +0 -0
  73. /package/dist/{getMachineId-unsupported-dIOte2Ct.mjs → getMachineId-unsupported-lC8T9hPE.mjs} +0 -0
  74. /package/dist/{keycache-BYMd8q7F.mjs → keycache-BeU0LCII.mjs} +0 -0
  75. /package/dist/{negotiation-CDW-_gUU.mjs → negotiation-DDstyBvc.mjs} +0 -0
  76. /package/dist/{retry-_VvV0h9f.mjs → retry-CXg_MBI-.mjs} +0 -0
@@ -17,6 +17,177 @@ import { Link as Link$1, LookupWebFingerOptions, ResourceDescriptor } from "@fed
17
17
  */
18
18
  type ActivityTransformer<TContextData> = (activity: Activity, context: Context<TContextData>) => Activity;
19
19
  //#endregion
20
+ //#region src/federation/circuit-breaker.d.ts
21
+ /**
22
+ * The state of a remote host circuit breaker.
23
+ * @since 2.3.0
24
+ */
25
+ type CircuitBreakerState = "closed" | "open" | "half-open";
26
+ /**
27
+ * The JSON-serializable state stored in the configured {@link KvStore}.
28
+ * @since 2.3.0
29
+ */
30
+ interface CircuitBreakerKvState {
31
+ readonly state: CircuitBreakerState;
32
+ readonly failures: readonly string[];
33
+ readonly opened?: string;
34
+ readonly halfOpened?: string;
35
+ }
36
+ /**
37
+ * Details passed to {@link CircuitBreakerOptions.onActivityDrop} when a held
38
+ * activity expires before the remote host recovers.
39
+ * @since 2.3.0
40
+ */
41
+ interface CircuitBreakerActivityDrop {
42
+ /** The inbox URL that would have received the activity. */
43
+ readonly inbox: URL;
44
+ /** The activity that was dropped. */
45
+ readonly activity: Activity;
46
+ /** The activity ID, when known. */
47
+ readonly activityId?: string;
48
+ /** The activity type. */
49
+ readonly activityType: string;
50
+ /** The actor IDs represented by this inbox. */
51
+ readonly actorIds: readonly URL[];
52
+ /** The time when Fedify first held this activity. */
53
+ readonly heldSince: Temporal.Instant;
54
+ }
55
+ /**
56
+ * Configures how a remote host circuit opens after repeated delivery
57
+ * failures.
58
+ * @since 2.3.0
59
+ */
60
+ type CircuitBreakerFailurePolicy = {
61
+ failure(timestamps: readonly Temporal.Instant[]): boolean;
62
+ readonly failureThreshold?: never;
63
+ readonly failureWindow?: never;
64
+ } | {
65
+ readonly failure?: never;
66
+ readonly failureThreshold?: number;
67
+ readonly failureWindow?: Temporal.Duration | Temporal.DurationLike;
68
+ };
69
+ /**
70
+ * Options for Fedify's outbound activity circuit breaker.
71
+ * @since 2.3.0
72
+ */
73
+ type CircuitBreakerOptions = CircuitBreakerFailurePolicy & {
74
+ /**
75
+ * How long an open circuit waits before allowing a half-open recovery probe.
76
+ * @default `{ minutes: 30 }`
77
+ */
78
+ readonly recoveryDelay?: Temporal.Duration | Temporal.DurationLike;
79
+ /**
80
+ * How long Fedify keeps requeueing activities held by an open circuit before
81
+ * dropping them.
82
+ * @default `{ days: 7 }`
83
+ */
84
+ readonly heldActivityTtl?: Temporal.Duration | Temporal.DurationLike;
85
+ /**
86
+ * How often other held activities retry while a half-open probe is in
87
+ * flight. The probe is treated as stale after the recovery delay.
88
+ * @default `{ seconds: 1 }`
89
+ */
90
+ readonly releaseInterval?: Temporal.Duration | Temporal.DurationLike;
91
+ /**
92
+ * Called whenever the circuit state changes.
93
+ */
94
+ readonly onStateChange?: (remoteHost: string, previousState: CircuitBreakerState, newState: CircuitBreakerState) => void | Promise<void>;
95
+ /**
96
+ * Called when an activity held by the circuit breaker expires.
97
+ */
98
+ readonly onActivityDrop?: (remoteHost: string, details: CircuitBreakerActivityDrop) => void | Promise<void>;
99
+ };
100
+ /**
101
+ * Normalized circuit breaker options used internally by Fedify.
102
+ * @internal
103
+ */
104
+ interface NormalizedCircuitBreakerOptions {
105
+ readonly failure: (timestamps: readonly Temporal.Instant[]) => boolean;
106
+ readonly pruneFailures: (timestamps: readonly Temporal.Instant[], now: Temporal.Instant) => readonly Temporal.Instant[];
107
+ readonly recoveryDelay: Temporal.Duration;
108
+ readonly heldActivityTtl: Temporal.Duration;
109
+ readonly releaseInterval: Temporal.Duration;
110
+ readonly onStateChange?: CircuitBreakerOptions["onStateChange"];
111
+ readonly onActivityDrop?: CircuitBreakerOptions["onActivityDrop"];
112
+ }
113
+ /**
114
+ * Constructor options for {@link CircuitBreaker}.
115
+ * @internal
116
+ */
117
+ interface CircuitBreakerCreateOptions {
118
+ readonly kv: KvStore;
119
+ readonly prefix: KvKey;
120
+ readonly options?: CircuitBreakerOptions;
121
+ readonly now?: () => Temporal.Instant;
122
+ /**
123
+ * Observes state changes after user callbacks have run.
124
+ * @internal
125
+ */
126
+ readonly stateChangeObserver?: (remoteHost: string, previousState: CircuitBreakerState, newState: CircuitBreakerState) => void | Promise<void>;
127
+ }
128
+ /**
129
+ * The delivery decision returned by {@link CircuitBreaker.beforeSend}.
130
+ * @internal
131
+ */
132
+ type CircuitBreakerBeforeSendDecision = {
133
+ readonly type: "send";
134
+ readonly probe: boolean;
135
+ readonly stateChange?: CircuitBreakerStateChange;
136
+ } | {
137
+ readonly type: "hold";
138
+ readonly state: "open" | "half-open";
139
+ readonly delay: Temporal.Duration;
140
+ readonly heldSince: Temporal.Instant;
141
+ } | {
142
+ readonly type: "drop";
143
+ readonly heldSince: Temporal.Instant;
144
+ };
145
+ /**
146
+ * A circuit breaker state transition.
147
+ * @since 2.3.0
148
+ */
149
+ interface CircuitBreakerStateChange {
150
+ readonly previousState: CircuitBreakerState;
151
+ readonly newState: CircuitBreakerState;
152
+ }
153
+ /**
154
+ * Tracks reachability state for remote outbox delivery hosts.
155
+ * @since 2.3.0
156
+ */
157
+ declare class CircuitBreaker {
158
+ #private;
159
+ constructor(options: CircuitBreakerCreateOptions);
160
+ get options(): NormalizedCircuitBreakerOptions;
161
+ capHeldDelay(heldSince: Temporal.Instant, delay: Temporal.Duration): Temporal.Duration;
162
+ beforeSend(remoteHost: string, message: {
163
+ readonly circuitHeldSince?: string;
164
+ }): Promise<CircuitBreakerBeforeSendDecision>;
165
+ recordSuccess(remoteHost: string): Promise<CircuitBreakerStateChange | undefined>;
166
+ recordReachableFailure(remoteHost: string): Promise<CircuitBreakerStateChange | undefined>;
167
+ recordFailure(remoteHost: string): Promise<CircuitBreakerStateChange | undefined>;
168
+ dropActivity(remoteHost: string, details: CircuitBreakerActivityDrop): Promise<void>;
169
+ getState(remoteHost: string): Promise<CircuitBreakerKvState | undefined>;
170
+ }
171
+ /**
172
+ * Normalizes user-provided circuit breaker options into the internal policy
173
+ * shape used while processing queued outbox deliveries.
174
+ *
175
+ * @param options The public circuit breaker options supplied to Fedify.
176
+ * @returns The normalized failure predicate, failure pruning function,
177
+ * duration values, and optional callbacks with defaults applied.
178
+ * @throws {RangeError} If any configured duration is not positive.
179
+ * @throws {TypeError} If `failureThreshold` is not a positive integer.
180
+ */
181
+ declare function normalizeCircuitBreakerOptions(options: CircuitBreakerOptions): NormalizedCircuitBreakerOptions;
182
+ /**
183
+ * Parses a value loaded from the circuit breaker KV store.
184
+ *
185
+ * @param value The raw KV value to validate.
186
+ * @returns A circuit breaker state when `value` has a recognized state and
187
+ * valid instant strings, or `undefined` when the stored value is malformed.
188
+ */
189
+ declare function parseCircuitBreakerKvState(value: unknown): CircuitBreakerKvState | undefined;
190
+ //#endregion
20
191
  //#region src/federation/collection.d.ts
21
192
  /**
22
193
  * A page of items.
@@ -83,13 +254,19 @@ declare class SendActivityError extends Error {
83
254
  */
84
255
  readonly responseBody: string;
85
256
  /**
257
+ * The response headers from the inbox.
258
+ * @since 2.3.0
259
+ */
260
+ readonly responseHeaders: Headers;
261
+ /**
86
262
  * Creates a new {@link SendActivityError}.
87
263
  * @param inbox The inbox URL.
88
264
  * @param statusCode The HTTP status code.
89
265
  * @param message The error message.
90
266
  * @param responseBody The response body.
267
+ * @param responseHeaders The response headers.
91
268
  */
92
- constructor(inbox: URL, statusCode: number, message: string, responseBody: string);
269
+ constructor(inbox: URL, statusCode: number, message: string, responseBody: string, responseHeaders?: HeadersInit);
93
270
  }
94
271
  //#endregion
95
272
  //#region src/federation/callback.d.ts
@@ -312,11 +489,28 @@ type OutboxErrorHandler = (error: Error, activity: Activity | null) => void | Pr
312
489
  * @since 2.0.0
313
490
  */
314
491
  type OutboxPermanentFailureHandler<TContextData> = (context: Context<TContextData>, values: {
315
- /** The inbox URL that failed. */readonly inbox: URL; /** The activity that failed to deliver. */
492
+ /**
493
+ * Why Fedify is giving up on delivery.
494
+ *
495
+ * `"http"` means the inbox returned a configured permanent-failure HTTP
496
+ * status. `"circuit-breaker-ttl"` means the outbound circuit breaker held
497
+ * the activity until its retention period expired.
498
+ *
499
+ * @since 2.3.0
500
+ */
501
+ readonly reason: "http" | "circuit-breaker-ttl"; /** The inbox URL that failed. */
502
+ readonly inbox: URL; /** The activity that failed to deliver. */
316
503
  readonly activity: Activity; /** The error that occurred. */
317
504
  readonly error: SendActivityError; /** The HTTP status code returned by the inbox. */
318
505
  readonly statusCode: number;
319
506
  /**
507
+ * The time when the circuit breaker first held the activity, if
508
+ * {@link reason} is `"circuit-breaker-ttl"`.
509
+ *
510
+ * @since 2.3.0
511
+ */
512
+ readonly circuitHeldSince?: Temporal.Instant;
513
+ /**
320
514
  * The actor IDs that were supposed to receive the activity at this inbox.
321
515
  */
322
516
  readonly actorIds: readonly URL[];
@@ -478,6 +672,17 @@ interface OutboxMessage {
478
672
  readonly attempt: number;
479
673
  readonly headers: Readonly<Record<string, string>>;
480
674
  readonly orderingKey?: string;
675
+ /**
676
+ * Whether this message is currently held by the outbound circuit breaker.
677
+ * @internal
678
+ */
679
+ readonly circuitHeld?: true;
680
+ /**
681
+ * When Fedify first held this message because the remote host circuit was
682
+ * open.
683
+ * @internal
684
+ */
685
+ readonly circuitHeldSince?: string;
481
686
  readonly traceContext: Readonly<Record<string, string>>;
482
687
  }
483
688
  interface InboxMessage {
@@ -651,6 +856,12 @@ interface FederationKvPrefixes {
651
856
  * @since 2.1.0
652
857
  */
653
858
  readonly acceptSignatureNonce: KvKey;
859
+ /**
860
+ * The key prefix used for storing outbound delivery circuit breaker state.
861
+ * @default `["_fedify", "circuit"]`
862
+ * @since 2.3.0
863
+ */
864
+ readonly circuitBreaker: KvKey;
654
865
  }
655
866
  /**
656
867
  * Options for {@link FederationOptions.origin} when it is not a string.
@@ -1354,6 +1565,16 @@ interface FederationOptions<TContextData> {
1354
1565
  */
1355
1566
  outboxRetryPolicy?: RetryPolicy;
1356
1567
  /**
1568
+ * The circuit breaker for queued outbound activity delivery. When enabled,
1569
+ * Fedify tracks repeated failures per remote host and temporarily holds
1570
+ * queued activities instead of repeatedly hammering an unreachable server.
1571
+ *
1572
+ * Passing `false` disables the circuit breaker.
1573
+ *
1574
+ * @since 2.3.0
1575
+ */
1576
+ circuitBreaker?: false | CircuitBreakerOptions;
1577
+ /**
1357
1578
  * The retry policy for processing incoming activities. By default, this
1358
1579
  * uses an exponential backoff strategy with a maximum of 10 attempts and a
1359
1580
  * maximum delay of 12 hours.
@@ -2623,4 +2844,4 @@ interface ActorKeyPair extends CryptoKeyPair {
2623
2844
  readonly multikey: Multikey;
2624
2845
  }
2625
2846
  //#endregion
2626
- export { CustomCollectionDispatcher as $, FederationKvPrefixes as A, RespondWithObjectOptions as B, IdempotencyKeyCallback as C, ObjectCallbackSetters as D, InboxListenerSetters as E, RetryContext as F, ActorHandleMapper as G, respondWithObjectIfAcceptable as H, RetryPolicy as I, CollectionCounter as J, ActorKeyPairsDispatcher as K, createExponentialBackoffPolicy as L, FederationQueueOptions as M, createFederation as N, OutboxListenerSetters as O, CreateExponentialBackoffPolicyOptions as P, CustomCollectionCursor as Q, Message as R, FederationStartQueueOptions as S, InboxChallengePolicy as T, ActorAliasMapper as U, respondWithObject as V, ActorDispatcher as W, CollectionDispatcher as X, CollectionCursor as Y, CustomCollectionCounter as Z, Federatable as _, digest as _t, GetSignedKeyOptions as a, OutboxErrorHandler as at, FederationFetchOptions as b, ParseUriResult as c, OutboxPermanentFailureHandler as ct, SendActivityOptions as d, UnverifiedActivityReason as dt, InboxErrorHandler as et, SendActivityOptionsForCollection as f, WebFingerLinksDispatcher as ft, CustomCollectionCallbackSetters as g, buildCollectionSynchronizationHeader as gt, ConstructorWithTypeId as h, PageItems as ht, GetActorOptions as i, ObjectDispatcher as it, FederationOrigin as j, Rfc6570Expression as k, RequestContext as l, SharedInboxKeyDispatcher as lt, CollectionCallbackSetters as m, SenderKeyPair as mt, Context as n, NodeInfoDispatcher as nt, InboxContext as o, OutboxListener as ot, ActorCallbackSetters as p, SendActivityError as pt, AuthorizePredicate as q, ForwardActivityOptions as r, ObjectAuthorizePredicate as rt, OutboxContext as s, OutboxListenerErrorHandler as st, ActorKeyPair as t, InboxListener as tt, RouteActivityOptions as u, UnverifiedActivityHandler as ut, Federation as v, ActivityTransformer as vt, IdempotencyStrategy as w, FederationOptions as x, FederationBuilder as y, createFederationBuilder as z };
2847
+ export { CustomCollectionDispatcher as $, FederationKvPrefixes as A, ActivityTransformer as At, RespondWithObjectOptions as B, IdempotencyKeyCallback as C, CircuitBreakerKvState as Ct, ObjectCallbackSetters as D, NormalizedCircuitBreakerOptions as Dt, InboxListenerSetters as E, CircuitBreakerStateChange as Et, RetryContext as F, ActorHandleMapper as G, respondWithObjectIfAcceptable as H, RetryPolicy as I, CollectionCounter as J, ActorKeyPairsDispatcher as K, createExponentialBackoffPolicy as L, FederationQueueOptions as M, createFederation as N, OutboxListenerSetters as O, normalizeCircuitBreakerOptions as Ot, CreateExponentialBackoffPolicyOptions as P, CustomCollectionCursor as Q, Message as R, FederationStartQueueOptions as S, CircuitBreakerFailurePolicy as St, InboxChallengePolicy as T, CircuitBreakerState as Tt, ActorAliasMapper as U, respondWithObject as V, ActorDispatcher as W, CollectionDispatcher as X, CollectionCursor as Y, CustomCollectionCounter as Z, Federatable as _, digest as _t, GetSignedKeyOptions as a, OutboxErrorHandler as at, FederationFetchOptions as b, CircuitBreakerBeforeSendDecision as bt, ParseUriResult as c, OutboxPermanentFailureHandler as ct, SendActivityOptions as d, UnverifiedActivityReason as dt, InboxErrorHandler as et, SendActivityOptionsForCollection as f, WebFingerLinksDispatcher as ft, CustomCollectionCallbackSetters as g, buildCollectionSynchronizationHeader as gt, ConstructorWithTypeId as h, PageItems as ht, GetActorOptions as i, ObjectDispatcher as it, FederationOrigin as j, Rfc6570Expression as k, parseCircuitBreakerKvState as kt, RequestContext as l, SharedInboxKeyDispatcher as lt, CollectionCallbackSetters as m, SenderKeyPair as mt, Context as n, NodeInfoDispatcher as nt, InboxContext as o, OutboxListener as ot, ActorCallbackSetters as p, SendActivityError as pt, AuthorizePredicate as q, ForwardActivityOptions as r, ObjectAuthorizePredicate as rt, OutboxContext as s, OutboxListenerErrorHandler as st, ActorKeyPair as t, InboxListener as tt, RouteActivityOptions as u, UnverifiedActivityHandler as ut, Federation as v, CircuitBreaker as vt, IdempotencyStrategy as w, CircuitBreakerOptions as wt, FederationOptions as x, CircuitBreakerCreateOptions as xt, FederationBuilder as y, CircuitBreakerActivityDrop as yt, createFederationBuilder as z };
@@ -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.3.0-dev.1189+97e55e59";
6
+ var version = "2.3.0-dev.1212+3737de7f";
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-CT2NnJuR.mjs";
5
- import { n as doubleKnock } from "./http-DtWN_XvX.mjs";
4
+ import { o as validateCryptoKey } from "./key-Bhsx9PrC.mjs";
5
+ import { n as doubleKnock } from "./http-ByCfCX5K.mjs";
6
6
  import { getLogger } from "@logtape/logtape";
7
7
  import { UrlError, createActivityPubRequest, getRemoteDocument, logRequest, validatePublicUrl } from "@fedify/vocab-runtime";
8
8
  import { curry } from "es-toolkit";
@@ -5,7 +5,7 @@ import { t as assertEquals } from "../assert_equals-C-ZRDbaf.mjs";
5
5
  import { r as assertExists } from "../std__assert-BBjXFNOb.mjs";
6
6
  import { t as assertThrows } from "../assert_throws-BOkhLGYc.mjs";
7
7
  import { t as MemoryKvStore } from "../kv-x2IvBUyq.mjs";
8
- import { r as createFederationBuilder } from "../builder-Dc6s3gPe.mjs";
8
+ import { r as createFederationBuilder } from "../builder-DdbtvTFp.mjs";
9
9
  import { DisallowedOperatorError, DisallowedVarSpecModifierError, DuplicateRouteVariableError, RouteTemplateOptionsNotMatchedError, RouterError } from "@fedify/uri-template";
10
10
  import { Activity, Note, Person } from "@fedify/vocab";
11
11
  import { test } from "@fedify/fixture";
@@ -0,0 +1,2 @@
1
+ import { Temporal } from "@js-temporal/polyfill";
2
+ import { URLPattern } from "urlpattern-polyfill";