@fedify/fedify 1.3.13 → 1.3.14

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 CHANGED
@@ -3,6 +3,19 @@
3
3
  Fedify changelog
4
4
  ================
5
5
 
6
+ Version 1.3.14
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
+
6
19
  Version 1.3.13
7
20
  --------------
8
21
 
@@ -282,6 +295,19 @@ Released on November 30, 2024.
282
295
  [#193]: https://github.com/fedify-dev/fedify/issues/193
283
296
 
284
297
 
298
+ Version 1.2.18
299
+ --------------
300
+
301
+ Released on March 20, 2025.
302
+
303
+ - Fixed a bug of WebFinger handler where it had failed to match
304
+ `acct:` URIs with a host having a port number.
305
+ [[#218], [#219] by Revath S Kumar]
306
+
307
+ - Fixed a server error thrown when an invalid URL was passed to the `base-url`
308
+ parameter of the followers collection. [[#217]]
309
+
310
+
285
311
  Version 1.2.17
286
312
  --------------
287
313
 
@@ -610,6 +636,19 @@ Released on October 31, 2024.
610
636
  [#118]: https://github.com/fedify-dev/fedify/issues/118
611
637
 
612
638
 
639
+ Version 1.1.18
640
+ --------------
641
+
642
+ Released on March 20, 2025.
643
+
644
+ - Fixed a bug of WebFinger handler where it had failed to match
645
+ `acct:` URIs with a host having a port number.
646
+ [[#218], [#219] by Revath S Kumar]
647
+
648
+ - Fixed a server error thrown when an invalid URL was passed to the `base-url`
649
+ parameter of the followers collection. [[#217]]
650
+
651
+
613
652
  Version 1.1.17
614
653
  --------------
615
654
 
@@ -979,6 +1018,23 @@ Released on October 20, 2024.
979
1018
  [#150]: https://github.com/fedify-dev/fedify/issues/150
980
1019
 
981
1020
 
1021
+ Version 1.0.21
1022
+ --------------
1023
+
1024
+ Released on March 20, 2025.
1025
+
1026
+ - Fixed a bug of WebFinger handler where it had failed to match
1027
+ `acct:` URIs with a host having a port number.
1028
+ [[#218], [#219] by Revath S Kumar]
1029
+
1030
+ - Fixed a server error thrown when an invalid URL was passed to the `base-url`
1031
+ parameter of the followers collection. [[#217]]
1032
+
1033
+ [#217]: https://github.com/fedify-dev/fedify/issues/217
1034
+ [#218]: https://github.com/fedify-dev/fedify/issues/218
1035
+ [#219]: https://github.com/fedify-dev/fedify/pull/219
1036
+
1037
+
982
1038
  Version 1.0.20
983
1039
  --------------
984
1040
 
@@ -3144,4 +3200,9 @@ Version 0.1.0
3144
3200
  Initial release. Released on March 8, 2024.
3145
3201
 
3146
3202
  <!-- cSpell: ignore Dogeon Fabien Wressell Emelia Fróði Karlsson -->
3203
+ <<<<<<< HEAD
3147
3204
  <!-- cSpell: ignore Hana Heesun Kyunghee Jiyu -->
3205
+ ||||||| 603a97c
3206
+ =======
3207
+ <!-- cSpell: ignore Revath Kumar -->
3208
+ >>>>>>> 1.2.18
package/esm/deno.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "@fedify/fedify",
3
- "version": "1.3.13",
3
+ "version": "1.3.14",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./mod.ts",
@@ -1382,8 +1382,13 @@ export class FederationImpl {
1382
1382
  case "followers": {
1383
1383
  let baseUrl = url.searchParams.get("base-url");
1384
1384
  if (baseUrl != null) {
1385
- const u = new URL(baseUrl);
1386
- baseUrl = `${u.origin}/`;
1385
+ try {
1386
+ baseUrl = `${new URL(baseUrl).origin}/`;
1387
+ }
1388
+ catch {
1389
+ // If base-url is invalid, set to null to behave as if it wasn't provided
1390
+ baseUrl = null;
1391
+ }
1387
1392
  }
1388
1393
  return await handleCollection(request, {
1389
1394
  name: "followers",