Loading .vscode/settings.json +2 −0 Original line number Diff line number Diff line Loading @@ -65,6 +65,8 @@ "apidoc", "bccs", "biomejs", "Bluesky", "Bridgy", "btos", "callouts", "cfworker", Loading CHANGES.md +13 −0 Original line number Diff line number Diff line Loading @@ -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 ------------- Loading src/codegen/__snapshots__/class.test.ts.snap +520 −112 File changed.Preview size limit exceeded, changes collapsed. Show changes src/codegen/codec.ts +5 −1 Original line number Diff line number Diff line Loading @@ -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; } `; Loading src/federation/handler.test.ts +8 −0 Original line number Diff line number Diff line Loading @@ -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", Loading Loading @@ -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 Loading
.vscode/settings.json +2 −0 Original line number Diff line number Diff line Loading @@ -65,6 +65,8 @@ "apidoc", "bccs", "biomejs", "Bluesky", "Bridgy", "btos", "callouts", "cfworker", Loading
CHANGES.md +13 −0 Original line number Diff line number Diff line Loading @@ -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 ------------- Loading
src/codegen/__snapshots__/class.test.ts.snap +520 −112 File changed.Preview size limit exceeded, changes collapsed. Show changes
src/codegen/codec.ts +5 −1 Original line number Diff line number Diff line Loading @@ -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; } `; Loading
src/federation/handler.test.ts +8 −0 Original line number Diff line number Diff line Loading @@ -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", Loading Loading @@ -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