@fedify/fedify 2.4.0-dev.1583 → 2.4.0-dev.1599

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 (148) hide show
  1. package/dist/{accept-CgDcxvjV.mjs → accept-8PiolDP7.mjs} +1 -1
  2. package/dist/{activity-listener-BeTGV3wc.mjs → activity-listener-BtTSxZWA.mjs} +1 -1
  3. package/dist/{assert-DvVHoIZ0.mjs → assert-CJ1KXcvv.mjs} +2 -2
  4. package/dist/{assert_equals-PBVKNMJd.mjs → assert_equals-BV7oLMxm.mjs} +1 -1
  5. package/dist/{assert_instance_of-CxoC8bVq.mjs → assert_instance_of-Q9KTBnrf.mjs} +2 -2
  6. package/dist/{assert_not_equals-C8vcTTA3.mjs → assert_not_equals-EPJPoxuf.mjs} +2 -2
  7. package/dist/{assert_rejects-DAdaaIWM.mjs → assert_rejects-EgstcQy5.mjs} +3 -3
  8. package/dist/{assert_strict_equals-BzqyKuYL.mjs → assert_strict_equals-Ec20AUwa.mjs} +2 -2
  9. package/dist/{assert_throws-zN79lgIC.mjs → assert_throws-NiFfqbnH.mjs} +2 -2
  10. package/dist/{builder-Doj1FmsW.mjs → builder-BvCI7Xch.mjs} +4 -4
  11. package/dist/{chunk-DDcVe30Y.cjs → chunk-Czpeue4M.cjs} +0 -1
  12. package/dist/{chunk-CRNNMoPX.js → chunk-D5IdezsZ.js} +1 -1
  13. package/dist/{circuit-breaker-hJBB6jwA.mjs → circuit-breaker-CBGyz5F7.mjs} +1 -1
  14. package/dist/{client-B_A6mfn3.mjs → client-CjF5IYQS.mjs} +1 -1
  15. package/dist/{codec-nfBU4Up4.mjs → codec-BBga-FWI.mjs} +1 -1
  16. package/dist/{collection-Dp5ky45w.mjs → collection-BIhlldqK.mjs} +1 -1
  17. package/dist/compat/mod.cjs +1 -2
  18. package/dist/compat/mod.js +2 -2
  19. package/dist/compat/outgoing-jsonld.test.d.mts +1 -1
  20. package/dist/compat/outgoing-jsonld.test.mjs +4 -4
  21. package/dist/compat/public-audience.test.d.mts +1 -1
  22. package/dist/compat/public-audience.test.mjs +4 -4
  23. package/dist/compat/transformers.test.d.mts +1 -1
  24. package/dist/compat/transformers.test.mjs +6 -6
  25. package/dist/{context-BBRTgkrs.mjs → context-C7Sbmci2.mjs} +1 -1
  26. package/dist/{deno-Bkl9jNVs.mjs → deno-BCt09TJn.mjs} +2 -2
  27. package/dist/{docloader-f1XFaWWh.mjs → docloader-BrRjFwOp.mjs} +3 -3
  28. package/dist/{esm-vrlUxr60.mjs → esm-yYQfPhIY.mjs} +1 -1
  29. package/dist/federation/builder.test.d.mts +1 -1
  30. package/dist/federation/builder.test.mjs +6 -6
  31. package/dist/federation/circuit-breaker.test.d.mts +1 -1
  32. package/dist/federation/circuit-breaker.test.mjs +6 -6
  33. package/dist/federation/collection.test.d.mts +1 -1
  34. package/dist/federation/collection.test.mjs +4 -4
  35. package/dist/federation/handler.test.d.mts +1 -1
  36. package/dist/federation/handler.test.mjs +14 -14
  37. package/dist/federation/idempotency.test.d.mts +1 -1
  38. package/dist/federation/idempotency.test.mjs +7 -7
  39. package/dist/federation/inbox.test.d.mts +1 -1
  40. package/dist/federation/inbox.test.mjs +4 -4
  41. package/dist/federation/keycache.test.d.mts +1 -1
  42. package/dist/federation/keycache.test.mjs +6 -6
  43. package/dist/federation/kv.test.d.mts +1 -1
  44. package/dist/federation/kv.test.mjs +4 -4
  45. package/dist/federation/metrics.test.d.mts +1 -1
  46. package/dist/federation/metrics.test.mjs +5 -5
  47. package/dist/federation/middleware.test.d.mts +1 -1
  48. package/dist/federation/middleware.test.mjs +22 -22
  49. package/dist/federation/mod.cjs +4 -3
  50. package/dist/federation/mod.js +2 -2
  51. package/dist/federation/mq.test.d.mts +1 -1
  52. package/dist/federation/mq.test.mjs +6 -6
  53. package/dist/federation/negotiation.test.d.mts +1 -1
  54. package/dist/federation/negotiation.test.mjs +5 -5
  55. package/dist/federation/retry.test.d.mts +1 -1
  56. package/dist/federation/retry.test.mjs +4 -4
  57. package/dist/federation/router.test.d.mts +1 -1
  58. package/dist/federation/router.test.mjs +6 -6
  59. package/dist/federation/send.test.d.mts +1 -1
  60. package/dist/federation/send.test.mjs +12 -12
  61. package/dist/federation/tasks/codec.test.d.mts +1 -1
  62. package/dist/federation/tasks/codec.test.mjs +2 -2
  63. package/dist/federation/tasks/enqueue.test.d.mts +1 -1
  64. package/dist/federation/tasks/enqueue.test.mjs +5 -5
  65. package/dist/federation/tasks/tasks.test.d.mts +1 -1
  66. package/dist/federation/tasks/tasks.test.mjs +7 -7
  67. package/dist/federation/temporal.test.d.mts +1 -1
  68. package/dist/federation/temporal.test.mjs +5 -5
  69. package/dist/federation/webfinger.test.d.mts +1 -1
  70. package/dist/federation/webfinger.test.mjs +7 -7
  71. package/dist/{http-CphHLbTC.js → http--wLYmH1x.js} +2 -2
  72. package/dist/{http-BBkdx4Kd.mjs → http-yainOC9t.mjs} +5 -5
  73. package/dist/{http-jCq51U37.cjs → http-zJsVCnKu.cjs} +4 -3
  74. package/dist/{key-BBKNHoB9.mjs → key-DcLwG7x4.mjs} +3 -3
  75. package/dist/{keycache-CaOR6NYg.mjs → keycache-_DHqz5z_.mjs} +1 -1
  76. package/dist/{keys-CSYsOMFG.mjs → keys-Dbyd7bhl.mjs} +1 -1
  77. package/dist/{kv-CIvR3Non.mjs → kv-CXBAok3k.mjs} +1 -1
  78. package/dist/{kv-cache-D3KdEZAg.js → kv-cache-0TGAGm8S.js} +2 -2
  79. package/dist/{kv-cache-B9Zvq4xB.cjs → kv-cache-BPu_M3-N.cjs} +4 -3
  80. package/dist/{kv-cache-SVUAUYIs.mjs → kv-cache-SZL9uu3V.mjs} +2 -2
  81. package/dist/{ld-DLyXLPDS.mjs → ld-B-jskR-q.mjs} +4 -4
  82. package/dist/{metrics-BVRrGEXj.mjs → metrics-C-pKLuAU.mjs} +2 -2
  83. package/dist/{middleware-B1jZw4xB.js → middleware-D1POKL1d.js} +7 -7
  84. package/dist/{middleware-1AyOpRqz.mjs → middleware-DGEQ07xT.mjs} +24 -24
  85. package/dist/{middleware-DszmUorL.cjs → middleware-DLzOFLD5.cjs} +48 -39
  86. package/dist/{middleware-CzWfDAQY.mjs → middleware-HFQkD-r8.mjs} +2 -2
  87. package/dist/mod.cjs +7 -8
  88. package/dist/mod.js +8 -8
  89. package/dist/{mq-03vS-C9P.mjs → mq-llHKivST.mjs} +1 -1
  90. package/dist/{negotiation-m_L2nyS3.mjs → negotiation-RuwrPFqi.mjs} +1 -1
  91. package/dist/nodeinfo/client.test.d.mts +1 -1
  92. package/dist/nodeinfo/client.test.mjs +5 -5
  93. package/dist/nodeinfo/handler.test.d.mts +1 -1
  94. package/dist/nodeinfo/handler.test.mjs +6 -6
  95. package/dist/nodeinfo/mod.cjs +1 -2
  96. package/dist/nodeinfo/mod.js +2 -2
  97. package/dist/nodeinfo/types.test.d.mts +1 -1
  98. package/dist/nodeinfo/types.test.mjs +5 -5
  99. package/dist/otel/exporter.test.d.mts +1 -1
  100. package/dist/otel/exporter.test.mjs +4 -4
  101. package/dist/otel/mod.cjs +1 -2
  102. package/dist/otel/mod.js +1 -1
  103. package/dist/{outgoing-jsonld-BNL8AC14.mjs → outgoing-jsonld-URuqsICz.mjs} +2 -2
  104. package/dist/{owner-BukzQW4T.mjs → owner-CeJuB8wq.mjs} +3 -3
  105. package/dist/{proof-BVglyYRW.mjs → proof-917XYw_e.mjs} +6 -6
  106. package/dist/{proof-DkeR_Fsm.cjs → proof-BkQosXrd.cjs} +4 -3
  107. package/dist/{proof-IDHRILpm.js → proof-Bri1zUVM.js} +2 -2
  108. package/dist/{public-audience-c9zmYKgA.mjs → public-audience-Cr5MsnMq.mjs} +1 -1
  109. package/dist/{retry-DI4O-zYl.mjs → retry-DgFqeS5k.mjs} +1 -1
  110. package/dist/runtime/mod.cjs +1 -2
  111. package/dist/runtime/mod.js +2 -2
  112. package/dist/{send-D04Hz77b.mjs → send-CDi3XQ0V.mjs} +4 -4
  113. package/dist/sig/accept.test.d.mts +1 -1
  114. package/dist/sig/accept.test.mjs +2 -2
  115. package/dist/sig/http.test.d.mts +1 -1
  116. package/dist/sig/http.test.mjs +10 -10
  117. package/dist/sig/key.test.d.mts +1 -1
  118. package/dist/sig/key.test.mjs +7 -7
  119. package/dist/sig/ld.test.d.mts +1 -1
  120. package/dist/sig/ld.test.mjs +8 -8
  121. package/dist/sig/mod.cjs +2 -3
  122. package/dist/sig/mod.js +3 -3
  123. package/dist/sig/owner.test.d.mts +1 -1
  124. package/dist/sig/owner.test.mjs +7 -7
  125. package/dist/sig/proof.test.d.mts +1 -1
  126. package/dist/sig/proof.test.mjs +9 -9
  127. package/dist/{std__assert-Dh6uLf_q.mjs → std__assert-B2NnY9bq.mjs} +5 -5
  128. package/dist/{temporal-xcPM9mxe.mjs → temporal-jusSJxbN.mjs} +2 -2
  129. package/dist/temporal-polyfill-BCdTHexd.cjs +3565 -0
  130. package/dist/testing/mod.d.mts +1 -1
  131. package/dist/testing/mod.mjs +3 -3
  132. package/dist/{testing-Dy-WhqpN.mjs → testing-C3vgUK0b.mjs} +3 -3
  133. package/dist/{transformers-NeAONrAq.cjs → transformers-DGwl-hD1.cjs} +1 -2
  134. package/dist/{transformers-BGMIq1cs.js → transformers-DXze6FUB.js} +1 -1
  135. package/dist/{types-KC4QAoxe.cjs → types-CPym83zc.cjs} +1 -2
  136. package/dist/{types-BFowWFTT.mjs → types-CrtdVuDP.mjs} +1 -1
  137. package/dist/{types-CAY3OdLq.js → types-DC1pNgJA.js} +1 -1
  138. package/dist/utils/docloader.test.d.mts +1 -1
  139. package/dist/utils/docloader.test.mjs +8 -8
  140. package/dist/utils/kv-cache.test.d.mts +1 -1
  141. package/dist/utils/kv-cache.test.mjs +2 -2
  142. package/dist/utils/mod.cjs +1 -2
  143. package/dist/utils/mod.js +2 -2
  144. package/dist/vocab/cjs.test.d.mts +1 -1
  145. package/dist/vocab/cjs.test.mjs +14 -1
  146. package/dist/vocab/mod.cjs +0 -1
  147. package/dist/vocab/mod.js +1 -1
  148. package/package.json +8 -8
@@ -1,11 +1,11 @@
1
- const { Temporal } = require("@js-temporal/polyfill");
2
1
  const { URLPattern } = require("urlpattern-polyfill");
3
- const require_chunk = require("./chunk-DDcVe30Y.cjs");
4
- const require_transformers = require("./transformers-NeAONrAq.cjs");
5
- const require_http = require("./http-jCq51U37.cjs");
6
- const require_proof = require("./proof-DkeR_Fsm.cjs");
7
- const require_types = require("./types-KC4QAoxe.cjs");
8
- const require_kv_cache = require("./kv-cache-B9Zvq4xB.cjs");
2
+ const require_chunk = require("./chunk-Czpeue4M.cjs");
3
+ const require_transformers = require("./transformers-DGwl-hD1.cjs");
4
+ const require_http = require("./http-zJsVCnKu.cjs");
5
+ const require_temporal_polyfill = require("./temporal-polyfill-BCdTHexd.cjs");
6
+ const require_proof = require("./proof-BkQosXrd.cjs");
7
+ const require_types = require("./types-CPym83zc.cjs");
8
+ const require_kv_cache = require("./kv-cache-BPu_M3-N.cjs");
9
9
  let _logtape_logtape = require("@logtape/logtape");
10
10
  let _fedify_uri_template = require("@fedify/uri-template");
11
11
  let _fedify_vocab = require("@fedify/vocab");
@@ -701,6 +701,7 @@ function createFederationBuilder() {
701
701
  }
702
702
  //#endregion
703
703
  //#region src/federation/circuit-breaker.ts
704
+ const Temporal$8 = require_temporal_polyfill.Temporal;
704
705
  const MAX_CUSTOM_FAILURE_HISTORY = 100;
705
706
  /**
706
707
  * Tracks reachability state for remote outbox delivery hosts.
@@ -716,7 +717,7 @@ var CircuitBreaker = class {
716
717
  this.#kv = options.kv;
717
718
  this.#prefix = options.prefix;
718
719
  this.#options = normalizeCircuitBreakerOptions(options.options ?? {});
719
- this.#now = options.now ?? (() => Temporal.Now.instant());
720
+ this.#now = options.now ?? (() => Temporal$8.Now.instant());
720
721
  this.#stateChangeObserver = options.stateChangeObserver;
721
722
  }
722
723
  get options() {
@@ -729,7 +730,7 @@ var CircuitBreaker = class {
729
730
  async beforeSend(remoteHost, message) {
730
731
  const heldSince = parseHeldSince(message.circuitHeldSince);
731
732
  const now = this.#now();
732
- if (heldSince != null && Temporal.Instant.compare(heldSince.add(this.#options.heldActivityTtl), now) <= 0) return {
733
+ if (heldSince != null && Temporal$8.Instant.compare(heldSince.add(this.#options.heldActivityTtl), now) <= 0) return {
733
734
  type: "drop",
734
735
  heldSince
735
736
  };
@@ -741,12 +742,12 @@ var CircuitBreaker = class {
741
742
  probe: false
742
743
  };
743
744
  if (oldState.state === "half-open") {
744
- const halfOpened = oldState.halfOpened == null ? void 0 : Temporal.Instant.from(oldState.halfOpened);
745
+ const halfOpened = oldState.halfOpened == null ? void 0 : Temporal$8.Instant.from(oldState.halfOpened);
745
746
  if (halfOpened != null) {
746
747
  const staleAt = halfOpened.add(this.#options.recoveryDelay);
747
- if (Temporal.Instant.compare(now, staleAt) < 0) {
748
+ if (Temporal$8.Instant.compare(now, staleAt) < 0) {
748
749
  const releaseAt = now.add(this.#options.releaseInterval);
749
- const retryAt = Temporal.Instant.compare(releaseAt, staleAt) < 0 ? releaseAt : staleAt;
750
+ const retryAt = Temporal$8.Instant.compare(releaseAt, staleAt) < 0 ? releaseAt : staleAt;
750
751
  const cappedRetryAt = this.#capHeldRetryAt(now, heldSince, retryAt);
751
752
  return {
752
753
  type: "hold",
@@ -768,8 +769,8 @@ var CircuitBreaker = class {
768
769
  lastConflictingState = "half-open";
769
770
  continue;
770
771
  }
771
- const probeAt = (oldState.opened == null ? now : Temporal.Instant.from(oldState.opened)).add(this.#options.recoveryDelay);
772
- if (Temporal.Instant.compare(now, probeAt) < 0) {
772
+ const probeAt = (oldState.opened == null ? now : Temporal$8.Instant.from(oldState.opened)).add(this.#options.recoveryDelay);
773
+ if (Temporal$8.Instant.compare(now, probeAt) < 0) {
773
774
  const retryAt = this.#capHeldRetryAt(now, heldSince, probeAt);
774
775
  return {
775
776
  type: "hold",
@@ -832,7 +833,7 @@ var CircuitBreaker = class {
832
833
  for (let attempt = 0; attempt < 10; attempt++) {
833
834
  const oldState = await this.#get(remoteHost);
834
835
  if (oldState?.state === "open") return void 0;
835
- const oldFailures = oldState?.failures.map(Temporal.Instant.from) ?? [];
836
+ const oldFailures = oldState?.failures.map(Temporal$8.Instant.from) ?? [];
836
837
  const failures = this.#options.pruneFailures([...oldFailures, now], now);
837
838
  let newState;
838
839
  let transition;
@@ -882,7 +883,7 @@ var CircuitBreaker = class {
882
883
  }
883
884
  #capHeldRetryAt(now, heldSince, retryAt) {
884
885
  const expiresAt = (heldSince ?? now).add(this.#options.heldActivityTtl);
885
- return Temporal.Instant.compare(expiresAt, retryAt) < 0 ? expiresAt : retryAt;
886
+ return Temporal$8.Instant.compare(expiresAt, retryAt) < 0 ? expiresAt : retryAt;
886
887
  }
887
888
  async #get(remoteHost) {
888
889
  return parseCircuitBreakerKvState(await this.#kv.get(this.#key(remoteHost)));
@@ -953,13 +954,13 @@ function normalizeCircuitBreakerOptions(options) {
953
954
  assertPositiveDuration(failureWindow, "failureWindow");
954
955
  pruneFailures = (timestamps, now) => {
955
956
  const earliest = now.subtract(failureWindow);
956
- return timestamps.filter((timestamp) => Temporal.Instant.compare(timestamp, earliest) >= 0).slice(-failureThreshold);
957
+ return timestamps.filter((timestamp) => Temporal$8.Instant.compare(timestamp, earliest) >= 0).slice(-failureThreshold);
957
958
  };
958
959
  failure = (timestamps) => {
959
960
  if (timestamps.length < failureThreshold) return false;
960
961
  const first = timestamps[timestamps.length - failureThreshold];
961
962
  const last = timestamps[timestamps.length - 1];
962
- return Temporal.Duration.compare(first.until(last), failureWindow) <= 0;
963
+ return Temporal$8.Duration.compare(first.until(last), failureWindow) <= 0;
963
964
  };
964
965
  } else {
965
966
  failure = options.failure;
@@ -976,19 +977,19 @@ function normalizeCircuitBreakerOptions(options) {
976
977
  };
977
978
  }
978
979
  function toInstantDuration(duration) {
979
- const parsed = Temporal.Duration.from(duration);
980
- return Temporal.Duration.from({ milliseconds: Math.trunc(parsed.total({
980
+ const parsed = Temporal$8.Duration.from(duration);
981
+ return Temporal$8.Duration.from({ milliseconds: Math.trunc(parsed.total({
981
982
  unit: "millisecond",
982
- relativeTo: Temporal.PlainDateTime.from("2026-01-01T00:00:00")
983
+ relativeTo: Temporal$8.PlainDateTime.from("2026-01-01T00:00:00")
983
984
  })) });
984
985
  }
985
986
  function assertPositiveDuration(duration, name) {
986
- if (Temporal.Duration.compare(duration, { seconds: 0 }) <= 0) throw new RangeError(`${name} must be a positive duration.`);
987
+ if (Temporal$8.Duration.compare(duration, { seconds: 0 }) <= 0) throw new RangeError(`${name} must be a positive duration.`);
987
988
  }
988
989
  function parseHeldSince(value) {
989
990
  if (value == null) return void 0;
990
991
  try {
991
- return Temporal.Instant.from(value);
992
+ return Temporal$8.Instant.from(value);
992
993
  } catch (error) {
993
994
  (0, _logtape_logtape.getLogger)([
994
995
  "fedify",
@@ -1012,7 +1013,7 @@ function parseCircuitBreakerKvState(value) {
1012
1013
  const isInstantString = (v) => {
1013
1014
  if (typeof v !== "string") return false;
1014
1015
  try {
1015
- Temporal.Instant.from(v);
1016
+ Temporal$8.Instant.from(v);
1016
1017
  return true;
1017
1018
  } catch {
1018
1019
  return false;
@@ -1072,6 +1073,7 @@ async function buildCollectionSynchronizationHeader(collectionId, actorIds) {
1072
1073
  }
1073
1074
  //#endregion
1074
1075
  //#region src/federation/inbox.ts
1076
+ const Temporal$7 = require_temporal_polyfill.Temporal;
1075
1077
  async function routeActivity({ context: ctx, json, originalJson, normalizedActivity, ldSignatureVerified, activity, recipient, inboxListeners, inboxContextFactory, listenerInboxContextFactory, inboxErrorHandler, kv, kvPrefixes, queue, span, meterProvider, tracerProvider, idempotencyStrategy }) {
1076
1078
  const logger = (0, _logtape_logtape.getLogger)([
1077
1079
  "fedify",
@@ -1218,7 +1220,7 @@ async function routeActivity({ context: ctx, json, originalJson, normalizedActiv
1218
1220
  return "error";
1219
1221
  }
1220
1222
  require_http.recordInboxActivity(meterProvider, "processed", (0, _fedify_vocab.getTypeId)(activity).href);
1221
- if (cacheKey != null) await kv.set(cacheKey, true, { ttl: Temporal.Duration.from({ days: 1 }) });
1223
+ if (cacheKey != null) await kv.set(cacheKey, true, { ttl: Temporal$7.Duration.from({ days: 1 }) });
1222
1224
  logger.info("Activity {activityId} has been processed.", {
1223
1225
  activityId: activity.id?.href,
1224
1226
  activity: json,
@@ -1230,6 +1232,7 @@ async function routeActivity({ context: ctx, json, originalJson, normalizedActiv
1230
1232
  }
1231
1233
  //#endregion
1232
1234
  //#region src/federation/keycache.ts
1235
+ const Temporal$6 = require_temporal_polyfill.Temporal;
1233
1236
  var KvKeyCache = class {
1234
1237
  kv;
1235
1238
  prefix;
@@ -1240,7 +1243,7 @@ var KvKeyCache = class {
1240
1243
  this.kv = kv;
1241
1244
  this.prefix = prefix;
1242
1245
  this.options = options;
1243
- this.unavailableKeyTtl = options.unavailableKeyTtl ?? Temporal.Duration.from({ minutes: 10 });
1246
+ this.unavailableKeyTtl = options.unavailableKeyTtl ?? Temporal$6.Duration.from({ minutes: 10 });
1244
1247
  this.nullKeys = /* @__PURE__ */ new Map();
1245
1248
  }
1246
1249
  #getFetchErrorKey(keyId) {
@@ -1253,13 +1256,13 @@ var KvKeyCache = class {
1253
1256
  async get(keyId) {
1254
1257
  const negativeExpiration = this.nullKeys.get(keyId.href);
1255
1258
  if (negativeExpiration != null) {
1256
- if (Temporal.Now.instant().until(negativeExpiration).sign >= 0) return null;
1259
+ if (Temporal$6.Now.instant().until(negativeExpiration).sign >= 0) return null;
1257
1260
  this.nullKeys.delete(keyId.href);
1258
1261
  }
1259
1262
  const serialized = await this.kv.get([...this.prefix, keyId.href]);
1260
1263
  if (serialized === void 0) return void 0;
1261
1264
  if (serialized === null) {
1262
- this.nullKeys.set(keyId.href, Temporal.Now.instant().add(this.unavailableKeyTtl));
1265
+ this.nullKeys.set(keyId.href, Temporal$6.Now.instant().add(this.unavailableKeyTtl));
1263
1266
  return null;
1264
1267
  }
1265
1268
  try {
@@ -1275,7 +1278,7 @@ var KvKeyCache = class {
1275
1278
  }
1276
1279
  async set(keyId, key) {
1277
1280
  if (key == null) {
1278
- this.nullKeys.set(keyId.href, Temporal.Now.instant().add(this.unavailableKeyTtl));
1281
+ this.nullKeys.set(keyId.href, Temporal$6.Now.instant().add(this.unavailableKeyTtl));
1279
1282
  await this.kv.set([...this.prefix, keyId.href], null, { ttl: this.unavailableKeyTtl });
1280
1283
  return;
1281
1284
  }
@@ -1414,6 +1417,7 @@ function acceptsJsonLd(request) {
1414
1417
  }
1415
1418
  //#endregion
1416
1419
  //#region src/federation/temporal.ts
1420
+ const Temporal$5 = require_temporal_polyfill.Temporal;
1417
1421
  function isPlainObject$1(value) {
1418
1422
  return typeof value === "object" && value != null && !Array.isArray(value);
1419
1423
  }
@@ -1423,7 +1427,7 @@ function normalizeDateTimeLiteral(value) {
1423
1427
  function isMalformedDateTimeLiteral(value) {
1424
1428
  if (typeof value !== "string") return false;
1425
1429
  try {
1426
- Temporal.Instant.from(normalizeDateTimeLiteral(value));
1430
+ Temporal$5.Instant.from(normalizeDateTimeLiteral(value));
1427
1431
  return false;
1428
1432
  } catch {
1429
1433
  return true;
@@ -1432,7 +1436,7 @@ function isMalformedDateTimeLiteral(value) {
1432
1436
  function isMalformedDurationLiteral(value) {
1433
1437
  if (typeof value !== "string") return false;
1434
1438
  try {
1435
- Temporal.Duration.from(value);
1439
+ Temporal$5.Duration.from(value);
1436
1440
  return false;
1437
1441
  } catch {
1438
1442
  return true;
@@ -1503,6 +1507,7 @@ async function hasMalformedKnownTemporalLiteral(value, contextLoader) {
1503
1507
  }
1504
1508
  //#endregion
1505
1509
  //#region src/federation/handler.ts
1510
+ const Temporal$4 = require_temporal_polyfill.Temporal;
1506
1511
  const rawInboxContextFactorySymbol = Symbol("fedify.rawInboxContextFactory");
1507
1512
  function isRemoteContextLoadingFailure$1(error) {
1508
1513
  return error instanceof Error && typeof error.details === "object" && error.details != null && error.details.code === "loading remote context failed";
@@ -3070,7 +3075,7 @@ async function buildAcceptSignatureHeader(policy, kv, noncePrefix) {
3070
3075
  }
3071
3076
  async function setKey(kv, key, policy) {
3072
3077
  const seconds = policy.nonceTtlSeconds ?? 300;
3073
- const ttl = Temporal.Duration.from({ seconds });
3078
+ const ttl = Temporal$4.Duration.from({ seconds });
3074
3079
  await kv.set(key, true, { ttl });
3075
3080
  }
3076
3081
  const DEF_COMPONENTS = [
@@ -3545,6 +3550,7 @@ function serializeDataPointType(dataPointType) {
3545
3550
  }
3546
3551
  //#endregion
3547
3552
  //#region src/federation/retry.ts
3553
+ const Temporal$3 = require_temporal_polyfill.Temporal;
3548
3554
  /**
3549
3555
  * Creates an exponential backoff retry policy. The delay between retries
3550
3556
  * starts at the `initialDelay` and is multiplied by the `factor` for each
@@ -3556,8 +3562,8 @@ function serializeDataPointType(dataPointType) {
3556
3562
  * @since 0.12.0
3557
3563
  */
3558
3564
  function createExponentialBackoffPolicy(options = {}) {
3559
- const initialDelay = Temporal.Duration.from(options.initialDelay ?? { seconds: 1 });
3560
- const maxDelay = Temporal.Duration.from(options.maxDelay ?? { hours: 12 });
3565
+ const initialDelay = Temporal$3.Duration.from(options.initialDelay ?? { seconds: 1 });
3566
+ const maxDelay = Temporal$3.Duration.from(options.maxDelay ?? { hours: 12 });
3561
3567
  const maxAttempts = options.maxAttempts ?? 10;
3562
3568
  const factor = options.factor ?? 2;
3563
3569
  const jitter = options.jitter ?? true;
@@ -3569,8 +3575,8 @@ function createExponentialBackoffPolicy(options = {}) {
3569
3575
  milliseconds *= 1 + Math.random();
3570
3576
  milliseconds = Math.round(milliseconds);
3571
3577
  }
3572
- const delay = Temporal.Duration.from({ milliseconds });
3573
- return Temporal.Duration.compare(delay, maxDelay) > 0 ? maxDelay : delay;
3578
+ const delay = Temporal$3.Duration.from({ milliseconds });
3579
+ return Temporal$3.Duration.compare(delay, maxDelay) > 0 ? maxDelay : delay;
3574
3580
  };
3575
3581
  }
3576
3582
  //#endregion
@@ -3693,6 +3699,7 @@ const classReviver = (filter, init, set) => (seen, revive, node) => {
3693
3699
  };
3694
3700
  //#endregion
3695
3701
  //#region src/federation/mq.ts
3702
+ const Temporal$2 = require_temporal_polyfill.Temporal;
3696
3703
  /**
3697
3704
  * A message queue that processes messages in the same process.
3698
3705
  * Do not use this in production as it does neither persist messages nor
@@ -3727,7 +3734,7 @@ var InProcessMessageQueue = class {
3727
3734
  constructor(options = {}) {
3728
3735
  this.#messages = [];
3729
3736
  this.#monitors = {};
3730
- this.#pollIntervalMs = Temporal.Duration.from(options.pollInterval ?? { seconds: 5 }).total("millisecond");
3737
+ this.#pollIntervalMs = Temporal$2.Duration.from(options.pollInterval ?? { seconds: 5 }).total("millisecond");
3731
3738
  this.#delayedMessages = 0;
3732
3739
  this.#processingKeys = /* @__PURE__ */ new Set();
3733
3740
  }
@@ -3973,6 +3980,7 @@ var ParallelMessageQueue = class ParallelMessageQueue {
3973
3980
  *
3974
3981
  * @module
3975
3982
  */
3983
+ const Temporal$1 = require_temporal_polyfill.Temporal;
3976
3984
  /**
3977
3985
  * Validates the task handle, plans deduplication, encodes every payload, then
3978
3986
  * dispatches the resulting messages to the queue. A single item flows through
@@ -4018,7 +4026,7 @@ const enqueueTasks = (ctx) => async function(task, items, options) {
4018
4026
  throw error;
4019
4027
  }
4020
4028
  };
4021
- const getDurationIfDefined = (item) => item == null ? void 0 : Temporal.Duration.from(item);
4029
+ const getDurationIfDefined = (item) => item == null ? void 0 : Temporal$1.Duration.from(item);
4022
4030
  /**
4023
4031
  * Decides how a `deduplicationKey` (if any) is honored: forwarded to a native
4024
4032
  * queue, claimed via `cas`, or—when neither is available—dropped or rejected
@@ -4124,7 +4132,7 @@ const encodeTaskMessage = (codec, origin, task, options) => async (data) => {
4124
4132
  baseUrl: origin,
4125
4133
  taskName: task.name,
4126
4134
  data: encoded,
4127
- started: Temporal.Now.instant().toString(),
4135
+ started: Temporal$1.Now.instant().toString(),
4128
4136
  attempt: 0,
4129
4137
  orderingKey: options.orderingKey,
4130
4138
  traceContext: carrier
@@ -4352,6 +4360,7 @@ var middleware_exports = /* @__PURE__ */ require_chunk.__exportAll({
4352
4360
  OutboxContextImpl: () => OutboxContextImpl,
4353
4361
  createFederation: () => createFederation
4354
4362
  });
4363
+ const Temporal = require_temporal_polyfill.Temporal;
4355
4364
  const circuitBreakerCasWarningKvStores = /* @__PURE__ */ new WeakSet();
4356
4365
  let nextQueueDepthGaugeSourceId = 0;
4357
4366
  const retryAfterHttpDate = /* @__PURE__ */ new RegExp("^(?:(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), \\d{2} (?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) \\d{4} \\d{2}:\\d{2}:\\d{2} GMT|(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), \\d{2}-(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-\\d{2} \\d{2}:\\d{2}:\\d{2} GMT|(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (?: \\d|\\d{2}) \\d{2}:\\d{2}:\\d{2} \\d{4})$");
@@ -1,5 +1,5 @@
1
- import "@js-temporal/polyfill";
1
+ import "temporal-polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as FederationImpl } from "./middleware-1AyOpRqz.mjs";
4
+ import { n as FederationImpl } from "./middleware-DGEQ07xT.mjs";
5
5
  export { FederationImpl };
package/dist/mod.cjs CHANGED
@@ -1,14 +1,13 @@
1
- const { Temporal } = require("@js-temporal/polyfill");
2
1
  const { URLPattern } = require("urlpattern-polyfill");
3
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
- require("./chunk-DDcVe30Y.cjs");
5
- const require_transformers = require("./transformers-NeAONrAq.cjs");
3
+ require("./chunk-Czpeue4M.cjs");
4
+ const require_transformers = require("./transformers-DGwl-hD1.cjs");
6
5
  require("./compat/mod.cjs");
7
- const require_http = require("./http-jCq51U37.cjs");
8
- const require_middleware = require("./middleware-DszmUorL.cjs");
9
- const require_proof = require("./proof-DkeR_Fsm.cjs");
10
- const require_types = require("./types-KC4QAoxe.cjs");
11
- const require_kv_cache = require("./kv-cache-B9Zvq4xB.cjs");
6
+ const require_http = require("./http-zJsVCnKu.cjs");
7
+ const require_middleware = require("./middleware-DLzOFLD5.cjs");
8
+ const require_proof = require("./proof-BkQosXrd.cjs");
9
+ const require_types = require("./types-CPym83zc.cjs");
10
+ const require_kv_cache = require("./kv-cache-BPu_M3-N.cjs");
12
11
  const require_federation_mod = require("./federation/mod.cjs");
13
12
  require("./nodeinfo/mod.cjs");
14
13
  require("./runtime/mod.cjs");
package/dist/mod.js CHANGED
@@ -1,13 +1,13 @@
1
- import { Temporal } from "@js-temporal/polyfill";
1
+ import { Temporal } from "temporal-polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import "./chunk-CRNNMoPX.js";
4
- import { n as autoIdAssigner, r as getDefaultActivityTransformers, t as actorDehydrator } from "./transformers-BGMIq1cs.js";
3
+ import "./chunk-D5IdezsZ.js";
4
+ import { n as autoIdAssigner, r as getDefaultActivityTransformers, t as actorDehydrator } from "./transformers-DXze6FUB.js";
5
5
  import "./compat/mod.js";
6
- import { A as formatAcceptSignature, M as parseAcceptSignature, N as validateAcceptSignature, a as verifyRequestDetailed, c as fetchKeyDetailed, i as verifyRequest, j as fulfillAcceptSignature, l as generateCryptoKeyPair, o as exportJwk, r as signRequest, s as fetchKey, u as importJwk } from "./http-CphHLbTC.js";
7
- import { a as ParallelMessageQueue, c as respondWithObject, d as digest, f as CircuitBreaker, h as createFederationBuilder, i as InProcessMessageQueue, l as respondWithObjectIfAcceptable, m as parseCircuitBreakerKvState, o as createExponentialBackoffPolicy, p as normalizeCircuitBreakerOptions, r as handleWebFinger, s as SendActivityError, t as createFederation, u as buildCollectionSynchronizationHeader } from "./middleware-B1jZw4xB.js";
8
- import { C as verifySignature, S as verifyJsonLd, _ as hasSignatureLike, a as verifyProof, b as signJsonLd, c as getKeyOwner, d as attachSignature, i as verifyObject, m as detachSignature, n as hasProofLike, p as createSignature, r as signObject, s as doesActorOwnKey, t as createProof } from "./proof-IDHRILpm.js";
9
- import { n as getNodeInfo, r as parseNodeInfo, t as nodeInfoToJson } from "./types-CAY3OdLq.js";
10
- import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./kv-cache-D3KdEZAg.js";
6
+ import { A as formatAcceptSignature, M as parseAcceptSignature, N as validateAcceptSignature, a as verifyRequestDetailed, c as fetchKeyDetailed, i as verifyRequest, j as fulfillAcceptSignature, l as generateCryptoKeyPair, o as exportJwk, r as signRequest, s as fetchKey, u as importJwk } from "./http--wLYmH1x.js";
7
+ import { a as ParallelMessageQueue, c as respondWithObject, d as digest, f as CircuitBreaker, h as createFederationBuilder, i as InProcessMessageQueue, l as respondWithObjectIfAcceptable, m as parseCircuitBreakerKvState, o as createExponentialBackoffPolicy, p as normalizeCircuitBreakerOptions, r as handleWebFinger, s as SendActivityError, t as createFederation, u as buildCollectionSynchronizationHeader } from "./middleware-D1POKL1d.js";
8
+ import { C as verifySignature, S as verifyJsonLd, _ as hasSignatureLike, a as verifyProof, b as signJsonLd, c as getKeyOwner, d as attachSignature, i as verifyObject, m as detachSignature, n as hasProofLike, p as createSignature, r as signObject, s as doesActorOwnKey, t as createProof } from "./proof-Bri1zUVM.js";
9
+ import { n as getNodeInfo, r as parseNodeInfo, t as nodeInfoToJson } from "./types-DC1pNgJA.js";
10
+ import { n as getAuthenticatedDocumentLoader, t as kvCache } from "./kv-cache-0TGAGm8S.js";
11
11
  import { MemoryKvStore, Router, RouterError } from "./federation/mod.js";
12
12
  import "./nodeinfo/mod.js";
13
13
  import "./runtime/mod.js";
@@ -1,4 +1,4 @@
1
- import { Temporal } from "@js-temporal/polyfill";
1
+ import { Temporal } from "temporal-polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
4
  //#region src/federation/mq.ts
@@ -1,4 +1,4 @@
1
- import "@js-temporal/polyfill";
1
+ import "temporal-polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
4
  //#region src/federation/negotiation.ts
@@ -1,2 +1,2 @@
1
- import { Temporal } from "@js-temporal/polyfill";
1
+ import { Temporal } from "temporal-polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
@@ -1,10 +1,10 @@
1
- import "@js-temporal/polyfill";
1
+ import "temporal-polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { t as esm_default } from "../esm-vrlUxr60.mjs";
5
- import { t as assertEquals } from "../assert_equals-PBVKNMJd.mjs";
6
- import "../std__assert-Dh6uLf_q.mjs";
7
- import { a as parseProtocol, c as parseUsage, i as parseOutboundService, n as parseInboundService, o as parseServices, r as parseNodeInfo, s as parseSoftware, t as getNodeInfo } from "../client-B_A6mfn3.mjs";
4
+ import { t as esm_default } from "../esm-yYQfPhIY.mjs";
5
+ import { t as assertEquals } from "../assert_equals-BV7oLMxm.mjs";
6
+ import "../std__assert-B2NnY9bq.mjs";
7
+ import { a as parseProtocol, c as parseUsage, i as parseOutboundService, n as parseInboundService, o as parseServices, r as parseNodeInfo, s as parseSoftware, t as getNodeInfo } from "../client-CjF5IYQS.mjs";
8
8
  import { test } from "@fedify/fixture";
9
9
  //#region src/nodeinfo/client.test.ts
10
10
  test("getNodeInfo()", async (t) => {
@@ -1,2 +1,2 @@
1
- import { Temporal } from "@js-temporal/polyfill";
1
+ import { Temporal } from "temporal-polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
@@ -1,11 +1,11 @@
1
- import "@js-temporal/polyfill";
1
+ import "temporal-polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { r as createRequestContext } from "../context-BBRTgkrs.mjs";
5
- import { t as MemoryKvStore } from "../kv-CIvR3Non.mjs";
6
- import { t as assertEquals } from "../assert_equals-PBVKNMJd.mjs";
7
- import "../std__assert-Dh6uLf_q.mjs";
8
- import { _ as handleNodeInfo, o as createFederation, v as handleNodeInfoJrd } from "../middleware-1AyOpRqz.mjs";
4
+ import { r as createRequestContext } from "../context-C7Sbmci2.mjs";
5
+ import { t as MemoryKvStore } from "../kv-CXBAok3k.mjs";
6
+ import { t as assertEquals } from "../assert_equals-BV7oLMxm.mjs";
7
+ import "../std__assert-B2NnY9bq.mjs";
8
+ import { _ as handleNodeInfo, o as createFederation, v as handleNodeInfoJrd } from "../middleware-DGEQ07xT.mjs";
9
9
  import { test } from "@fedify/fixture";
10
10
  //#region src/nodeinfo/handler.test.ts
11
11
  test("handleNodeInfo()", async () => {
@@ -1,7 +1,6 @@
1
- const { Temporal } = require("@js-temporal/polyfill");
2
1
  const { URLPattern } = require("urlpattern-polyfill");
3
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
- const require_types = require("../types-KC4QAoxe.cjs");
3
+ const require_types = require("../types-CPym83zc.cjs");
5
4
  exports.getNodeInfo = require_types.getNodeInfo;
6
5
  exports.nodeInfoToJson = require_types.nodeInfoToJson;
7
6
  exports.parseNodeInfo = require_types.parseNodeInfo;
@@ -1,4 +1,4 @@
1
- import { Temporal } from "@js-temporal/polyfill";
1
+ import { Temporal } from "temporal-polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { n as getNodeInfo, r as parseNodeInfo, t as nodeInfoToJson } from "../types-CAY3OdLq.js";
3
+ import { n as getNodeInfo, r as parseNodeInfo, t as nodeInfoToJson } from "../types-DC1pNgJA.js";
4
4
  export { getNodeInfo, nodeInfoToJson, parseNodeInfo };
@@ -1,2 +1,2 @@
1
- import { Temporal } from "@js-temporal/polyfill";
1
+ import { Temporal } from "temporal-polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
@@ -1,10 +1,10 @@
1
- import "@js-temporal/polyfill";
1
+ import "temporal-polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { t as assertEquals } from "../assert_equals-PBVKNMJd.mjs";
5
- import "../std__assert-Dh6uLf_q.mjs";
6
- import { t as assertThrows } from "../assert_throws-zN79lgIC.mjs";
7
- import { t as nodeInfoToJson } from "../types-BFowWFTT.mjs";
4
+ import { t as assertEquals } from "../assert_equals-BV7oLMxm.mjs";
5
+ import "../std__assert-B2NnY9bq.mjs";
6
+ import { t as assertThrows } from "../assert_throws-NiFfqbnH.mjs";
7
+ import { t as nodeInfoToJson } from "../types-CrtdVuDP.mjs";
8
8
  import { test } from "@fedify/fixture";
9
9
  //#region src/nodeinfo/types.test.ts
10
10
  test("nodeInfoToJson()", () => {
@@ -1,2 +1,2 @@
1
- import { Temporal } from "@js-temporal/polyfill";
1
+ import { Temporal } from "temporal-polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
@@ -1,9 +1,9 @@
1
- import { Temporal } from "@js-temporal/polyfill";
1
+ import { Temporal } from "temporal-polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { t as MemoryKvStore } from "../kv-CIvR3Non.mjs";
5
- import { t as assertEquals } from "../assert_equals-PBVKNMJd.mjs";
6
- import "../std__assert-Dh6uLf_q.mjs";
4
+ import { t as MemoryKvStore } from "../kv-CXBAok3k.mjs";
5
+ import { t as assertEquals } from "../assert_equals-BV7oLMxm.mjs";
6
+ import "../std__assert-B2NnY9bq.mjs";
7
7
  import { getLogger } from "@logtape/logtape";
8
8
  import { ExportResultCode } from "@opentelemetry/core";
9
9
  import { SpanKind, SpanStatusCode, TraceFlags } from "@opentelemetry/api";
package/dist/otel/mod.cjs CHANGED
@@ -1,7 +1,6 @@
1
- const { Temporal } = require("@js-temporal/polyfill");
2
1
  const { URLPattern } = require("urlpattern-polyfill");
3
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
- require("../chunk-DDcVe30Y.cjs");
3
+ require("../chunk-Czpeue4M.cjs");
5
4
  let _logtape_logtape = require("@logtape/logtape");
6
5
  let _opentelemetry_core = require("@opentelemetry/core");
7
6
  //#region src/otel/exporter.ts
package/dist/otel/mod.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Temporal } from "@js-temporal/polyfill";
1
+ import { Temporal } from "temporal-polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
3
  import { getLogger } from "@logtape/logtape";
4
4
  import { ExportResultCode } from "@opentelemetry/core";
@@ -1,7 +1,7 @@
1
- import "@js-temporal/polyfill";
1
+ import "temporal-polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as preloadedOnlyDocumentLoader, t as normalizePublicAudience } from "./public-audience-c9zmYKgA.mjs";
4
+ import { n as preloadedOnlyDocumentLoader, t as normalizePublicAudience } from "./public-audience-Cr5MsnMq.mjs";
5
5
  import { getLogger } from "@logtape/logtape";
6
6
  import { preloadedContexts } from "@fedify/vocab-runtime";
7
7
  import jsonld from "@fedify/vocab-runtime/jsonld";
@@ -1,8 +1,8 @@
1
- import "@js-temporal/polyfill";
1
+ import "temporal-polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as version, t as name } from "./deno-Bkl9jNVs.mjs";
5
- import "./key-BBKNHoB9.mjs";
4
+ import { n as version, t as name } from "./deno-BCt09TJn.mjs";
5
+ import "./key-DcLwG7x4.mjs";
6
6
  import { CryptographicKey, Object as Object$1, isActor } from "@fedify/vocab";
7
7
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
8
8
  import { getDocumentLoader } from "@fedify/vocab-runtime";
@@ -1,11 +1,11 @@
1
- import { Temporal } from "@js-temporal/polyfill";
1
+ import { Temporal } from "temporal-polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as version, t as name } from "./deno-Bkl9jNVs.mjs";
5
- import { n as getDurationMs, r as getFederationMetrics, s as measureSignatureKeyFetch } from "./metrics-BVRrGEXj.mjs";
6
- import { n as fetchKey, o as validateCryptoKey } from "./key-BBKNHoB9.mjs";
7
- import { n as preloadedOnlyDocumentLoader } from "./public-audience-c9zmYKgA.mjs";
8
- import { r as normalizeOutgoingActivityJsonLd } from "./outgoing-jsonld-BNL8AC14.mjs";
4
+ import { n as version, t as name } from "./deno-BCt09TJn.mjs";
5
+ import { n as getDurationMs, r as getFederationMetrics, s as measureSignatureKeyFetch } from "./metrics-C-pKLuAU.mjs";
6
+ import { n as fetchKey, o as validateCryptoKey } from "./key-DcLwG7x4.mjs";
7
+ import { n as preloadedOnlyDocumentLoader } from "./public-audience-Cr5MsnMq.mjs";
8
+ import { r as normalizeOutgoingActivityJsonLd } from "./outgoing-jsonld-URuqsICz.mjs";
9
9
  import { getLogger } from "@logtape/logtape";
10
10
  import { Activity, DataIntegrityProof, Multikey, getTypeId } from "@fedify/vocab";
11
11
  import { SpanStatusCode, trace } from "@opentelemetry/api";
@@ -1,7 +1,7 @@
1
- const { Temporal } = require("@js-temporal/polyfill");
2
1
  const { URLPattern } = require("urlpattern-polyfill");
3
- const require_chunk = require("./chunk-DDcVe30Y.cjs");
4
- const require_http = require("./http-jCq51U37.cjs");
2
+ const require_chunk = require("./chunk-Czpeue4M.cjs");
3
+ const require_http = require("./http-zJsVCnKu.cjs");
4
+ const require_temporal_polyfill = require("./temporal-polyfill-BCdTHexd.cjs");
5
5
  let _logtape_logtape = require("@logtape/logtape");
6
6
  let _fedify_vocab = require("@fedify/vocab");
7
7
  let _opentelemetry_api = require("@opentelemetry/api");
@@ -1115,6 +1115,7 @@ async function normalizeOutgoingActivityJsonLd(jsonLd, contextLoader) {
1115
1115
  }
1116
1116
  //#endregion
1117
1117
  //#region src/sig/proof.ts
1118
+ const Temporal = require_temporal_polyfill.Temporal;
1118
1119
  /**
1119
1120
  * Known Object Integrity Proof `cryptosuite` values, used to keep
1120
1121
  * `object_integrity_proofs.cryptosuite` on a bounded set of spec-defined
@@ -1,6 +1,6 @@
1
- import { Temporal } from "@js-temporal/polyfill";
1
+ import { Temporal } from "temporal-polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import { F as version, P as name, _ as measureSignatureKeyFetch, d as validateCryptoKey, f as getDurationMs, p as getFederationMetrics, s as fetchKey } from "./http-CphHLbTC.js";
3
+ import { F as version, P as name, _ as measureSignatureKeyFetch, d as validateCryptoKey, f as getDurationMs, p as getFederationMetrics, s as fetchKey } from "./http--wLYmH1x.js";
4
4
  import { getLogger } from "@logtape/logtape";
5
5
  import { Activity, CryptographicKey, DataIntegrityProof, Multikey, Object as Object$1, PUBLIC_COLLECTION, getTypeId, isActor } from "@fedify/vocab";
6
6
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
@@ -1,4 +1,4 @@
1
- import "@js-temporal/polyfill";
1
+ import "temporal-polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
4
  import { getLogger } from "@logtape/logtape";
@@ -1,4 +1,4 @@
1
- import { Temporal } from "@js-temporal/polyfill";
1
+ import { Temporal } from "temporal-polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
4
  //#region src/federation/retry.ts
@@ -1,6 +1,5 @@
1
- const { Temporal } = require("@js-temporal/polyfill");
2
1
  const { URLPattern } = require("urlpattern-polyfill");
3
- require("../chunk-DDcVe30Y.cjs");
2
+ require("../chunk-Czpeue4M.cjs");
4
3
  var _fedify_vocab_runtime = require("@fedify/vocab-runtime");
5
4
  Object.keys(_fedify_vocab_runtime).forEach(function(k) {
6
5
  if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
@@ -1,4 +1,4 @@
1
- import { Temporal } from "@js-temporal/polyfill";
1
+ import { Temporal } from "temporal-polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
- import "../chunk-CRNNMoPX.js";
3
+ import "../chunk-D5IdezsZ.js";
4
4
  export * from "@fedify/vocab-runtime";
@@ -1,9 +1,9 @@
1
- import "@js-temporal/polyfill";
1
+ import "temporal-polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as version, t as name } from "./deno-Bkl9jNVs.mjs";
5
- import { n as getDurationMs, r as getFederationMetrics } from "./metrics-BVRrGEXj.mjs";
6
- import { n as doubleKnock } from "./http-BBkdx4Kd.mjs";
4
+ import { n as version, t as name } from "./deno-BCt09TJn.mjs";
5
+ import { n as getDurationMs, r as getFederationMetrics } from "./metrics-C-pKLuAU.mjs";
6
+ import { n as doubleKnock } from "./http-yainOC9t.mjs";
7
7
  import { getLogger } from "@logtape/logtape";
8
8
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
9
9
  import { FetchError } from "@fedify/vocab-runtime";