@fedify/fedify 2.0.0-pr.458.1796 → 2.0.0-pr.467.1877

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 (121) hide show
  1. package/dist/{actor-DPWo8e6F.cjs → actor-BrMdE_1G.cjs} +185 -185
  2. package/dist/{actor-D5sOur2R.js → actor-DMbX2bPf.js} +185 -185
  3. package/dist/{actor-DVMBUtCV.js → actor-DslgGxD8.js} +1 -1
  4. package/dist/{builder-CExUnivT.js → builder-DvuChHyB.js} +3 -3
  5. package/dist/compat/mod.d.cts +2 -3
  6. package/dist/compat/mod.d.ts +2 -3
  7. package/dist/compat/transformers.test.js +14 -14
  8. package/dist/{context-DJ8aSy2Q.d.cts → context-PxGADCsD.d.cts} +140 -3
  9. package/dist/{context-DG0huGW-.d.ts → context-V-XS2_6O.d.ts} +140 -3
  10. package/dist/{docloader-D0GvHC51.js → docloader-CQCA5QKZ.js} +2 -2
  11. package/dist/{esm-Dx1ANaUf.js → esm-DVill8zU.js} +1 -1
  12. package/dist/federation/builder.test.js +4 -4
  13. package/dist/federation/collection.test.js +2 -2
  14. package/dist/federation/handler.test.js +15 -15
  15. package/dist/federation/idempotency.test.js +15 -15
  16. package/dist/federation/inbox.test.js +3 -3
  17. package/dist/federation/keycache.test.js +3 -3
  18. package/dist/federation/kv.test.js +2 -2
  19. package/dist/federation/middleware.test.js +16 -16
  20. package/dist/federation/mod.cjs +7 -7
  21. package/dist/federation/mod.d.cts +2 -3
  22. package/dist/federation/mod.d.ts +2 -3
  23. package/dist/federation/mod.js +7 -7
  24. package/dist/federation/mq.test.js +6 -4
  25. package/dist/federation/negotiation.test.js +2 -2
  26. package/dist/federation/retry.test.js +2 -2
  27. package/dist/federation/router.test.js +2 -2
  28. package/dist/federation/send.test.js +9 -9
  29. package/dist/{http-DGcqtcol.cjs → http-GjJOLe0t.cjs} +2 -2
  30. package/dist/{http-Cei_vVzc.js → http-W1mkXyFw.js} +2 -2
  31. package/dist/{http-BSN6RQOC.js → http-pBJCYh50.js} +2 -2
  32. package/dist/{inbox-9IhtKqHT.js → inbox-Bk4PjO2V.js} +1 -1
  33. package/dist/{key-m63kqSGm.js → key-BlPc80ei.js} +2 -2
  34. package/dist/{keycache-BZvso79n.js → keycache-qku87Evf.js} +1 -1
  35. package/dist/{keys-C3Onp7Fd.js → keys-CXQWhBgw.js} +1 -1
  36. package/dist/{kv-cache--RKYzX3Q.js → kv-cache-BGGmyOF-.js} +1 -1
  37. package/dist/{kv-cache-tUGFCM0H.cjs → kv-cache-BGfFfQma.cjs} +1 -1
  38. package/dist/{ld-BkW6zBWj.js → ld-CQj76XXM.js} +2 -2
  39. package/dist/{lookup-DkCTtfbf.cjs → lookup-BahLrzT6.cjs} +3 -8
  40. package/dist/{lookup-DgpTsAyI.js → lookup-CUj1Ayf2.js} +187 -192
  41. package/dist/{lookup-Bl3pwcyk.js → lookup-ZLHmgBj5.js} +3 -8
  42. package/dist/{middleware-By89ws1y.js → middleware-4BJL-9x8.js} +11 -11
  43. package/dist/middleware-BLZsPbCt.js +15 -0
  44. package/dist/{middleware-Cs-UBi-8.cjs → middleware-CCBsGJcn.cjs} +7 -7
  45. package/dist/middleware-D8qnhAFG.cjs +15 -0
  46. package/dist/{middleware-BKkWaVlz.js → middleware-DXsuKk_U.js} +7 -7
  47. package/dist/middleware-Dw-pChHQ.js +26 -0
  48. package/dist/{mod-DJcZDvjA.d.cts → mod-BoRKfJPE.d.cts} +1 -1
  49. package/dist/{mod-BoHnwOCs.d.ts → mod-Cdo6SYlJ.d.ts} +1 -1
  50. package/dist/mod.cjs +7 -7
  51. package/dist/mod.d.cts +5 -6
  52. package/dist/mod.d.ts +5 -6
  53. package/dist/mod.js +7 -7
  54. package/dist/nodeinfo/client.test.js +3 -3
  55. package/dist/nodeinfo/handler.test.js +14 -14
  56. package/dist/nodeinfo/mod.d.cts +1 -1
  57. package/dist/nodeinfo/mod.d.ts +1 -1
  58. package/dist/nodeinfo/types.test.js +2 -2
  59. package/dist/{owner-BVcVlOj2.js → owner-Buqg_Myf.js} +2 -2
  60. package/dist/{proof-pdiYnkHt.js → proof-AxiARBr_.js} +2 -2
  61. package/dist/{proof-DHvk0L4Q.js → proof-DJjdTnEN.js} +3 -3
  62. package/dist/{proof-BO4lGs3o.cjs → proof-DizHNX8y.cjs} +3 -3
  63. package/dist/{send-BJrafhoh.js → send-B9ByF5wN.js} +2 -2
  64. package/dist/sig/http.test.js +7 -7
  65. package/dist/sig/key.test.js +5 -5
  66. package/dist/sig/ld.test.js +6 -6
  67. package/dist/sig/mod.cjs +4 -4
  68. package/dist/sig/mod.d.cts +1 -1
  69. package/dist/sig/mod.d.ts +1 -1
  70. package/dist/sig/mod.js +4 -4
  71. package/dist/sig/owner.test.js +6 -6
  72. package/dist/sig/proof.test.js +6 -6
  73. package/dist/testing/docloader.test.js +2 -2
  74. package/dist/testing/mod.js +2 -2
  75. package/dist/{testing-DQu183XY.js → testing-vN3EpiIw.js} +1 -1
  76. package/dist/utils/docloader.test.js +8 -8
  77. package/dist/utils/kv-cache.test.js +2 -2
  78. package/dist/utils/mod.cjs +4 -4
  79. package/dist/utils/mod.d.cts +1 -1
  80. package/dist/utils/mod.d.ts +1 -1
  81. package/dist/utils/mod.js +4 -4
  82. package/dist/vocab/actor.test.js +4 -4
  83. package/dist/vocab/lookup.test.js +3 -3
  84. package/dist/vocab/mod.cjs +3 -3
  85. package/dist/vocab/mod.js +3 -3
  86. package/dist/vocab/type.test.js +2 -2
  87. package/dist/vocab/vocab.test.js +3 -3
  88. package/dist/{vocab-D7w9PSpd.js → vocab-CdguqeJf.js} +2 -2
  89. package/dist/{vocab-DPJyg4oW.cjs → vocab-DEaLWwSP.cjs} +2 -2
  90. package/dist/webfinger/handler.test.js +14 -14
  91. package/dist/webfinger/lookup.test.js +3 -3
  92. package/dist/webfinger/mod.cjs +1 -1
  93. package/dist/webfinger/mod.js +1 -1
  94. package/package.json +5 -36
  95. package/dist/denokv-CCssOzMJ.js +0 -57
  96. package/dist/middleware-C4qOO14D.js +0 -26
  97. package/dist/middleware-CGfrkoHW.js +0 -15
  98. package/dist/middleware-CsQiHdGR.cjs +0 -15
  99. package/dist/mq-CUKlBw08.d.ts +0 -143
  100. package/dist/mq-DcJPkXD5.d.cts +0 -140
  101. package/dist/vocab/schema.yaml +0 -247
  102. package/dist/x/cfworkers.cjs +0 -100
  103. package/dist/x/cfworkers.d.cts +0 -59
  104. package/dist/x/cfworkers.d.ts +0 -61
  105. package/dist/x/cfworkers.js +0 -98
  106. package/dist/x/cfworkers.test.d.ts +0 -3
  107. package/dist/x/cfworkers.test.js +0 -177
  108. package/dist/x/hono.cjs +0 -61
  109. package/dist/x/hono.d.cts +0 -53
  110. package/dist/x/hono.d.ts +0 -55
  111. package/dist/x/hono.js +0 -60
  112. package/dist/x/sveltekit.cjs +0 -69
  113. package/dist/x/sveltekit.d.cts +0 -45
  114. package/dist/x/sveltekit.d.ts +0 -47
  115. package/dist/x/sveltekit.js +0 -68
  116. /package/dist/{mod-C2tOeRkN.d.cts → mod-CcDPcLJW.d.cts} +0 -0
  117. /package/dist/{mod-B2iOw50L.d.ts → mod-D5Z2tISD.d.ts} +0 -0
  118. /package/dist/{mod-0noXw66R.d.cts → mod-DMpuiKXi.d.cts} +0 -0
  119. /package/dist/{mod-DgdBYYa0.d.cts → mod-DgxG-byT.d.cts} +0 -0
  120. /package/dist/{mod-B9M-8jm2.d.ts → mod-aAE2wOWV.d.ts} +0 -0
  121. /package/dist/{mod-xIj-IT58.d.ts → mod-bjzj5QIb.d.ts} +0 -0
@@ -1,47 +0,0 @@
1
- import { Temporal } from "@js-temporal/polyfill";
2
- import { URLPattern } from "urlpattern-polyfill";
3
- import "../client-BsGzbnV-.js";
4
- import "../vocab-BCWe1Ih5.js";
5
- import "../actor-DqFajh9s.js";
6
- import "../http-BbO0ejuk.js";
7
- import "../owner-kQRGVXG1.js";
8
- import "../mod-BlVovdcy.js";
9
- import "../mod-Ds0mpFZU.js";
10
- import { Federation } from "../context-DG0huGW-.js";
11
- import "../kv-BKNZ-Tb-.js";
12
- import "../mq-CUKlBw08.js";
13
-
14
- //#region src/x/sveltekit.d.ts
15
- type RequestEvent = {
16
- request: Request;
17
- };
18
- type HookParams = {
19
- event: RequestEvent;
20
- resolve: (event: RequestEvent) => Promise<Response>;
21
- };
22
- /**
23
- * Create a SvelteKit hook handler to integrate with the {@link Federation}
24
- * object.
25
- *
26
- * @deprecated This function has been moved to `@fedify/sveltekit` package.
27
- * Import `fedifyHook` from `@fedify/sveltekit` instead.
28
- * This function will be removed in Fedify v2.0.
29
- *
30
- * @example hooks.server.ts
31
- * ``` typescript
32
- * import { federation } from "./federation"; // Import the `Federation` object
33
- *
34
- * export const handle = fedifyHook(federation, () => undefined);
35
- * ```
36
- *
37
- * @template TContextData A type of the context data for the {@link Federation}
38
- * object.
39
- * @param federation A {@link Federation} object to integrate with SvelteKit.
40
- * @param createContextData A function to create a context data for the
41
- * {@link Federation} object.
42
- * @returns A SvelteKit hook handler.
43
- * @since 1.3.0
44
- */
45
- declare function fedifyHook<TContextData>(federation: Federation<TContextData>, createContextData: (event: RequestEvent) => TContextData | Promise<TContextData>): (params: HookParams) => Promise<Response>;
46
- //#endregion
47
- export { fedifyHook };
@@ -1,68 +0,0 @@
1
-
2
- import { Temporal } from "@js-temporal/polyfill";
3
- import { URLPattern } from "urlpattern-polyfill";
4
-
5
- import { getLogger } from "@logtape/logtape";
6
-
7
- //#region src/x/sveltekit.ts
8
- /**
9
- * Create a SvelteKit hook handler to integrate with the {@link Federation}
10
- * object.
11
- *
12
- * @deprecated This function has been moved to `@fedify/sveltekit` package.
13
- * Import `fedifyHook` from `@fedify/sveltekit` instead.
14
- * This function will be removed in Fedify v2.0.
15
- *
16
- * @example hooks.server.ts
17
- * ``` typescript
18
- * import { federation } from "./federation"; // Import the `Federation` object
19
- *
20
- * export const handle = fedifyHook(federation, () => undefined);
21
- * ```
22
- *
23
- * @template TContextData A type of the context data for the {@link Federation}
24
- * object.
25
- * @param federation A {@link Federation} object to integrate with SvelteKit.
26
- * @param createContextData A function to create a context data for the
27
- * {@link Federation} object.
28
- * @returns A SvelteKit hook handler.
29
- * @since 1.3.0
30
- */
31
- function fedifyHook(federation, createContextData) {
32
- const logger = getLogger([
33
- "fedify",
34
- "federation",
35
- "sveltekit"
36
- ]);
37
- logger.warn("The `@fedify/fedify/x/sveltekit` module is deprecated; use `fedifyHook` from `@fedify/sveltekit` package instead.");
38
- return async ({ event, resolve }) => {
39
- return await federation.fetch(event.request, {
40
- contextData: await createContextData(event),
41
- ...integrateFetchOptions({
42
- event,
43
- resolve
44
- })
45
- });
46
- };
47
- }
48
- function integrateFetchOptions({ event, resolve }) {
49
- return {
50
- async onNotFound() {
51
- return await resolve(event);
52
- },
53
- async onNotAcceptable() {
54
- const res = await resolve(event);
55
- if (res.status !== 404) return res;
56
- return new Response("Not acceptable", {
57
- status: 406,
58
- headers: {
59
- "Content-Type": "text/plain",
60
- Vary: "Accept"
61
- }
62
- });
63
- }
64
- };
65
- }
66
-
67
- //#endregion
68
- export { fedifyHook };
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes