@fedify/fedify 1.4.6 → 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 CHANGED
@@ -3,6 +3,19 @@
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
+
6
19
  Version 1.4.6
7
20
  -------------
8
21
 
@@ -166,6 +179,19 @@ Released on February 5, 2025.
166
179
  [#195]: https://github.com/fedify-dev/fedify/issues/195
167
180
 
168
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
+
169
195
  Version 1.3.13
170
196
  --------------
171
197
 
@@ -445,6 +471,19 @@ Released on November 30, 2024.
445
471
  [#193]: https://github.com/fedify-dev/fedify/issues/193
446
472
 
447
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
+
448
487
  Version 1.2.17
449
488
  --------------
450
489
 
@@ -773,6 +812,19 @@ Released on October 31, 2024.
773
812
  [#118]: https://github.com/fedify-dev/fedify/issues/118
774
813
 
775
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
+
776
828
  Version 1.1.17
777
829
  --------------
778
830
 
@@ -1142,6 +1194,23 @@ Released on October 20, 2024.
1142
1194
  [#150]: https://github.com/fedify-dev/fedify/issues/150
1143
1195
 
1144
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
+
1145
1214
  Version 1.0.20
1146
1215
  --------------
1147
1216
 
@@ -3307,4 +3376,4 @@ Version 0.1.0
3307
3376
  Initial release. Released on March 8, 2024.
3308
3377
 
3309
3378
  <!-- cSpell: ignore Dogeon Fabien Wressell Emelia Fróði Karlsson -->
3310
- <!-- cSpell: ignore Hana Heesun Kyunghee Jiyu -->
3379
+ <!-- cSpell: ignore Hana Heesun Kyunghee Jiyu Revath Kumar -->
package/esm/deno.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "@fedify/fedify",
3
- "version": "1.4.6",
3
+ "version": "1.4.7",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./mod.ts",
@@ -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
- const u = new URL(baseUrl);
1444
- baseUrl = `${u.origin}/`;
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",