@fedify/fedify 1.1.16 → 1.1.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 +24 -1
- package/esm/vocab/actor.js +2 -2
- package/esm/vocab/lookup.js +1 -1
- package/esm/webfinger/handler.js +2 -2
- package/package.json +1 -1
- package/types/deps/jsr.io/@std/async/{1.0.10 → 1.0.11}/delay.d.ts.map +1 -1
- package/types/webfinger/handler.d.ts.map +1 -1
- /package/esm/deps/jsr.io/@std/async/{1.0.10 → 1.0.11}/delay.js +0 -0
- /package/types/deps/jsr.io/@std/async/{1.0.10 → 1.0.11}/delay.d.ts +0 -0
package/CHANGES.md
CHANGED
@@ -3,6 +3,16 @@
|
|
3
3
|
Fedify changelog
|
4
4
|
================
|
5
5
|
|
6
|
+
Version 1.1.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
|
+
|
6
16
|
Version 1.1.16
|
7
17
|
--------------
|
8
18
|
|
@@ -362,6 +372,19 @@ Released on October 20, 2024.
|
|
362
372
|
[#150]: https://github.com/dahlia/fedify/issues/150
|
363
373
|
|
364
374
|
|
375
|
+
Version 1.0.20
|
376
|
+
--------------
|
377
|
+
|
378
|
+
Released on March 9, 2025.
|
379
|
+
|
380
|
+
- Fedify no more depends on `node:punycode` module, which is deprecated in
|
381
|
+
Node.js. Now it uses the built-in `node:url` module instead.
|
382
|
+
[[#212], [#214] by Fróði Karlsson]
|
383
|
+
|
384
|
+
[#212]: https://github.com/fedify-dev/fedify/issues/212
|
385
|
+
[#214]: https://github.com/fedify-dev/fedify/pull/214
|
386
|
+
|
387
|
+
|
365
388
|
Version 1.0.19
|
366
389
|
--------------
|
367
390
|
|
@@ -2515,4 +2538,4 @@ Version 0.1.0
|
|
2515
2538
|
|
2516
2539
|
Initial release. Released on March 8, 2024.
|
2517
2540
|
|
2518
|
-
<!-- cSpell: ignore Dogeon Fabien Wressell Emelia -->
|
2541
|
+
<!-- cSpell: ignore Dogeon Fabien Wressell Emelia Fróði Karlsson -->
|
package/esm/vocab/actor.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
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 ?
|
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}`;
|
package/esm/vocab/lookup.js
CHANGED
@@ -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.
|
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";
|
package/esm/webfinger/handler.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { getLogger } from "@logtape/logtape";
|
2
|
-
import {
|
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 ||
|
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 +1 @@
|
|
1
|
-
{"version":3,"file":"delay.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/async/1.0.
|
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,CAAC,EAAE,eAAe,CAAC,YAAY,CAAC,CAAC;IAEhD;;;OAGG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,YAAY,CAAC,CAAC;IAEpD;;OAEG;IACH,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;CAC5D;AAED;;;;;;GAMG;AACH,wBAAsB,eAAe,CAAC,YAAY,EAChD,OAAO,EAAE,OAAO,EAChB,EACE,OAAO,EACP,eAAe,EACf,iBAAiB,EACjB,UAAU,GACX,EAAE,0BAA0B,CAAC,YAAY,CAAC,GAC1C,OAAO,CAAC,QAAQ,CAAC,
|
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,CAAC,EAAE,eAAe,CAAC,YAAY,CAAC,CAAC;IAEhD;;;OAGG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,YAAY,CAAC,CAAC;IAEpD;;OAEG;IACH,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;CAC5D;AAED;;;;;;GAMG;AACH,wBAAsB,eAAe,CAAC,YAAY,EAChD,OAAO,EAAE,OAAO,EAChB,EACE,OAAO,EACP,eAAe,EACf,iBAAiB,EACjB,UAAU,GACX,EAAE,0BAA0B,CAAC,YAAY,CAAC,GAC1C,OAAO,CAAC,QAAQ,CAAC,CAiGnB"}
|
File without changes
|
File without changes
|