@fedify/fedify 1.5.0-dev.718 → 1.5.0-dev.729

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
@@ -74,6 +74,19 @@ To be released.
74
74
  [multibase]: https://github.com/multiformats/js-multibase
75
75
 
76
76
 
77
+ Version 1.4.7
78
+ -------------
79
+
80
+ Released on March 20, 2025.
81
+
82
+ - Fixed a bug of WebFinger handler where it had failed to match
83
+ `acct:` URIs with a host having a port number.
84
+ [[#218], [#219] by Revath S Kumar]
85
+
86
+ - Fixed a server error thrown when an invalid URL was passed to the `base-url`
87
+ parameter of the followers collection. [[#217]]
88
+
89
+
77
90
  Version 1.4.6
78
91
  -------------
79
92
 
@@ -237,6 +250,19 @@ Released on February 5, 2025.
237
250
  [#195]: https://github.com/fedify-dev/fedify/issues/195
238
251
 
239
252
 
253
+ Version 1.3.14
254
+ --------------
255
+
256
+ Released on March 20, 2025.
257
+
258
+ - Fixed a bug of WebFinger handler where it had failed to match
259
+ `acct:` URIs with a host having a port number.
260
+ [[#218], [#219] by Revath S Kumar]
261
+
262
+ - Fixed a server error thrown when an invalid URL was passed to the `base-url`
263
+ parameter of the followers collection. [[#217]]
264
+
265
+
240
266
  Version 1.3.13
241
267
  --------------
242
268
 
@@ -516,6 +542,19 @@ Released on November 30, 2024.
516
542
  [#193]: https://github.com/fedify-dev/fedify/issues/193
517
543
 
518
544
 
545
+ Version 1.2.18
546
+ --------------
547
+
548
+ Released on March 20, 2025.
549
+
550
+ - Fixed a bug of WebFinger handler where it had failed to match
551
+ `acct:` URIs with a host having a port number.
552
+ [[#218], [#219] by Revath S Kumar]
553
+
554
+ - Fixed a server error thrown when an invalid URL was passed to the `base-url`
555
+ parameter of the followers collection. [[#217]]
556
+
557
+
519
558
  Version 1.2.17
520
559
  --------------
521
560
 
@@ -844,6 +883,19 @@ Released on October 31, 2024.
844
883
  [#118]: https://github.com/fedify-dev/fedify/issues/118
845
884
 
846
885
 
886
+ Version 1.1.18
887
+ --------------
888
+
889
+ Released on March 20, 2025.
890
+
891
+ - Fixed a bug of WebFinger handler where it had failed to match
892
+ `acct:` URIs with a host having a port number.
893
+ [[#218], [#219] by Revath S Kumar]
894
+
895
+ - Fixed a server error thrown when an invalid URL was passed to the `base-url`
896
+ parameter of the followers collection. [[#217]]
897
+
898
+
847
899
  Version 1.1.17
848
900
  --------------
849
901
 
@@ -1213,6 +1265,23 @@ Released on October 20, 2024.
1213
1265
  [#150]: https://github.com/fedify-dev/fedify/issues/150
1214
1266
 
1215
1267
 
1268
+ Version 1.0.21
1269
+ --------------
1270
+
1271
+ Released on March 20, 2025.
1272
+
1273
+ - Fixed a bug of WebFinger handler where it had failed to match
1274
+ `acct:` URIs with a host having a port number.
1275
+ [[#218], [#219] by Revath S Kumar]
1276
+
1277
+ - Fixed a server error thrown when an invalid URL was passed to the `base-url`
1278
+ parameter of the followers collection. [[#217]]
1279
+
1280
+ [#217]: https://github.com/fedify-dev/fedify/issues/217
1281
+ [#218]: https://github.com/fedify-dev/fedify/issues/218
1282
+ [#219]: https://github.com/fedify-dev/fedify/pull/219
1283
+
1284
+
1216
1285
  Version 1.0.20
1217
1286
  --------------
1218
1287
 
@@ -3378,4 +3447,4 @@ Version 0.1.0
3378
3447
  Initial release. Released on March 8, 2024.
3379
3448
 
3380
3449
  <!-- cSpell: ignore Dogeon Fabien Wressell Emelia Fróði Karlsson -->
3381
- <!-- cSpell: ignore Hana Heesun Kyunghee Jiyu -->
3450
+ <!-- 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.5.0-dev.718+37c51836",
3
+ "version": "1.5.0-dev.729+010d765a",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./mod.ts",
@@ -1472,8 +1472,13 @@ export class FederationImpl {
1472
1472
  case "followers": {
1473
1473
  let baseUrl = url.searchParams.get("base-url");
1474
1474
  if (baseUrl != null) {
1475
- const u = new URL(baseUrl);
1476
- baseUrl = `${u.origin}/`;
1475
+ try {
1476
+ baseUrl = `${new URL(baseUrl).origin}/`;
1477
+ }
1478
+ catch {
1479
+ // If base-url is invalid, set to null to behave as if it wasn't provided
1480
+ baseUrl = null;
1481
+ }
1477
1482
  }
1478
1483
  return await handleCollection(request, {
1479
1484
  name: "followers",