@fedify/fedify 1.9.0-pr.388.1456 → 1.9.0-pr.388.1458

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 (82) hide show
  1. package/dist/{actor-Bj4E2JRg.js → actor-B2DNtsrH.js} +1 -1
  2. package/dist/{actor-DEUcppZT.js → actor-CcPOwfij.js} +187 -187
  3. package/dist/{authdocloader-Dx6uHSEc.js → authdocloader-CbI0BOrz.js} +3 -3
  4. package/dist/{authdocloader-CmFtuaWu.js → authdocloader-D5jqZbbl.js} +3 -3
  5. package/dist/{builder-CxPGY_jN.js → builder-Bq5vVkyO.js} +4 -4
  6. package/dist/{client-iVnypF2y.js → client-p-QTQJAG.js} +1 -1
  7. package/dist/compat/transformers.test.js +16 -16
  8. package/dist/{denokv-C-wcHaX0.js → denokv-Bv33Xxea.js} +3 -0
  9. package/dist/{docloader-dcX6wT70.js → docloader-B9m_7JQD.js} +1 -1
  10. package/dist/{esm-BczgbYY7.js → esm-UnZj43Fa.js} +1 -1
  11. package/dist/federation/builder.test.js +5 -5
  12. package/dist/federation/collection.test.js +3 -3
  13. package/dist/federation/handler.test.js +17 -17
  14. package/dist/federation/inbox.test.js +4 -4
  15. package/dist/federation/keycache.test.js +4 -4
  16. package/dist/federation/kv.test.js +3 -3
  17. package/dist/federation/middleware.test.js +18 -18
  18. package/dist/federation/mod.js +10 -10
  19. package/dist/federation/mq.test.js +5 -5
  20. package/dist/federation/retry.test.js +3 -3
  21. package/dist/federation/router.test.js +3 -3
  22. package/dist/federation/send.test.js +10 -10
  23. package/dist/{http-DLDZw5Or.js → http-DmfBi1jE.js} +3 -3
  24. package/dist/{http-BgBStUQn.js → http-Kh88ygB3.js} +2 -2
  25. package/dist/{inbox-DdQaBIzA.js → inbox-D1lL9oz_.js} +1 -1
  26. package/dist/{key-C_wDZpcY.js → key-0zBO-GxY.js} +4 -4
  27. package/dist/{key-BRTdSnMG.js → key-C_NE2TTE.js} +3 -3
  28. package/dist/{key-Bogxf4NW.js → key-D-vfctSL.js} +2 -2
  29. package/dist/{key-BgPXFh5H.js → key-DHP_1xww.js} +2 -2
  30. package/dist/{keycache-C4SeJJRt.js → keycache-DKpvHpD-.js} +1 -1
  31. package/dist/{keys-BaR7xMh1.js → keys-C0CoJBto.js} +1 -1
  32. package/dist/{ld-B3_WG7GN.js → ld-DBymcjjG.js} +2 -2
  33. package/dist/{lookup-DYiszLvp.js → lookup-CYZ29rgr.js} +1 -1
  34. package/dist/{lookup-Dpul0cUe.js → lookup-DFxcXRbp.js} +1 -1
  35. package/dist/middleware-BGUYbGLo.js +26 -0
  36. package/dist/{middleware-BkT88swb.js → middleware-C7jTWMfo.js} +13 -13
  37. package/dist/middleware-D6EwCp6u.js +17 -0
  38. package/dist/{middleware-hKurpsy6.js → middleware-DlVZ-xS4.js} +10 -10
  39. package/dist/mod.js +10 -10
  40. package/dist/nodeinfo/client.test.js +5 -5
  41. package/dist/nodeinfo/handler.test.js +16 -16
  42. package/dist/nodeinfo/mod.js +2 -2
  43. package/dist/nodeinfo/semver.test.js +3 -3
  44. package/dist/nodeinfo/types.test.js +3 -3
  45. package/dist/{owner-DBEblO3I.js → owner-DP7dV6z-.js} +2 -2
  46. package/dist/{proof-Zk7ECIIN.js → proof-B654lzx5.js} +2 -2
  47. package/dist/{proof-e2T8mSSn.js → proof-DQODB5cJ.js} +3 -3
  48. package/dist/runtime/authdocloader.test.js +9 -9
  49. package/dist/runtime/docloader.test.js +4 -4
  50. package/dist/runtime/key.test.js +5 -5
  51. package/dist/runtime/langstr.test.js +3 -3
  52. package/dist/runtime/mod.js +6 -6
  53. package/dist/runtime/multibase/multibase.test.js +3 -3
  54. package/dist/runtime/url.test.js +3 -3
  55. package/dist/{send-DiNom3JD.js → send-C_Zz9N7R.js} +2 -2
  56. package/dist/sig/http.test.js +8 -8
  57. package/dist/sig/key.test.js +6 -6
  58. package/dist/sig/ld.test.js +7 -7
  59. package/dist/sig/mod.js +6 -6
  60. package/dist/sig/owner.test.js +7 -7
  61. package/dist/sig/proof.test.js +7 -7
  62. package/dist/testing/docloader.test.js +3 -3
  63. package/dist/testing/mod.js +3 -3
  64. package/dist/{testing-oIthntGQ.js → testing-Me_wByAa.js} +2 -2
  65. package/dist/{type-aO0QESjd.js → type-CDQxV_7m.js} +186 -186
  66. package/dist/{types-DlmitN02.js → types-JOvfVveh.js} +1 -1
  67. package/dist/vocab/actor.test.js +5 -5
  68. package/dist/vocab/lookup.test.js +4 -4
  69. package/dist/vocab/mod.js +4 -4
  70. package/dist/vocab/type.test.js +3 -3
  71. package/dist/vocab/vocab.test.js +4 -4
  72. package/dist/{vocab-Drpu6tmF.js → vocab-CqkvnScr.js} +3 -3
  73. package/dist/webfinger/handler.test.js +16 -16
  74. package/dist/webfinger/lookup.test.js +4 -4
  75. package/dist/webfinger/mod.js +2 -2
  76. package/dist/x/cfworkers.js +6 -0
  77. package/dist/x/cfworkers.test.js +8 -3
  78. package/dist/x/hono.js +8 -0
  79. package/dist/x/sveltekit.js +8 -0
  80. package/package.json +1 -1
  81. package/dist/middleware-GyK1UpCo.js +0 -17
  82. package/dist/middleware-WfGCcPDI.js +0 -26
@@ -2,7 +2,7 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import { getUserAgent } from "./docloader-dcX6wT70.js";
5
+ import { getUserAgent } from "./docloader-B9m_7JQD.js";
6
6
  import { getLogger } from "@logtape/logtape";
7
7
 
8
8
  //#region src/nodeinfo/semver.ts
@@ -3,19 +3,19 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Application, Group, Organization, Person, Service, __export } from "../type-aO0QESjd.js";
6
+ import { Application, Group, Organization, Person, Service, __export } from "../type-CDQxV_7m.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import { assert } from "../assert-MZs1qjMx.js";
9
9
  import "../assert_instance_of-DHz7EHNU.js";
10
- import "../lookup-Dpul0cUe.js";
11
- import { getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-Bj4E2JRg.js";
12
- import { test } from "../testing-oIthntGQ.js";
10
+ import "../lookup-DFxcXRbp.js";
11
+ import { getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-B2DNtsrH.js";
12
+ import { test } from "../testing-Me_wByAa.js";
13
13
  import { assertStrictEquals } from "../std__assert-X-_kMxKM.js";
14
14
  import { assertFalse, assertRejects } from "../assert_rejects-DiIiJbZn.js";
15
15
  import "../assert_is_error-BPGph1Jx.js";
16
16
  import "../assert_not_equals-f3m3epl3.js";
17
17
  import { assertThrows } from "../assert_throws-BOO88avQ.js";
18
- import { esm_default } from "../esm-BczgbYY7.js";
18
+ import { esm_default } from "../esm-UnZj43Fa.js";
19
19
 
20
20
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/precondition/PreconditionFailure.js
21
21
  var PreconditionFailure = class PreconditionFailure extends Error {
@@ -3,18 +3,18 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Collection, Note, Object as Object$1, Person } from "../type-aO0QESjd.js";
6
+ import { Collection, Note, Object as Object$1, Person } from "../type-CDQxV_7m.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import "../assert-MZs1qjMx.js";
9
9
  import { assertInstanceOf } from "../assert_instance_of-DHz7EHNU.js";
10
- import { lookupObject, traverseCollection } from "../lookup-Dpul0cUe.js";
11
- import { mockDocumentLoader, test } from "../testing-oIthntGQ.js";
10
+ import { lookupObject, traverseCollection } from "../lookup-DFxcXRbp.js";
11
+ import { mockDocumentLoader, test } from "../testing-Me_wByAa.js";
12
12
  import "../std__assert-X-_kMxKM.js";
13
13
  import "../assert_rejects-DiIiJbZn.js";
14
14
  import "../assert_is_error-BPGph1Jx.js";
15
15
  import "../assert_not_equals-f3m3epl3.js";
16
16
  import "../assert_throws-BOO88avQ.js";
17
- import { esm_default } from "../esm-BczgbYY7.js";
17
+ import { esm_default } from "../esm-UnZj43Fa.js";
18
18
 
19
19
  //#region src/vocab/lookup.test.ts
20
20
  test("lookupObject()", {
package/dist/vocab/mod.js CHANGED
@@ -2,9 +2,9 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import "../docloader-dcX6wT70.js";
6
- import { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object as Object$1, Offer, OrderedCollection, OrderedCollectionPage, Organization, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, isActor, normalizeActorHandle } from "../actor-DEUcppZT.js";
7
- import "../lookup-DYiszLvp.js";
8
- import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "../vocab-Drpu6tmF.js";
5
+ import "../docloader-B9m_7JQD.js";
6
+ import { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object as Object$1, Offer, OrderedCollection, OrderedCollectionPage, Organization, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, isActor, normalizeActorHandle } from "../actor-CcPOwfij.js";
7
+ import "../lookup-CYZ29rgr.js";
8
+ import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "../vocab-CqkvnScr.js";
9
9
 
10
10
  export { Accept, Activity, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, Flag, Follow, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, Leave, Like, Link, Listen, Mention, Move, Multikey, Note, Object$1 as Object, Offer, OrderedCollection, OrderedCollectionPage, Organization, PUBLIC_COLLECTION, Page, Person, Place, Profile, PropertyValue, Question, Read, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, Undo, Update, Video, View, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, isActor, isFediverseHandle, lookupObject, normalizeActorHandle, parseFediverseHandle, toAcctUrl, traverseCollection };
@@ -3,10 +3,10 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Person, getTypeId } from "../type-aO0QESjd.js";
6
+ import { Person, getTypeId } from "../type-CDQxV_7m.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
- import "../lookup-Dpul0cUe.js";
9
- import { test } from "../testing-oIthntGQ.js";
8
+ import "../lookup-DFxcXRbp.js";
9
+ import { test } from "../testing-Me_wByAa.js";
10
10
 
11
11
  //#region src/vocab/type.test.ts
12
12
  test("getTypeId()", () => {
@@ -3,18 +3,18 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Activity, Announce, Collection, Create, CryptographicKey, Follow, Hashtag, LanguageString, Note, Object as Object$1, OrderedCollectionPage, Person, Place, Question, Source, decode, vocab_exports } from "../type-aO0QESjd.js";
6
+ import { Activity, Announce, Collection, Create, CryptographicKey, Follow, Hashtag, LanguageString, Note, Object as Object$1, OrderedCollectionPage, Person, Place, Question, Source, decode, vocab_exports } from "../type-CDQxV_7m.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import { assert } from "../assert-MZs1qjMx.js";
9
9
  import { assertInstanceOf } from "../assert_instance_of-DHz7EHNU.js";
10
- import "../lookup-Dpul0cUe.js";
11
- import { mockDocumentLoader, test } from "../testing-oIthntGQ.js";
10
+ import "../lookup-DFxcXRbp.js";
11
+ import { mockDocumentLoader, test } from "../testing-Me_wByAa.js";
12
12
  import "../std__assert-X-_kMxKM.js";
13
13
  import { assertFalse, assertRejects } from "../assert_rejects-DiIiJbZn.js";
14
14
  import "../assert_is_error-BPGph1Jx.js";
15
15
  import { assertNotEquals } from "../assert_not_equals-f3m3epl3.js";
16
16
  import { assertThrows } from "../assert_throws-BOO88avQ.js";
17
- import { ed25519PublicKey, rsaPublicKey1 } from "../keys-BaR7xMh1.js";
17
+ import { ed25519PublicKey, rsaPublicKey1 } from "../keys-C0CoJBto.js";
18
18
  import { pascalCase } from "es-toolkit";
19
19
  import { parseLanguageTag } from "@phensley/language-tag";
20
20
  import { Validator } from "@cfworker/json-schema";
@@ -2,9 +2,9 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import { deno_default, getDocumentLoader } from "./docloader-dcX6wT70.js";
6
- import { Object as Object$1, getTypeId } from "./actor-DEUcppZT.js";
7
- import { lookupWebFinger } from "./lookup-DYiszLvp.js";
5
+ import { deno_default, getDocumentLoader } from "./docloader-B9m_7JQD.js";
6
+ import { Object as Object$1, getTypeId } from "./actor-CcPOwfij.js";
7
+ import { lookupWebFinger } from "./lookup-CYZ29rgr.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
  import { SpanStatusCode, trace } from "@opentelemetry/api";
10
10
  import { delay } from "es-toolkit";
@@ -3,30 +3,30 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Image, Link, Person } from "../type-aO0QESjd.js";
6
+ import { Image, Link, Person } from "../type-CDQxV_7m.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import "../assert-MZs1qjMx.js";
9
9
  import "../assert_instance_of-DHz7EHNU.js";
10
10
  import { MemoryKvStore } from "../kv-CRZrzyXm.js";
11
- import { createFederation, handleWebFinger } from "../middleware-BkT88swb.js";
11
+ import { createFederation, handleWebFinger } from "../middleware-C7jTWMfo.js";
12
12
  import "../semver-dArNLkR9.js";
13
- import "../client-iVnypF2y.js";
14
- import "../lookup-Dpul0cUe.js";
13
+ import "../client-p-QTQJAG.js";
14
+ import "../lookup-DFxcXRbp.js";
15
15
  import "../types-BIgY6c-l.js";
16
- import "../actor-Bj4E2JRg.js";
17
- import "../key-Bogxf4NW.js";
18
- import "../http-BgBStUQn.js";
19
- import "../authdocloader-Dx6uHSEc.js";
20
- import "../ld-B3_WG7GN.js";
21
- import "../owner-DBEblO3I.js";
22
- import "../proof-Zk7ECIIN.js";
23
- import "../inbox-DdQaBIzA.js";
24
- import "../builder-CxPGY_jN.js";
16
+ import "../actor-B2DNtsrH.js";
17
+ import "../key-D-vfctSL.js";
18
+ import "../http-Kh88ygB3.js";
19
+ import "../authdocloader-CbI0BOrz.js";
20
+ import "../ld-DBymcjjG.js";
21
+ import "../owner-DP7dV6z-.js";
22
+ import "../proof-B654lzx5.js";
23
+ import "../inbox-D1lL9oz_.js";
24
+ import "../builder-Bq5vVkyO.js";
25
25
  import "../collection-CSzG2j1P.js";
26
- import "../keycache-C4SeJJRt.js";
26
+ import "../keycache-DKpvHpD-.js";
27
27
  import "../retry-D4GJ670a.js";
28
- import "../send-DiNom3JD.js";
29
- import { createRequestContext, test } from "../testing-oIthntGQ.js";
28
+ import "../send-C_Zz9N7R.js";
29
+ import { createRequestContext, test } from "../testing-Me_wByAa.js";
30
30
  import "../std__assert-X-_kMxKM.js";
31
31
  import "../assert_rejects-DiIiJbZn.js";
32
32
  import "../assert_is_error-BPGph1Jx.js";
@@ -3,18 +3,18 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { lookupWebFinger } from "../type-aO0QESjd.js";
6
+ import { lookupWebFinger } from "../type-CDQxV_7m.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import "../assert-MZs1qjMx.js";
9
9
  import "../assert_instance_of-DHz7EHNU.js";
10
- import "../lookup-Dpul0cUe.js";
11
- import { test } from "../testing-oIthntGQ.js";
10
+ import "../lookup-DFxcXRbp.js";
11
+ import { test } from "../testing-Me_wByAa.js";
12
12
  import "../std__assert-X-_kMxKM.js";
13
13
  import "../assert_rejects-DiIiJbZn.js";
14
14
  import "../assert_is_error-BPGph1Jx.js";
15
15
  import "../assert_not_equals-f3m3epl3.js";
16
16
  import "../assert_throws-BOO88avQ.js";
17
- import { esm_default } from "../esm-BczgbYY7.js";
17
+ import { esm_default } from "../esm-UnZj43Fa.js";
18
18
  import { withTimeout } from "es-toolkit";
19
19
 
20
20
  //#region src/webfinger/lookup.test.ts
@@ -2,8 +2,8 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import "../docloader-dcX6wT70.js";
6
- import { lookupWebFinger } from "../lookup-DYiszLvp.js";
5
+ import "../docloader-B9m_7JQD.js";
6
+ import { lookupWebFinger } from "../lookup-CYZ29rgr.js";
7
7
  import "../webfinger-C3GIyXIg.js";
8
8
 
9
9
  export { lookupWebFinger };
@@ -2,6 +2,8 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
+ import { getLogger } from "@logtape/logtape";
6
+
5
7
  //#region src/x/cfworkers.ts
6
8
  /**
7
9
  * Implementation of the {@link KvStore} interface for Cloudflare Workers KV
@@ -21,6 +23,8 @@
21
23
  var WorkersKvStore = class {
22
24
  #namespace;
23
25
  constructor(namespace) {
26
+ const logger = getLogger(["fedify", "cfworkers"]);
27
+ logger.warn("The `@fedify/fedify/x/cfworkers` module is deprecated; use `WorkersKvStore` from `@fedify/cfworkers` package instead.");
24
28
  this.#namespace = namespace;
25
29
  }
26
30
  #encodeKey(key) {
@@ -68,6 +72,8 @@ var WorkersMessageQueue = class {
68
72
  */
69
73
  nativeRetrial = true;
70
74
  constructor(queue) {
75
+ const logger = getLogger(["fedify", "cfworkers"]);
76
+ logger.warn("The `@fedify/fedify/x/cfworkers` module is deprecated; use `WorkersMessageQueue` from `@fedify/cfworkers` package instead.");
71
77
  this.#queue = queue;
72
78
  }
73
79
  enqueue(message, options) {
@@ -3,18 +3,19 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "../type-aO0QESjd.js";
6
+ import "../type-CDQxV_7m.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
8
  import "../assert-MZs1qjMx.js";
9
9
  import "../assert_instance_of-DHz7EHNU.js";
10
- import "../lookup-Dpul0cUe.js";
11
- import { test } from "../testing-oIthntGQ.js";
10
+ import "../lookup-DFxcXRbp.js";
11
+ import { test } from "../testing-Me_wByAa.js";
12
12
  import "../std__assert-X-_kMxKM.js";
13
13
  import "../assert_rejects-DiIiJbZn.js";
14
14
  import "../assert_is_error-BPGph1Jx.js";
15
15
  import "../assert_not_equals-f3m3epl3.js";
16
16
  import "../assert_throws-BOO88avQ.js";
17
17
  import { delay } from "es-toolkit";
18
+ import { getLogger } from "@logtape/logtape";
18
19
 
19
20
  //#region src/x/cfworkers.ts
20
21
  /**
@@ -35,6 +36,8 @@ import { delay } from "es-toolkit";
35
36
  var WorkersKvStore = class {
36
37
  #namespace;
37
38
  constructor(namespace) {
39
+ const logger = getLogger(["fedify", "cfworkers"]);
40
+ logger.warn("The `@fedify/fedify/x/cfworkers` module is deprecated; use `WorkersKvStore` from `@fedify/cfworkers` package instead.");
38
41
  this.#namespace = namespace;
39
42
  }
40
43
  #encodeKey(key) {
@@ -82,6 +85,8 @@ var WorkersMessageQueue = class {
82
85
  */
83
86
  nativeRetrial = true;
84
87
  constructor(queue) {
88
+ const logger = getLogger(["fedify", "cfworkers"]);
89
+ logger.warn("The `@fedify/fedify/x/cfworkers` module is deprecated; use `WorkersMessageQueue` from `@fedify/cfworkers` package instead.");
85
90
  this.#queue = queue;
86
91
  }
87
92
  enqueue(message, options) {
package/dist/x/hono.js CHANGED
@@ -2,6 +2,8 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
+ import { getLogger } from "@logtape/logtape";
6
+
5
7
  //#region src/x/hono.ts
6
8
  /**
7
9
  * Create a Hono middleware to integrate with the {@link Federation} object.
@@ -19,6 +21,12 @@
19
21
  * @returns A Hono middleware.
20
22
  */
21
23
  function federation(federation$1, contextDataFactory) {
24
+ const logger = getLogger([
25
+ "fedify",
26
+ "federation",
27
+ "hono"
28
+ ]);
29
+ logger.warn("The `@fedify/fedify/x/hono` module is deprecated; use `federation` from `@fedify/hono` package instead.");
22
30
  return async (ctx, next) => {
23
31
  let contextData = contextDataFactory(ctx);
24
32
  if (contextData instanceof Promise) contextData = await contextData;
@@ -2,6 +2,8 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
+ import { getLogger } from "@logtape/logtape";
6
+
5
7
  //#region src/x/sveltekit.ts
6
8
  /**
7
9
  * Create a SvelteKit hook handler to integrate with the {@link Federation}
@@ -27,6 +29,12 @@
27
29
  * @since 1.3.0
28
30
  */
29
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.");
30
38
  return async ({ event, resolve }) => {
31
39
  return await federation.fetch(event.request, {
32
40
  contextData: await createContextData(event),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/fedify",
3
- "version": "1.9.0-pr.388.1456+c8cbdb88",
3
+ "version": "1.9.0-pr.388.1458+3f173465",
4
4
  "description": "An ActivityPub server framework",
5
5
  "keywords": [
6
6
  "ActivityPub",
@@ -1,17 +0,0 @@
1
-
2
- import { Temporal } from "@js-temporal/polyfill";
3
- import { URLPattern } from "urlpattern-polyfill";
4
-
5
- import "./transformers-Dna8Fg7k.js";
6
- import "./docloader-dcX6wT70.js";
7
- import "./actor-DEUcppZT.js";
8
- import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-hKurpsy6.js";
9
- import "./lookup-DYiszLvp.js";
10
- import "./key-BgPXFh5H.js";
11
- import "./http-DLDZw5Or.js";
12
- import "./proof-e2T8mSSn.js";
13
- import "./types-DlmitN02.js";
14
- import "./authdocloader-CmFtuaWu.js";
15
- import "./vocab-Drpu6tmF.js";
16
-
17
- export { FederationImpl };
@@ -1,26 +0,0 @@
1
-
2
- import { Temporal } from "@js-temporal/polyfill";
3
- import { URLPattern } from "urlpattern-polyfill";
4
- globalThis.addEventListener = () => {};
5
-
6
- import "./type-aO0QESjd.js";
7
- import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-BkT88swb.js";
8
- import "./semver-dArNLkR9.js";
9
- import "./client-iVnypF2y.js";
10
- import "./lookup-Dpul0cUe.js";
11
- import "./types-BIgY6c-l.js";
12
- import "./actor-Bj4E2JRg.js";
13
- import "./key-Bogxf4NW.js";
14
- import "./http-BgBStUQn.js";
15
- import "./authdocloader-Dx6uHSEc.js";
16
- import "./ld-B3_WG7GN.js";
17
- import "./owner-DBEblO3I.js";
18
- import "./proof-Zk7ECIIN.js";
19
- import "./inbox-DdQaBIzA.js";
20
- import "./builder-CxPGY_jN.js";
21
- import "./collection-CSzG2j1P.js";
22
- import "./keycache-C4SeJJRt.js";
23
- import "./retry-D4GJ670a.js";
24
- import "./send-DiNom3JD.js";
25
-
26
- export { FederationImpl };