Loading CHANGES.md +34 −2 Original line number Diff line number Diff line Loading @@ -10,9 +10,43 @@ To be released. ### @fedify/fedify - Added inverse properties for collections to Vocabulary API. [[FEP-5711], [#373], [#381] by Jiwon Kwon] - `new Collection()` constructor now accepts `likesOf` option. - Added `Collection.likesOfId` property. - Added `Collection.getLikesOf()` method. - `new Collection()` constructor now accepts `sharesOf` option. - Added `Collection.sharedOfId` property. - Added `Collection.getSharedOf()` method. - `new Collection()` constructor now accepts `repliesOf` option. - Added `Collection.repliesOfId` property. - Added `Collection.getRepliesOf()` method. - `new Collection()` constructor now accepts `inboxOf` option. - Added `Collection.inboxOfId` property. - Added `Collection.getInboxOf()` method. - `new Collection()` constructor now accepts `outboxOf` option. - Added `Collection.outboxOfId` property. - Added `Collection.getOutboxOf()` method. - `new Collection()` constructor now accepts `followersOf` option. - Added `Collection.followersOfId` property. - Added `Collection.getFollowersOf()` method. - `new Collection()` constructor now accepts `followingOf` option. - Added `Collection.followingOfId` property. - Added `Collection.getFollowingOf()` method. - `new Collection()` constructor now accepts `likedOf` option. - Added `Collection.likedOfId` property. - Added `Collection.getLikedOf()` method. - Changed how `parseSoftware()` function handles non-Semantic Versioning number strings on `tryBestEffort` mode. [[#353], [#365] by Hyeonseo Kim]] [FEP-5711]: https://w3id.org/fep/5711 [#353]: https://github.com/fedify-dev/fedify/issues/353 [#365]: https://github.com/fedify-dev/fedify/pull/365 [#373]: https://github.com/fedify-dev/fedify/issues/373 [#381]: https://github.com/fedify-dev/fedify/pull/381 ### @fedify/cli - Added `Next.js` option to `fedify init` command. This option allows users Loading @@ -37,8 +71,6 @@ To be released. [Next.js]: https://nextjs.org/ [#313]: https://github.com/fedify-dev/fedify/issues/313 [#353]: https://github.com/fedify-dev/fedify/issues/353 [#365]: https://github.com/fedify-dev/fedify/pull/365 Version 1.8.5 Loading packages/fedify/src/codegen/__snapshots__/class.test.ts.snap +2306 −154 File changed.Preview size limit exceeded, changes collapsed. Show changes packages/fedify/src/runtime/contexts.ts +36 −0 Original line number Diff line number Diff line Loading @@ -4196,6 +4196,42 @@ const preloadedContexts: Record<string, unknown> = { }, }, }, "https://w3id.org/fep/5711": { "@context": { "likesOf": { "@id": "https://w3id.org/fep/5711#likesOf", "@type": "@id", }, "sharesOf": { "@id": "https://w3id.org/fep/5711#sharesOf", "@type": "@id", }, "repliesOf": { "@id": "https://w3id.org/fep/5711#repliesOf", "@type": "@id", }, "inboxOf": { "@id": "https://w3id.org/fep/5711#inboxOf", "@type": "@id", }, "outboxOf": { "@id": "https://w3id.org/fep/5711#outboxOf", "@type": "@id", }, "followersOf": { "@id": "https://w3id.org/fep/5711#followersOf", "@type": "@id", }, "followingOf": { "@id": "https://w3id.org/fep/5711#followingOf", "@type": "@id", }, "likedOf": { "@id": "https://w3id.org/fep/5711#likedOf", "@type": "@id", }, }, }, }; export default preloadedContexts; packages/fedify/src/vocab/__snapshots__/vocab.test.ts.snap +102 −6 Original line number Diff line number Diff line Loading @@ -1785,7 +1785,15 @@ snapshot[`Deno.inspect(Collection) [auto] 1`] = ` current: CollectionPage {}, first: CollectionPage {}, last: CollectionPage {}, items: [ Object {}, Link {} ] items: [ Object {}, Link {} ], likesOf: Object {}, sharesOf: Object {}, repliesOf: Object {}, inboxOf: Object {}, outboxOf: Object {}, followersOf: Object {}, followingOf: Object {}, likedOf: Object {} }' `; Loading Loading @@ -1828,7 +1836,15 @@ snapshot[`Deno.inspect(Collection) [auto] 2`] = ` current: URL "https://example.com/", first: URL "https://example.com/", last: URL "https://example.com/", items: [ URL "https://example.com/" ] items: [ URL "https://example.com/" ], likesOf: URL "https://example.com/", sharesOf: URL "https://example.com/", repliesOf: URL "https://example.com/", inboxOf: URL "https://example.com/", outboxOf: URL "https://example.com/", followersOf: URL "https://example.com/", followingOf: URL "https://example.com/", likedOf: URL "https://example.com/" }' `; Loading Loading @@ -1871,7 +1887,15 @@ snapshot[`Deno.inspect(Collection) [auto] 3`] = ` current: CollectionPage {}, first: CollectionPage {}, last: CollectionPage {}, items: [ Object {}, Object {} ] items: [ Object {}, Object {} ], likesOf: Object {}, sharesOf: Object {}, repliesOf: Object {}, inboxOf: Object {}, outboxOf: Object {}, followersOf: Object {}, followingOf: Object {}, likedOf: Object {} }' `; Loading Loading @@ -1915,6 +1939,14 @@ snapshot[`Deno.inspect(CollectionPage) [auto] 1`] = ` first: CollectionPage {}, last: CollectionPage {}, items: [ Object {}, Link {} ], likesOf: Object {}, sharesOf: Object {}, repliesOf: Object {}, inboxOf: Object {}, outboxOf: Object {}, followersOf: Object {}, followingOf: Object {}, likedOf: Object {}, partOf: Collection {}, next: CollectionPage {}, prev: CollectionPage {} Loading Loading @@ -1961,6 +1993,14 @@ snapshot[`Deno.inspect(CollectionPage) [auto] 2`] = ` first: URL "https://example.com/", last: URL "https://example.com/", items: [ URL "https://example.com/" ], likesOf: URL "https://example.com/", sharesOf: URL "https://example.com/", repliesOf: URL "https://example.com/", inboxOf: URL "https://example.com/", outboxOf: URL "https://example.com/", followersOf: URL "https://example.com/", followingOf: URL "https://example.com/", likedOf: URL "https://example.com/", partOf: URL "https://example.com/", next: URL "https://example.com/", prev: URL "https://example.com/" Loading Loading @@ -2007,6 +2047,14 @@ snapshot[`Deno.inspect(CollectionPage) [auto] 3`] = ` first: CollectionPage {}, last: CollectionPage {}, items: [ Object {}, Object {} ], likesOf: Object {}, sharesOf: Object {}, repliesOf: Object {}, inboxOf: Object {}, outboxOf: Object {}, followersOf: Object {}, followingOf: Object {}, likedOf: Object {}, partOf: Collection {}, next: CollectionPage {}, prev: CollectionPage {} Loading Loading @@ -4881,7 +4929,15 @@ snapshot[`Deno.inspect(OrderedCollection) [auto] 1`] = ` current: CollectionPage {}, first: CollectionPage {}, last: CollectionPage {}, items: [ Object {}, Link {} ] items: [ Object {}, Link {} ], likesOf: Object {}, sharesOf: Object {}, repliesOf: Object {}, inboxOf: Object {}, outboxOf: Object {}, followersOf: Object {}, followingOf: Object {}, likedOf: Object {} }' `; Loading Loading @@ -4924,7 +4980,15 @@ snapshot[`Deno.inspect(OrderedCollection) [auto] 2`] = ` current: URL "https://example.com/", first: URL "https://example.com/", last: URL "https://example.com/", items: [ URL "https://example.com/" ] items: [ URL "https://example.com/" ], likesOf: URL "https://example.com/", sharesOf: URL "https://example.com/", repliesOf: URL "https://example.com/", inboxOf: URL "https://example.com/", outboxOf: URL "https://example.com/", followersOf: URL "https://example.com/", followingOf: URL "https://example.com/", likedOf: URL "https://example.com/" }' `; Loading Loading @@ -4967,7 +5031,15 @@ snapshot[`Deno.inspect(OrderedCollection) [auto] 3`] = ` current: CollectionPage {}, first: CollectionPage {}, last: CollectionPage {}, items: [ Object {}, Object {} ] items: [ Object {}, Object {} ], likesOf: Object {}, sharesOf: Object {}, repliesOf: Object {}, inboxOf: Object {}, outboxOf: Object {}, followersOf: Object {}, followingOf: Object {}, likedOf: Object {} }' `; Loading Loading @@ -5011,6 +5083,14 @@ snapshot[`Deno.inspect(OrderedCollectionPage) [auto] 1`] = ` first: CollectionPage {}, last: CollectionPage {}, items: [ Object {}, Link {} ], likesOf: Object {}, sharesOf: Object {}, repliesOf: Object {}, inboxOf: Object {}, outboxOf: Object {}, followersOf: Object {}, followingOf: Object {}, likedOf: Object {}, partOf: Collection {}, next: CollectionPage {}, prev: CollectionPage {}, Loading Loading @@ -5058,6 +5138,14 @@ snapshot[`Deno.inspect(OrderedCollectionPage) [auto] 2`] = ` first: URL "https://example.com/", last: URL "https://example.com/", items: [ URL "https://example.com/" ], likesOf: URL "https://example.com/", sharesOf: URL "https://example.com/", repliesOf: URL "https://example.com/", inboxOf: URL "https://example.com/", outboxOf: URL "https://example.com/", followersOf: URL "https://example.com/", followingOf: URL "https://example.com/", likedOf: URL "https://example.com/", partOf: URL "https://example.com/", next: URL "https://example.com/", prev: URL "https://example.com/", Loading Loading @@ -5105,6 +5193,14 @@ snapshot[`Deno.inspect(OrderedCollectionPage) [auto] 3`] = ` first: CollectionPage {}, last: CollectionPage {}, items: [ Object {}, Object {} ], likesOf: Object {}, sharesOf: Object {}, repliesOf: Object {}, inboxOf: Object {}, outboxOf: Object {}, followersOf: Object {}, followingOf: Object {}, likedOf: Object {}, partOf: Collection {}, next: CollectionPage {}, prev: CollectionPage {}, Loading packages/fedify/src/vocab/collection.yaml +72 −0 Original line number Diff line number Diff line Loading @@ -80,3 +80,75 @@ properties: range: - "https://www.w3.org/ns/activitystreams#Object" - "https://www.w3.org/ns/activitystreams#Link" - singularName: likesOf functional: true compactName: likesOf uri: "https://w3id.org/fep/5711#likesOf" description: | Defines an object for which the collection is the value of the likes property. range: - "https://www.w3.org/ns/activitystreams#Object" - singularName: sharesOf functional: true compactName: sharesOf uri: "https://w3id.org/fep/5711#sharesOf" description: | Defines an object for which the collection is the value of the shares property. range: - "https://www.w3.org/ns/activitystreams#Object" - singularName: repliesOf functional: true compactName: repliesOf uri: "https://w3id.org/fep/5711#repliesOf" description: | Defines an object for which the collection is the value of the replies property. range: - "https://www.w3.org/ns/activitystreams#Object" - singularName: inboxOf functional: true compactName: inboxOf uri: "https://w3id.org/fep/5711#inboxOf" description: | Defines an actor for which the collection is the value of the inbox property. range: - "https://www.w3.org/ns/activitystreams#Object" - singularName: outboxOf functional: true compactName: outboxOf uri: "https://w3id.org/fep/5711#outboxOf" description: | Defines an actor for which the collection is the value of the outbox property. range: - "https://www.w3.org/ns/activitystreams#Object" - singularName: followersOf functional: true compactName: followersOf uri: "https://w3id.org/fep/5711#followersOf" description: | Defines an actor for which the collection is the value of the followers property. range: - "https://www.w3.org/ns/activitystreams#Object" - singularName: followingOf functional: true compactName: followingOf uri: "https://w3id.org/fep/5711#followingOf" description: | Defines an actor for which the collection is the value of the following property. range: - "https://www.w3.org/ns/activitystreams#Object" - singularName: likedOf functional: true compactName: likedOf uri: "https://w3id.org/fep/5711#likedOf" description: | Defines an actor for which the collection is the value of the liked property. range: - "https://www.w3.org/ns/activitystreams#Object" Loading
CHANGES.md +34 −2 Original line number Diff line number Diff line Loading @@ -10,9 +10,43 @@ To be released. ### @fedify/fedify - Added inverse properties for collections to Vocabulary API. [[FEP-5711], [#373], [#381] by Jiwon Kwon] - `new Collection()` constructor now accepts `likesOf` option. - Added `Collection.likesOfId` property. - Added `Collection.getLikesOf()` method. - `new Collection()` constructor now accepts `sharesOf` option. - Added `Collection.sharedOfId` property. - Added `Collection.getSharedOf()` method. - `new Collection()` constructor now accepts `repliesOf` option. - Added `Collection.repliesOfId` property. - Added `Collection.getRepliesOf()` method. - `new Collection()` constructor now accepts `inboxOf` option. - Added `Collection.inboxOfId` property. - Added `Collection.getInboxOf()` method. - `new Collection()` constructor now accepts `outboxOf` option. - Added `Collection.outboxOfId` property. - Added `Collection.getOutboxOf()` method. - `new Collection()` constructor now accepts `followersOf` option. - Added `Collection.followersOfId` property. - Added `Collection.getFollowersOf()` method. - `new Collection()` constructor now accepts `followingOf` option. - Added `Collection.followingOfId` property. - Added `Collection.getFollowingOf()` method. - `new Collection()` constructor now accepts `likedOf` option. - Added `Collection.likedOfId` property. - Added `Collection.getLikedOf()` method. - Changed how `parseSoftware()` function handles non-Semantic Versioning number strings on `tryBestEffort` mode. [[#353], [#365] by Hyeonseo Kim]] [FEP-5711]: https://w3id.org/fep/5711 [#353]: https://github.com/fedify-dev/fedify/issues/353 [#365]: https://github.com/fedify-dev/fedify/pull/365 [#373]: https://github.com/fedify-dev/fedify/issues/373 [#381]: https://github.com/fedify-dev/fedify/pull/381 ### @fedify/cli - Added `Next.js` option to `fedify init` command. This option allows users Loading @@ -37,8 +71,6 @@ To be released. [Next.js]: https://nextjs.org/ [#313]: https://github.com/fedify-dev/fedify/issues/313 [#353]: https://github.com/fedify-dev/fedify/issues/353 [#365]: https://github.com/fedify-dev/fedify/pull/365 Version 1.8.5 Loading
packages/fedify/src/codegen/__snapshots__/class.test.ts.snap +2306 −154 File changed.Preview size limit exceeded, changes collapsed. Show changes
packages/fedify/src/runtime/contexts.ts +36 −0 Original line number Diff line number Diff line Loading @@ -4196,6 +4196,42 @@ const preloadedContexts: Record<string, unknown> = { }, }, }, "https://w3id.org/fep/5711": { "@context": { "likesOf": { "@id": "https://w3id.org/fep/5711#likesOf", "@type": "@id", }, "sharesOf": { "@id": "https://w3id.org/fep/5711#sharesOf", "@type": "@id", }, "repliesOf": { "@id": "https://w3id.org/fep/5711#repliesOf", "@type": "@id", }, "inboxOf": { "@id": "https://w3id.org/fep/5711#inboxOf", "@type": "@id", }, "outboxOf": { "@id": "https://w3id.org/fep/5711#outboxOf", "@type": "@id", }, "followersOf": { "@id": "https://w3id.org/fep/5711#followersOf", "@type": "@id", }, "followingOf": { "@id": "https://w3id.org/fep/5711#followingOf", "@type": "@id", }, "likedOf": { "@id": "https://w3id.org/fep/5711#likedOf", "@type": "@id", }, }, }, }; export default preloadedContexts;
packages/fedify/src/vocab/__snapshots__/vocab.test.ts.snap +102 −6 Original line number Diff line number Diff line Loading @@ -1785,7 +1785,15 @@ snapshot[`Deno.inspect(Collection) [auto] 1`] = ` current: CollectionPage {}, first: CollectionPage {}, last: CollectionPage {}, items: [ Object {}, Link {} ] items: [ Object {}, Link {} ], likesOf: Object {}, sharesOf: Object {}, repliesOf: Object {}, inboxOf: Object {}, outboxOf: Object {}, followersOf: Object {}, followingOf: Object {}, likedOf: Object {} }' `; Loading Loading @@ -1828,7 +1836,15 @@ snapshot[`Deno.inspect(Collection) [auto] 2`] = ` current: URL "https://example.com/", first: URL "https://example.com/", last: URL "https://example.com/", items: [ URL "https://example.com/" ] items: [ URL "https://example.com/" ], likesOf: URL "https://example.com/", sharesOf: URL "https://example.com/", repliesOf: URL "https://example.com/", inboxOf: URL "https://example.com/", outboxOf: URL "https://example.com/", followersOf: URL "https://example.com/", followingOf: URL "https://example.com/", likedOf: URL "https://example.com/" }' `; Loading Loading @@ -1871,7 +1887,15 @@ snapshot[`Deno.inspect(Collection) [auto] 3`] = ` current: CollectionPage {}, first: CollectionPage {}, last: CollectionPage {}, items: [ Object {}, Object {} ] items: [ Object {}, Object {} ], likesOf: Object {}, sharesOf: Object {}, repliesOf: Object {}, inboxOf: Object {}, outboxOf: Object {}, followersOf: Object {}, followingOf: Object {}, likedOf: Object {} }' `; Loading Loading @@ -1915,6 +1939,14 @@ snapshot[`Deno.inspect(CollectionPage) [auto] 1`] = ` first: CollectionPage {}, last: CollectionPage {}, items: [ Object {}, Link {} ], likesOf: Object {}, sharesOf: Object {}, repliesOf: Object {}, inboxOf: Object {}, outboxOf: Object {}, followersOf: Object {}, followingOf: Object {}, likedOf: Object {}, partOf: Collection {}, next: CollectionPage {}, prev: CollectionPage {} Loading Loading @@ -1961,6 +1993,14 @@ snapshot[`Deno.inspect(CollectionPage) [auto] 2`] = ` first: URL "https://example.com/", last: URL "https://example.com/", items: [ URL "https://example.com/" ], likesOf: URL "https://example.com/", sharesOf: URL "https://example.com/", repliesOf: URL "https://example.com/", inboxOf: URL "https://example.com/", outboxOf: URL "https://example.com/", followersOf: URL "https://example.com/", followingOf: URL "https://example.com/", likedOf: URL "https://example.com/", partOf: URL "https://example.com/", next: URL "https://example.com/", prev: URL "https://example.com/" Loading Loading @@ -2007,6 +2047,14 @@ snapshot[`Deno.inspect(CollectionPage) [auto] 3`] = ` first: CollectionPage {}, last: CollectionPage {}, items: [ Object {}, Object {} ], likesOf: Object {}, sharesOf: Object {}, repliesOf: Object {}, inboxOf: Object {}, outboxOf: Object {}, followersOf: Object {}, followingOf: Object {}, likedOf: Object {}, partOf: Collection {}, next: CollectionPage {}, prev: CollectionPage {} Loading Loading @@ -4881,7 +4929,15 @@ snapshot[`Deno.inspect(OrderedCollection) [auto] 1`] = ` current: CollectionPage {}, first: CollectionPage {}, last: CollectionPage {}, items: [ Object {}, Link {} ] items: [ Object {}, Link {} ], likesOf: Object {}, sharesOf: Object {}, repliesOf: Object {}, inboxOf: Object {}, outboxOf: Object {}, followersOf: Object {}, followingOf: Object {}, likedOf: Object {} }' `; Loading Loading @@ -4924,7 +4980,15 @@ snapshot[`Deno.inspect(OrderedCollection) [auto] 2`] = ` current: URL "https://example.com/", first: URL "https://example.com/", last: URL "https://example.com/", items: [ URL "https://example.com/" ] items: [ URL "https://example.com/" ], likesOf: URL "https://example.com/", sharesOf: URL "https://example.com/", repliesOf: URL "https://example.com/", inboxOf: URL "https://example.com/", outboxOf: URL "https://example.com/", followersOf: URL "https://example.com/", followingOf: URL "https://example.com/", likedOf: URL "https://example.com/" }' `; Loading Loading @@ -4967,7 +5031,15 @@ snapshot[`Deno.inspect(OrderedCollection) [auto] 3`] = ` current: CollectionPage {}, first: CollectionPage {}, last: CollectionPage {}, items: [ Object {}, Object {} ] items: [ Object {}, Object {} ], likesOf: Object {}, sharesOf: Object {}, repliesOf: Object {}, inboxOf: Object {}, outboxOf: Object {}, followersOf: Object {}, followingOf: Object {}, likedOf: Object {} }' `; Loading Loading @@ -5011,6 +5083,14 @@ snapshot[`Deno.inspect(OrderedCollectionPage) [auto] 1`] = ` first: CollectionPage {}, last: CollectionPage {}, items: [ Object {}, Link {} ], likesOf: Object {}, sharesOf: Object {}, repliesOf: Object {}, inboxOf: Object {}, outboxOf: Object {}, followersOf: Object {}, followingOf: Object {}, likedOf: Object {}, partOf: Collection {}, next: CollectionPage {}, prev: CollectionPage {}, Loading Loading @@ -5058,6 +5138,14 @@ snapshot[`Deno.inspect(OrderedCollectionPage) [auto] 2`] = ` first: URL "https://example.com/", last: URL "https://example.com/", items: [ URL "https://example.com/" ], likesOf: URL "https://example.com/", sharesOf: URL "https://example.com/", repliesOf: URL "https://example.com/", inboxOf: URL "https://example.com/", outboxOf: URL "https://example.com/", followersOf: URL "https://example.com/", followingOf: URL "https://example.com/", likedOf: URL "https://example.com/", partOf: URL "https://example.com/", next: URL "https://example.com/", prev: URL "https://example.com/", Loading Loading @@ -5105,6 +5193,14 @@ snapshot[`Deno.inspect(OrderedCollectionPage) [auto] 3`] = ` first: CollectionPage {}, last: CollectionPage {}, items: [ Object {}, Object {} ], likesOf: Object {}, sharesOf: Object {}, repliesOf: Object {}, inboxOf: Object {}, outboxOf: Object {}, followersOf: Object {}, followingOf: Object {}, likedOf: Object {}, partOf: Collection {}, next: CollectionPage {}, prev: CollectionPage {}, Loading
packages/fedify/src/vocab/collection.yaml +72 −0 Original line number Diff line number Diff line Loading @@ -80,3 +80,75 @@ properties: range: - "https://www.w3.org/ns/activitystreams#Object" - "https://www.w3.org/ns/activitystreams#Link" - singularName: likesOf functional: true compactName: likesOf uri: "https://w3id.org/fep/5711#likesOf" description: | Defines an object for which the collection is the value of the likes property. range: - "https://www.w3.org/ns/activitystreams#Object" - singularName: sharesOf functional: true compactName: sharesOf uri: "https://w3id.org/fep/5711#sharesOf" description: | Defines an object for which the collection is the value of the shares property. range: - "https://www.w3.org/ns/activitystreams#Object" - singularName: repliesOf functional: true compactName: repliesOf uri: "https://w3id.org/fep/5711#repliesOf" description: | Defines an object for which the collection is the value of the replies property. range: - "https://www.w3.org/ns/activitystreams#Object" - singularName: inboxOf functional: true compactName: inboxOf uri: "https://w3id.org/fep/5711#inboxOf" description: | Defines an actor for which the collection is the value of the inbox property. range: - "https://www.w3.org/ns/activitystreams#Object" - singularName: outboxOf functional: true compactName: outboxOf uri: "https://w3id.org/fep/5711#outboxOf" description: | Defines an actor for which the collection is the value of the outbox property. range: - "https://www.w3.org/ns/activitystreams#Object" - singularName: followersOf functional: true compactName: followersOf uri: "https://w3id.org/fep/5711#followersOf" description: | Defines an actor for which the collection is the value of the followers property. range: - "https://www.w3.org/ns/activitystreams#Object" - singularName: followingOf functional: true compactName: followingOf uri: "https://w3id.org/fep/5711#followingOf" description: | Defines an actor for which the collection is the value of the following property. range: - "https://www.w3.org/ns/activitystreams#Object" - singularName: likedOf functional: true compactName: likedOf uri: "https://w3id.org/fep/5711#likedOf" description: | Defines an actor for which the collection is the value of the liked property. range: - "https://www.w3.org/ns/activitystreams#Object"