@fedify/fedify 2.1.0-dev.493 → 2.1.0-dev.513

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 (78) hide show
  1. package/dist/{builder-DmNnp5tq.js → builder-DSYM2n7q.js} +9 -3
  2. package/dist/compat/mod.d.cts +3 -3
  3. package/dist/compat/mod.d.ts +3 -3
  4. package/dist/compat/transformers.test.js +12 -12
  5. package/dist/{context-DZJhUmzF.d.ts → context--RwChtri.d.ts} +54 -2
  6. package/dist/{context-D3QkEtZd.d.cts → context-DL0cPpPV.d.cts} +54 -2
  7. package/dist/{deno-CEdA6Qbg.js → deno-aj03PJW6.js} +1 -1
  8. package/dist/{docloader-DSDeWS3b.js → docloader-tMQxWuTM.js} +2 -2
  9. package/dist/federation/builder.test.js +14 -3
  10. package/dist/federation/handler.test.js +97 -13
  11. package/dist/federation/idempotency.test.js +12 -12
  12. package/dist/federation/inbox.test.js +2 -2
  13. package/dist/federation/keycache.test.js +46 -2
  14. package/dist/federation/middleware.test.js +206 -12
  15. package/dist/federation/mod.cjs +4 -4
  16. package/dist/federation/mod.d.cts +4 -4
  17. package/dist/federation/mod.d.ts +4 -4
  18. package/dist/federation/mod.js +4 -4
  19. package/dist/federation/send.test.js +5 -5
  20. package/dist/federation/webfinger.test.js +12 -12
  21. package/dist/{http-DkHdFfrc.d.ts → http-BbfOqHGG.d.ts} +80 -8
  22. package/dist/{http-CZOndbgW.js → http-CoM8qFZV.js} +295 -101
  23. package/dist/{http-Cz3MlXAZ.d.cts → http-DsqqmkXi.d.cts} +80 -8
  24. package/dist/{http-CiMJ03KS.cjs → http-_l2XRk4S.cjs} +305 -99
  25. package/dist/{http-Bg3q8kHr.js → http-pa5yLKK7.js} +153 -57
  26. package/dist/{inbox-DqU4c_X3.js → inbox-EI2EtQri.js} +1 -1
  27. package/dist/{key-C4n9l8Du.js → key-j1AjF3HL.js} +145 -47
  28. package/dist/keycache-C7k8s1Bk.js +102 -0
  29. package/dist/{kv-cache-odxQKGuG.js → kv-cache-CMk-kfWp.js} +1 -1
  30. package/dist/{kv-cache-5UGMyoT-.cjs → kv-cache-D0IkOVYm.cjs} +1 -1
  31. package/dist/{ld-6sjAE9YN.js → ld-CD48Tb3_.js} +2 -2
  32. package/dist/middleware-BQhgZunR.cjs +12 -0
  33. package/dist/{middleware-Bp7TpUwI.js → middleware-BRIM_AL5.js} +158 -22
  34. package/dist/{middleware-C0HreN30.js → middleware-CWMuqleA.js} +4 -4
  35. package/dist/{middleware-Cw9Mh5yA.cjs → middleware-D1Awtgcf.cjs} +158 -22
  36. package/dist/{middleware-C1VQ8Ans.js → middleware-DbmQ5-Ph.js} +100 -24
  37. package/dist/{middleware-DlXJTROI.js → middleware-b9jiK13s.js} +12 -12
  38. package/dist/{mod-CwZXZJ9d.d.ts → mod-BugwI0JN.d.ts} +1 -1
  39. package/dist/{mod-DPkRU3EK.d.cts → mod-CFBU2OT3.d.cts} +1 -1
  40. package/dist/{mod-DUWcVv49.d.ts → mod-CvxylbuV.d.ts} +1 -1
  41. package/dist/{mod-DVwHUI_x.d.cts → mod-DE8MYisy.d.cts} +1 -1
  42. package/dist/{mod-DXsQakeS.d.cts → mod-DKG0ovjR.d.cts} +1 -1
  43. package/dist/{mod-DnSsduJF.d.ts → mod-DcfFNgYf.d.ts} +1 -1
  44. package/dist/{mod-Di3W5OdP.d.cts → mod-Dp0kK0hO.d.cts} +1 -1
  45. package/dist/{mod-DosD6NsG.d.ts → mod-Z7lIaCfo.d.ts} +1 -1
  46. package/dist/mod.cjs +8 -4
  47. package/dist/mod.d.cts +8 -8
  48. package/dist/mod.d.ts +8 -8
  49. package/dist/mod.js +7 -5
  50. package/dist/nodeinfo/handler.test.js +12 -12
  51. package/dist/otel/exporter.test.js +43 -2
  52. package/dist/otel/mod.cjs +7 -1
  53. package/dist/otel/mod.d.cts +12 -0
  54. package/dist/otel/mod.d.ts +12 -0
  55. package/dist/otel/mod.js +7 -1
  56. package/dist/{owner-B32FTWlk.js → owner-ZjRdCtVA.js} +1 -1
  57. package/dist/{proof-BzMHG6TM.js → proof-CQfh4S5r.js} +1 -1
  58. package/dist/{proof-D_nQ2TFB.cjs → proof-D2auLGZD.cjs} +1 -1
  59. package/dist/{proof-B1TFEc9M.js → proof-gmdzyEsv.js} +2 -2
  60. package/dist/{send-WmDCYLrz.js → send-1lNwij0f.js} +2 -2
  61. package/dist/sig/http.test.js +85 -5
  62. package/dist/sig/key.test.js +70 -3
  63. package/dist/sig/ld.test.js +3 -3
  64. package/dist/sig/mod.cjs +4 -2
  65. package/dist/sig/mod.d.cts +3 -3
  66. package/dist/sig/mod.d.ts +3 -3
  67. package/dist/sig/mod.js +3 -3
  68. package/dist/sig/owner.test.js +3 -3
  69. package/dist/sig/proof.test.js +3 -3
  70. package/dist/testing/mod.d.ts +92 -0
  71. package/dist/utils/docloader.test.js +4 -4
  72. package/dist/utils/mod.cjs +2 -2
  73. package/dist/utils/mod.d.cts +2 -2
  74. package/dist/utils/mod.d.ts +2 -2
  75. package/dist/utils/mod.js +2 -2
  76. package/package.json +5 -5
  77. package/dist/keycache-DRxpZ5r9.js +0 -48
  78. package/dist/middleware-B8jQdq8M.cjs +0 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/fedify",
3
- "version": "2.1.0-dev.493+36e41f96",
3
+ "version": "2.1.0-dev.513+f5543fca",
4
4
  "description": "An ActivityPub server framework",
5
5
  "keywords": [
6
6
  "ActivityPub",
@@ -145,9 +145,9 @@
145
145
  "uri-template-router": "^1.0.0",
146
146
  "url-template": "^3.1.1",
147
147
  "urlpattern-polyfill": "^10.1.0",
148
- "@fedify/vocab": "2.1.0-dev.493+36e41f96",
149
- "@fedify/vocab-runtime": "2.1.0-dev.493+36e41f96",
150
- "@fedify/webfinger": "2.1.0-dev.493+36e41f96"
148
+ "@fedify/vocab": "2.1.0-dev.513+f5543fca",
149
+ "@fedify/webfinger": "2.1.0-dev.513+f5543fca",
150
+ "@fedify/vocab-runtime": "2.1.0-dev.513+f5543fca"
151
151
  },
152
152
  "devDependencies": {
153
153
  "@std/assert": "npm:@jsr/std__assert@^0.226.0",
@@ -160,7 +160,7 @@
160
160
  "typescript": "^5.9.3",
161
161
  "wrangler": "^4.17.0",
162
162
  "@fedify/fixture": "2.0.0",
163
- "@fedify/vocab-tools": "^2.1.0-dev.493+36e41f96"
163
+ "@fedify/vocab-tools": "^2.1.0-dev.513+f5543fca"
164
164
  },
165
165
  "scripts": {
166
166
  "build:self": "tsdown",
@@ -1,48 +0,0 @@
1
-
2
- import { Temporal } from "@js-temporal/polyfill";
3
- import { URLPattern } from "urlpattern-polyfill";
4
- globalThis.addEventListener = () => {};
5
-
6
- import { CryptographicKey, Multikey } from "@fedify/vocab";
7
-
8
- //#region src/federation/keycache.ts
9
- var KvKeyCache = class {
10
- kv;
11
- prefix;
12
- options;
13
- nullKeys;
14
- constructor(kv, prefix, options = {}) {
15
- this.kv = kv;
16
- this.prefix = prefix;
17
- this.nullKeys = /* @__PURE__ */ new Set();
18
- this.options = options;
19
- }
20
- async get(keyId) {
21
- if (this.nullKeys.has(keyId.href)) return null;
22
- const serialized = await this.kv.get([...this.prefix, keyId.href]);
23
- if (serialized == null) return void 0;
24
- try {
25
- return await CryptographicKey.fromJsonLd(serialized, this.options);
26
- } catch {
27
- try {
28
- return await Multikey.fromJsonLd(serialized, this.options);
29
- } catch {
30
- await this.kv.delete([...this.prefix, keyId.href]);
31
- return void 0;
32
- }
33
- }
34
- }
35
- async set(keyId, key) {
36
- if (key == null) {
37
- this.nullKeys.add(keyId.href);
38
- await this.kv.delete([...this.prefix, keyId.href]);
39
- return;
40
- }
41
- this.nullKeys.delete(keyId.href);
42
- const serialized = await key.toJsonLd(this.options);
43
- await this.kv.set([...this.prefix, keyId.href], serialized);
44
- }
45
- };
46
-
47
- //#endregion
48
- export { KvKeyCache };
@@ -1,12 +0,0 @@
1
-
2
- const { Temporal } = require("@js-temporal/polyfill");
3
- const { URLPattern } = require("urlpattern-polyfill");
4
-
5
- require('./transformers-3g8GZwkZ.cjs');
6
- require('./http-CiMJ03KS.cjs');
7
- const require_middleware = require('./middleware-Cw9Mh5yA.cjs');
8
- require('./proof-D_nQ2TFB.cjs');
9
- require('./types-Cd_hszr_.cjs');
10
- require('./kv-cache-5UGMyoT-.cjs');
11
-
12
- exports.FederationImpl = require_middleware.FederationImpl;