Loading .vscode/settings.json +1 −0 Original line number Diff line number Diff line Loading @@ -109,6 +109,7 @@ "multibase", "multikey", "multitenancy", "Nexkey", "nodeinfo", "phensley", "Pico", Loading CHANGES.md +9 −0 Original line number Diff line number Diff line Loading @@ -65,6 +65,15 @@ To be released. [#150]: https://github.com/dahlia/fedify/issues/150 Version 1.0.3 ------------- Released on October 17, 2024. - Improved compatibility with some implementations (e.g., Nexkey) where some `CryptographicKey` objects are incorrectly typed in JSON-LD objects. Version 1.0.2 ------------- Loading src/codegen/__snapshots__/class.test.ts.snap +264 −132 File changed.Preview size limit exceeded, changes collapsed. Show changes src/codegen/codec.ts +4 −1 Original line number Diff line number Diff line Loading @@ -302,7 +302,10 @@ export async function* generateDecoder( } `; const subtypes = getSubtypes(typeUri, types, true); yield 'if ("@type" in values) {\n'; yield ` if ("@type" in values && !values["@type"].every(t => t.startsWith("_:"))) { `; for (const subtypeUri of subtypes) { yield ` if (values["@type"].includes(${JSON.stringify(subtypeUri)})) { Loading Loading
.vscode/settings.json +1 −0 Original line number Diff line number Diff line Loading @@ -109,6 +109,7 @@ "multibase", "multikey", "multitenancy", "Nexkey", "nodeinfo", "phensley", "Pico", Loading
CHANGES.md +9 −0 Original line number Diff line number Diff line Loading @@ -65,6 +65,15 @@ To be released. [#150]: https://github.com/dahlia/fedify/issues/150 Version 1.0.3 ------------- Released on October 17, 2024. - Improved compatibility with some implementations (e.g., Nexkey) where some `CryptographicKey` objects are incorrectly typed in JSON-LD objects. Version 1.0.2 ------------- Loading
src/codegen/__snapshots__/class.test.ts.snap +264 −132 File changed.Preview size limit exceeded, changes collapsed. Show changes
src/codegen/codec.ts +4 −1 Original line number Diff line number Diff line Loading @@ -302,7 +302,10 @@ export async function* generateDecoder( } `; const subtypes = getSubtypes(typeUri, types, true); yield 'if ("@type" in values) {\n'; yield ` if ("@type" in values && !values["@type"].every(t => t.startsWith("_:"))) { `; for (const subtypeUri of subtypes) { yield ` if (values["@type"].includes(${JSON.stringify(subtypeUri)})) { Loading