Unverified Commit 6c42f83d authored by Hong Minhee's avatar Hong Minhee
Browse files

Merge tag '1.2.17' into 1.3-maintenance

Fedify 1.2.17
parents 7cbf6076 603a97cf
Loading
Loading
Loading
Loading
+39 −1
Original line number Diff line number Diff line
@@ -8,6 +8,10 @@ Version 1.3.13

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.3.12
--------------
@@ -278,6 +282,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
--------------

@@ -596,6 +610,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
--------------

@@ -955,6 +979,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
--------------

@@ -3106,4 +3143,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}`;
+4 −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 {
  ActorDispatcher,
  ActorHandleMapper,
@@ -122,7 +122,9 @@ async function handleWebFingerInternal<TContextData>(
  const uriParsed = context.parseUri(resourceUrl);
  if (uriParsed?.type != "actor") {
    const match = /^acct:([^@]+)@([^@]+)$/.exec(resource);
    if (match == null || toASCII(match[2].toLowerCase()) != context.url.host) {
    if (
      match == null || domainToASCII(match[2].toLowerCase()) != context.url.host
    ) {
      return await onNotFound(request);
    }
    const username = match[1];