@fedify/fedify 2.0.16 → 2.0.17-dev.1093

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 (89) hide show
  1. package/dist/{builder-VPw19L4x.mjs → builder-CoG4VXAS.mjs} +3 -3
  2. package/dist/{chunk-nlSIicah.js → chunk-CRNNMoPX.js} +2 -2
  3. package/dist/{client-z-8dc-e1.d.cts → client-CAM_bQXx.d.cts} +1 -0
  4. package/dist/{client-AtlibPOU.d.ts → client-CSddvgWN.d.ts} +1 -2
  5. package/dist/compat/mod.d.cts +2 -1
  6. package/dist/compat/mod.d.ts +2 -3
  7. package/dist/compat/mod.js +3 -3
  8. package/dist/compat/transformers.test.mjs +1 -1
  9. package/dist/{context-Kt2s6UWW.d.cts → context-BzRJ49gL.d.cts} +5 -4
  10. package/dist/{context-DKccFiYD.d.ts → context-CdJ9wAQa.d.ts} +5 -6
  11. package/dist/{deno-BEvWSD0d.mjs → deno-BsTAaG38.mjs} +1 -1
  12. package/dist/{docloader-BScjV0my.mjs → docloader-BpyzfTRB.mjs} +2 -2
  13. package/dist/federation/builder.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/inbox.test.mjs +1 -1
  17. package/dist/federation/middleware.test.mjs +6 -6
  18. package/dist/federation/mod.cjs +1 -1
  19. package/dist/federation/mod.d.cts +4 -3
  20. package/dist/federation/mod.d.ts +4 -5
  21. package/dist/federation/mod.js +2 -2
  22. package/dist/federation/send.test.mjs +3 -3
  23. package/dist/federation/webfinger.test.mjs +1 -1
  24. package/dist/{http-C_tEAiZj.d.cts → http-C4D0ajx0.d.ts} +2 -1
  25. package/dist/{http-BMSsRnym.mjs → http-ClOkZPVk.mjs} +58 -10
  26. package/dist/{http-BE6O-nrJ.js → http-DBHhHcMm.js} +58 -10
  27. package/dist/{http-B2wiNmSo.d.ts → http-RYvZHWMc.d.cts} +2 -3
  28. package/dist/{http-Bq0hHZft.cjs → http-ejFBVI1I.cjs} +57 -9
  29. package/dist/{inbox-lQpJcoAB.mjs → inbox-1iBLYwIM.mjs} +1 -1
  30. package/dist/{key-CqRm5zHn.mjs → key-DgnaBuPQ.mjs} +1 -1
  31. package/dist/{kv-CbLNp3zQ.d.cts → kv-D6hNiMTK.d.ts} +1 -0
  32. package/dist/{kv-cache-DbhNRuwK.cjs → kv-cache-BbfOz_6f.cjs} +2 -2
  33. package/dist/{kv-cache-OWmRLHir.mjs → kv-cache-DqEKe5E0.mjs} +1 -1
  34. package/dist/{kv-cache-BiIAhY0W.js → kv-cache-eO0dIiEK.js} +2 -2
  35. package/dist/{kv-GFYnFoOl.d.ts → kv-gJ8LYbxX.d.cts} +1 -3
  36. package/dist/{ld-C3SspgGf.mjs → ld-DQmBISTI.mjs} +2 -2
  37. package/dist/{middleware-akvY9Icm.mjs → middleware-C1lbrpLn.mjs} +1 -1
  38. package/dist/{middleware-BEXB4GwS.mjs → middleware-CM-lm1Ow.mjs} +11 -11
  39. package/dist/{middleware-BRlPw9Au.cjs → middleware-CML7W6o9.cjs} +4 -4
  40. package/dist/{middleware-DVHzxUx8.js → middleware-Cg0vLx3s.js} +7 -7
  41. package/dist/{middleware-DMiI5fdp.cjs → middleware-EM8jlXPc.cjs} +1 -1
  42. package/dist/{mod-DTOUyCce.d.ts → mod-B2zB0rDg.d.cts} +4 -5
  43. package/dist/{mod-BGtYJZKu.d.ts → mod-CB6pc2pw.d.cts} +3 -4
  44. package/dist/{mod-Bld7oeqf.d.cts → mod-CD1youdZ.d.ts} +4 -3
  45. package/dist/{mod-Cwmyxyoc.d.ts → mod-CKkpvznG.d.cts} +2 -3
  46. package/dist/{mod-1xhgsHef.d.cts → mod-CiQNNAQL.d.ts} +3 -2
  47. package/dist/{mod-DiGQkv-4.d.cts → mod-Kzr52ns8.d.ts} +2 -1
  48. package/dist/mod.cjs +4 -4
  49. package/dist/mod.d.cts +9 -8
  50. package/dist/mod.d.ts +9 -10
  51. package/dist/mod.js +9 -9
  52. package/dist/nodeinfo/handler.test.mjs +1 -1
  53. package/dist/nodeinfo/mod.d.cts +2 -1
  54. package/dist/nodeinfo/mod.d.ts +2 -3
  55. package/dist/nodeinfo/mod.js +3 -3
  56. package/dist/otel/mod.d.cts +2 -1
  57. package/dist/otel/mod.d.ts +2 -3
  58. package/dist/otel/mod.js +2 -2
  59. package/dist/{owner-GXHEhmNg.mjs → owner--l5W54LY.mjs} +2 -2
  60. package/dist/{owner-CptqhsOy.d.cts → owner-CnngXDNJ.d.ts} +2 -1
  61. package/dist/{owner-74ARJ5TL.d.ts → owner-DEvZuyOE.d.cts} +2 -3
  62. package/dist/{proof-CMLfLirr.js → proof-C2fn-J-1.js} +2 -2
  63. package/dist/{proof-E8kQUJNg.mjs → proof-CJ04SPrP.mjs} +2 -2
  64. package/dist/{proof-DzNI2MGk.cjs → proof-DNpSHLPH.cjs} +1 -1
  65. package/dist/runtime/mod.d.cts +1 -0
  66. package/dist/runtime/mod.d.ts +1 -2
  67. package/dist/runtime/mod.js +3 -3
  68. package/dist/{send-C1wOCdad.mjs → send-BTHdq66r.mjs} +2 -2
  69. package/dist/sig/http.test.mjs +121 -3
  70. package/dist/sig/key.test.mjs +1 -1
  71. package/dist/sig/ld.test.mjs +2 -2
  72. package/dist/sig/mod.cjs +2 -2
  73. package/dist/sig/mod.d.cts +4 -3
  74. package/dist/sig/mod.d.ts +4 -5
  75. package/dist/sig/mod.js +4 -4
  76. package/dist/sig/owner.test.mjs +1 -1
  77. package/dist/sig/proof.test.mjs +1 -1
  78. package/dist/{transformers-ve6e2xcg.js → transformers-BGMIq1cs.js} +2 -2
  79. package/dist/{types-hvL8ElAs.js → types-CAY3OdLq.js} +2 -2
  80. package/dist/utils/docloader.test.mjs +2 -2
  81. package/dist/utils/kv-cache.test.mjs +1 -1
  82. package/dist/utils/mod.cjs +1 -1
  83. package/dist/utils/mod.d.cts +2 -1
  84. package/dist/utils/mod.d.ts +2 -3
  85. package/dist/utils/mod.js +3 -3
  86. package/dist/vocab/mod.d.cts +1 -0
  87. package/dist/vocab/mod.d.ts +1 -2
  88. package/dist/vocab/mod.js +2 -2
  89. package/package.json +7 -7
@@ -1,7 +1,7 @@
1
1
  const { Temporal } = require("@js-temporal/polyfill");
2
2
  const { URLPattern } = require("urlpattern-polyfill");
3
3
  const require_chunk = require("./chunk-DDcVe30Y.cjs");
4
- const require_http = require("./http-Bq0hHZft.cjs");
4
+ const require_http = require("./http-ejFBVI1I.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");
@@ -1,3 +1,4 @@
1
+ /// <reference lib="esnext.temporal" />
1
2
  export * from "@fedify/vocab-runtime";
2
3
 
3
4
  //#region \0rolldown/runtime.js
@@ -1,3 +1,2 @@
1
- import { Temporal } from "@js-temporal/polyfill";
2
- import { URLPattern } from "urlpattern-polyfill";
1
+ /// <reference lib="esnext.temporal" />
3
2
  export * from "@fedify/vocab-runtime";
@@ -1,4 +1,4 @@
1
- import "@js-temporal/polyfill";
2
- import "urlpattern-polyfill";
3
- import "../chunk-nlSIicah.js";
1
+ import { Temporal } from "@js-temporal/polyfill";
2
+ import { URLPattern } from "urlpattern-polyfill";
3
+ import "../chunk-CRNNMoPX.js";
4
4
  export * from "@fedify/vocab-runtime";
@@ -1,8 +1,8 @@
1
1
  import "@js-temporal/polyfill";
2
2
  import "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as version, t as name } from "./deno-BEvWSD0d.mjs";
5
- import { n as doubleKnock } from "./http-BMSsRnym.mjs";
4
+ import { n as version, t as name } from "./deno-BsTAaG38.mjs";
5
+ import { n as doubleKnock } from "./http-ClOkZPVk.mjs";
6
6
  import { SpanKind, SpanStatusCode, trace } from "@opentelemetry/api";
7
7
  import { getLogger } from "@logtape/logtape";
8
8
  //#region src/federation/send.ts
@@ -7,11 +7,11 @@ import { a as assertExists, t as assertStringIncludes } from "../std__assert-Dui
7
7
  import { n as assertFalse, t as assertRejects } from "../assert_rejects-B-qJtC9Z.mjs";
8
8
  import { t as assertThrows } from "../assert_throws-4NwKEy2q.mjs";
9
9
  import { t as assert } from "../assert-ddO5KLpe.mjs";
10
- import { t as exportJwk } from "../key-CqRm5zHn.mjs";
11
- import { a as parseRfc9421Signature, c as timingSafeEqual, i as formatRfc9421SignatureParameters, l as verifyRequest, n as doubleKnock, o as parseRfc9421SignatureInput, r as formatRfc9421Signature, s as signRequest, t as createRfc9421SignatureBase } from "../http-BMSsRnym.mjs";
10
+ import { t as exportJwk } from "../key-DgnaBuPQ.mjs";
11
+ import { a as parseRfc9421Signature, c as timingSafeEqual, i as formatRfc9421SignatureParameters, l as verifyRequest, n as doubleKnock, o as parseRfc9421SignatureInput, r as formatRfc9421Signature, s as signRequest, t as createRfc9421SignatureBase } from "../http-ClOkZPVk.mjs";
12
12
  import { i as rsaPrivateKey2, l as rsaPublicKey5, o as rsaPublicKey1, s as rsaPublicKey2 } from "../keys-CtZLJq76.mjs";
13
13
  import { mockDocumentLoader, test } from "@fedify/fixture";
14
- import { exportSpki } from "@fedify/vocab-runtime";
14
+ import { FetchError, exportSpki } from "@fedify/vocab-runtime";
15
15
  import { encodeBase64 } from "byte-encodings/base64";
16
16
  //#region src/sig/http.test.ts
17
17
  test("signRequest() [draft-cavage]", async () => {
@@ -833,6 +833,124 @@ test("doubleKnock() detects redirect loops", async () => {
833
833
  assertEquals(requestCount, 2);
834
834
  esm_default.hardReset();
835
835
  });
836
+ test("doubleKnock() retries idempotent request transport errors", async () => {
837
+ esm_default.spyGlobal();
838
+ try {
839
+ let requestCount = 0;
840
+ esm_default.get("https://example.com/flaky-document", () => {
841
+ requestCount++;
842
+ if (requestCount === 1) throw new TypeError("temporary DNS failure");
843
+ return new Response("Success", { status: 200 });
844
+ });
845
+ const response = await doubleKnock(new Request("https://example.com/flaky-document"), {
846
+ keyId: rsaPublicKey2.id,
847
+ privateKey: rsaPrivateKey2
848
+ });
849
+ assertEquals(response.status, 200);
850
+ assertEquals(await response.text(), "Success");
851
+ assertEquals(requestCount, 2);
852
+ } finally {
853
+ esm_default.hardReset();
854
+ }
855
+ });
856
+ test("doubleKnock() wraps repeated transport errors", async () => {
857
+ esm_default.spyGlobal();
858
+ try {
859
+ let requestCount = 0;
860
+ const failure = /* @__PURE__ */ new TypeError("DNS lookup failed");
861
+ esm_default.get("https://example.com/unreachable-document", () => {
862
+ requestCount++;
863
+ throw failure;
864
+ });
865
+ const request = new Request("https://example.com/unreachable-document");
866
+ const error = await assertRejects(() => doubleKnock(request, {
867
+ keyId: rsaPublicKey2.id,
868
+ privateKey: rsaPrivateKey2
869
+ }), FetchError, "DNS lookup failed");
870
+ assertEquals(error.url.href, "https://example.com/unreachable-document");
871
+ assertEquals(error.cause, failure);
872
+ assertEquals(requestCount, 2);
873
+ } finally {
874
+ esm_default.hardReset();
875
+ }
876
+ });
877
+ test("doubleKnock() does not retry non-idempotent transport errors", async () => {
878
+ esm_default.spyGlobal();
879
+ try {
880
+ let requestCount = 0;
881
+ const failure = /* @__PURE__ */ new TypeError("connection reset");
882
+ esm_default.post("https://example.com/flaky-inbox", () => {
883
+ requestCount++;
884
+ throw failure;
885
+ });
886
+ const request = new Request("https://example.com/flaky-inbox", {
887
+ method: "POST",
888
+ body: "Test activity content",
889
+ headers: { "Content-Type": "application/activity+json" }
890
+ });
891
+ const error = await assertRejects(() => doubleKnock(request, {
892
+ keyId: rsaPublicKey2.id,
893
+ privateKey: rsaPrivateKey2
894
+ }), FetchError, "connection reset");
895
+ assertEquals(error.url.href, "https://example.com/flaky-inbox");
896
+ assertEquals(error.cause, failure);
897
+ assertEquals(requestCount, 1);
898
+ } finally {
899
+ esm_default.hardReset();
900
+ }
901
+ });
902
+ test("doubleKnock() preserves Request signal abort reasons", async () => {
903
+ const controller = new AbortController();
904
+ const abortReason = "request aborted";
905
+ controller.abort(abortReason);
906
+ const request = new Request("https://example.com/request-abort", { signal: controller.signal });
907
+ assertEquals(await assertRejects(() => doubleKnock(request, {
908
+ keyId: rsaPublicKey2.id,
909
+ privateKey: rsaPrivateKey2
910
+ })), abortReason);
911
+ });
912
+ test("doubleKnock() preserves Request signal aborts during retry delay", async () => {
913
+ esm_default.spyGlobal();
914
+ try {
915
+ let requestCount = 0;
916
+ const controller = new AbortController();
917
+ const abortReason = "retry aborted";
918
+ esm_default.get("https://example.com/aborted-retry", () => {
919
+ requestCount++;
920
+ setTimeout(() => controller.abort(abortReason));
921
+ throw new TypeError("temporary DNS failure");
922
+ });
923
+ const request = new Request("https://example.com/aborted-retry", { signal: controller.signal });
924
+ assertEquals(await assertRejects(() => doubleKnock(request, {
925
+ keyId: rsaPublicKey2.id,
926
+ privateKey: rsaPrivateKey2
927
+ })), abortReason);
928
+ assertEquals(requestCount, 1);
929
+ } finally {
930
+ esm_default.hardReset();
931
+ }
932
+ });
933
+ test("doubleKnock() prefers Request aborts over transport errors", async () => {
934
+ esm_default.spyGlobal();
935
+ try {
936
+ let requestCount = 0;
937
+ const controller = new AbortController();
938
+ const abortReason = "transport aborted";
939
+ esm_default.get("https://example.com/abort-with-transport-error", () => {
940
+ requestCount++;
941
+ controller.abort(abortReason);
942
+ throw new TypeError("temporary DNS failure");
943
+ });
944
+ const request = new Request("https://example.com/abort-with-transport-error", { signal: controller.signal });
945
+ assertEquals(await assertRejects(() => doubleKnock(request, {
946
+ keyId: rsaPublicKey2.id,
947
+ privateKey: rsaPrivateKey2
948
+ })), abortReason);
949
+ assertEquals(requestCount, 1);
950
+ } finally {
951
+ esm_default.hardReset();
952
+ }
953
+ });
836
954
  test("doubleKnock() async specDeterminer test", async () => {
837
955
  esm_default.spyGlobal();
838
956
  let requestCount = 0;
@@ -5,7 +5,7 @@ import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
5
5
  import "../std__assert-Duiq_YC9.mjs";
6
6
  import { t as assertRejects } from "../assert_rejects-B-qJtC9Z.mjs";
7
7
  import { t as assertThrows } from "../assert_throws-4NwKEy2q.mjs";
8
- import { a as validateCryptoKey, i as importJwk, n as fetchKey, r as generateCryptoKeyPair, t as exportJwk } from "../key-CqRm5zHn.mjs";
8
+ import { a as validateCryptoKey, i as importJwk, n as fetchKey, r as generateCryptoKeyPair, t as exportJwk } from "../key-DgnaBuPQ.mjs";
9
9
  import { c as rsaPublicKey3, i as rsaPrivateKey2, o as rsaPublicKey1, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-CtZLJq76.mjs";
10
10
  import { mockDocumentLoader, test } from "@fedify/fixture";
11
11
  import { CryptographicKey, Multikey } from "@fedify/vocab";
@@ -5,9 +5,9 @@ import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
5
5
  import { n as assertFalse, t as assertRejects } from "../assert_rejects-B-qJtC9Z.mjs";
6
6
  import { t as assertThrows } from "../assert_throws-4NwKEy2q.mjs";
7
7
  import { t as assert } from "../assert-ddO5KLpe.mjs";
8
- import { r as generateCryptoKeyPair } from "../key-CqRm5zHn.mjs";
8
+ import { r as generateCryptoKeyPair } from "../key-DgnaBuPQ.mjs";
9
9
  import { a as rsaPrivateKey3, c as rsaPublicKey3, i as rsaPrivateKey2, n as ed25519PrivateKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-CtZLJq76.mjs";
10
- import { a as signJsonLd, n as createSignature, o as verifyJsonLd, r as detachSignature, s as verifySignature, t as attachSignature } from "../ld-C3SspgGf.mjs";
10
+ import { a as signJsonLd, n as createSignature, o as verifyJsonLd, r as detachSignature, s as verifySignature, t as attachSignature } from "../ld-DQmBISTI.mjs";
11
11
  import { mockDocumentLoader, test } from "@fedify/fixture";
12
12
  import { CryptographicKey } from "@fedify/vocab";
13
13
  import { encodeBase64 } from "byte-encodings/base64";
package/dist/sig/mod.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  const { Temporal } = require("@js-temporal/polyfill");
2
2
  const { URLPattern } = require("urlpattern-polyfill");
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
- const require_http = require("../http-Bq0hHZft.cjs");
5
- const require_proof = require("../proof-DzNI2MGk.cjs");
4
+ const require_http = require("../http-ejFBVI1I.cjs");
5
+ const require_proof = require("../proof-DNpSHLPH.cjs");
6
6
  exports.attachSignature = require_proof.attachSignature;
7
7
  exports.createProof = require_proof.createProof;
8
8
  exports.createSignature = require_proof.createSignature;
@@ -1,4 +1,5 @@
1
- import { a as signRequest, c as FetchKeyResult, d as fetchKey, f as generateCryptoKeyPair, i as VerifyRequestOptions, l as KeyCache, n as HttpMessageSignaturesSpecDeterminer, o as verifyRequest, p as importJwk, r as SignRequestOptions, s as FetchKeyOptions, t as HttpMessageSignaturesSpec, u as exportJwk } from "../http-C_tEAiZj.cjs";
2
- import { i as getKeyOwner, n as GetKeyOwnerOptions, r as doesActorOwnKey, t as DoesActorOwnKeyOptions } from "../owner-CptqhsOy.cjs";
3
- import { _ as verifyJsonLd, a as createProof, c as verifyProof, d as VerifyJsonLdOptions, f as VerifySignatureOptions, g as signJsonLd, h as detachSignature, i as VerifyProofOptions, l as CreateSignatureOptions, m as createSignature, n as SignObjectOptions, o as signObject, p as attachSignature, r as VerifyObjectOptions, s as verifyObject, t as CreateProofOptions, u as SignJsonLdOptions, v as verifySignature } from "../mod-1xhgsHef.cjs";
1
+ /// <reference lib="esnext.temporal" />
2
+ import { a as signRequest, c as FetchKeyResult, d as fetchKey, f as generateCryptoKeyPair, i as VerifyRequestOptions, l as KeyCache, n as HttpMessageSignaturesSpecDeterminer, o as verifyRequest, p as importJwk, r as SignRequestOptions, s as FetchKeyOptions, t as HttpMessageSignaturesSpec, u as exportJwk } from "../http-RYvZHWMc.cjs";
3
+ import { i as getKeyOwner, n as GetKeyOwnerOptions, r as doesActorOwnKey, t as DoesActorOwnKeyOptions } from "../owner-DEvZuyOE.cjs";
4
+ import { _ as verifyJsonLd, a as createProof, c as verifyProof, d as VerifyJsonLdOptions, f as VerifySignatureOptions, g as signJsonLd, h as detachSignature, i as VerifyProofOptions, l as CreateSignatureOptions, m as createSignature, n as SignObjectOptions, o as signObject, p as attachSignature, r as VerifyObjectOptions, s as verifyObject, t as CreateProofOptions, u as SignJsonLdOptions, v as verifySignature } from "../mod-CB6pc2pw.cjs";
4
5
  export { CreateProofOptions, CreateSignatureOptions, DoesActorOwnKeyOptions, FetchKeyOptions, FetchKeyResult, GetKeyOwnerOptions, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignJsonLdOptions, SignObjectOptions, SignRequestOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifyRequestOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, exportJwk, fetchKey, generateCryptoKeyPair, getKeyOwner, importJwk, signJsonLd, signObject, signRequest, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
package/dist/sig/mod.d.ts CHANGED
@@ -1,6 +1,5 @@
1
- import { Temporal } from "@js-temporal/polyfill";
2
- import { URLPattern } from "urlpattern-polyfill";
3
- import { a as signRequest, c as FetchKeyResult, d as fetchKey, f as generateCryptoKeyPair, i as VerifyRequestOptions, l as KeyCache, n as HttpMessageSignaturesSpecDeterminer, o as verifyRequest, p as importJwk, r as SignRequestOptions, s as FetchKeyOptions, t as HttpMessageSignaturesSpec, u as exportJwk } from "../http-B2wiNmSo.js";
4
- import { i as getKeyOwner, n as GetKeyOwnerOptions, r as doesActorOwnKey, t as DoesActorOwnKeyOptions } from "../owner-74ARJ5TL.js";
5
- import { _ as verifyJsonLd, a as createProof, c as verifyProof, d as VerifyJsonLdOptions, f as VerifySignatureOptions, g as signJsonLd, h as detachSignature, i as VerifyProofOptions, l as CreateSignatureOptions, m as createSignature, n as SignObjectOptions, o as signObject, p as attachSignature, r as VerifyObjectOptions, s as verifyObject, t as CreateProofOptions, u as SignJsonLdOptions, v as verifySignature } from "../mod-BGtYJZKu.js";
1
+ /// <reference lib="esnext.temporal" />
2
+ import { a as signRequest, c as FetchKeyResult, d as fetchKey, f as generateCryptoKeyPair, i as VerifyRequestOptions, l as KeyCache, n as HttpMessageSignaturesSpecDeterminer, o as verifyRequest, p as importJwk, r as SignRequestOptions, s as FetchKeyOptions, t as HttpMessageSignaturesSpec, u as exportJwk } from "../http-C4D0ajx0.js";
3
+ import { i as getKeyOwner, n as GetKeyOwnerOptions, r as doesActorOwnKey, t as DoesActorOwnKeyOptions } from "../owner-CnngXDNJ.js";
4
+ import { _ as verifyJsonLd, a as createProof, c as verifyProof, d as VerifyJsonLdOptions, f as VerifySignatureOptions, g as signJsonLd, h as detachSignature, i as VerifyProofOptions, l as CreateSignatureOptions, m as createSignature, n as SignObjectOptions, o as signObject, p as attachSignature, r as VerifyObjectOptions, s as verifyObject, t as CreateProofOptions, u as SignJsonLdOptions, v as verifySignature } from "../mod-CiQNNAQL.js";
6
5
  export { CreateProofOptions, CreateSignatureOptions, DoesActorOwnKeyOptions, FetchKeyOptions, FetchKeyResult, GetKeyOwnerOptions, HttpMessageSignaturesSpec, HttpMessageSignaturesSpecDeterminer, KeyCache, SignJsonLdOptions, SignObjectOptions, SignRequestOptions, VerifyJsonLdOptions, VerifyObjectOptions, VerifyProofOptions, VerifyRequestOptions, VerifySignatureOptions, attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, exportJwk, fetchKey, generateCryptoKeyPair, getKeyOwner, importJwk, signJsonLd, signObject, signRequest, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
package/dist/sig/mod.js CHANGED
@@ -1,5 +1,5 @@
1
- import "@js-temporal/polyfill";
2
- import "urlpattern-polyfill";
3
- import { a as fetchKey, i as exportJwk, n as signRequest, o as generateCryptoKeyPair, r as verifyRequest, s as importJwk } from "../http-BE6O-nrJ.js";
4
- import { a as doesActorOwnKey, c as createSignature, d as signJsonLd, f as verifyJsonLd, i as verifyProof, l as detachSignature, n as signObject, o as getKeyOwner, p as verifySignature, r as verifyObject, s as attachSignature, t as createProof } from "../proof-CMLfLirr.js";
1
+ import { Temporal } from "@js-temporal/polyfill";
2
+ import { URLPattern } from "urlpattern-polyfill";
3
+ import { a as fetchKey, i as exportJwk, n as signRequest, o as generateCryptoKeyPair, r as verifyRequest, s as importJwk } from "../http-DBHhHcMm.js";
4
+ import { a as doesActorOwnKey, c as createSignature, d as signJsonLd, f as verifyJsonLd, i as verifyProof, l as detachSignature, n as signObject, o as getKeyOwner, p as verifySignature, r as verifyObject, s as attachSignature, t as createProof } from "../proof-C2fn-J-1.js";
5
5
  export { attachSignature, createProof, createSignature, detachSignature, doesActorOwnKey, exportJwk, fetchKey, generateCryptoKeyPair, getKeyOwner, importJwk, signJsonLd, signObject, signRequest, verifyJsonLd, verifyObject, verifyProof, verifyRequest, verifySignature };
@@ -6,7 +6,7 @@ import "../std__assert-Duiq_YC9.mjs";
6
6
  import { n as assertFalse } from "../assert_rejects-B-qJtC9Z.mjs";
7
7
  import { t as assert } from "../assert-ddO5KLpe.mjs";
8
8
  import { o as rsaPublicKey1, s as rsaPublicKey2 } from "../keys-CtZLJq76.mjs";
9
- import { n as getKeyOwner, t as doesActorOwnKey } from "../owner-GXHEhmNg.mjs";
9
+ import { n as getKeyOwner, t as doesActorOwnKey } from "../owner--l5W54LY.mjs";
10
10
  import { createTestTracerProvider, mockDocumentLoader, test } from "@fedify/fixture";
11
11
  import { Create, CryptographicKey, lookupObject } from "@fedify/vocab";
12
12
  //#region src/sig/owner.test.ts
@@ -6,7 +6,7 @@ import "../std__assert-Duiq_YC9.mjs";
6
6
  import { t as assertRejects } from "../assert_rejects-B-qJtC9Z.mjs";
7
7
  import { t as assertInstanceOf } from "../assert_instance_of-C4Ri6VuN.mjs";
8
8
  import { i as rsaPrivateKey2, n as ed25519PrivateKey, r as ed25519PublicKey, s as rsaPublicKey2, t as ed25519Multikey } from "../keys-CtZLJq76.mjs";
9
- import { i as verifyProof, n as signObject, r as verifyObject, t as createProof } from "../proof-E8kQUJNg.mjs";
9
+ import { i as verifyProof, n as signObject, r as verifyObject, t as createProof } from "../proof-CJ04SPrP.mjs";
10
10
  import { mockDocumentLoader, test } from "@fedify/fixture";
11
11
  import { Create, DataIntegrityProof, Multikey, Note, Place } from "@fedify/vocab";
12
12
  import { decodeMultibase, importMultibaseKey } from "@fedify/vocab-runtime";
@@ -1,5 +1,5 @@
1
- import "@js-temporal/polyfill";
2
- import "urlpattern-polyfill";
1
+ import { Temporal } from "@js-temporal/polyfill";
2
+ import { URLPattern } from "urlpattern-polyfill";
3
3
  import { getLogger } from "@logtape/logtape";
4
4
  //#region src/compat/transformers.ts
5
5
  const logger = getLogger([
@@ -1,5 +1,5 @@
1
- import "@js-temporal/polyfill";
2
- import "urlpattern-polyfill";
1
+ import { Temporal } from "@js-temporal/polyfill";
2
+ import { URLPattern } from "urlpattern-polyfill";
3
3
  import { getLogger } from "@logtape/logtape";
4
4
  import { getUserAgent } from "@fedify/vocab-runtime";
5
5
  //#region src/nodeinfo/client.ts
@@ -5,9 +5,9 @@ import { t as esm_default } from "../esm-DVILvP5e.mjs";
5
5
  import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
6
6
  import "../std__assert-Duiq_YC9.mjs";
7
7
  import { t as assertRejects } from "../assert_rejects-B-qJtC9Z.mjs";
8
- import { l as verifyRequest } from "../http-BMSsRnym.mjs";
8
+ import { l as verifyRequest } from "../http-ClOkZPVk.mjs";
9
9
  import { i as rsaPrivateKey2 } from "../keys-CtZLJq76.mjs";
10
- import { t as getAuthenticatedDocumentLoader } from "../docloader-BScjV0my.mjs";
10
+ import { t as getAuthenticatedDocumentLoader } from "../docloader-BpyzfTRB.mjs";
11
11
  import { mockDocumentLoader, test } from "@fedify/fixture";
12
12
  import { UrlError } from "@fedify/vocab-runtime";
13
13
  //#region src/utils/docloader.test.ts
@@ -1,7 +1,7 @@
1
1
  import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
- import { n as kvCache, t as MockKvStore } from "../kv-cache-OWmRLHir.mjs";
4
+ import { n as kvCache, t as MockKvStore } from "../kv-cache-DqEKe5E0.mjs";
5
5
  import { mockDocumentLoader, test } from "@fedify/fixture";
6
6
  import { deepStrictEqual, throws } from "node:assert";
7
7
  import { preloadedContexts } from "@fedify/vocab-runtime";
@@ -1,6 +1,6 @@
1
1
  const { Temporal } = require("@js-temporal/polyfill");
2
2
  const { URLPattern } = require("urlpattern-polyfill");
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
- const require_kv_cache = require("../kv-cache-DbhNRuwK.cjs");
4
+ const require_kv_cache = require("../kv-cache-BbfOz_6f.cjs");
5
5
  exports.getAuthenticatedDocumentLoader = require_kv_cache.getAuthenticatedDocumentLoader;
6
6
  exports.kvCache = require_kv_cache.kvCache;
@@ -1,2 +1,3 @@
1
- import { n as getAuthenticatedDocumentLoader, t as kvCache } from "../mod-Bld7oeqf.cjs";
1
+ /// <reference lib="esnext.temporal" />
2
+ import { n as getAuthenticatedDocumentLoader, t as kvCache } from "../mod-B2zB0rDg.cjs";
2
3
  export { getAuthenticatedDocumentLoader, kvCache };
@@ -1,4 +1,3 @@
1
- import { Temporal } from "@js-temporal/polyfill";
2
- import { URLPattern } from "urlpattern-polyfill";
3
- import { n as getAuthenticatedDocumentLoader, t as kvCache } from "../mod-DTOUyCce.js";
1
+ /// <reference lib="esnext.temporal" />
2
+ import { n as getAuthenticatedDocumentLoader, t as kvCache } from "../mod-CD1youdZ.js";
4
3
  export { getAuthenticatedDocumentLoader, kvCache };
package/dist/utils/mod.js CHANGED
@@ -1,4 +1,4 @@
1
- import "@js-temporal/polyfill";
2
- import "urlpattern-polyfill";
3
- import { n as getAuthenticatedDocumentLoader, t as kvCache } from "../kv-cache-BiIAhY0W.js";
1
+ import { Temporal } from "@js-temporal/polyfill";
2
+ import { URLPattern } from "urlpattern-polyfill";
3
+ import { n as getAuthenticatedDocumentLoader, t as kvCache } from "../kv-cache-eO0dIiEK.js";
4
4
  export { getAuthenticatedDocumentLoader, kvCache };
@@ -1 +1,2 @@
1
+ /// <reference lib="esnext.temporal" />
1
2
  export * from "@fedify/vocab";
@@ -1,3 +1,2 @@
1
- import { Temporal } from "@js-temporal/polyfill";
2
- import { URLPattern } from "urlpattern-polyfill";
1
+ /// <reference lib="esnext.temporal" />
3
2
  export * from "@fedify/vocab";
package/dist/vocab/mod.js CHANGED
@@ -1,3 +1,3 @@
1
- import "@js-temporal/polyfill";
2
- import "urlpattern-polyfill";
1
+ import { Temporal } from "@js-temporal/polyfill";
2
+ import { URLPattern } from "urlpattern-polyfill";
3
3
  export * from "@fedify/vocab";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/fedify",
3
- "version": "2.0.16",
3
+ "version": "2.0.17-dev.1093+5ccc4865",
4
4
  "description": "An ActivityPub server framework",
5
5
  "keywords": [
6
6
  "ActivityPub",
@@ -144,9 +144,9 @@
144
144
  "uri-template-router": "^1.0.0",
145
145
  "url-template": "^3.1.1",
146
146
  "urlpattern-polyfill": "^10.1.0",
147
- "@fedify/vocab": "2.0.16",
148
- "@fedify/vocab-runtime": "2.0.16",
149
- "@fedify/webfinger": "2.0.16"
147
+ "@fedify/vocab": "2.0.17-dev.1093+5ccc4865",
148
+ "@fedify/vocab-runtime": "2.0.17-dev.1093+5ccc4865",
149
+ "@fedify/webfinger": "2.0.17-dev.1093+5ccc4865"
150
150
  },
151
151
  "devDependencies": {
152
152
  "@std/assert": "npm:@jsr/std__assert@^0.226.0",
@@ -156,10 +156,10 @@
156
156
  "miniflare": "^4.20250523.0",
157
157
  "tsdown": "^0.21.6",
158
158
  "tsx": "^4.19.4",
159
- "typescript": "^5.9.2",
159
+ "typescript": "^6.0.0",
160
160
  "wrangler": "^4.17.0",
161
- "@fedify/vocab-tools": "^2.0.16",
162
- "@fedify/fixture": "2.0.0"
161
+ "@fedify/fixture": "2.0.0",
162
+ "@fedify/vocab-tools": "^2.0.17-dev.1093+5ccc4865"
163
163
  },
164
164
  "scripts": {
165
165
  "build:self": "tsdown",