@fedify/fedify 1.3.12 → 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,29 @@
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
+
19
+ Version 1.3.13
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.3.12
7
30
  --------------
8
31
 
@@ -272,6 +295,29 @@ Released on November 30, 2024.
272
295
  [#193]: https://github.com/fedify-dev/fedify/issues/193
273
296
 
274
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
+
311
+ Version 1.2.17
312
+ --------------
313
+
314
+ Released on March 9, 2025.
315
+
316
+ - Fedify no more depends on `node:punycode` module, which is deprecated in
317
+ Node.js. Now it uses the built-in `node:url` module instead.
318
+ [[#212], [#214] by Fróði Karlsson]
319
+
320
+
275
321
  Version 1.2.16
276
322
  --------------
277
323
 
@@ -590,6 +636,29 @@ Released on October 31, 2024.
590
636
  [#118]: https://github.com/fedify-dev/fedify/issues/118
591
637
 
592
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
+
652
+ Version 1.1.17
653
+ --------------
654
+
655
+ Released on March 9, 2025.
656
+
657
+ - Fedify no more depends on `node:punycode` module, which is deprecated in
658
+ Node.js. Now it uses the built-in `node:url` module instead.
659
+ [[#212], [#214] by Fróði Karlsson]
660
+
661
+
593
662
  Version 1.1.16
594
663
  --------------
595
664
 
@@ -949,6 +1018,36 @@ Released on October 20, 2024.
949
1018
  [#150]: https://github.com/fedify-dev/fedify/issues/150
950
1019
 
951
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
+
1038
+ Version 1.0.20
1039
+ --------------
1040
+
1041
+ Released on March 9, 2025.
1042
+
1043
+ - Fedify no more depends on `node:punycode` module, which is deprecated in
1044
+ Node.js. Now it uses the built-in `node:url` module instead.
1045
+ [[#212], [#214] by Fróði Karlsson]
1046
+
1047
+ [#212]: https://github.com/fedify-dev/fedify/issues/212
1048
+ [#214]: https://github.com/fedify-dev/fedify/pull/214
1049
+
1050
+
952
1051
  Version 1.0.19
953
1052
  --------------
954
1053
 
@@ -3100,4 +3199,10 @@ Version 0.1.0
3100
3199
 
3101
3200
  Initial release. Released on March 8, 2024.
3102
3201
 
3103
- <!-- cSpell: ignore Dogeon Fabien Wressell Emelia Hana Heesun Kyunghee Jiyu -->
3202
+ <!-- cSpell: ignore Dogeon Fabien Wressell Emelia Fróði Karlsson -->
3203
+ <<<<<<< HEAD
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.12",
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",
@@ -1,5 +1,5 @@
1
1
  import { SpanStatusCode, trace } from "@opentelemetry/api";
2
- import { toASCII, toUnicode } from "node:punycode";
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 ? toASCII(domain) : toUnicode(domain);
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}`;
@@ -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.10/delay.js";
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";