@fedify/fedify 2.0.0-dev.1593 → 2.0.0-dev.1604

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 (99) hide show
  1. package/dist/{actor-DNwcqwPT.js → actor-BC3XtGTj.js} +187 -187
  2. package/dist/{actor-Bj1Vq2XG.js → actor-CmRlosMl.js} +1 -1
  3. package/dist/{assert_rejects-DiIiJbZn.js → assert_rejects-7UF4R_Qs.js} +1 -1
  4. package/dist/{assert_throws-BOO88avQ.js → assert_throws-53_pKeP3.js} +1 -1
  5. package/dist/{authdocloader-DJtdyVPc.js → authdocloader-CzpPQC01.js} +3 -3
  6. package/dist/{authdocloader-qkvj_KZY.js → authdocloader-D-DICGXT.js} +3 -3
  7. package/dist/{builder-BgzJcrpt.js → builder-D9zidAqR.js} +4 -4
  8. package/dist/{client-CpxFv8ft.js → client-Bsj0vQPr.js} +3 -22
  9. package/dist/{client-DF8anIB5.d.ts → client-bgSdkFa2.d.ts} +2 -74
  10. package/dist/compat/mod.d.ts +3 -3
  11. package/dist/compat/transformers.test.js +19 -20
  12. package/dist/{context-9gCpIkiz.d.ts → context-CDSZdQHD.d.ts} +1 -1
  13. package/dist/{docloader-9_osWaaH.js → docloader-CkASOfZ5.js} +1 -1
  14. package/dist/{esm-5nsZYnVB.js → esm-CXF1VoeR.js} +1 -1
  15. package/dist/federation/builder.test.js +11 -12
  16. package/dist/federation/collection.test.js +9 -9
  17. package/dist/federation/handler.test.js +25 -26
  18. package/dist/federation/inbox.test.js +6 -6
  19. package/dist/federation/keycache.test.js +4 -4
  20. package/dist/federation/kv.test.js +8 -8
  21. package/dist/federation/middleware.test.js +29 -44
  22. package/dist/federation/mod.d.ts +2 -2
  23. package/dist/federation/mod.js +10 -10
  24. package/dist/federation/mq.test.js +10 -10
  25. package/dist/federation/retry.test.js +5 -5
  26. package/dist/federation/router.test.js +8 -8
  27. package/dist/federation/send.test.js +15 -15
  28. package/dist/{http-BqklewFY.js → http-B_pxY5of.js} +3 -3
  29. package/dist/{http-CQulyTuw.js → http-CSYNybkH.js} +2 -2
  30. package/dist/{inbox-B97Wrppe.js → inbox-DoJlwIE4.js} +1 -1
  31. package/dist/{key-D-s3dQbK.js → key-BOzqiGbl.js} +2 -2
  32. package/dist/{key-CNCeen0u.js → key-Bif4eMj7.js} +2 -2
  33. package/dist/{key-3jGPh5To.js → key-BteSu1lX.js} +4 -4
  34. package/dist/{key-C3CEOTh7.js → key-DWWqeyaq.js} +3 -3
  35. package/dist/{keycache-Br0-hsD5.js → keycache--NYDYifd.js} +1 -1
  36. package/dist/{keys-DSk2aqlj.js → keys-MacD9GP6.js} +1 -1
  37. package/dist/{ld-CYUQO1l4.js → ld-D9oTBLrs.js} +2 -2
  38. package/dist/{lookup-BNFlahf3.js → lookup-Cz9VSYxw.js} +1 -1
  39. package/dist/{lookup-CnJK1NUl.js → lookup-DuzrBbTj.js} +1 -1
  40. package/dist/{middleware-tfSiCl9w.js → middleware-C0w2M0tb.js} +10 -10
  41. package/dist/middleware-CNfiKLIZ.js +25 -0
  42. package/dist/{middleware-CovCqg8w.js → middleware-CgNm3XOJ.js} +16 -16
  43. package/dist/middleware-CnvU63kV.js +17 -0
  44. package/dist/{mod-Bqxcp7eN.d.ts → mod-RI3-KvUI.d.ts} +1 -1
  45. package/dist/mod.d.ts +4 -4
  46. package/dist/mod.js +11 -11
  47. package/dist/nodeinfo/client.test.js +32 -111
  48. package/dist/nodeinfo/handler.test.js +25 -26
  49. package/dist/nodeinfo/mod.d.ts +2 -2
  50. package/dist/nodeinfo/mod.js +3 -3
  51. package/dist/nodeinfo/types.test.js +10 -15
  52. package/dist/{owner-CBeUJR68.js → owner-gB-pDKA-.js} +2 -2
  53. package/dist/{proof-CHQnDg0z.js → proof-CScVkkIT.js} +2 -2
  54. package/dist/{proof-D436ezTT.js → proof-VPikK_0V.js} +3 -3
  55. package/dist/runtime/authdocloader.test.js +14 -14
  56. package/dist/runtime/docloader.test.js +9 -9
  57. package/dist/runtime/key.test.js +10 -10
  58. package/dist/runtime/langstr.test.js +8 -8
  59. package/dist/runtime/mod.js +6 -6
  60. package/dist/runtime/multibase/multibase.test.js +8 -8
  61. package/dist/runtime/url.test.js +5 -5
  62. package/dist/{send-Bc0QdRlp.js → send-flZ7H10-.js} +2 -2
  63. package/dist/sig/http.test.js +13 -13
  64. package/dist/sig/key.test.js +11 -11
  65. package/dist/sig/ld.test.js +10 -10
  66. package/dist/sig/mod.js +6 -6
  67. package/dist/sig/owner.test.js +12 -12
  68. package/dist/sig/proof.test.js +12 -12
  69. package/dist/testing/docloader.test.js +8 -8
  70. package/dist/testing/mod.d.ts +1 -28
  71. package/dist/testing/mod.js +3 -3
  72. package/dist/{testing-D4xRiVJV.js → testing-CdBSI4xF.js} +2 -2
  73. package/dist/{type-qs0mWLTm.js → type-CAteiET0.js} +186 -186
  74. package/dist/{types-BIgY6c-l.js → types-BSuWJsOm.js} +1 -3
  75. package/dist/{types-RbpvCErq.js → types-Vo0qKhN7.js} +5 -166
  76. package/dist/vocab/actor.test.js +10 -10
  77. package/dist/vocab/lookup.test.js +9 -9
  78. package/dist/vocab/mod.js +4 -4
  79. package/dist/vocab/type.test.js +3 -3
  80. package/dist/vocab/vocab.test.js +9 -9
  81. package/dist/{vocab-r-I1_ZmK.js → vocab-89qErSc9.js} +3 -3
  82. package/dist/webfinger/handler.test.js +24 -25
  83. package/dist/webfinger/lookup.test.js +9 -9
  84. package/dist/webfinger/mod.js +2 -2
  85. package/dist/x/cfworkers.test.js +8 -8
  86. package/dist/x/hono.d.ts +2 -2
  87. package/dist/x/sveltekit.d.ts +2 -2
  88. package/package.json +1 -1
  89. package/dist/middleware-CJbNYdw9.js +0 -17
  90. package/dist/middleware-zDdNBo-m.js +0 -26
  91. package/dist/nodeinfo/semver.test.d.ts +0 -3
  92. package/dist/nodeinfo/semver.test.js +0 -143
  93. package/dist/semver-dArNLkR9.js +0 -149
  94. /package/dist/{assert_is_error-BPGph1Jx.js → assert_is_error-B035L3om.js} +0 -0
  95. /package/dist/{assert_not_equals-f3m3epl3.js → assert_not_equals-C80BG-_5.js} +0 -0
  96. /package/dist/{collection-CSzG2j1P.js → collection-CcnIw1qY.js} +0 -0
  97. /package/dist/{denokv-Bv33Xxea.js → denokv-jZ0Z2h0M.js} +0 -0
  98. /package/dist/{retry-D4GJ670a.js → retry-CfF8Gn4d.js} +0 -0
  99. /package/dist/{std__assert-X-_kMxKM.js → std__assert-DWivtrGR.js} +0 -0
@@ -3,8 +3,6 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { formatSemVer } from "./semver-dArNLkR9.js";
7
-
8
6
  //#region src/nodeinfo/types.ts
9
7
  /**
10
8
  * Converts a {@link NodeInfo} object to a JSON value.
@@ -25,7 +23,7 @@ function nodeInfoToJson(nodeInfo) {
25
23
  version: "2.1",
26
24
  software: {
27
25
  name: nodeInfo.software.name,
28
- version: formatSemVer(nodeInfo.software.version),
26
+ version: nodeInfo.software.version,
29
27
  repository: nodeInfo.software.repository?.href,
30
28
  homepage: nodeInfo.software.homepage?.href
31
29
  },
@@ -2,152 +2,9 @@
2
2
  import { Temporal } from "@js-temporal/polyfill";
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
 
5
- import { getUserAgent } from "./docloader-9_osWaaH.js";
5
+ import { getUserAgent } from "./docloader-CkASOfZ5.js";
6
6
  import { getLogger } from "@logtape/logtape";
7
7
 
8
- //#region src/nodeinfo/semver.ts
9
- const MAX_LENGTH = 256;
10
- /**
11
- * A single `0`, or a non-zero digit followed by zero or more digits.
12
- */
13
- const NUMERIC_IDENTIFIER = "0|[1-9]\\d*";
14
- /**
15
- * Zero or more digits, followed by a letter or hyphen, and then zero or more letters, digits, or hyphens.
16
- */
17
- const NON_NUMERIC_IDENTIFIER = "\\d*[a-zA-Z-][a-zA-Z0-9-]*";
18
- /**
19
- * Three dot-separated numeric identifiers.
20
- */
21
- const VERSION_CORE = `(?<major>${NUMERIC_IDENTIFIER})\\.(?<minor>${NUMERIC_IDENTIFIER})\\.(?<patch>${NUMERIC_IDENTIFIER})`;
22
- /**
23
- * A numeric identifier, or a non-numeric identifier.
24
- */
25
- const PRERELEASE_IDENTIFIER = `(?:${NUMERIC_IDENTIFIER}|${NON_NUMERIC_IDENTIFIER})`;
26
- /**
27
- * A hyphen, followed by one or more dot-separated pre-release version identifiers.
28
- * @example "-pre.release"
29
- */
30
- const PRERELEASE = `(?:-(?<prerelease>${PRERELEASE_IDENTIFIER}(?:\\.${PRERELEASE_IDENTIFIER})*))`;
31
- /**
32
- * Any combination of digits, letters, or hyphens.
33
- */
34
- const BUILD_IDENTIFIER = "[0-9A-Za-z-]+";
35
- /**
36
- * A plus sign, followed by one or more period-separated build metadata identifiers.
37
- * @example "+build.meta"
38
- */
39
- const BUILD = `(?:\\+(?<buildmetadata>${BUILD_IDENTIFIER}(?:\\.${BUILD_IDENTIFIER})*))`;
40
- /**
41
- * A version, followed optionally by a pre-release version and build metadata.
42
- */
43
- const FULL_VERSION = `v?${VERSION_CORE}${PRERELEASE}?${BUILD}?`;
44
- const FULL_REGEXP = /* @__PURE__ */ new RegExp(`^${FULL_VERSION}$`);
45
- /**
46
- * Attempt to parse a string as a semantic version, returning a SemVer object.
47
- *
48
- * @example Usage
49
- * ```ts
50
- * import { parseSemVer } from "@fedify/fedify/nodeinfo";
51
- * import { assertEquals } from "@std/assert";
52
- *
53
- * const version = parseSemVer("1.2.3");
54
- * assertEquals(version, {
55
- * major: 1,
56
- * minor: 2,
57
- * patch: 3,
58
- * prerelease: [],
59
- * build: [],
60
- * });
61
- * ```
62
- *
63
- * @throws {TypeError} If the input string is invalid.
64
- * @param value The version string to parse
65
- * @returns A valid SemVer
66
- * @since 1.2.0
67
- */
68
- function parseSemVer(value) {
69
- if (typeof value !== "string") throw new TypeError(`Cannot parse version as version must be a string: received ${typeof value}`);
70
- if (value.length > MAX_LENGTH) throw new TypeError(`Cannot parse version as version length is too long: length is ${value.length}, max length is ${MAX_LENGTH}`);
71
- value = value.trim();
72
- const groups = value.match(FULL_REGEXP)?.groups;
73
- if (!groups) throw new TypeError(`Cannot parse version: ${value}`);
74
- const major = parseNumber(groups.major, `Cannot parse version ${value}: invalid major version`);
75
- const minor = parseNumber(groups.minor, `Cannot parse version ${value}: invalid minor version`);
76
- const patch = parseNumber(groups.patch, `Cannot parse version ${value}: invalid patch version`);
77
- const prerelease = groups.prerelease ? parsePrerelease(groups.prerelease) : [];
78
- const build = groups.buildmetadata ? parseBuild(groups.buildmetadata) : [];
79
- return {
80
- major,
81
- minor,
82
- patch,
83
- prerelease,
84
- build
85
- };
86
- }
87
- /**
88
- * Returns true if the value is a valid SemVer number.
89
- *
90
- * Must be a number. Must not be NaN. Can be positive or negative infinity.
91
- * Can be between 0 and MAX_SAFE_INTEGER.
92
- * @param value The value to check
93
- * @returns True if its a valid semver number
94
- */
95
- function isValidNumber(value) {
96
- return typeof value === "number" && !Number.isNaN(value) && (!Number.isFinite(value) || 0 <= value && value <= Number.MAX_SAFE_INTEGER);
97
- }
98
- const NUMERIC_IDENTIFIER_REGEXP = /* @__PURE__ */ new RegExp(`^${NUMERIC_IDENTIFIER}$`);
99
- function parsePrerelease(prerelease) {
100
- return prerelease.split(".").filter(Boolean).map((id) => {
101
- if (NUMERIC_IDENTIFIER_REGEXP.test(id)) {
102
- const number = Number(id);
103
- if (isValidNumber(number)) return number;
104
- }
105
- return id;
106
- });
107
- }
108
- function parseBuild(buildmetadata) {
109
- return buildmetadata.split(".").filter(Boolean);
110
- }
111
- function parseNumber(input, errorMessage) {
112
- const number = Number(input);
113
- if (!isValidNumber(number)) throw new TypeError(errorMessage);
114
- return number;
115
- }
116
- function formatNumber(value) {
117
- return value.toFixed(0);
118
- }
119
- /**
120
- * Format a SemVer object into a string.
121
- *
122
- * @example Usage
123
- * ```ts
124
- * import { formatSemVer } from "@fedify/fedify/nodeinfo";
125
- * import { assertEquals } from "@std/assert";
126
- *
127
- * const semver = {
128
- * major: 1,
129
- * minor: 2,
130
- * patch: 3,
131
- * };
132
- * assertEquals(formatSemVer(semver), "1.2.3");
133
- * ```
134
- *
135
- * @param version The SemVer to format
136
- * @returns The string representation of a semantic version.
137
- * @since 1.2.0
138
- */
139
- function formatSemVer(version) {
140
- const major = formatNumber(version.major);
141
- const minor = formatNumber(version.minor);
142
- const patch = formatNumber(version.patch);
143
- const pre = version.prerelease?.join(".") ?? "";
144
- const build = version.build?.join(".") ?? "";
145
- const primary = `${major}.${minor}.${patch}`;
146
- const release = [primary, pre].filter((v) => v).join("-");
147
- return [release, build].filter((v) => v).join("+");
148
- }
149
-
150
- //#endregion
151
8
  //#region src/nodeinfo/client.ts
152
9
  const logger = getLogger([
153
10
  "fedify",
@@ -274,28 +131,10 @@ function parseSoftware(data, options = {}) {
274
131
  name = data.name.trim().toLowerCase();
275
132
  } else return null;
276
133
  let version;
277
- if ("version" in data && typeof data.version === "string") try {
278
- version = parseSemVer(data.version);
279
- } catch {
280
- if (!options.tryBestEffort) return null;
281
- const parts = data.version.split(".").map((p) => parseInt(p, 10));
282
- version = {
283
- major: !isNaN(parts[0]) ? parts[0] : 0,
284
- minor: !isNaN(parts[1]) ? parts[1] : 0,
285
- patch: !isNaN(parts[2]) ? parts[2] : 0,
286
- build: [],
287
- prerelease: []
288
- };
289
- }
134
+ if ("version" in data) version = String(data.version);
290
135
  else {
291
136
  if (!options.tryBestEffort) return null;
292
- version = {
293
- major: 0,
294
- minor: 0,
295
- patch: 0,
296
- build: [],
297
- prerelease: []
298
- };
137
+ version = "0.0.0";
299
138
  }
300
139
  let repository;
301
140
  if ("repository" in data) {
@@ -432,7 +271,7 @@ function nodeInfoToJson(nodeInfo) {
432
271
  version: "2.1",
433
272
  software: {
434
273
  name: nodeInfo.software.name,
435
- version: formatSemVer(nodeInfo.software.version),
274
+ version: nodeInfo.software.version,
436
275
  repository: nodeInfo.software.repository?.href,
437
276
  homepage: nodeInfo.software.homepage?.href
438
277
  },
@@ -455,4 +294,4 @@ function nodeInfoToJson(nodeInfo) {
455
294
  }
456
295
 
457
296
  //#endregion
458
- export { formatSemVer, getNodeInfo, nodeInfoToJson, parseNodeInfo, parseSemVer };
297
+ export { getNodeInfo, nodeInfoToJson, parseNodeInfo };
@@ -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-qs0mWLTm.js";
6
+ import { Application, Group, Organization, Person, Service, __export } from "../type-CAteiET0.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-CnJK1NUl.js";
11
- import { getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-Bj1Vq2XG.js";
12
- import { test } from "../testing-D4xRiVJV.js";
13
- import { assertStrictEquals } from "../std__assert-X-_kMxKM.js";
14
- import { assertFalse, assertRejects } from "../assert_rejects-DiIiJbZn.js";
15
- import "../assert_is_error-BPGph1Jx.js";
16
- import "../assert_not_equals-f3m3epl3.js";
17
- import { assertThrows } from "../assert_throws-BOO88avQ.js";
18
- import { esm_default } from "../esm-5nsZYnVB.js";
10
+ import "../lookup-DuzrBbTj.js";
11
+ import { getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-CmRlosMl.js";
12
+ import { test } from "../testing-CdBSI4xF.js";
13
+ import { assertStrictEquals } from "../std__assert-DWivtrGR.js";
14
+ import { assertFalse, assertRejects } from "../assert_rejects-7UF4R_Qs.js";
15
+ import "../assert_is_error-B035L3om.js";
16
+ import "../assert_not_equals-C80BG-_5.js";
17
+ import { assertThrows } from "../assert_throws-53_pKeP3.js";
18
+ import { esm_default } from "../esm-CXF1VoeR.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-qs0mWLTm.js";
6
+ import { Collection, Note, Object as Object$1, Person } from "../type-CAteiET0.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-CnJK1NUl.js";
11
- import { mockDocumentLoader, test } from "../testing-D4xRiVJV.js";
12
- import "../std__assert-X-_kMxKM.js";
13
- import "../assert_rejects-DiIiJbZn.js";
14
- import "../assert_is_error-BPGph1Jx.js";
15
- import "../assert_not_equals-f3m3epl3.js";
16
- import "../assert_throws-BOO88avQ.js";
17
- import { esm_default } from "../esm-5nsZYnVB.js";
10
+ import { lookupObject, traverseCollection } from "../lookup-DuzrBbTj.js";
11
+ import { mockDocumentLoader, test } from "../testing-CdBSI4xF.js";
12
+ import "../std__assert-DWivtrGR.js";
13
+ import "../assert_rejects-7UF4R_Qs.js";
14
+ import "../assert_is_error-B035L3om.js";
15
+ import "../assert_not_equals-C80BG-_5.js";
16
+ import "../assert_throws-53_pKeP3.js";
17
+ import { esm_default } from "../esm-CXF1VoeR.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-9_osWaaH.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-DNwcqwPT.js";
7
- import "../lookup-BNFlahf3.js";
8
- import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "../vocab-r-I1_ZmK.js";
5
+ import "../docloader-CkASOfZ5.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-BC3XtGTj.js";
7
+ import "../lookup-Cz9VSYxw.js";
8
+ import { PUBLIC_COLLECTION, isFediverseHandle, lookupObject, parseFediverseHandle, toAcctUrl, traverseCollection } from "../vocab-89qErSc9.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-qs0mWLTm.js";
6
+ import { Person, getTypeId } from "../type-CAteiET0.js";
7
7
  import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
- import "../lookup-CnJK1NUl.js";
9
- import { test } from "../testing-D4xRiVJV.js";
8
+ import "../lookup-DuzrBbTj.js";
9
+ import { test } from "../testing-CdBSI4xF.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-qs0mWLTm.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-CAteiET0.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-CnJK1NUl.js";
11
- import { mockDocumentLoader, test } from "../testing-D4xRiVJV.js";
12
- import "../std__assert-X-_kMxKM.js";
13
- import { assertFalse, assertRejects } from "../assert_rejects-DiIiJbZn.js";
14
- import "../assert_is_error-BPGph1Jx.js";
15
- import { assertNotEquals } from "../assert_not_equals-f3m3epl3.js";
16
- import { assertThrows } from "../assert_throws-BOO88avQ.js";
17
- import { ed25519PublicKey, rsaPublicKey1 } from "../keys-DSk2aqlj.js";
10
+ import "../lookup-DuzrBbTj.js";
11
+ import { mockDocumentLoader, test } from "../testing-CdBSI4xF.js";
12
+ import "../std__assert-DWivtrGR.js";
13
+ import { assertFalse, assertRejects } from "../assert_rejects-7UF4R_Qs.js";
14
+ import "../assert_is_error-B035L3om.js";
15
+ import { assertNotEquals } from "../assert_not_equals-C80BG-_5.js";
16
+ import { assertThrows } from "../assert_throws-53_pKeP3.js";
17
+ import { ed25519PublicKey, rsaPublicKey1 } from "../keys-MacD9GP6.js";
18
18
  import { pascalCase } from "es-toolkit";
19
19
  import { Validator } from "@cfworker/json-schema";
20
20
  import { readFile, readdir } from "node:fs/promises";
@@ -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-9_osWaaH.js";
6
- import { Object as Object$1, getTypeId } from "./actor-DNwcqwPT.js";
7
- import { lookupWebFinger } from "./lookup-BNFlahf3.js";
5
+ import { deno_default, getDocumentLoader } from "./docloader-CkASOfZ5.js";
6
+ import { Object as Object$1, getTypeId } from "./actor-BC3XtGTj.js";
7
+ import { lookupWebFinger } from "./lookup-Cz9VSYxw.js";
8
8
  import { getLogger } from "@logtape/logtape";
9
9
  import { SpanStatusCode, trace } from "@opentelemetry/api";
10
10
  import { delay } from "es-toolkit";
@@ -3,35 +3,34 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { Image, Link, Person } from "../type-qs0mWLTm.js";
6
+ import { Image, Link, Person } from "../type-CAteiET0.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-CovCqg8w.js";
12
- import "../semver-dArNLkR9.js";
13
- import "../client-CpxFv8ft.js";
14
- import "../lookup-CnJK1NUl.js";
15
- import "../types-BIgY6c-l.js";
16
- import "../actor-Bj1Vq2XG.js";
17
- import "../key-D-s3dQbK.js";
18
- import "../http-CQulyTuw.js";
19
- import "../authdocloader-DJtdyVPc.js";
20
- import "../ld-CYUQO1l4.js";
21
- import "../owner-CBeUJR68.js";
22
- import "../proof-CHQnDg0z.js";
23
- import "../inbox-B97Wrppe.js";
24
- import "../builder-BgzJcrpt.js";
25
- import "../collection-CSzG2j1P.js";
26
- import "../keycache-Br0-hsD5.js";
27
- import "../retry-D4GJ670a.js";
28
- import "../send-Bc0QdRlp.js";
29
- import { createRequestContext, test } from "../testing-D4xRiVJV.js";
30
- import "../std__assert-X-_kMxKM.js";
31
- import "../assert_rejects-DiIiJbZn.js";
32
- import "../assert_is_error-BPGph1Jx.js";
33
- import "../assert_not_equals-f3m3epl3.js";
34
- import "../assert_throws-BOO88avQ.js";
11
+ import { createFederation, handleWebFinger } from "../middleware-CgNm3XOJ.js";
12
+ import "../client-Bsj0vQPr.js";
13
+ import "../lookup-DuzrBbTj.js";
14
+ import "../types-BSuWJsOm.js";
15
+ import "../actor-CmRlosMl.js";
16
+ import "../key-BOzqiGbl.js";
17
+ import "../http-CSYNybkH.js";
18
+ import "../authdocloader-CzpPQC01.js";
19
+ import "../ld-D9oTBLrs.js";
20
+ import "../owner-gB-pDKA-.js";
21
+ import "../proof-CScVkkIT.js";
22
+ import "../inbox-DoJlwIE4.js";
23
+ import "../builder-D9zidAqR.js";
24
+ import "../collection-CcnIw1qY.js";
25
+ import "../keycache--NYDYifd.js";
26
+ import "../retry-CfF8Gn4d.js";
27
+ import "../send-flZ7H10-.js";
28
+ import { createRequestContext, test } from "../testing-CdBSI4xF.js";
29
+ import "../std__assert-DWivtrGR.js";
30
+ import "../assert_rejects-7UF4R_Qs.js";
31
+ import "../assert_is_error-B035L3om.js";
32
+ import "../assert_not_equals-C80BG-_5.js";
33
+ import "../assert_throws-53_pKeP3.js";
35
34
 
36
35
  //#region src/webfinger/handler.test.ts
37
36
  test("handleWebFinger()", async (t) => {
@@ -3,18 +3,18 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import { lookupWebFinger } from "../type-qs0mWLTm.js";
6
+ import { lookupWebFinger } from "../type-CAteiET0.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-CnJK1NUl.js";
11
- import { test } from "../testing-D4xRiVJV.js";
12
- import "../std__assert-X-_kMxKM.js";
13
- import "../assert_rejects-DiIiJbZn.js";
14
- import "../assert_is_error-BPGph1Jx.js";
15
- import "../assert_not_equals-f3m3epl3.js";
16
- import "../assert_throws-BOO88avQ.js";
17
- import { esm_default } from "../esm-5nsZYnVB.js";
10
+ import "../lookup-DuzrBbTj.js";
11
+ import { test } from "../testing-CdBSI4xF.js";
12
+ import "../std__assert-DWivtrGR.js";
13
+ import "../assert_rejects-7UF4R_Qs.js";
14
+ import "../assert_is_error-B035L3om.js";
15
+ import "../assert_not_equals-C80BG-_5.js";
16
+ import "../assert_throws-53_pKeP3.js";
17
+ import { esm_default } from "../esm-CXF1VoeR.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-9_osWaaH.js";
6
- import { lookupWebFinger } from "../lookup-BNFlahf3.js";
5
+ import "../docloader-CkASOfZ5.js";
6
+ import { lookupWebFinger } from "../lookup-Cz9VSYxw.js";
7
7
  import "../webfinger-C3GIyXIg.js";
8
8
 
9
9
  export { lookupWebFinger };
@@ -3,17 +3,17 @@
3
3
  import { URLPattern } from "urlpattern-polyfill";
4
4
  globalThis.addEventListener = () => {};
5
5
 
6
- import "../type-qs0mWLTm.js";
6
+ import "../type-CAteiET0.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-CnJK1NUl.js";
11
- import { test } from "../testing-D4xRiVJV.js";
12
- import "../std__assert-X-_kMxKM.js";
13
- import "../assert_rejects-DiIiJbZn.js";
14
- import "../assert_is_error-BPGph1Jx.js";
15
- import "../assert_not_equals-f3m3epl3.js";
16
- import "../assert_throws-BOO88avQ.js";
10
+ import "../lookup-DuzrBbTj.js";
11
+ import { test } from "../testing-CdBSI4xF.js";
12
+ import "../std__assert-DWivtrGR.js";
13
+ import "../assert_rejects-7UF4R_Qs.js";
14
+ import "../assert_is_error-B035L3om.js";
15
+ import "../assert_not_equals-C80BG-_5.js";
16
+ import "../assert_throws-53_pKeP3.js";
17
17
  import { delay } from "es-toolkit";
18
18
  import { getLogger } from "@logtape/logtape";
19
19
 
package/dist/x/hono.d.ts CHANGED
@@ -2,14 +2,14 @@ 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 "../client-DF8anIB5.js";
5
+ import "../client-bgSdkFa2.js";
6
6
  import "../vocab-SOE1ifCr.js";
7
7
  import "../actor-C22bXuuC.js";
8
8
  import "../http-DqSNLFNY.js";
9
9
  import "../owner-CQPnQVtf.js";
10
10
  import "../mod-Cxt4Kpf6.js";
11
11
  import "../mod-DBzN0aCM.js";
12
- import { Federation } from "../context-9gCpIkiz.js";
12
+ import { Federation } from "../context-CDSZdQHD.js";
13
13
  import "../mq-CRGm1e_F.js";
14
14
 
15
15
  //#region src/x/hono.d.ts
@@ -2,14 +2,14 @@ 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 "../client-DF8anIB5.js";
5
+ import "../client-bgSdkFa2.js";
6
6
  import "../vocab-SOE1ifCr.js";
7
7
  import "../actor-C22bXuuC.js";
8
8
  import "../http-DqSNLFNY.js";
9
9
  import "../owner-CQPnQVtf.js";
10
10
  import "../mod-Cxt4Kpf6.js";
11
11
  import "../mod-DBzN0aCM.js";
12
- import { Federation } from "../context-9gCpIkiz.js";
12
+ import { Federation } from "../context-CDSZdQHD.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": "2.0.0-dev.1593+78eea8c8",
3
+ "version": "2.0.0-dev.1604+23a1ea67",
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-9_osWaaH.js";
7
- import "./actor-DNwcqwPT.js";
8
- import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-tfSiCl9w.js";
9
- import "./lookup-BNFlahf3.js";
10
- import "./key-CNCeen0u.js";
11
- import "./http-BqklewFY.js";
12
- import "./proof-D436ezTT.js";
13
- import "./types-RbpvCErq.js";
14
- import "./authdocloader-qkvj_KZY.js";
15
- import "./vocab-r-I1_ZmK.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-qs0mWLTm.js";
7
- import { ContextImpl, FederationImpl, InboxContextImpl, KvSpecDeterminer, createFederation } from "./middleware-CovCqg8w.js";
8
- import "./semver-dArNLkR9.js";
9
- import "./client-CpxFv8ft.js";
10
- import "./lookup-CnJK1NUl.js";
11
- import "./types-BIgY6c-l.js";
12
- import "./actor-Bj1Vq2XG.js";
13
- import "./key-D-s3dQbK.js";
14
- import "./http-CQulyTuw.js";
15
- import "./authdocloader-DJtdyVPc.js";
16
- import "./ld-CYUQO1l4.js";
17
- import "./owner-CBeUJR68.js";
18
- import "./proof-CHQnDg0z.js";
19
- import "./inbox-B97Wrppe.js";
20
- import "./builder-BgzJcrpt.js";
21
- import "./collection-CSzG2j1P.js";
22
- import "./keycache-Br0-hsD5.js";
23
- import "./retry-D4GJ670a.js";
24
- import "./send-Bc0QdRlp.js";
25
-
26
- export { FederationImpl };
@@ -1,3 +0,0 @@
1
- import { Temporal } from "@js-temporal/polyfill";
2
- import { URLPattern } from "urlpattern-polyfill";
3
- globalThis.addEventListener = () => {};