Loading CHANGES.md +18 −0 Original line number Diff line number Diff line Loading @@ -102,6 +102,24 @@ To be released. - The first parameter of the `InboxListener` callback type became `InboxContext` (was `Context`). - Added `cat` property to `Actor` type in Activity Vocabulary API. - Added `Application.cat` property. - `new Application()` constructor now accepts `cat` option. - `Application.clone()` method now accepts `cat` option. - Added `Group.cat` property. - `new Group()` constructor now accepts `cat` option. - `Group.clone()` method now accepts `cat` option. - Added `Organization.cat` property. - `new Organization()` constructor now accepts `cat` option. - `Organization.clone()` method now accepts `cat` option. - Added `Person.cat` property. - `new Person()` constructor now accepts `cat` option. - `Person.clone()` method now accepts `cat` option. - Added `Service.cat` property. - `new Service()` constructor now accepts `cat` option. - `Service.clone()` method now accepts `cat` option. - The `Context.parseUri()` method's parameter type became `URL | null` (was `URL`). Loading docs/manual/vocab.md +2 −0 Original line number Diff line number Diff line Loading @@ -96,6 +96,7 @@ property. > | [`attributedTo`] | `Object.getAttributions()` | > | [`hreflang`] | `Link.language` | > | [`inReplyTo`] | `Object.getReplyTargets()` | > | [`isCat`] | `Application.cat`/`Group.cat`/`Organization.cat`/`Person.cat`/`Service.cat` | > | [`oneOf`] | `Question.getExclusiveOptions()` | > | [`orderedItems`] | `OrderedCollection.getItems()` | > | [`publicKeyMultibase`] | `Multikey.publicKey` | Loading @@ -109,6 +110,7 @@ property. [`attributedTo`]: https://www.w3.org/TR/activitystreams-vocabulary/#dfn-attributedto [`hreflang`]: https://www.w3.org/TR/activitystreams-vocabulary/#dfn-hreflang [`inReplyTo`]: https://www.w3.org/TR/activitystreams-vocabulary/#dfn-inreplyto [`isCat`]: https://misskey-hub.net/ns#iscat [`oneOf`]: https://www.w3.org/TR/activitystreams-vocabulary/#dfn-oneof [`orderedItems`]: https://www.w3.org/TR/activitystreams-vocabulary/#dfn-items [`publicKeyMultibase`]: https://www.w3.org/TR/controller-document/#dfn-publickeymultibase Loading src/codegen/__snapshots__/class.test.ts.snap +532 −22 File changed.Preview size limit exceeded, changes collapsed. Show changes src/federation/handler.test.ts +4 −0 Original line number Diff line number Diff line Loading @@ -202,6 +202,8 @@ test("handleActor()", async () => { schema: "http://schema.org#", PropertyValue: "schema:PropertyValue", value: "schema:value", misskey: "https://misskey-hub.net/ns#", isCat: "misskey:isCat", }, ], id: "https://example.com/users/someone", Loading Loading @@ -296,6 +298,8 @@ test("handleActor()", async () => { schema: "http://schema.org#", PropertyValue: "schema:PropertyValue", value: "schema:value", misskey: "https://misskey-hub.net/ns#", isCat: "misskey:isCat", }, ], id: "https://example.com/users/someone", Loading src/vocab/__snapshots__/vocab.test.ts.snap +30 −15 Original line number Diff line number Diff line Loading @@ -907,7 +907,8 @@ snapshot[`Deno.inspect(Application) [auto] 1`] = ` suspended: true, memorial: true, indexable: true, aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ] aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], cat: true }' `; Loading Loading @@ -960,7 +961,8 @@ snapshot[`Deno.inspect(Application) [auto] 2`] = ` suspended: true, memorial: true, indexable: true, alias: URL "https://example.com/" alias: URL "https://example.com/", cat: true }' `; Loading Loading @@ -1013,7 +1015,8 @@ snapshot[`Deno.inspect(Application) [auto] 3`] = ` suspended: true, memorial: true, indexable: true, aliases: [ Application {}, Application {} ] aliases: [ Application {}, Application {} ], cat: true }' `; Loading Loading @@ -2647,7 +2650,8 @@ snapshot[`Deno.inspect(Group) [auto] 1`] = ` suspended: true, memorial: true, indexable: true, aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ] aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], cat: true }' `; Loading Loading @@ -2700,7 +2704,8 @@ snapshot[`Deno.inspect(Group) [auto] 2`] = ` suspended: true, memorial: true, indexable: true, alias: URL "https://example.com/" alias: URL "https://example.com/", cat: true }' `; Loading Loading @@ -2753,7 +2758,8 @@ snapshot[`Deno.inspect(Group) [auto] 3`] = ` suspended: true, memorial: true, indexable: true, aliases: [ Application {}, Application {} ] aliases: [ Application {}, Application {} ], cat: true }' `; Loading Loading @@ -4669,7 +4675,8 @@ snapshot[`Deno.inspect(Organization) [auto] 1`] = ` suspended: true, memorial: true, indexable: true, aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ] aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], cat: true }' `; Loading Loading @@ -4722,7 +4729,8 @@ snapshot[`Deno.inspect(Organization) [auto] 2`] = ` suspended: true, memorial: true, indexable: true, alias: URL "https://example.com/" alias: URL "https://example.com/", cat: true }' `; Loading Loading @@ -4775,7 +4783,8 @@ snapshot[`Deno.inspect(Organization) [auto] 3`] = ` suspended: true, memorial: true, indexable: true, aliases: [ Application {}, Application {} ] aliases: [ Application {}, Application {} ], cat: true }' `; Loading Loading @@ -4939,7 +4948,8 @@ snapshot[`Deno.inspect(Person) [auto] 1`] = ` suspended: true, memorial: true, indexable: true, aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ] aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], cat: true }' `; Loading Loading @@ -4992,7 +5002,8 @@ snapshot[`Deno.inspect(Person) [auto] 2`] = ` suspended: true, memorial: true, indexable: true, alias: URL "https://example.com/" alias: URL "https://example.com/", cat: true }' `; Loading Loading @@ -5045,7 +5056,8 @@ snapshot[`Deno.inspect(Person) [auto] 3`] = ` suspended: true, memorial: true, indexable: true, aliases: [ Application {}, Application {} ] aliases: [ Application {}, Application {} ], cat: true }' `; Loading Loading @@ -5950,7 +5962,8 @@ snapshot[`Deno.inspect(Service) [auto] 1`] = ` suspended: true, memorial: true, indexable: true, aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ] aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], cat: true }' `; Loading Loading @@ -6003,7 +6016,8 @@ snapshot[`Deno.inspect(Service) [auto] 2`] = ` suspended: true, memorial: true, indexable: true, alias: URL "https://example.com/" alias: URL "https://example.com/", cat: true }' `; Loading Loading @@ -6056,7 +6070,8 @@ snapshot[`Deno.inspect(Service) [auto] 3`] = ` suspended: true, memorial: true, indexable: true, aliases: [ Application {}, Application {} ] aliases: [ Application {}, Application {} ], cat: true }' `; Loading Loading
CHANGES.md +18 −0 Original line number Diff line number Diff line Loading @@ -102,6 +102,24 @@ To be released. - The first parameter of the `InboxListener` callback type became `InboxContext` (was `Context`). - Added `cat` property to `Actor` type in Activity Vocabulary API. - Added `Application.cat` property. - `new Application()` constructor now accepts `cat` option. - `Application.clone()` method now accepts `cat` option. - Added `Group.cat` property. - `new Group()` constructor now accepts `cat` option. - `Group.clone()` method now accepts `cat` option. - Added `Organization.cat` property. - `new Organization()` constructor now accepts `cat` option. - `Organization.clone()` method now accepts `cat` option. - Added `Person.cat` property. - `new Person()` constructor now accepts `cat` option. - `Person.clone()` method now accepts `cat` option. - Added `Service.cat` property. - `new Service()` constructor now accepts `cat` option. - `Service.clone()` method now accepts `cat` option. - The `Context.parseUri()` method's parameter type became `URL | null` (was `URL`). Loading
docs/manual/vocab.md +2 −0 Original line number Diff line number Diff line Loading @@ -96,6 +96,7 @@ property. > | [`attributedTo`] | `Object.getAttributions()` | > | [`hreflang`] | `Link.language` | > | [`inReplyTo`] | `Object.getReplyTargets()` | > | [`isCat`] | `Application.cat`/`Group.cat`/`Organization.cat`/`Person.cat`/`Service.cat` | > | [`oneOf`] | `Question.getExclusiveOptions()` | > | [`orderedItems`] | `OrderedCollection.getItems()` | > | [`publicKeyMultibase`] | `Multikey.publicKey` | Loading @@ -109,6 +110,7 @@ property. [`attributedTo`]: https://www.w3.org/TR/activitystreams-vocabulary/#dfn-attributedto [`hreflang`]: https://www.w3.org/TR/activitystreams-vocabulary/#dfn-hreflang [`inReplyTo`]: https://www.w3.org/TR/activitystreams-vocabulary/#dfn-inreplyto [`isCat`]: https://misskey-hub.net/ns#iscat [`oneOf`]: https://www.w3.org/TR/activitystreams-vocabulary/#dfn-oneof [`orderedItems`]: https://www.w3.org/TR/activitystreams-vocabulary/#dfn-items [`publicKeyMultibase`]: https://www.w3.org/TR/controller-document/#dfn-publickeymultibase Loading
src/codegen/__snapshots__/class.test.ts.snap +532 −22 File changed.Preview size limit exceeded, changes collapsed. Show changes
src/federation/handler.test.ts +4 −0 Original line number Diff line number Diff line Loading @@ -202,6 +202,8 @@ test("handleActor()", async () => { schema: "http://schema.org#", PropertyValue: "schema:PropertyValue", value: "schema:value", misskey: "https://misskey-hub.net/ns#", isCat: "misskey:isCat", }, ], id: "https://example.com/users/someone", Loading Loading @@ -296,6 +298,8 @@ test("handleActor()", async () => { schema: "http://schema.org#", PropertyValue: "schema:PropertyValue", value: "schema:value", misskey: "https://misskey-hub.net/ns#", isCat: "misskey:isCat", }, ], id: "https://example.com/users/someone", Loading
src/vocab/__snapshots__/vocab.test.ts.snap +30 −15 Original line number Diff line number Diff line Loading @@ -907,7 +907,8 @@ snapshot[`Deno.inspect(Application) [auto] 1`] = ` suspended: true, memorial: true, indexable: true, aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ] aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], cat: true }' `; Loading Loading @@ -960,7 +961,8 @@ snapshot[`Deno.inspect(Application) [auto] 2`] = ` suspended: true, memorial: true, indexable: true, alias: URL "https://example.com/" alias: URL "https://example.com/", cat: true }' `; Loading Loading @@ -1013,7 +1015,8 @@ snapshot[`Deno.inspect(Application) [auto] 3`] = ` suspended: true, memorial: true, indexable: true, aliases: [ Application {}, Application {} ] aliases: [ Application {}, Application {} ], cat: true }' `; Loading Loading @@ -2647,7 +2650,8 @@ snapshot[`Deno.inspect(Group) [auto] 1`] = ` suspended: true, memorial: true, indexable: true, aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ] aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], cat: true }' `; Loading Loading @@ -2700,7 +2704,8 @@ snapshot[`Deno.inspect(Group) [auto] 2`] = ` suspended: true, memorial: true, indexable: true, alias: URL "https://example.com/" alias: URL "https://example.com/", cat: true }' `; Loading Loading @@ -2753,7 +2758,8 @@ snapshot[`Deno.inspect(Group) [auto] 3`] = ` suspended: true, memorial: true, indexable: true, aliases: [ Application {}, Application {} ] aliases: [ Application {}, Application {} ], cat: true }' `; Loading Loading @@ -4669,7 +4675,8 @@ snapshot[`Deno.inspect(Organization) [auto] 1`] = ` suspended: true, memorial: true, indexable: true, aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ] aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], cat: true }' `; Loading Loading @@ -4722,7 +4729,8 @@ snapshot[`Deno.inspect(Organization) [auto] 2`] = ` suspended: true, memorial: true, indexable: true, alias: URL "https://example.com/" alias: URL "https://example.com/", cat: true }' `; Loading Loading @@ -4775,7 +4783,8 @@ snapshot[`Deno.inspect(Organization) [auto] 3`] = ` suspended: true, memorial: true, indexable: true, aliases: [ Application {}, Application {} ] aliases: [ Application {}, Application {} ], cat: true }' `; Loading Loading @@ -4939,7 +4948,8 @@ snapshot[`Deno.inspect(Person) [auto] 1`] = ` suspended: true, memorial: true, indexable: true, aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ] aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], cat: true }' `; Loading Loading @@ -4992,7 +5002,8 @@ snapshot[`Deno.inspect(Person) [auto] 2`] = ` suspended: true, memorial: true, indexable: true, alias: URL "https://example.com/" alias: URL "https://example.com/", cat: true }' `; Loading Loading @@ -5045,7 +5056,8 @@ snapshot[`Deno.inspect(Person) [auto] 3`] = ` suspended: true, memorial: true, indexable: true, aliases: [ Application {}, Application {} ] aliases: [ Application {}, Application {} ], cat: true }' `; Loading Loading @@ -5950,7 +5962,8 @@ snapshot[`Deno.inspect(Service) [auto] 1`] = ` suspended: true, memorial: true, indexable: true, aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ] aliases: [ Application {}, Group {}, Organization {}, Person {}, Service {} ], cat: true }' `; Loading Loading @@ -6003,7 +6016,8 @@ snapshot[`Deno.inspect(Service) [auto] 2`] = ` suspended: true, memorial: true, indexable: true, alias: URL "https://example.com/" alias: URL "https://example.com/", cat: true }' `; Loading Loading @@ -6056,7 +6070,8 @@ snapshot[`Deno.inspect(Service) [auto] 3`] = ` suspended: true, memorial: true, indexable: true, aliases: [ Application {}, Application {} ] aliases: [ Application {}, Application {} ], cat: true }' `; Loading