Loading CHANGES.md +12 −1 Original line number Diff line number Diff line Loading @@ -39,7 +39,7 @@ To be released. - Added `Collection.getLikedOf()` method. - Changed how `parseSoftware()` function handles non-Semantic Versioning number strings on `tryBestEffort` mode. [[#353], [#365] by Hyeonseo Kim]] number strings on `tryBestEffort` mode. [[#353], [#365] by Hyeonseo Kim] - Separated modules from `@fedify/fedify/x` into dedicated packages to improve modularity and reduce bundle size. The existing integration Loading @@ -51,12 +51,23 @@ To be released. - Deprecated `@fedify/fedify/x/hono` in favor of `@fedify/hono`. - Deprecated `@fedify/fedify/x/sveltekit` in favor of `@fedify/sveltekit`. - Extended `Link` from `@fedify/fedify/webfinger` to support [OStatus 1.0 Draft 2]. [[#402], [#404] by Hyeonseo Kim] - Added an optional `template` field to the `Link` interface. - Changed the `href` field optional from the `Link` interface according to [RFC 7033 Section 4.4.4.3]. [FEP-5711]: https://w3id.org/fep/5711 [OStatus 1.0 Draft 2]: https://www.w3.org/community/ostatus/wiki/images/9/93/OStatus_1.0_Draft_2.pdf [RFC 7033 Section 4.4.4.3]: https://datatracker.ietf.org/doc/html/rfc7033#section-4.4.4.3 [#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 [#375]: https://github.com/fedify-dev/fedify/issues/375 [#381]: https://github.com/fedify-dev/fedify/pull/381 [#402]: https://github.com/fedify-dev/fedify/issues/402 [#404]: https://github.com/fedify-dev/fedify/pull/404 ### @fedify/cli Loading packages/fedify/src/nodeinfo/client.ts +1 −1 Original line number Diff line number Diff line Loading @@ -121,7 +121,7 @@ export async function getNodeInfo( "href" in link && link.href != null ); if (link == null) { if (link == null || link.href == null) { logger.error( "Failed to find a NodeInfo document link from {url}: {resourceDescriptor}", { url: wellKnownUrl.href, resourceDescriptor: wellKnownRd }, Loading packages/fedify/src/vocab/lookup.ts +1 −1 Original line number Diff line number Diff line Loading @@ -161,7 +161,7 @@ async function lookupObjectInternal( l.type !== "application/activity+json" && !l.type?.match( /application\/ld\+json;\s*profile="https:\/\/www.w3.org\/ns\/activitystreams"/, ) || l.rel !== "self" ) || l.rel !== "self" || l.href == null ) continue; try { const remoteDoc = await documentLoader(l.href, { Loading packages/fedify/src/webfinger/jrd.ts +9 −1 Original line number Diff line number Diff line Loading @@ -44,7 +44,7 @@ export interface Link { /** * A URI pointing to the target resource. */ href: string; href?: string; /** * Human-readable titles describing the link relation. If the language is Loading @@ -56,4 +56,12 @@ export interface Link { * Conveys additional information about the link relation. */ properties?: Record<string, string>; /** * A URI Template (RFC 6570) that can be used to construct URIs by * substituting variables. Used primarily for subscription endpoints * where parameters like account URIs need to be dynamically inserted. * @since 1.9.0 */ template?: string; } Loading
CHANGES.md +12 −1 Original line number Diff line number Diff line Loading @@ -39,7 +39,7 @@ To be released. - Added `Collection.getLikedOf()` method. - Changed how `parseSoftware()` function handles non-Semantic Versioning number strings on `tryBestEffort` mode. [[#353], [#365] by Hyeonseo Kim]] number strings on `tryBestEffort` mode. [[#353], [#365] by Hyeonseo Kim] - Separated modules from `@fedify/fedify/x` into dedicated packages to improve modularity and reduce bundle size. The existing integration Loading @@ -51,12 +51,23 @@ To be released. - Deprecated `@fedify/fedify/x/hono` in favor of `@fedify/hono`. - Deprecated `@fedify/fedify/x/sveltekit` in favor of `@fedify/sveltekit`. - Extended `Link` from `@fedify/fedify/webfinger` to support [OStatus 1.0 Draft 2]. [[#402], [#404] by Hyeonseo Kim] - Added an optional `template` field to the `Link` interface. - Changed the `href` field optional from the `Link` interface according to [RFC 7033 Section 4.4.4.3]. [FEP-5711]: https://w3id.org/fep/5711 [OStatus 1.0 Draft 2]: https://www.w3.org/community/ostatus/wiki/images/9/93/OStatus_1.0_Draft_2.pdf [RFC 7033 Section 4.4.4.3]: https://datatracker.ietf.org/doc/html/rfc7033#section-4.4.4.3 [#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 [#375]: https://github.com/fedify-dev/fedify/issues/375 [#381]: https://github.com/fedify-dev/fedify/pull/381 [#402]: https://github.com/fedify-dev/fedify/issues/402 [#404]: https://github.com/fedify-dev/fedify/pull/404 ### @fedify/cli Loading
packages/fedify/src/nodeinfo/client.ts +1 −1 Original line number Diff line number Diff line Loading @@ -121,7 +121,7 @@ export async function getNodeInfo( "href" in link && link.href != null ); if (link == null) { if (link == null || link.href == null) { logger.error( "Failed to find a NodeInfo document link from {url}: {resourceDescriptor}", { url: wellKnownUrl.href, resourceDescriptor: wellKnownRd }, Loading
packages/fedify/src/vocab/lookup.ts +1 −1 Original line number Diff line number Diff line Loading @@ -161,7 +161,7 @@ async function lookupObjectInternal( l.type !== "application/activity+json" && !l.type?.match( /application\/ld\+json;\s*profile="https:\/\/www.w3.org\/ns\/activitystreams"/, ) || l.rel !== "self" ) || l.rel !== "self" || l.href == null ) continue; try { const remoteDoc = await documentLoader(l.href, { Loading
packages/fedify/src/webfinger/jrd.ts +9 −1 Original line number Diff line number Diff line Loading @@ -44,7 +44,7 @@ export interface Link { /** * A URI pointing to the target resource. */ href: string; href?: string; /** * Human-readable titles describing the link relation. If the language is Loading @@ -56,4 +56,12 @@ export interface Link { * Conveys additional information about the link relation. */ properties?: Record<string, string>; /** * A URI Template (RFC 6570) that can be used to construct URIs by * substituting variables. Used primarily for subscription endpoints * where parameters like account URIs need to be dynamically inserted. * @since 1.9.0 */ template?: string; }