Unverified Commit 1137a775 authored by Hong Minhee's avatar Hong Minhee
Browse files

Merge tag '1.3.13' into 1.4-maintenance

Fedify 1.3.13
parents 0afe7f8c 290b5be8
Loading
Loading
Loading
Loading
+49 −1
Original line number Diff line number Diff line
@@ -8,6 +8,10 @@ Version 1.4.6

To be released.

 -  Fedify no more depends on `node:punycode` module, which is deprecated in
    Node.js.  Now it uses the built-in `node:url` module instead.
    [[#212], [#214] by Fróði Karlsson]


Version 1.4.5
-------------
@@ -162,6 +166,16 @@ Released on February 5, 2025.
[#195]: https://github.com/fedify-dev/fedify/issues/195


Version 1.3.13
--------------

Released on March 9, 2025.

 -  Fedify no more depends on `node:punycode` module, which is deprecated in
    Node.js.  Now it uses the built-in `node:url` module instead.
    [[#212], [#214] by Fróði Karlsson]


Version 1.3.12
--------------

@@ -431,6 +445,16 @@ Released on November 30, 2024.
[#193]: https://github.com/fedify-dev/fedify/issues/193


Version 1.2.17
--------------

Released on March 9, 2025.

 -  Fedify no more depends on `node:punycode` module, which is deprecated in
    Node.js.  Now it uses the built-in `node:url` module instead.
    [[#212], [#214] by Fróði Karlsson]


Version 1.2.16
--------------

@@ -749,6 +773,16 @@ Released on October 31, 2024.
[#118]: https://github.com/fedify-dev/fedify/issues/118


Version 1.1.17
--------------

Released on March 9, 2025.

 -  Fedify no more depends on `node:punycode` module, which is deprecated in
    Node.js.  Now it uses the built-in `node:url` module instead.
    [[#212], [#214] by Fróði Karlsson]


Version 1.1.16
--------------

@@ -1108,6 +1142,19 @@ Released on October 20, 2024.
[#150]: https://github.com/fedify-dev/fedify/issues/150


Version 1.0.20
--------------

Released on March 9, 2025.

 -  Fedify no more depends on `node:punycode` module, which is deprecated in
    Node.js.  Now it uses the built-in `node:url` module instead.
    [[#212], [#214] by Fróði Karlsson]

[#212]: https://github.com/fedify-dev/fedify/issues/212
[#214]: https://github.com/fedify-dev/fedify/pull/214


Version 1.0.19
--------------

@@ -3259,4 +3306,5 @@ Version 0.1.0

Initial release.  Released on March 8, 2024.

<!-- cSpell: ignore Dogeon Fabien Wressell Emelia Hana Heesun Kyunghee Jiyu -->
<!-- cSpell: ignore Dogeon Fabien Wressell Emelia Fróði Karlsson -->
<!-- cSpell: ignore Hana Heesun Kyunghee Jiyu -->
+2 −2
Original line number Diff line number Diff line
import { SpanStatusCode, trace, type TracerProvider } from "@opentelemetry/api";
import { toASCII, toUnicode } from "node:punycode";
import { domainToASCII, domainToUnicode } from "node:url";
import metadata from "../deno.json" with { type: "json" };
import type { GetUserAgentOptions } from "../runtime/docloader.ts";
import { lookupWebFinger } from "../webfinger/lookup.ts";
@@ -259,7 +259,7 @@ export function normalizeActorHandle(
    throw new TypeError("Invalid actor handle.");
  }
  domain = domain.toLowerCase();
  domain = options.punycode ? toASCII(domain) : toUnicode(domain);
  domain = options.punycode ? domainToASCII(domain) : domainToUnicode(domain);
  domain = domain.toLowerCase();
  const user = handle.substring(0, atPos);
  return options.trimLeadingAt ? `${user}@${domain}` : `@${user}@${domain}`;
+2 −2
Original line number Diff line number Diff line
import { getLogger } from "@logtape/logtape";
import type { Span, Tracer } from "@opentelemetry/api";
import { SpanKind, SpanStatusCode } from "@opentelemetry/api";
import { toASCII } from "node:punycode";
import { domainToASCII } from "node:url";
import type {
  ActorAliasMapper,
  ActorDispatcher,
@@ -159,7 +159,7 @@ async function handleWebFingerInternal<TContextData>(
          result.username,
        );
      }
    } else if (toASCII(match[2].toLowerCase()) != context.url.host) {
    } else if (domainToASCII(match[2].toLowerCase()) != context.url.host) {
      return await onNotFound(request);
    } else {
      identifier = await mapUsernameToIdentifier(match[1]);