@fedify/fedify 1.9.0-pr.404.1510 → 2.0.0-dev.1514

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 (98) hide show
  1. package/dist/{actor-DkIdAr9J.js → actor-B9P2qjOp.js} +228 -225
  2. package/dist/{actor-Ch5yFYFG.d.ts → actor-C22bXuuC.d.ts} +1 -1
  3. package/dist/{actor-CHqaUXl1.js → actor-_5FcZYCJ.js} +1 -1
  4. package/dist/{authdocloader-CjGMaQfP.js → authdocloader-B85dU2XF.js} +3 -3
  5. package/dist/{authdocloader-Bq3eEtNg.js → authdocloader-D1iSfbFg.js} +3 -3
  6. package/dist/{builder-DHDVBVOV.js → builder-CYzXSls9.js} +4 -4
  7. package/dist/{client-nKH0m0vE.js → client-CVlb4Ok0.js} +2 -2
  8. package/dist/compat/mod.d.ts +8 -8
  9. package/dist/compat/transformers.test.js +16 -16
  10. package/dist/{context-DNwURm52.d.ts → context-3ICnZJKt.d.ts} +6 -12
  11. package/dist/{docloader-Bs8tIfQl.js → docloader-Oh_3p-47.js} +1 -2
  12. package/dist/{esm-BHj56Vi7.js → esm-D3g5PyTT.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 +46 -47
  20. package/dist/federation/mod.d.ts +7 -7
  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-DWzB6Eiv.js → http-BfYXy8KN.js} +3 -3
  27. package/dist/{http-zMANLZqM.js → http-CqQdyMrD.js} +2 -2
  28. package/dist/{http-D8Q4xH0d.d.ts → http-DqSNLFNY.d.ts} +1 -1
  29. package/dist/{inbox-Dp-eEtMJ.js → inbox-aK-1EWle.js} +1 -1
  30. package/dist/{key-8JDozsni.js → key-CIHj-ji7.js} +3 -3
  31. package/dist/{key-UNMrztet.js → key-DO4DsIoa.js} +4 -4
  32. package/dist/{key-BbWECGU6.js → key-DvNnIm-b.js} +2 -2
  33. package/dist/{key-nbNXifMr.js → key-dwUEz7hD.js} +2 -2
  34. package/dist/{keycache-DpBmIsYm.js → keycache-BVu6aNEj.js} +1 -1
  35. package/dist/{keys-jozgkzA_.js → keys-DzPS0ETq.js} +1 -1
  36. package/dist/{ld-Bc_JMHzZ.js → ld-Cnu549gk.js} +2 -2
  37. package/dist/{lookup-9rf-3A_i.d.ts → lookup-3czM5mmU.d.ts} +1 -7
  38. package/dist/{lookup-aiIxqPca.js → lookup-CHIhk5sJ.js} +2 -2
  39. package/dist/{lookup-DpxXFxgP.js → lookup-CUS6_-CL.js} +1 -1
  40. package/dist/middleware-26M2bCJx.js +26 -0
  41. package/dist/{middleware--YergbUA.js → middleware-Bx2AUSYt.js} +12 -17
  42. package/dist/middleware-CpfIowSV.js +17 -0
  43. package/dist/{middleware-8D078v9S.js → middleware-DZEp_3SF.js} +15 -20
  44. package/dist/{mod-QSm_u37X.d.ts → mod-CWxqOAci.d.ts} +2 -2
  45. package/dist/{mod-Cy6pkZSn.d.ts → mod-Cxt4Kpf6.d.ts} +1 -1
  46. package/dist/{mod-B7Pc0I7F.d.ts → mod-Drmz72EK.d.ts} +2 -2
  47. package/dist/{mod-BAuhKa9d.d.ts → mod-TFoH2Ql8.d.ts} +1 -1
  48. package/dist/mod.d.ts +10 -10
  49. package/dist/mod.js +10 -10
  50. package/dist/nodeinfo/client.test.js +5 -5
  51. package/dist/nodeinfo/handler.test.js +16 -16
  52. package/dist/nodeinfo/mod.js +2 -2
  53. package/dist/nodeinfo/semver.test.js +3 -3
  54. package/dist/nodeinfo/types.test.js +3 -3
  55. package/dist/{owner-D38zBIMc.d.ts → owner-CQPnQVtf.d.ts} +2 -2
  56. package/dist/{owner-D9G54cA0.js → owner-DLtMHO6X.js} +2 -2
  57. package/dist/{proof-D-__AaiA.js → proof-BJikaSMR.js} +2 -2
  58. package/dist/{proof-ByNeF5u0.js → proof-DV0L-54H.js} +3 -3
  59. package/dist/runtime/authdocloader.test.js +9 -9
  60. package/dist/runtime/docloader.test.js +4 -4
  61. package/dist/runtime/key.test.js +5 -5
  62. package/dist/runtime/langstr.test.js +5 -6
  63. package/dist/runtime/mod.d.ts +3 -3
  64. package/dist/runtime/mod.js +6 -6
  65. package/dist/runtime/multibase/multibase.test.js +3 -3
  66. package/dist/runtime/url.test.js +3 -3
  67. package/dist/{send-C7UN2arY.js → send-vv5TvgyD.js} +2 -2
  68. package/dist/sig/http.test.js +8 -8
  69. package/dist/sig/key.test.js +6 -6
  70. package/dist/sig/ld.test.js +7 -7
  71. package/dist/sig/mod.d.ts +5 -5
  72. package/dist/sig/mod.js +6 -6
  73. package/dist/sig/owner.test.js +7 -7
  74. package/dist/sig/proof.test.js +7 -7
  75. package/dist/testing/docloader.test.js +3 -3
  76. package/dist/testing/mod.d.ts +14 -17
  77. package/dist/testing/mod.js +3 -3
  78. package/dist/{testing-5ZjvWetO.js → testing-DM_97aHJ.js} +2 -2
  79. package/dist/{type-DYvF-0mj.js → type-BaPlY7h1.js} +227 -225
  80. package/dist/{types-BgaosfAy.js → types-0RrqyCDq.js} +2 -2
  81. package/dist/vocab/actor.test.js +5 -5
  82. package/dist/vocab/lookup.test.js +4 -4
  83. package/dist/vocab/mod.d.ts +3 -3
  84. package/dist/vocab/mod.js +4 -4
  85. package/dist/vocab/type.test.js +3 -3
  86. package/dist/vocab/vocab.test.js +11 -12
  87. package/dist/{vocab-Db27HLtB.js → vocab-FZ-IPYpZ.js} +4 -4
  88. package/dist/{vocab-BEEm2I6u.d.ts → vocab-SOE1ifCr.d.ts} +15 -12
  89. package/dist/webfinger/handler.test.js +16 -16
  90. package/dist/webfinger/lookup.test.js +4 -4
  91. package/dist/webfinger/mod.d.ts +1 -1
  92. package/dist/webfinger/mod.js +2 -2
  93. package/dist/x/cfworkers.test.js +3 -3
  94. package/dist/x/hono.d.ts +7 -7
  95. package/dist/x/sveltekit.d.ts +7 -7
  96. package/package.json +1 -2
  97. package/dist/middleware-CC7Dt7C9.js +0 -17
  98. package/dist/middleware-DeBTO9vF.js +0 -26
@@ -2,7 +2,6 @@ import { Temporal } from "@js-temporal/polyfill";
2
2
  import { URLPattern } from "urlpattern-polyfill";
3
3
  globalThis.addEventListener = () => {};
4
4
  import { Span, TracerProvider } from "@opentelemetry/api";
5
- import { LanguageTag } from "@phensley/language-tag";
6
5
 
7
6
  //#region src/runtime/docloader.d.ts
8
7
  /**
@@ -281,14 +280,18 @@ interface GetNodeInfoOptions {
281
280
  * A language-tagged string which corresponds to the `rdf:langString` type.
282
281
  */
283
282
  declare class LanguageString extends String {
284
- readonly language: LanguageTag;
283
+ /**
284
+ * The locale of the string.
285
+ * @since 2.0.0
286
+ */
287
+ readonly locale: Intl.Locale;
285
288
  /**
286
289
  * Constructs a new `LanguageString`.
287
290
  * @param value A string value written in the given language.
288
- * @param language The language of the string. If a string is given, it will
289
- * be parsed as a `LanguageTag`.
291
+ * @param locale The language of the string. If a string is given, it will
292
+ * be parsed as a `Intl.Locale` object.
290
293
  */
291
- constructor(value: string, language: LanguageTag | string);
294
+ constructor(value: string, language: Intl.Locale | string);
292
295
  }
293
296
  //#endregion
294
297
  //#region src/vocab/vocab.d.ts
@@ -4107,7 +4110,7 @@ declare class Link {
4107
4110
  mediaType?: string | null;
4108
4111
  name?: string | LanguageString | null;
4109
4112
  names?: ((string | LanguageString))[];
4110
- language?: LanguageTag | null;
4113
+ language?: Intl.Locale | null;
4111
4114
  height?: number | null;
4112
4115
  width?: number | null;
4113
4116
  previews?: (Link | Object$1 | URL)[];
@@ -4130,7 +4133,7 @@ declare class Link {
4130
4133
  mediaType?: string | null;
4131
4134
  name?: string | LanguageString | null;
4132
4135
  names?: ((string | LanguageString))[];
4133
- language?: LanguageTag | null;
4136
+ language?: Intl.Locale | null;
4134
4137
  height?: number | null;
4135
4138
  width?: number | null;
4136
4139
  previews?: (Link | Object$1 | URL)[];
@@ -4174,7 +4177,7 @@ declare class Link {
4174
4177
  /** Hints as to the language used by the target resource.
4175
4178
  * Value MUST be a BCP 47 Language-Tag.
4176
4179
  */
4177
- get language(): LanguageTag | null;
4180
+ get language(): Intl.Locale | null;
4178
4181
  /** On a {@link Link}, specifies a hint as to the rendering height in
4179
4182
  * device-independent pixels of the linked resource.
4180
4183
  */
@@ -4258,7 +4261,7 @@ declare class Hashtag extends Link {
4258
4261
  mediaType?: string | null;
4259
4262
  name?: string | LanguageString | null;
4260
4263
  names?: ((string | LanguageString))[];
4261
- language?: LanguageTag | null;
4264
+ language?: Intl.Locale | null;
4262
4265
  height?: number | null;
4263
4266
  width?: number | null;
4264
4267
  previews?: (Link | Object$1 | URL)[];
@@ -4281,7 +4284,7 @@ declare class Hashtag extends Link {
4281
4284
  mediaType?: string | null;
4282
4285
  name?: string | LanguageString | null;
4283
4286
  names?: ((string | LanguageString))[];
4284
- language?: LanguageTag | null;
4287
+ language?: Intl.Locale | null;
4285
4288
  height?: number | null;
4286
4289
  width?: number | null;
4287
4290
  previews?: (Link | Object$1 | URL)[];
@@ -6970,7 +6973,7 @@ interface Link$1 {
6970
6973
  /**
6971
6974
  * A URI pointing to the target resource.
6972
6975
  */
6973
- href?: string;
6976
+ href: string;
6974
6977
  /**
6975
6978
  * Human-readable titles describing the link relation. If the language is
6976
6979
  * unknown or unspecified, the key is `"und"`.
@@ -6980,12 +6983,6 @@ interface Link$1 {
6980
6983
  * Conveys additional information about the link relation.
6981
6984
  */
6982
6985
  properties?: Record<string, string>;
6983
- /**
6984
- * A URI template (RFC 6570) that can be used to construct URIs by
6985
- * substituting variables. Used primarily for subscription endpoints
6986
- * where parameters like account URIs need to be dynamically inserted.
6987
- */
6988
- template?: string;
6989
6986
  }
6990
6987
  //#endregion
6991
6988
  //#region src/webfinger/lookup.d.ts
@@ -3,8 +3,8 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "../type-DYvF-0mj.js";
7
- import "../lookup-aiIxqPca.js";
8
- import { createInboxContext, createRequestContext, test, testDefinitions } from "../testing-5ZjvWetO.js";
6
+ import "../type-BaPlY7h1.js";
7
+ import "../lookup-CHIhk5sJ.js";
8
+ import { createInboxContext, createRequestContext, test, testDefinitions } from "../testing-DM_97aHJ.js";
9
9
 
10
10
  export { createInboxContext, createRequestContext, test, testDefinitions };
@@ -3,8 +3,8 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { __require, lookupWebFinger } from "./type-DYvF-0mj.js";
7
- import { RouterError, lookupObject, traverseCollection } from "./lookup-aiIxqPca.js";
6
+ import { __require, lookupWebFinger } from "./type-BaPlY7h1.js";
7
+ import { RouterError, lookupObject, traverseCollection } from "./lookup-CHIhk5sJ.js";
8
8
  import { configure, getConsoleSink, getLogger, reset } from "@logtape/logtape";
9
9
  import { trace } from "@opentelemetry/api";
10
10