Unverified Commit ea3ddff6 authored by Hong Minhee's avatar Hong Minhee
Browse files

Merge tag '1.0.4'

Fedify 1.0.4
parents b7a0be7e 625d5143
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -65,6 +65,8 @@
    "apidoc",
    "bccs",
    "biomejs",
    "Bluesky",
    "Bridgy",
    "btos",
    "callouts",
    "cfworker",
+13 −0
Original line number Diff line number Diff line
@@ -65,6 +65,19 @@ To be released.
[#150]: https://github.com/dahlia/fedify/issues/150


Version 1.0.4
-------------

Released on October 17, 2024.

 -  Fixed a bug where `Actor.aliasId` and `Actor.aliasIds` properties had been
    represented as `as:alsoKnownAs` property instead of `alsoKnownAs` property
    in compacted JSON-LD objects.

 -  Improved compatibility with Bridgy Fed for Bluesky where it puts
    an invalid URI with the format `at://...` in the `alsoKnownAs` property.


Version 1.0.3
-------------

+520 −112

File changed.

Preview size limit exceeded, changes collapsed.

+5 −1
Original line number Diff line number Diff line
@@ -369,7 +369,11 @@ export async function* generateDecoder(
      yield `
      if (typeof v === "object" && "@id" in v && !("@type" in v)
          && globalThis.Object.keys(v).length === 1) {
        ${variable}.push(new URL(v["@id"]));
        ${variable}.push(
          !URL.canParse(v["@id"]) && v["@id"].startsWith("at://")
            ? new URL("at://" + encodeURIComponent(v["@id"].substring(5)))
            : new URL(v["@id"])
        );
        continue;
      }
      `;
+8 −0
Original line number Diff line number Diff line
@@ -185,6 +185,10 @@ test("handleActor()", async () => {
      "https://www.w3.org/ns/did/v1",
      "https://w3id.org/security/multikey/v1",
      {
        alsoKnownAs: {
          "@id": "as:alsoKnownAs",
          "@type": "@id",
        },
        manuallyApprovesFollowers: "as:manuallyApprovesFollowers",
        featured: {
          "@id": "toot:featured",
@@ -281,6 +285,10 @@ test("handleActor()", async () => {
      "https://www.w3.org/ns/did/v1",
      "https://w3id.org/security/multikey/v1",
      {
        alsoKnownAs: {
          "@id": "as:alsoKnownAs",
          "@type": "@id",
        },
        manuallyApprovesFollowers: "as:manuallyApprovesFollowers",
        featured: {
          "@id": "toot:featured",
Loading