@fedify/fedify 1.2.15 → 1.2.17

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,33 @@
3
3
  Fedify changelog
4
4
  ================
5
5
 
6
+ Version 1.2.17
7
+ --------------
8
+
9
+ Released on March 9, 2025.
10
+
11
+ - Fedify no more depends on `node:punycode` module, which is deprecated in
12
+ Node.js. Now it uses the built-in `node:url` module instead.
13
+ [[#212], [#214] by Fróði Karlsson]
14
+
15
+
16
+ Version 1.2.16
17
+ --------------
18
+
19
+ Released on February 28, 2025.
20
+
21
+ - Made `fedify init` to install *@fedify/h3* 0.1.2 which is compatible with
22
+ Fedify 1.0.0 or later versions when `--web-framework nitro` option is
23
+ provided. [[#213]]
24
+
25
+ - Fixed a bug where `fedify init` had failed to initialize a project with
26
+ the `--runtime node --package-manager pnpm --web-framework nitro` option.
27
+ [[#213]]
28
+
29
+ - Made `fedify init` to install *@logtape/logtape* 0.7.2 which is the version
30
+ used in Fedify 1.1.x.
31
+
32
+
6
33
  Version 1.2.15
7
34
  --------------
8
35
 
@@ -304,6 +331,33 @@ Released on October 31, 2024.
304
331
  [#118]: https://github.com/dahlia/fedify/issues/118
305
332
 
306
333
 
334
+ Version 1.1.17
335
+ --------------
336
+
337
+ Released on March 9, 2025.
338
+
339
+ - Fedify no more depends on `node:punycode` module, which is deprecated in
340
+ Node.js. Now it uses the built-in `node:url` module instead.
341
+ [[#212], [#214] by Fróði Karlsson]
342
+
343
+
344
+ Version 1.1.16
345
+ --------------
346
+
347
+ Released on February 28, 2025.
348
+
349
+ - Made `fedify init` to install *@fedify/h3* 0.1.2 which is compatible with
350
+ Fedify 1.0.0 or later versions when `--web-framework nitro` option is
351
+ provided. [[#213]]
352
+
353
+ - Fixed a bug where `fedify init` had failed to initialize a project with
354
+ the `--runtime node --package-manager pnpm --web-framework nitro` option.
355
+ [[#213]]
356
+
357
+ - Made `fedify init` to install *@logtape/logtape* 0.6.5 which is the version
358
+ used in Fedify 1.1.x.
359
+
360
+
307
361
  Version 1.1.15
308
362
  --------------
309
363
 
@@ -646,6 +700,38 @@ Released on October 20, 2024.
646
700
  [#150]: https://github.com/dahlia/fedify/issues/150
647
701
 
648
702
 
703
+ Version 1.0.20
704
+ --------------
705
+
706
+ Released on March 9, 2025.
707
+
708
+ - Fedify no more depends on `node:punycode` module, which is deprecated in
709
+ Node.js. Now it uses the built-in `node:url` module instead.
710
+ [[#212], [#214] by Fróði Karlsson]
711
+
712
+ [#212]: https://github.com/fedify-dev/fedify/issues/212
713
+ [#214]: https://github.com/fedify-dev/fedify/pull/214
714
+
715
+
716
+ Version 1.0.19
717
+ --------------
718
+
719
+ Released on February 28, 2025.
720
+
721
+ - Made `fedify init` to install *@fedify/h3* 0.1.2 which is compatible with
722
+ Fedify 1.0.0 or later versions when `--web-framework nitro` option is
723
+ provided. [[#213]]
724
+
725
+ - Fixed a bug where `fedify init` had failed to initialize a project with
726
+ the `--runtime node --package-manager pnpm --web-framework nitro` option.
727
+ [[#213]]
728
+
729
+ - Made `fedify init` to install *@logtape/logtape* 0.6.5 which is the version
730
+ used in Fedify 1.0.x.
731
+
732
+ [#213]: https://github.com/fedify-dev/fedify/issues/213
733
+
734
+
649
735
  Version 1.0.18
650
736
  --------------
651
737
 
@@ -2780,4 +2866,4 @@ Version 0.1.0
2780
2866
 
2781
2867
  Initial release. Released on March 8, 2024.
2782
2868
 
2783
- <!-- cSpell: ignore Dogeon Fabien Wressell Emelia -->
2869
+ <!-- cSpell: ignore Dogeon Fabien Wressell Emelia Fróði Karlsson -->
@@ -1,4 +1,4 @@
1
- import { toASCII, toUnicode } from "node:punycode";
1
+ import { domainToASCII, domainToUnicode } from "node:url";
2
2
  import { lookupWebFinger } from "../webfinger/lookup.js";
3
3
  import { Application, Group, Organization, Person, Service } from "./vocab.js";
4
4
  /**
@@ -130,7 +130,7 @@ export function normalizeActorHandle(handle, options = {}) {
130
130
  throw new TypeError("Invalid actor handle.");
131
131
  }
132
132
  domain = domain.toLowerCase();
133
- domain = options.punycode ? toASCII(domain) : toUnicode(domain);
133
+ domain = options.punycode ? domainToASCII(domain) : domainToUnicode(domain);
134
134
  domain = domain.toLowerCase();
135
135
  const user = handle.substring(0, atPos);
136
136
  return options.trimLeadingAt ? `${user}@${domain}` : `@${user}@${domain}`;
@@ -1,6 +1,6 @@
1
1
  import * as dntShim from "../_dnt.shims.js";
2
2
  import { getLogger } from "@logtape/logtape";
3
- import { delay } from "../deps/jsr.io/@std/async/1.0.10/delay.js";
3
+ import { delay } from "../deps/jsr.io/@std/async/1.0.11/delay.js";
4
4
  import { fetchDocumentLoader, } from "../runtime/docloader.js";
5
5
  import { lookupWebFinger } from "../webfinger/lookup.js";
6
6
  import { Object } from "./vocab.js";
@@ -1,5 +1,5 @@
1
1
  import { getLogger } from "@logtape/logtape";
2
- import { toASCII } from "node:punycode";
2
+ import { domainToASCII } from "node:url";
3
3
  import { Link as LinkObject } from "../vocab/mod.js";
4
4
  const logger = getLogger(["fedify", "webfinger", "server"]);
5
5
  /**
@@ -34,7 +34,7 @@ export async function handleWebFinger(request, { context, actorDispatcher, actor
34
34
  const uriParsed = context.parseUri(resourceUrl);
35
35
  if (uriParsed?.type != "actor") {
36
36
  const match = /^acct:([^@]+)@([^@]+)$/.exec(resource);
37
- if (match == null || toASCII(match[2].toLowerCase()) != context.url.host) {
37
+ if (match == null || domainToASCII(match[2].toLowerCase()) != context.url.host) {
38
38
  return await onNotFound(request);
39
39
  }
40
40
  const username = match[1];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/fedify",
3
- "version": "1.2.15",
3
+ "version": "1.2.17",
4
4
  "description": "An ActivityPub server framework",
5
5
  "keywords": [
6
6
  "ActivityPub",
@@ -77,7 +77,7 @@
77
77
  ],
78
78
  "dependencies": {
79
79
  "@hugoalh/http-header-link": "^1.0.2",
80
- "@logtape/logtape": "^0.7.1",
80
+ "@logtape/logtape": "^0.7.2",
81
81
  "@phensley/language-tag": "^1.9.0",
82
82
  "asn1js": "^3.0.5",
83
83
  "json-canon": "^1.0.1",
@@ -1 +1 @@
1
- {"version":3,"file":"delay.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/async/1.0.10/delay.ts"],"names":[],"mappings":";AAMA,MAAM,WAAW,YAAY;IAC3B,sCAAsC;IACtC,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,GAAE,YAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CA2B3E"}
1
+ {"version":3,"file":"delay.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/async/1.0.11/delay.ts"],"names":[],"mappings":";AAMA,MAAM,WAAW,YAAY;IAC3B,sCAAsC;IACtC,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,GAAE,YAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CA2B3E"}
@@ -1 +1 @@
1
- {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../src/webfinger/handler.ts"],"names":[],"mappings":";AAEA,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EAClB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAM/D;;GAEG;AACH,MAAM,WAAW,0BAA0B,CAAC,YAAY;IACtD;;OAEG;IACH,OAAO,EAAE,cAAc,CAAC,YAAY,CAAC,CAAC;IAEtC;;OAEG;IACH,eAAe,C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