Loading CHANGES.md +4 −0 Original line number Diff line number Diff line Loading @@ -8,12 +8,16 @@ Version 0.9.0 To be released. - Added `Hashtag` class to Activity Vocabulary API. [[#48]] - Added more log messages using the [LogTape] library. Currently the below logger categories are used: - `["fedify", "federation", "actor"]` - `["fedify", "federation", "http"]` [#48]: https://github.com/dahlia/fedify/issues/48 Version 0.8.0 ------------- Loading codegen/__snapshots__/class.test.ts.snap +1197 −1022 File changed.Preview size limit exceeded, changes collapsed. Show changes federation/handler.test.ts +28 −4 Original line number Diff line number Diff line Loading @@ -394,7 +394,13 @@ Deno.test("handleObject()", async () => { "application/activity+json", ); assertEquals(await response.json(), { "@context": "https://www.w3.org/ns/activitystreams", "@context": [ "https://www.w3.org/ns/activitystreams", { Hashtag: "as:Hashtag", sensitive: "as:sensitive", }, ], id: "https://example.com/users/someone/notes/123", summary: "Hello, world!", type: "Note", Loading Loading @@ -480,7 +486,13 @@ Deno.test("handleObject()", async () => { "application/activity+json", ); assertEquals(await response.json(), { "@context": "https://www.w3.org/ns/activitystreams", "@context": [ "https://www.w3.org/ns/activitystreams", { Hashtag: "as:Hashtag", sensitive: "as:sensitive", }, ], id: "https://example.com/users/someone/notes/123", summary: "Hello, world!", type: "Note", Loading Loading @@ -850,7 +862,13 @@ Deno.test("respondWithObject()", async () => { "application/activity+json", ); assertEquals(await response.json(), { "@context": "https://www.w3.org/ns/activitystreams", "@context": [ "https://www.w3.org/ns/activitystreams", { Hashtag: "as:Hashtag", sensitive: "as:sensitive", }, ], id: "https://example.com/notes/1", type: "Note", content: "Hello, world!", Loading @@ -876,7 +894,13 @@ Deno.test("respondWithObjectIfAcceptable", async () => { "application/activity+json", ); assertEquals(await response.json(), { "@context": "https://www.w3.org/ns/activitystreams", "@context": [ "https://www.w3.org/ns/activitystreams", { Hashtag: "as:Hashtag", sensitive: "as:sensitive", }, ], id: "https://example.com/notes/1", type: "Note", content: "Hello, world!", Loading vocab/__snapshots__/vocab.test.ts.snap +58 −0 Original line number Diff line number Diff line Loading @@ -2033,6 +2033,64 @@ snapshot[`Deno.inspect(Group) [auto] 3`] = ` }' `; snapshot[`Deno.inspect(Hashtag) [auto] 1`] = ` 'Hashtag { id: URL "https://example.com/", href: URL "https://example.com/", rel: "hello", mediaType: "hello", names: [ "hello", <en> "hello" ], language: LanguageTag { core: [ "en", undefined, undefined, undefined ], _extensions: {}, _privateUse: "", _extlangs: [], _compact: "en" }, height: 123, width: 123, previews: [ Link {}, Object {} ] }' `; snapshot[`Deno.inspect(Hashtag) [auto] 2`] = ` 'Hashtag { href: URL "https://example.com/", rel: "hello", mediaType: "hello", names: [ "hello", <en> "hello" ], language: LanguageTag { core: [ "en", undefined, undefined, undefined ], _extensions: {}, _privateUse: "", _extlangs: [], _compact: "en" }, height: 123, width: 123, previews: [ URL "https://example.com/" ] }' `; snapshot[`Deno.inspect(Hashtag) [auto] 3`] = ` 'Hashtag { href: URL "https://example.com/", rels: [ "hello", "hello" ], mediaType: "hello", names: [ "hello", "hello" ], language: LanguageTag { core: [ "en", undefined, undefined, undefined ], _extensions: {}, _privateUse: "", _extlangs: [], _compact: "en" }, height: 123, width: 123, previews: [ Link {}, Link {} ] }' `; snapshot[`Deno.inspect(Ignore) [auto] 1`] = ` 'Ignore { id: URL "https://example.com/", Loading vocab/announce.yaml +4 −1 Original line number Diff line number Diff line Loading @@ -7,5 +7,8 @@ description: | Indicates that the `actor` is calling the `target`'s attention the `object`. The `origin` typically has no defined meaning. defaultContext: "https://www.w3.org/ns/activitystreams" defaultContext: - "https://www.w3.org/ns/activitystreams" - sensitive: "as:sensitive" Hashtag: "as:Hashtag" properties: [] Loading
CHANGES.md +4 −0 Original line number Diff line number Diff line Loading @@ -8,12 +8,16 @@ Version 0.9.0 To be released. - Added `Hashtag` class to Activity Vocabulary API. [[#48]] - Added more log messages using the [LogTape] library. Currently the below logger categories are used: - `["fedify", "federation", "actor"]` - `["fedify", "federation", "http"]` [#48]: https://github.com/dahlia/fedify/issues/48 Version 0.8.0 ------------- Loading
codegen/__snapshots__/class.test.ts.snap +1197 −1022 File changed.Preview size limit exceeded, changes collapsed. Show changes
federation/handler.test.ts +28 −4 Original line number Diff line number Diff line Loading @@ -394,7 +394,13 @@ Deno.test("handleObject()", async () => { "application/activity+json", ); assertEquals(await response.json(), { "@context": "https://www.w3.org/ns/activitystreams", "@context": [ "https://www.w3.org/ns/activitystreams", { Hashtag: "as:Hashtag", sensitive: "as:sensitive", }, ], id: "https://example.com/users/someone/notes/123", summary: "Hello, world!", type: "Note", Loading Loading @@ -480,7 +486,13 @@ Deno.test("handleObject()", async () => { "application/activity+json", ); assertEquals(await response.json(), { "@context": "https://www.w3.org/ns/activitystreams", "@context": [ "https://www.w3.org/ns/activitystreams", { Hashtag: "as:Hashtag", sensitive: "as:sensitive", }, ], id: "https://example.com/users/someone/notes/123", summary: "Hello, world!", type: "Note", Loading Loading @@ -850,7 +862,13 @@ Deno.test("respondWithObject()", async () => { "application/activity+json", ); assertEquals(await response.json(), { "@context": "https://www.w3.org/ns/activitystreams", "@context": [ "https://www.w3.org/ns/activitystreams", { Hashtag: "as:Hashtag", sensitive: "as:sensitive", }, ], id: "https://example.com/notes/1", type: "Note", content: "Hello, world!", Loading @@ -876,7 +894,13 @@ Deno.test("respondWithObjectIfAcceptable", async () => { "application/activity+json", ); assertEquals(await response.json(), { "@context": "https://www.w3.org/ns/activitystreams", "@context": [ "https://www.w3.org/ns/activitystreams", { Hashtag: "as:Hashtag", sensitive: "as:sensitive", }, ], id: "https://example.com/notes/1", type: "Note", content: "Hello, world!", Loading
vocab/__snapshots__/vocab.test.ts.snap +58 −0 Original line number Diff line number Diff line Loading @@ -2033,6 +2033,64 @@ snapshot[`Deno.inspect(Group) [auto] 3`] = ` }' `; snapshot[`Deno.inspect(Hashtag) [auto] 1`] = ` 'Hashtag { id: URL "https://example.com/", href: URL "https://example.com/", rel: "hello", mediaType: "hello", names: [ "hello", <en> "hello" ], language: LanguageTag { core: [ "en", undefined, undefined, undefined ], _extensions: {}, _privateUse: "", _extlangs: [], _compact: "en" }, height: 123, width: 123, previews: [ Link {}, Object {} ] }' `; snapshot[`Deno.inspect(Hashtag) [auto] 2`] = ` 'Hashtag { href: URL "https://example.com/", rel: "hello", mediaType: "hello", names: [ "hello", <en> "hello" ], language: LanguageTag { core: [ "en", undefined, undefined, undefined ], _extensions: {}, _privateUse: "", _extlangs: [], _compact: "en" }, height: 123, width: 123, previews: [ URL "https://example.com/" ] }' `; snapshot[`Deno.inspect(Hashtag) [auto] 3`] = ` 'Hashtag { href: URL "https://example.com/", rels: [ "hello", "hello" ], mediaType: "hello", names: [ "hello", "hello" ], language: LanguageTag { core: [ "en", undefined, undefined, undefined ], _extensions: {}, _privateUse: "", _extlangs: [], _compact: "en" }, height: 123, width: 123, previews: [ Link {}, Link {} ] }' `; snapshot[`Deno.inspect(Ignore) [auto] 1`] = ` 'Ignore { id: URL "https://example.com/", Loading
vocab/announce.yaml +4 −1 Original line number Diff line number Diff line Loading @@ -7,5 +7,8 @@ description: | Indicates that the `actor` is calling the `target`'s attention the `object`. The `origin` typically has no defined meaning. defaultContext: "https://www.w3.org/ns/activitystreams" defaultContext: - "https://www.w3.org/ns/activitystreams" - sensitive: "as:sensitive" Hashtag: "as:Hashtag" properties: []