@fedify/fedify 1.9.0-pr.395.1481 → 2.0.0-dev.1485

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 (96) hide show
  1. package/dist/{actor-Uase6HaC.js → actor-7ivEf1H3.js} +1 -1
  2. package/dist/{actor-Ch5yFYFG.d.ts → actor-C22bXuuC.d.ts} +1 -1
  3. package/dist/{actor-9LPJkiZG.js → actor-DXTdNCfp.js} +228 -225
  4. package/dist/{authdocloader-CogKPs5c.js → authdocloader-Bq0gEHRj.js} +3 -3
  5. package/dist/{authdocloader-Br8fjCDA.js → authdocloader-D_IvQE4z.js} +3 -3
  6. package/dist/{builder-Bo9ciHfP.js → builder-BPGqEvtB.js} +4 -4
  7. package/dist/{client-BVxAaya-.js → client-g2FDBoeY.js} +1 -1
  8. package/dist/compat/mod.d.ts +7 -7
  9. package/dist/compat/transformers.test.js +16 -16
  10. package/dist/{context-DJQB_Zv4.d.ts → context-DmlbRh9p.d.ts} +5 -5
  11. package/dist/{docloader-DXhq_Y_0.js → docloader-BlVueewg.js} +1 -2
  12. package/dist/{esm-Bo7LuXob.js → esm-CPZhxxGc.js} +1 -1
  13. package/dist/federation/builder.test.js +5 -5
  14. package/dist/federation/collection.test.js +3 -3
  15. package/dist/federation/handler.test.js +17 -17
  16. package/dist/federation/inbox.test.js +4 -4
  17. package/dist/federation/keycache.test.js +4 -4
  18. package/dist/federation/kv.test.js +3 -3
  19. package/dist/federation/middleware.test.js +18 -18
  20. package/dist/federation/mod.d.ts +6 -6
  21. package/dist/federation/mod.js +10 -10
  22. package/dist/federation/mq.test.js +3 -3
  23. package/dist/federation/retry.test.js +3 -3
  24. package/dist/federation/router.test.js +3 -3
  25. package/dist/federation/send.test.js +10 -10
  26. package/dist/{http-D4JZZsj7.js → http-C7rxW7Kh.js} +2 -2
  27. package/dist/{http-D8Q4xH0d.d.ts → http-DqSNLFNY.d.ts} +1 -1
  28. package/dist/{http-DblhtMbl.js → http-zsOxPKCt.js} +3 -3
  29. package/dist/{inbox-fuzozZbS.js → inbox-eK2W2MF3.js} +1 -1
  30. package/dist/{key-Btvx_gRX.js → key-CYOcZ9G5.js} +2 -2
  31. package/dist/{key-DY4r2zHZ.js → key-Dn7Lram-.js} +2 -2
  32. package/dist/{key-C09wKLi0.js → key-S7WllAWz.js} +3 -3
  33. package/dist/{key-Np8EEJ9P.js → key-rRCUafNm.js} +4 -4
  34. package/dist/{keycache-HTIISDcs.js → keycache-BLq6GT4_.js} +1 -1
  35. package/dist/{keys-FCSOZqsT.js → keys-BIwlbtMN.js} +1 -1
  36. package/dist/{ld-BeIT6mlc.js → ld-DWwLYT4e.js} +2 -2
  37. package/dist/{lookup-gtbh2a3H.js → lookup-BHYMosdS.js} +1 -1
  38. package/dist/{lookup-Buywr1WF.js → lookup-DNQyH8UQ.js} +1 -1
  39. package/dist/{middleware-BpvvMkJx.js → middleware-BcVqlHyD.js} +10 -10
  40. package/dist/middleware-CWbGhXnl.js +26 -0
  41. package/dist/middleware-D-OlNiyj.js +17 -0
  42. package/dist/{middleware-zXrzC_d6.js → middleware-DakCaqXu.js} +13 -13
  43. package/dist/{mod-eBo9RUEr.d.ts → mod-0EysZ-dJ.d.ts} +2 -2
  44. package/dist/{mod-Cy6pkZSn.d.ts → mod-Cxt4Kpf6.d.ts} +1 -1
  45. package/dist/{mod-B7Pc0I7F.d.ts → mod-Drmz72EK.d.ts} +2 -2
  46. package/dist/{mod-BAuhKa9d.d.ts → mod-TFoH2Ql8.d.ts} +1 -1
  47. package/dist/mod.d.ts +9 -9
  48. package/dist/mod.js +10 -10
  49. package/dist/nodeinfo/client.test.js +5 -5
  50. package/dist/nodeinfo/handler.test.js +16 -16
  51. package/dist/nodeinfo/mod.js +2 -2
  52. package/dist/nodeinfo/semver.test.js +3 -3
  53. package/dist/nodeinfo/types.test.js +3 -3
  54. package/dist/{owner-D38zBIMc.d.ts → owner-CQPnQVtf.d.ts} +2 -2
  55. package/dist/{owner-D3LffaGr.js → owner-smArESGi.js} +2 -2
  56. package/dist/{proof-sKtcV6pt.js → proof-C6z-uqeO.js} +2 -2
  57. package/dist/{proof-B2vYr7n3.js → proof-CT1SITRP.js} +3 -3
  58. package/dist/runtime/authdocloader.test.js +9 -9
  59. package/dist/runtime/docloader.test.js +4 -4
  60. package/dist/runtime/key.test.js +5 -5
  61. package/dist/runtime/langstr.test.js +5 -6
  62. package/dist/runtime/mod.d.ts +3 -3
  63. package/dist/runtime/mod.js +6 -6
  64. package/dist/runtime/multibase/multibase.test.js +3 -3
  65. package/dist/runtime/url.test.js +3 -3
  66. package/dist/{send-BeQ8g_vp.js → send-1zdmNlUo.js} +2 -2
  67. package/dist/sig/http.test.js +8 -8
  68. package/dist/sig/key.test.js +6 -6
  69. package/dist/sig/ld.test.js +7 -7
  70. package/dist/sig/mod.d.ts +5 -5
  71. package/dist/sig/mod.js +6 -6
  72. package/dist/sig/owner.test.js +7 -7
  73. package/dist/sig/proof.test.js +7 -7
  74. package/dist/testing/docloader.test.js +3 -3
  75. package/dist/testing/mod.d.ts +13 -10
  76. package/dist/testing/mod.js +3 -3
  77. package/dist/{testing-CMNbLS0m.js → testing-BG_8Fyas.js} +2 -2
  78. package/dist/{type-Bo0QfGsr.js → type-I68qwqmo.js} +227 -225
  79. package/dist/{types-ByoM5Yqa.js → types-BzyGRkRt.js} +1 -1
  80. package/dist/vocab/actor.test.js +5 -5
  81. package/dist/vocab/lookup.test.js +4 -4
  82. package/dist/vocab/mod.d.ts +3 -3
  83. package/dist/vocab/mod.js +4 -4
  84. package/dist/vocab/type.test.js +3 -3
  85. package/dist/vocab/vocab.test.js +11 -12
  86. package/dist/{vocab-69WqtJLZ.js → vocab-Bg1J3mu4.js} +3 -3
  87. package/dist/{vocab-BEEm2I6u.d.ts → vocab-SOE1ifCr.d.ts} +15 -12
  88. package/dist/webfinger/handler.test.js +16 -16
  89. package/dist/webfinger/lookup.test.js +4 -4
  90. package/dist/webfinger/mod.js +2 -2
  91. package/dist/x/cfworkers.test.js +3 -3
  92. package/dist/x/hono.d.ts +6 -6
  93. package/dist/x/sveltekit.d.ts +6 -6
  94. package/package.json +1 -2
  95. package/dist/middleware-DZaPVOW-.js +0 -26
  96. package/dist/middleware-W4SkyU21.js +0 -17
@@ -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-DXhq_Y_0.js";
5
+ import { getUserAgent } from "./docloader-BlVueewg.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-Bo0QfGsr.js";
6
+ import { Application, Group, Organization, Person, Service, __export } from "../type-I68qwqmo.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-Buywr1WF.js";
11
- import { getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-Uase6HaC.js";
12
- import { test } from "../testing-CMNbLS0m.js";
10
+ import "../lookup-DNQyH8UQ.js";
11
+ import { getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-7ivEf1H3.js";
12
+ import { test } from "../testing-BG_8Fyas.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-Bo7LuXob.js";
18
+ import { esm_default } from "../esm-CPZhxxGc.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-Bo0QfGsr.js";
6
+ import { Collection, Note, Object as Object$1, Person } from "../type-I68qwqmo.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-Buywr1WF.js";
11
- import { mockDocumentLoader, test } from "../testing-CMNbLS0m.js";
10
+ import { lookupObject, traverseCollection } from "../lookup-DNQyH8UQ.js";
11
+ import { mockDocumentLoader, test } from "../testing-BG_8Fyas.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-Bo7LuXob.js";
17
+ import { esm_default } from "../esm-CPZhxxGc.js";
18
18
 
19
19
  //#region src/vocab/lookup.test.ts
20
20
  test("lookupObject()", {
@@ -2,7 +2,7 @@ import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
3
  import "../kv-C7sopW2E.js";
4
4
  import "../docloader-CxWcuWqQ.js";
5
- 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 } from "../vocab-BEEm2I6u.js";
6
- import { Actor, ActorTypeName, GetActorHandleOptions, NormalizeActorHandleOptions, Recipient, getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-Ch5yFYFG.js";
7
- import { FediverseHandle, LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "../mod-Cy6pkZSn.js";
5
+ 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 } from "../vocab-SOE1ifCr.js";
6
+ import { Actor, ActorTypeName, GetActorHandleOptions, NormalizeActorHandleOptions, Recipient, getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-C22bXuuC.js";
7
+ import { FediverseHandle, LookupObjectOptions, PUBLIC_COLLECTION, TraverseCollectionOptions, getTypeId, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "../mod-Cxt4Kpf6.js";
8
8
  export { Accept, Activity, Actor, ActorTypeName, Add, Announce, Application, Arrive, Article, Audio, Block, ChatMessage, Collection, CollectionPage, Create, CryptographicKey, DataIntegrityProof, Delete, DidService, Dislike, Document, Emoji, EmojiReact, Endpoints, Event, Export, FediverseHandle, Flag, Follow, GetActorHandleOptions, Group, Hashtag, Ignore, Image, IntransitiveActivity, Invite, Join, Leave, Like, Link, Listen, LookupObjectOptions, Mention, Move, Multikey, NormalizeActorHandleOptions, Note, Object$1 as Object, Offer, OrderedCollection, OrderedCollectionPage, Organization, PUBLIC_COLLECTION, Page, Person, Place, Profile, PropertyValue, Question, Read, Recipient, Reject, Relationship, Remove, Service, Source, TentativeAccept, TentativeReject, Tombstone, Travel, TraverseCollectionOptions, Undo, Update, Video, View, getActorClassByTypeName, getActorHandle, getActorTypeName, getTypeId, isActor, isFediverseHandle, lookupObject, normalizeActorHandle, parseFediverseHandle, toAcctUrl, traverseCollection };
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-DXhq_Y_0.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-9LPJkiZG.js";
7
- import "../lookup-gtbh2a3H.js";
8
- import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "../vocab-69WqtJLZ.js";
5
+ import "../docloader-BlVueewg.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-DXTdNCfp.js";
7
+ import "../lookup-BHYMosdS.js";
8
+ import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "../vocab-Bg1J3mu4.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-Bo0QfGsr.js";
6
+ import { Person, getTypeId } from "../type-I68qwqmo.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
- import "../lookup-Buywr1WF.js";
9
- import { test } from "../testing-CMNbLS0m.js";
8
+ import "../lookup-DNQyH8UQ.js";
9
+ import { test } from "../testing-BG_8Fyas.js";
10
10
 
11
11
  //#region src/vocab/type.test.ts
12
12
  test("getTypeId()", () => {
@@ -3,20 +3,19 @@
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-Bo0QfGsr.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-I68qwqmo.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-Buywr1WF.js";
11
- import { mockDocumentLoader, test } from "../testing-CMNbLS0m.js";
10
+ import "../lookup-DNQyH8UQ.js";
11
+ import { mockDocumentLoader, test } from "../testing-BG_8Fyas.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-FCSOZqsT.js";
17
+ import { ed25519PublicKey, rsaPublicKey1 } from "../keys-BIwlbtMN.js";
18
18
  import { pascalCase } from "es-toolkit";
19
- import { parseLanguageTag } from "@phensley/language-tag";
20
19
  import { Validator } from "@cfworker/json-schema";
21
20
  import { readFile, readdir } from "node:fs/promises";
22
21
  import { join } from "node:path";
@@ -2217,7 +2216,7 @@ const scalarTypes = {
2217
2216
  encoder(v) {
2218
2217
  return `{
2219
2218
  "@value": ${v}.toString(),
2220
- "@language": ${v}.language.compact(),
2219
+ "@language": ${v}.locale.baseName,
2221
2220
  }`;
2222
2221
  },
2223
2222
  dataCheck(v) {
@@ -2324,22 +2323,22 @@ const scalarTypes = {
2324
2323
  }
2325
2324
  },
2326
2325
  "fedify:langTag": {
2327
- name: "LanguageTag",
2326
+ name: "Intl.Locale",
2328
2327
  typeGuard(v) {
2329
- return `${v} instanceof LanguageTag`;
2328
+ return `${v} instanceof Intl.Locale`;
2330
2329
  },
2331
2330
  encoder(v) {
2332
- return `{ "@value": ${v}.compact() }`;
2331
+ return `{ "@value": ${v}.baseName }`;
2333
2332
  },
2334
2333
  compactEncoder(v) {
2335
- return `${v}.compact()`;
2334
+ return `${v}.baseName`;
2336
2335
  },
2337
2336
  dataCheck(v) {
2338
2337
  return `typeof ${v} === "object" && "@value" in ${v}
2339
2338
  && typeof ${v}["@value"] === "string" && !("@language" in ${v})`;
2340
2339
  },
2341
2340
  decoder(v) {
2342
- return `parseLanguageTag(${v}["@value"])`;
2341
+ return `new Intl.Locale(${v}["@value"])`;
2343
2342
  }
2344
2343
  },
2345
2344
  "fedify:url": {
@@ -3106,7 +3105,7 @@ const sampleValues = {
3106
3105
  243,
3107
3106
  7
3108
3107
  ]),
3109
- "fedify:langTag": parseLanguageTag("en"),
3108
+ "fedify:langTag": new Intl.Locale("en-Latn-US"),
3110
3109
  "fedify:url": new URL("https://fedify.dev/"),
3111
3110
  "fedify:publicKey": rsaPublicKey1.publicKey,
3112
3111
  "fedify:multibaseKey": ed25519PublicKey.publicKey,
@@ -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-DXhq_Y_0.js";
6
- import { Object as Object$1, getTypeId } from "./actor-9LPJkiZG.js";
7
- import { lookupWebFinger } from "./lookup-gtbh2a3H.js";
5
+ import { deno_default, getDocumentLoader } from "./docloader-BlVueewg.js";
6
+ import { Object as Object$1, getTypeId } from "./actor-DXTdNCfp.js";
7
+ import { lookupWebFinger } from "./lookup-BHYMosdS.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
  import { SpanStatusCode, trace } from "@opentelemetry/api";
10
10
  import { delay } from "es-toolkit";
@@ -2,21 +2,24 @@ import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
3
  import { DocumentLoader } from "./docloader-CxWcuWqQ.js";
4
4
  import { Span, TracerProvider } from "@opentelemetry/api";
5
- import { LanguageTag } from "@phensley/language-tag";
6
5
 
7
6
  //#region src/runtime/langstr.d.ts
8
7
  /**
9
8
  * A language-tagged string which corresponds to the `rdf:langString` type.
10
9
  */
11
10
  declare class LanguageString extends String {
12
- readonly language: LanguageTag;
11
+ /**
12
+ * The locale of the string.
13
+ * @since 2.0.0
14
+ */
15
+ readonly locale: Intl.Locale;
13
16
  /**
14
17
  * Constructs a new `LanguageString`.
15
18
  * @param value A string value written in the given language.
16
- * @param language The language of the string. If a string is given, it will
17
- * be parsed as a `LanguageTag`.
19
+ * @param locale The language of the string. If a string is given, it will
20
+ * be parsed as a `Intl.Locale` object.
18
21
  */
19
- constructor(value: string, language: LanguageTag | string);
22
+ constructor(value: string, language: Intl.Locale | string);
20
23
  }
21
24
  //#endregion
22
25
  //#region src/vocab/vocab.d.ts
@@ -7240,7 +7243,7 @@ declare class Link {
7240
7243
  mediaType?: string | null;
7241
7244
  name?: string | LanguageString | null;
7242
7245
  names?: ((string | LanguageString))[];
7243
- language?: LanguageTag | null;
7246
+ language?: Intl.Locale | null;
7244
7247
  height?: number | null;
7245
7248
  width?: number | null;
7246
7249
  previews?: (Link | Object$1 | URL)[];
@@ -7263,7 +7266,7 @@ declare class Link {
7263
7266
  mediaType?: string | null;
7264
7267
  name?: string | LanguageString | null;
7265
7268
  names?: ((string | LanguageString))[];
7266
- language?: LanguageTag | null;
7269
+ language?: Intl.Locale | null;
7267
7270
  height?: number | null;
7268
7271
  width?: number | null;
7269
7272
  previews?: (Link | Object$1 | URL)[];
@@ -7307,7 +7310,7 @@ declare class Link {
7307
7310
  /** Hints as to the language used by the target resource.
7308
7311
  * Value MUST be a BCP 47 Language-Tag.
7309
7312
  */
7310
- get language(): LanguageTag | null;
7313
+ get language(): Intl.Locale | null;
7311
7314
  /** On a {@link Link}, specifies a hint as to the rendering height in
7312
7315
  * device-independent pixels of the linked resource.
7313
7316
  */
@@ -7391,7 +7394,7 @@ declare class Hashtag extends Link {
7391
7394
  mediaType?: string | null;
7392
7395
  name?: string | LanguageString | null;
7393
7396
  names?: ((string | LanguageString))[];
7394
- language?: LanguageTag | null;
7397
+ language?: Intl.Locale | null;
7395
7398
  height?: number | null;
7396
7399
  width?: number | null;
7397
7400
  previews?: (Link | Object$1 | URL)[];
@@ -7414,7 +7417,7 @@ declare class Hashtag extends Link {
7414
7417
  mediaType?: string | null;
7415
7418
  name?: string | LanguageString | null;
7416
7419
  names?: ((string | LanguageString))[];
7417
- language?: LanguageTag | null;
7420
+ language?: Intl.Locale | null;
7418
7421
  height?: number | null;
7419
7422
  width?: number | null;
7420
7423
  previews?: (Link | Object$1 | URL)[];
@@ -8797,7 +8800,7 @@ declare class Mention extends Link {
8797
8800
  mediaType?: string | null;
8798
8801
  name?: string | LanguageString | null;
8799
8802
  names?: ((string | LanguageString))[];
8800
- language?: LanguageTag | null;
8803
+ language?: Intl.Locale | null;
8801
8804
  height?: number | null;
8802
8805
  width?: number | null;
8803
8806
  previews?: (Link | Object$1 | URL)[];
@@ -8820,7 +8823,7 @@ declare class Mention extends Link {
8820
8823
  mediaType?: string | null;
8821
8824
  name?: string | LanguageString | null;
8822
8825
  names?: ((string | LanguageString))[];
8823
- language?: LanguageTag | null;
8826
+ language?: Intl.Locale | null;
8824
8827
  height?: number | null;
8825
8828
  width?: number | null;
8826
8829
  previews?: (Link | Object$1 | URL)[];
@@ -3,30 +3,30 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Image, Link, Person } from "../type-Bo0QfGsr.js";
6
+ import { Image, Link, Person } from "../type-I68qwqmo.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-zXrzC_d6.js";
11
+ import { createFederation, handleWebFinger } from "../middleware-DakCaqXu.js";
12
12
  import "../semver-dArNLkR9.js";
13
- import "../client-BVxAaya-.js";
14
- import "../lookup-Buywr1WF.js";
13
+ import "../client-g2FDBoeY.js";
14
+ import "../lookup-DNQyH8UQ.js";
15
15
  import "../types-BIgY6c-l.js";
16
- import "../actor-Uase6HaC.js";
17
- import "../key-Btvx_gRX.js";
18
- import "../http-D4JZZsj7.js";
19
- import "../authdocloader-Br8fjCDA.js";
20
- import "../ld-BeIT6mlc.js";
21
- import "../owner-D3LffaGr.js";
22
- import "../proof-sKtcV6pt.js";
23
- import "../inbox-fuzozZbS.js";
24
- import "../builder-Bo9ciHfP.js";
16
+ import "../actor-7ivEf1H3.js";
17
+ import "../key-CYOcZ9G5.js";
18
+ import "../http-C7rxW7Kh.js";
19
+ import "../authdocloader-D_IvQE4z.js";
20
+ import "../ld-DWwLYT4e.js";
21
+ import "../owner-smArESGi.js";
22
+ import "../proof-C6z-uqeO.js";
23
+ import "../inbox-eK2W2MF3.js";
24
+ import "../builder-BPGqEvtB.js";
25
25
  import "../collection-CSzG2j1P.js";
26
- import "../keycache-HTIISDcs.js";
26
+ import "../keycache-BLq6GT4_.js";
27
27
  import "../retry-D4GJ670a.js";
28
- import "../send-BeQ8g_vp.js";
29
- import { createRequestContext, test } from "../testing-CMNbLS0m.js";
28
+ import "../send-1zdmNlUo.js";
29
+ import { createRequestContext, test } from "../testing-BG_8Fyas.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-Bo0QfGsr.js";
6
+ import { lookupWebFinger } from "../type-I68qwqmo.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-Buywr1WF.js";
11
- import { test } from "../testing-CMNbLS0m.js";
10
+ import "../lookup-DNQyH8UQ.js";
11
+ import { test } from "../testing-BG_8Fyas.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-Bo7LuXob.js";
17
+ import { esm_default } from "../esm-CPZhxxGc.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-DXhq_Y_0.js";
6
- import { lookupWebFinger } from "../lookup-gtbh2a3H.js";
5
+ import "../docloader-BlVueewg.js";
6
+ import { lookupWebFinger } from "../lookup-BHYMosdS.js";
7
7
  import "../webfinger-C3GIyXIg.js";
8
8
 
9
9
  export { lookupWebFinger };
@@ -3,12 +3,12 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "../type-Bo0QfGsr.js";
6
+ import "../type-I68qwqmo.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-Buywr1WF.js";
11
- import { test } from "../testing-CMNbLS0m.js";
10
+ import "../lookup-DNQyH8UQ.js";
11
+ import { test } from "../testing-BG_8Fyas.js";
12
12
  import "../std__assert-X-_kMxKM.js";
13
13
  import "../assert_rejects-DiIiJbZn.js";
14
14
  import "../assert_is_error-BPGph1Jx.js";
package/dist/x/hono.d.ts CHANGED
@@ -3,13 +3,13 @@ import { URLPattern } from "urlpattern-polyfill";
3
3
  import "../kv-C7sopW2E.js";
4
4
  import "../docloader-CxWcuWqQ.js";
5
5
  import "../client-DF8anIB5.js";
6
- import "../vocab-BEEm2I6u.js";
7
- import "../actor-Ch5yFYFG.js";
8
- import "../http-D8Q4xH0d.js";
9
- import "../owner-D38zBIMc.js";
10
- import "../mod-Cy6pkZSn.js";
6
+ import "../vocab-SOE1ifCr.js";
7
+ import "../actor-C22bXuuC.js";
8
+ import "../http-DqSNLFNY.js";
9
+ import "../owner-CQPnQVtf.js";
10
+ import "../mod-Cxt4Kpf6.js";
11
11
  import "../lookup-3czM5mmU.js";
12
- import { Federation } from "../context-DJQB_Zv4.js";
12
+ import { Federation } from "../context-DmlbRh9p.js";
13
13
  import "../mq-CRGm1e_F.js";
14
14
 
15
15
  //#region src/x/hono.d.ts
@@ -3,13 +3,13 @@ import { URLPattern } from "urlpattern-polyfill";
3
3
  import "../kv-C7sopW2E.js";
4
4
  import "../docloader-CxWcuWqQ.js";
5
5
  import "../client-DF8anIB5.js";
6
- import "../vocab-BEEm2I6u.js";
7
- import "../actor-Ch5yFYFG.js";
8
- import "../http-D8Q4xH0d.js";
9
- import "../owner-D38zBIMc.js";
10
- import "../mod-Cy6pkZSn.js";
6
+ import "../vocab-SOE1ifCr.js";
7
+ import "../actor-C22bXuuC.js";
8
+ import "../http-DqSNLFNY.js";
9
+ import "../owner-CQPnQVtf.js";
10
+ import "../mod-Cxt4Kpf6.js";
11
11
  import "../lookup-3czM5mmU.js";
12
- import { Federation } from "../context-DJQB_Zv4.js";
12
+ import { Federation } from "../context-DmlbRh9p.js";
13
13
  import "../mq-CRGm1e_F.js";
14
14
 
15
15
  //#region src/x/sveltekit.d.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/fedify",
3
- "version": "1.9.0-pr.395.1481+1d27e9b8",
3
+ "version": "2.0.0-dev.1485+e1b5f5bc",
4
4
  "description": "An ActivityPub server framework",
5
5
  "keywords": [
6
6
  "ActivityPub",
@@ -101,7 +101,6 @@
101
101
  "@multiformats/base-x": "^4.0.1",
102
102
  "@opentelemetry/api": "^1.9.0",
103
103
  "@opentelemetry/semantic-conventions": "^1.27.0",
104
- "@phensley/language-tag": "^1.9.0",
105
104
  "asn1js": "^3.0.5",
106
105
  "byte-encodings": "^1.0.11",
107
106
  "es-toolkit": "^1.39.5",
@@ -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-Bo0QfGsr.js";
7
- import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-zXrzC_d6.js";
8
- import "./semver-dArNLkR9.js";
9
- import "./client-BVxAaya-.js";
10
- import "./lookup-Buywr1WF.js";
11
- import "./types-BIgY6c-l.js";
12
- import "./actor-Uase6HaC.js";
13
- import "./key-Btvx_gRX.js";
14
- import "./http-D4JZZsj7.js";
15
- import "./authdocloader-Br8fjCDA.js";
16
- import "./ld-BeIT6mlc.js";
17
- import "./owner-D3LffaGr.js";
18
- import "./proof-sKtcV6pt.js";
19
- import "./inbox-fuzozZbS.js";
20
- import "./builder-Bo9ciHfP.js";
21
- import "./collection-CSzG2j1P.js";
22
- import "./keycache-HTIISDcs.js";
23
- import "./retry-D4GJ670a.js";
24
- import "./send-BeQ8g_vp.js";
25
-
26
- export { FederationImpl };
@@ -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-DXhq_Y_0.js";
7
- import "./actor-9LPJkiZG.js";
8
- import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-BpvvMkJx.js";
9
- import "./lookup-gtbh2a3H.js";
10
- import "./key-DY4r2zHZ.js";
11
- import "./http-DblhtMbl.js";
12
- import "./proof-B2vYr7n3.js";
13
- import "./types-ByoM5Yqa.js";
14
- import "./authdocloader-CogKPs5c.js";
15
- import "./vocab-69WqtJLZ.js";
16
-
17
- export { FederationImpl };