Loading CHANGES.md +18 −0 Original line number Diff line number Diff line Loading @@ -21,6 +21,24 @@ To be released. - Added `formatSemVer()` function. - Added `parseSemVer()` function. - Added `followedMessage` property to `Actor` type in Activity Vocabulary API. - Added `Application.followedMessage` property. - `new Application()` constructor now accepts `followedMessage` option. - `Application.clone()` method now accepts `followedMessage` option. - Added `Group.followedMessage` property. - `new Group()` constructor now accepts `followedMessage` option. - `Group.clone()` method now accepts `followedMessage` option. - Added `Organization.followedMessage` property. - `new Organization()` constructor now accepts `followedMessage` option. - `Organization.clone()` method now accepts `followedMessage` option. - Added `Person.followedMessage` property. - `new Person()` constructor now accepts `followedMessage` option. - `Person.clone()` method now accepts `followedMessage` option. - Added `Service.followedMessage` property. - `new Service()` constructor now accepts `followedMessage` option. - `Service.clone()` method now accepts `followedMessage` option. - Added more log messages using the [LogTape] library. Currently the below logger categories are used: Loading docs/manual/vocab.md +18 −16 Original line number Diff line number Diff line Loading @@ -90,7 +90,7 @@ property. > Some of the properties in Activity Vocabulary have been renamed in Fedify: > > | Original name | Accessor in Fedify | > |------------------------|-----------------------------------| > |------------------------------|-----------------------------------| > | [`alsoKnownAs`] | `Application.getAliases()`/`Group.getAliases()`/`Organization.getAliases()`/`Person.getAliases()`/`Service.getAliases()` | > | [`anyOf`] | `Question.getInclusiveOptions()` | > | [`attributedTo`] | `Object.getAttributions()` | Loading @@ -104,6 +104,7 @@ property. > | [`publicKeyPem`] | `CryptographicKey.publicKey` | > | [`quoteUri`] | `Article.quoteUrl`/`ChatMessage.quoteUrl`/`Note.quoteUrl`/`Question.quoteUrl` | > | [`votersCount`] | `Question.voters` | > | [`_misskey_followedMessage`] | `Application.followedMessage`/`Group.followedMessage`/`Organization.followedMessage`/`Person.followedMessage`/`Service.followedMessage` | > | [`_misskey_quote`] | `Article.quoteUrl`/`ChatMessage.quoteUrl`/`Note.quoteUrl`/`Question.quoteUrl` | [`alsoKnownAs`]: https://www.w3.org/TR/did-core/#dfn-alsoknownas Loading @@ -119,6 +120,7 @@ property. [`publicKeyPem`]: https://web.archive.org/web/20221218063101/https://web-payments.org/vocabs/security#publicKey [`quoteUri`]: https://github.com/fedibird/mastodon?tab=readme-ov-file#quotes [`votersCount`]: https://docs.joinmastodon.org/spec/activitypub/#poll-specific-properties [`_misskey_followedMessage`]: https://misskey-hub.net/ns#_misskey_followedmessage [`_misskey_quote`]: https://misskey-hub.net/ns#_misskey_quote Loading src/codegen/__snapshots__/class.test.ts.snap +516 −21 File changed.Preview size limit exceeded, changes collapsed. Show changes src/federation/handler.test.ts +2 −0 Original line number Diff line number Diff line Loading @@ -211,6 +211,7 @@ test("handleActor()", async () => { PropertyValue: "schema:PropertyValue", value: "schema:value", misskey: "https://misskey-hub.net/ns#", _misskey_followedMessage: "misskey:_misskey_followedMessage", isCat: "misskey:isCat", }, ], Loading Loading @@ -315,6 +316,7 @@ test("handleActor()", async () => { PropertyValue: "schema:PropertyValue", value: "schema:value", misskey: "https://misskey-hub.net/ns#", _misskey_followedMessage: "misskey:_misskey_followedMessage", isCat: "misskey:isCat", }, ], Loading src/vocab/__snapshots__/vocab.test.ts.snap +15 −0 Original line number Diff line number Diff line Loading @@ -1054,6 +1054,7 @@ snapshot[`Deno.inspect(Application) [auto] 1`] = ` successor: Application {}, aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], service: DidService {}, followedMessage: "hello", cat: true }' `; Loading Loading @@ -1110,6 +1111,7 @@ snapshot[`Deno.inspect(Application) [auto] 2`] = ` successor: URL "https://example.com/", alias: URL "https://example.com/", service: URL "https://example.com/", followedMessage: "hello", cat: true }' `; Loading Loading @@ -1166,6 +1168,7 @@ snapshot[`Deno.inspect(Application) [auto] 3`] = ` successor: Application {}, aliases: [ Application {}, Application {} ], services: [ DidService {}, DidService {} ], followedMessage: "hello", cat: true }' `; Loading Loading @@ -2803,6 +2806,7 @@ snapshot[`Deno.inspect(Group) [auto] 1`] = ` successor: Application {}, aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], service: DidService {}, followedMessage: "hello", cat: true }' `; Loading Loading @@ -2859,6 +2863,7 @@ snapshot[`Deno.inspect(Group) [auto] 2`] = ` successor: URL "https://example.com/", alias: URL "https://example.com/", service: URL "https://example.com/", followedMessage: "hello", cat: true }' `; Loading Loading @@ -2915,6 +2920,7 @@ snapshot[`Deno.inspect(Group) [auto] 3`] = ` successor: Application {}, aliases: [ Application {}, Application {} ], services: [ DidService {}, DidService {} ], followedMessage: "hello", cat: true }' `; Loading Loading @@ -4834,6 +4840,7 @@ snapshot[`Deno.inspect(Organization) [auto] 1`] = ` successor: Application {}, aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], service: DidService {}, followedMessage: "hello", cat: true }' `; Loading Loading @@ -4890,6 +4897,7 @@ snapshot[`Deno.inspect(Organization) [auto] 2`] = ` successor: URL "https://example.com/", alias: URL "https://example.com/", service: URL "https://example.com/", followedMessage: "hello", cat: true }' `; Loading Loading @@ -4946,6 +4954,7 @@ snapshot[`Deno.inspect(Organization) [auto] 3`] = ` successor: Application {}, aliases: [ Application {}, Application {} ], services: [ DidService {}, DidService {} ], followedMessage: "hello", cat: true }' `; Loading Loading @@ -5113,6 +5122,7 @@ snapshot[`Deno.inspect(Person) [auto] 1`] = ` successor: Application {}, aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], service: DidService {}, followedMessage: "hello", cat: true }' `; Loading Loading @@ -5169,6 +5179,7 @@ snapshot[`Deno.inspect(Person) [auto] 2`] = ` successor: URL "https://example.com/", alias: URL "https://example.com/", service: URL "https://example.com/", followedMessage: "hello", cat: true }' `; Loading Loading @@ -5225,6 +5236,7 @@ snapshot[`Deno.inspect(Person) [auto] 3`] = ` successor: Application {}, aliases: [ Application {}, Application {} ], services: [ DidService {}, DidService {} ], followedMessage: "hello", cat: true }' `; Loading Loading @@ -6133,6 +6145,7 @@ snapshot[`Deno.inspect(Service) [auto] 1`] = ` successor: Application {}, aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], service: DidService {}, followedMessage: "hello", cat: true }' `; Loading Loading @@ -6189,6 +6202,7 @@ snapshot[`Deno.inspect(Service) [auto] 2`] = ` successor: URL "https://example.com/", alias: URL "https://example.com/", service: URL "https://example.com/", followedMessage: "hello", cat: true }' `; Loading Loading @@ -6245,6 +6259,7 @@ snapshot[`Deno.inspect(Service) [auto] 3`] = ` successor: Application {}, aliases: [ Application {}, Application {} ], services: [ DidService {}, DidService {} ], followedMessage: "hello", cat: true }' `; Loading Loading
CHANGES.md +18 −0 Original line number Diff line number Diff line Loading @@ -21,6 +21,24 @@ To be released. - Added `formatSemVer()` function. - Added `parseSemVer()` function. - Added `followedMessage` property to `Actor` type in Activity Vocabulary API. - Added `Application.followedMessage` property. - `new Application()` constructor now accepts `followedMessage` option. - `Application.clone()` method now accepts `followedMessage` option. - Added `Group.followedMessage` property. - `new Group()` constructor now accepts `followedMessage` option. - `Group.clone()` method now accepts `followedMessage` option. - Added `Organization.followedMessage` property. - `new Organization()` constructor now accepts `followedMessage` option. - `Organization.clone()` method now accepts `followedMessage` option. - Added `Person.followedMessage` property. - `new Person()` constructor now accepts `followedMessage` option. - `Person.clone()` method now accepts `followedMessage` option. - Added `Service.followedMessage` property. - `new Service()` constructor now accepts `followedMessage` option. - `Service.clone()` method now accepts `followedMessage` option. - Added more log messages using the [LogTape] library. Currently the below logger categories are used: Loading
docs/manual/vocab.md +18 −16 Original line number Diff line number Diff line Loading @@ -90,7 +90,7 @@ property. > Some of the properties in Activity Vocabulary have been renamed in Fedify: > > | Original name | Accessor in Fedify | > |------------------------|-----------------------------------| > |------------------------------|-----------------------------------| > | [`alsoKnownAs`] | `Application.getAliases()`/`Group.getAliases()`/`Organization.getAliases()`/`Person.getAliases()`/`Service.getAliases()` | > | [`anyOf`] | `Question.getInclusiveOptions()` | > | [`attributedTo`] | `Object.getAttributions()` | Loading @@ -104,6 +104,7 @@ property. > | [`publicKeyPem`] | `CryptographicKey.publicKey` | > | [`quoteUri`] | `Article.quoteUrl`/`ChatMessage.quoteUrl`/`Note.quoteUrl`/`Question.quoteUrl` | > | [`votersCount`] | `Question.voters` | > | [`_misskey_followedMessage`] | `Application.followedMessage`/`Group.followedMessage`/`Organization.followedMessage`/`Person.followedMessage`/`Service.followedMessage` | > | [`_misskey_quote`] | `Article.quoteUrl`/`ChatMessage.quoteUrl`/`Note.quoteUrl`/`Question.quoteUrl` | [`alsoKnownAs`]: https://www.w3.org/TR/did-core/#dfn-alsoknownas Loading @@ -119,6 +120,7 @@ property. [`publicKeyPem`]: https://web.archive.org/web/20221218063101/https://web-payments.org/vocabs/security#publicKey [`quoteUri`]: https://github.com/fedibird/mastodon?tab=readme-ov-file#quotes [`votersCount`]: https://docs.joinmastodon.org/spec/activitypub/#poll-specific-properties [`_misskey_followedMessage`]: https://misskey-hub.net/ns#_misskey_followedmessage [`_misskey_quote`]: https://misskey-hub.net/ns#_misskey_quote Loading
src/codegen/__snapshots__/class.test.ts.snap +516 −21 File changed.Preview size limit exceeded, changes collapsed. Show changes
src/federation/handler.test.ts +2 −0 Original line number Diff line number Diff line Loading @@ -211,6 +211,7 @@ test("handleActor()", async () => { PropertyValue: "schema:PropertyValue", value: "schema:value", misskey: "https://misskey-hub.net/ns#", _misskey_followedMessage: "misskey:_misskey_followedMessage", isCat: "misskey:isCat", }, ], Loading Loading @@ -315,6 +316,7 @@ test("handleActor()", async () => { PropertyValue: "schema:PropertyValue", value: "schema:value", misskey: "https://misskey-hub.net/ns#", _misskey_followedMessage: "misskey:_misskey_followedMessage", isCat: "misskey:isCat", }, ], Loading
src/vocab/__snapshots__/vocab.test.ts.snap +15 −0 Original line number Diff line number Diff line Loading @@ -1054,6 +1054,7 @@ snapshot[`Deno.inspect(Application) [auto] 1`] = ` successor: Application {}, aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], service: DidService {}, followedMessage: "hello", cat: true }' `; Loading Loading @@ -1110,6 +1111,7 @@ snapshot[`Deno.inspect(Application) [auto] 2`] = ` successor: URL "https://example.com/", alias: URL "https://example.com/", service: URL "https://example.com/", followedMessage: "hello", cat: true }' `; Loading Loading @@ -1166,6 +1168,7 @@ snapshot[`Deno.inspect(Application) [auto] 3`] = ` successor: Application {}, aliases: [ Application {}, Application {} ], services: [ DidService {}, DidService {} ], followedMessage: "hello", cat: true }' `; Loading Loading @@ -2803,6 +2806,7 @@ snapshot[`Deno.inspect(Group) [auto] 1`] = ` successor: Application {}, aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], service: DidService {}, followedMessage: "hello", cat: true }' `; Loading Loading @@ -2859,6 +2863,7 @@ snapshot[`Deno.inspect(Group) [auto] 2`] = ` successor: URL "https://example.com/", alias: URL "https://example.com/", service: URL "https://example.com/", followedMessage: "hello", cat: true }' `; Loading Loading @@ -2915,6 +2920,7 @@ snapshot[`Deno.inspect(Group) [auto] 3`] = ` successor: Application {}, aliases: [ Application {}, Application {} ], services: [ DidService {}, DidService {} ], followedMessage: "hello", cat: true }' `; Loading Loading @@ -4834,6 +4840,7 @@ snapshot[`Deno.inspect(Organization) [auto] 1`] = ` successor: Application {}, aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], service: DidService {}, followedMessage: "hello", cat: true }' `; Loading Loading @@ -4890,6 +4897,7 @@ snapshot[`Deno.inspect(Organization) [auto] 2`] = ` successor: URL "https://example.com/", alias: URL "https://example.com/", service: URL "https://example.com/", followedMessage: "hello", cat: true }' `; Loading Loading @@ -4946,6 +4954,7 @@ snapshot[`Deno.inspect(Organization) [auto] 3`] = ` successor: Application {}, aliases: [ Application {}, Application {} ], services: [ DidService {}, DidService {} ], followedMessage: "hello", cat: true }' `; Loading Loading @@ -5113,6 +5122,7 @@ snapshot[`Deno.inspect(Person) [auto] 1`] = ` successor: Application {}, aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], service: DidService {}, followedMessage: "hello", cat: true }' `; Loading Loading @@ -5169,6 +5179,7 @@ snapshot[`Deno.inspect(Person) [auto] 2`] = ` successor: URL "https://example.com/", alias: URL "https://example.com/", service: URL "https://example.com/", followedMessage: "hello", cat: true }' `; Loading Loading @@ -5225,6 +5236,7 @@ snapshot[`Deno.inspect(Person) [auto] 3`] = ` successor: Application {}, aliases: [ Application {}, Application {} ], services: [ DidService {}, DidService {} ], followedMessage: "hello", cat: true }' `; Loading Loading @@ -6133,6 +6145,7 @@ snapshot[`Deno.inspect(Service) [auto] 1`] = ` successor: Application {}, aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], service: DidService {}, followedMessage: "hello", cat: true }' `; Loading Loading @@ -6189,6 +6202,7 @@ snapshot[`Deno.inspect(Service) [auto] 2`] = ` successor: URL "https://example.com/", alias: URL "https://example.com/", service: URL "https://example.com/", followedMessage: "hello", cat: true }' `; Loading Loading @@ -6245,6 +6259,7 @@ snapshot[`Deno.inspect(Service) [auto] 3`] = ` successor: Application {}, aliases: [ Application {}, Application {} ], services: [ DidService {}, DidService {} ], followedMessage: "hello", cat: true }' `; Loading