Commit eb9a205c authored by Lee ByeongJun's avatar Lee ByeongJun
Browse files

update changelog

parent e9dce62c
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -3,7 +3,6 @@
dist/
deno.lock
node_modules/
package-lock.json
repomix-output.xml
t.ts
t2.ts
+6 −0
Original line number Diff line number Diff line
@@ -51,6 +51,12 @@ To be released.
     -  The `--allow-private-address` or `-p` option allows looking up
        WebFinger information for private addresses (e.g., `localhost`).

 -  Added `LookupWebFingerOptions.maxRedirection` option.
    [[#248], [#281] by Lee ByeongJun]

[#248]: https://github.com/fedify-dev/fedify/issues/248
[#281]: https://github.com/fedify-dev/fedify/pull/281


Version 1.7.3
-------------
+9 −3
Original line number Diff line number Diff line
@@ -180,7 +180,9 @@ test({
        if (redirectCount < 3) {
          return {
            status: 302,
            headers: { Location: `/.well-known/webfinger?redirect=${redirectCount}` },
            headers: {
              Location: `/.well-known/webfinger?redirect=${redirectCount}`,
            },
          };
        }
        return { body: expected };
@@ -191,14 +193,18 @@ test({
      // Test with maxRedirection: 2 (should fail)
      redirectCount = 0;
      assertEquals(
        await lookupWebFinger("acct:johndoe@example.com", { maxRedirection: 2 }),
        await lookupWebFinger("acct:johndoe@example.com", {
          maxRedirection: 2,
        }),
        null,
      );

      // Test with maxRedirection: 3 (should succeed)
      redirectCount = 0;
      assertEquals(
        await lookupWebFinger("acct:johndoe@example.com", { maxRedirection: 3 }),
        await lookupWebFinger("acct:johndoe@example.com", {
          maxRedirection: 3,
        }),
        expected,
      );