@fedify/fedify 1.4.5 → 1.4.7
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.
- package/CHANGES.md +124 -1
- package/README.md +1 -1
- package/esm/deno.js +1 -1
- package/esm/federation/middleware.js +7 -2
- package/esm/vocab/actor.js +2 -2
- package/esm/vocab/lookup.js +1 -1
- package/esm/vocab/vocab.js +176 -176
- package/esm/webfinger/handler.js +13 -6
- package/package.json +1 -1
- package/types/deps/jsr.io/@std/async/{1.0.10 → 1.0.11}/delay.d.ts.map +1 -1
- package/types/federation/middleware.d.ts.map +1 -1
- /package/esm/deps/jsr.io/@std/async/{1.0.10 → 1.0.11}/delay.js +0 -0
- /package/types/deps/jsr.io/@std/async/{1.0.10 → 1.0.11}/delay.d.ts +0 -0
package/CHANGES.md
CHANGED
@@ -3,6 +3,29 @@
|
|
3
3
|
Fedify changelog
|
4
4
|
================
|
5
5
|
|
6
|
+
Version 1.4.7
|
7
|
+
-------------
|
8
|
+
|
9
|
+
Released on March 20, 2025.
|
10
|
+
|
11
|
+
- Fixed a bug of WebFinger handler where it had failed to match
|
12
|
+
`acct:` URIs with a host having a port number.
|
13
|
+
[[#218], [#219] by Revath S Kumar]
|
14
|
+
|
15
|
+
- Fixed a server error thrown when an invalid URL was passed to the `base-url`
|
16
|
+
parameter of the followers collection. [[#217]]
|
17
|
+
|
18
|
+
|
19
|
+
Version 1.4.6
|
20
|
+
-------------
|
21
|
+
|
22
|
+
Released on March 9, 2025.
|
23
|
+
|
24
|
+
- Fedify no more depends on `node:punycode` module, which is deprecated in
|
25
|
+
Node.js. Now it uses the built-in `node:url` module instead.
|
26
|
+
[[#212], [#214] by Fróði Karlsson]
|
27
|
+
|
28
|
+
|
6
29
|
Version 1.4.5
|
7
30
|
-------------
|
8
31
|
|
@@ -156,6 +179,29 @@ Released on February 5, 2025.
|
|
156
179
|
[#195]: https://github.com/fedify-dev/fedify/issues/195
|
157
180
|
|
158
181
|
|
182
|
+
Version 1.3.14
|
183
|
+
--------------
|
184
|
+
|
185
|
+
Released on March 20, 2025.
|
186
|
+
|
187
|
+
- Fixed a bug of WebFinger handler where it had failed to match
|
188
|
+
`acct:` URIs with a host having a port number.
|
189
|
+
[[#218], [#219] by Revath S Kumar]
|
190
|
+
|
191
|
+
- Fixed a server error thrown when an invalid URL was passed to the `base-url`
|
192
|
+
parameter of the followers collection. [[#217]]
|
193
|
+
|
194
|
+
|
195
|
+
Version 1.3.13
|
196
|
+
--------------
|
197
|
+
|
198
|
+
Released on March 9, 2025.
|
199
|
+
|
200
|
+
- Fedify no more depends on `node:punycode` module, which is deprecated in
|
201
|
+
Node.js. Now it uses the built-in `node:url` module instead.
|
202
|
+
[[#212], [#214] by Fróði Karlsson]
|
203
|
+
|
204
|
+
|
159
205
|
Version 1.3.12
|
160
206
|
--------------
|
161
207
|
|
@@ -425,6 +471,29 @@ Released on November 30, 2024.
|
|
425
471
|
[#193]: https://github.com/fedify-dev/fedify/issues/193
|
426
472
|
|
427
473
|
|
474
|
+
Version 1.2.18
|
475
|
+
--------------
|
476
|
+
|
477
|
+
Released on March 20, 2025.
|
478
|
+
|
479
|
+
- Fixed a bug of WebFinger handler where it had failed to match
|
480
|
+
`acct:` URIs with a host having a port number.
|
481
|
+
[[#218], [#219] by Revath S Kumar]
|
482
|
+
|
483
|
+
- Fixed a server error thrown when an invalid URL was passed to the `base-url`
|
484
|
+
parameter of the followers collection. [[#217]]
|
485
|
+
|
486
|
+
|
487
|
+
Version 1.2.17
|
488
|
+
--------------
|
489
|
+
|
490
|
+
Released on March 9, 2025.
|
491
|
+
|
492
|
+
- Fedify no more depends on `node:punycode` module, which is deprecated in
|
493
|
+
Node.js. Now it uses the built-in `node:url` module instead.
|
494
|
+
[[#212], [#214] by Fróði Karlsson]
|
495
|
+
|
496
|
+
|
428
497
|
Version 1.2.16
|
429
498
|
--------------
|
430
499
|
|
@@ -743,6 +812,29 @@ Released on October 31, 2024.
|
|
743
812
|
[#118]: https://github.com/fedify-dev/fedify/issues/118
|
744
813
|
|
745
814
|
|
815
|
+
Version 1.1.18
|
816
|
+
--------------
|
817
|
+
|
818
|
+
Released on March 20, 2025.
|
819
|
+
|
820
|
+
- Fixed a bug of WebFinger handler where it had failed to match
|
821
|
+
`acct:` URIs with a host having a port number.
|
822
|
+
[[#218], [#219] by Revath S Kumar]
|
823
|
+
|
824
|
+
- Fixed a server error thrown when an invalid URL was passed to the `base-url`
|
825
|
+
parameter of the followers collection. [[#217]]
|
826
|
+
|
827
|
+
|
828
|
+
Version 1.1.17
|
829
|
+
--------------
|
830
|
+
|
831
|
+
Released on March 9, 2025.
|
832
|
+
|
833
|
+
- Fedify no more depends on `node:punycode` module, which is deprecated in
|
834
|
+
Node.js. Now it uses the built-in `node:url` module instead.
|
835
|
+
[[#212], [#214] by Fróði Karlsson]
|
836
|
+
|
837
|
+
|
746
838
|
Version 1.1.16
|
747
839
|
--------------
|
748
840
|
|
@@ -1102,6 +1194,36 @@ Released on October 20, 2024.
|
|
1102
1194
|
[#150]: https://github.com/fedify-dev/fedify/issues/150
|
1103
1195
|
|
1104
1196
|
|
1197
|
+
Version 1.0.21
|
1198
|
+
--------------
|
1199
|
+
|
1200
|
+
Released on March 20, 2025.
|
1201
|
+
|
1202
|
+
- Fixed a bug of WebFinger handler where it had failed to match
|
1203
|
+
`acct:` URIs with a host having a port number.
|
1204
|
+
[[#218], [#219] by Revath S Kumar]
|
1205
|
+
|
1206
|
+
- Fixed a server error thrown when an invalid URL was passed to the `base-url`
|
1207
|
+
parameter of the followers collection. [[#217]]
|
1208
|
+
|
1209
|
+
[#217]: https://github.com/fedify-dev/fedify/issues/217
|
1210
|
+
[#218]: https://github.com/fedify-dev/fedify/issues/218
|
1211
|
+
[#219]: https://github.com/fedify-dev/fedify/pull/219
|
1212
|
+
|
1213
|
+
|
1214
|
+
Version 1.0.20
|
1215
|
+
--------------
|
1216
|
+
|
1217
|
+
Released on March 9, 2025.
|
1218
|
+
|
1219
|
+
- Fedify no more depends on `node:punycode` module, which is deprecated in
|
1220
|
+
Node.js. Now it uses the built-in `node:url` module instead.
|
1221
|
+
[[#212], [#214] by Fróði Karlsson]
|
1222
|
+
|
1223
|
+
[#212]: https://github.com/fedify-dev/fedify/issues/212
|
1224
|
+
[#214]: https://github.com/fedify-dev/fedify/pull/214
|
1225
|
+
|
1226
|
+
|
1105
1227
|
Version 1.0.19
|
1106
1228
|
--------------
|
1107
1229
|
|
@@ -3253,4 +3375,5 @@ Version 0.1.0
|
|
3253
3375
|
|
3254
3376
|
Initial release. Released on March 8, 2024.
|
3255
3377
|
|
3256
|
-
<!-- cSpell: ignore Dogeon Fabien Wressell Emelia
|
3378
|
+
<!-- cSpell: ignore Dogeon Fabien Wressell Emelia Fróði Karlsson -->
|
3379
|
+
<!-- cSpell: ignore Hana Heesun Kyunghee Jiyu Revath Kumar -->
|
package/README.md
CHANGED
@@ -100,7 +100,7 @@ financial contributors:[^2]
|
|
100
100
|
|
101
101
|
### Backers
|
102
102
|
|
103
|
-
yamanoku,
|
103
|
+
yamanoku, taye, okin, Andy Piper, box464, Evan Prodromou, Rafael Goulart, malte, Encyclia
|
104
104
|
|
105
105
|
### One-time donations
|
106
106
|
|
package/esm/deno.js
CHANGED
@@ -1440,8 +1440,13 @@ export class FederationImpl {
|
|
1440
1440
|
case "followers": {
|
1441
1441
|
let baseUrl = url.searchParams.get("base-url");
|
1442
1442
|
if (baseUrl != null) {
|
1443
|
-
|
1444
|
-
|
1443
|
+
try {
|
1444
|
+
baseUrl = `${new URL(baseUrl).origin}/`;
|
1445
|
+
}
|
1446
|
+
catch {
|
1447
|
+
// If base-url is invalid, set to null to behave as if it wasn't provided
|
1448
|
+
baseUrl = null;
|
1449
|
+
}
|
1445
1450
|
}
|
1446
1451
|
return await handleCollection(request, {
|
1447
1452
|
name: "followers",
|
package/esm/vocab/actor.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
2
|
-
import {
|
2
|
+
import { domainToASCII, domainToUnicode } from "node:url";
|
3
3
|
import metadata from "../deno.js";
|
4
4
|
import { lookupWebFinger } from "../webfinger/lookup.js";
|
5
5
|
import { getTypeId } from "./type.js";
|
@@ -161,7 +161,7 @@ export function normalizeActorHandle(handle, options = {}) {
|
|
161
161
|
throw new TypeError("Invalid actor handle.");
|
162
162
|
}
|
163
163
|
domain = domain.toLowerCase();
|
164
|
-
domain = options.punycode ?
|
164
|
+
domain = options.punycode ? domainToASCII(domain) : domainToUnicode(domain);
|
165
165
|
domain = domain.toLowerCase();
|
166
166
|
const user = handle.substring(0, atPos);
|
167
167
|
return options.trimLeadingAt ? `${user}@${domain}` : `@${user}@${domain}`;
|
package/esm/vocab/lookup.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as dntShim from "../_dnt.shims.js";
|
2
2
|
import { getLogger } from "@logtape/logtape";
|
3
3
|
import { SpanStatusCode, trace } from "@opentelemetry/api";
|
4
|
-
import { delay } from "../deps/jsr.io/@std/async/1.0.
|
4
|
+
import { delay } from "../deps/jsr.io/@std/async/1.0.11/delay.js";
|
5
5
|
import metadata from "../deno.js";
|
6
6
|
import { getDocumentLoader, } from "../runtime/docloader.js";
|
7
7
|
import { lookupWebFinger } from "../webfinger/lookup.js";
|