You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The CLI toolchain for testing and debugging is now available on JSR: @fedify/cli. You can install it with deno install -A --unstable-fs --unstable-kv --unstable-temporal -n fedify jsr:@fedify/cli, or download a standalone exectuable from the releases page.
Added RequestContext.sendActivity() overload that takes "followers" as the second parameter.
Added the second type parameter to CollectionCallbackSetters interface.
Added the second type parameter to CollectionDispatcher type.
Added the fourth parameter to CollectionDispatcher type.
Added the second type parameter to CollectionCounter type.
Added the third parameter to CollectionCounter type.
Added the second type parameter to CollectionCursor type.
Added the third parameter to CollectionCursor type.
Relaxed the required type for activity recipients.
Added Recipient interface.
The type of the second parameter of Context.sendActivity() method became Recipient | Recipient[] (was Actor | Actor[]). However, since Recipient is a supertype of Actor, the existing code should work without any change.
Followers collection now has to consist of Recipient objects only. (It could consist of URLs as well as Actors before.)
The type of Federation.setFollowersDispatcher() method's second parameter became CollectionDispatcher<Recipient, TContextData, URL> (was CollectionDispatcher<Actor | URL, TContextData>).
Some of the responsibility of a document loader was separated to a context loader and a document loader.
Added contextLoader option to constructors, fromJsonLd() static methods, clone() methods, and all non-scalar accessors (get*()) of Activity Vocabulary classes.
Renamed documentLoader option to contextLoader in toJsonLd() methods of Activity Vocabulary objects.
Added contextLoader option to LookupObjectOptions interface.
Added contextLoader property to Context interface.
Added contextLoader option to FederationParameters interface.
Renamed documentLoader option to contextLoader in RespondWithObjectOptions interface.
Added GetKeyOwnerOptions interface.
The type of the second parameter of getKeyOwner() function became GetKeyOwnerOptions (was DocumentLoader).
Added DoesActorOwnKeyOptions interface.
The type of the third parameter of doesActorOwnKey() function became DoesActorOwnKeyOptions (was DocumentLoader).
Added width and height properties to Document class for better compatibility with Mastodon. [#47]
Added Document.width property.
Added Document.height property.
new Document() constructor now accepts width option.
new Document() constructor now accepts height option.
Document.clone() method now accepts width option.
Document.clone() method now accepts height option.
Removed the dependency on @js-temporal/polyfill on Deno, and Fedify now requires --unstable-temporal flag. On other runtime, it still depends on @js-temporal/polyfill.
Added more log messages using the LogTape library. Currently the below logger categories are used:
["fedify", "federation", "collection"]
["fedify", "httpsig", "verify"]
["fedify", "runtime", "docloader"]
Fixed a bug where the authenticated document loader had thrown InvalidUrl error when the URL redirection was involved in Bun.
Fixed a bug of lookupObject() that it had failed to look up the actor object when WebFinger response had no links with "type": "application/activity+json" but had "type": "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"".
This discussion was created from the release Fedify 0.8.0.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Released on May 6, 2024.
The CLI toolchain for testing and debugging is now available on JSR: @fedify/cli. You can install it with
deno install -A --unstable-fs --unstable-kv --unstable-temporal -n fedify jsr:@fedify/cli
, or download a standalone exectuable from the releases page.fedify
command.fedify lookup
subcommand.fedify inbox
subcommand.Implemented followers collection synchronization mechanism.
RequestContext.sendActivity()
overload that takes"followers"
as the second parameter.CollectionCallbackSetters
interface.CollectionDispatcher
type.CollectionDispatcher
type.CollectionCounter
type.CollectionCounter
type.CollectionCursor
type.CollectionCursor
type.Relaxed the required type for activity recipients.
Recipient
interface.Context.sendActivity()
method becameRecipient | Recipient[]
(wasActor | Actor[]
). However, sinceRecipient
is a supertype ofActor
, the existing code should work without any change.Followers collection now has to consist of
Recipient
objects only. (It could consist ofURL
s as well asActor
s before.)Federation.setFollowersDispatcher()
method's second parameter becameCollectionDispatcher<Recipient, TContextData, URL>
(wasCollectionDispatcher<Actor | URL, TContextData>
).Some of the responsibility of a document loader was separated to a context loader and a document loader.
contextLoader
option to constructors,fromJsonLd()
static methods,clone()
methods, and all non-scalar accessors (get*()
) of Activity Vocabulary classes.documentLoader
option tocontextLoader
intoJsonLd()
methods of Activity Vocabulary objects.contextLoader
option toLookupObjectOptions
interface.contextLoader
property toContext
interface.contextLoader
option toFederationParameters
interface.documentLoader
option tocontextLoader
inRespondWithObjectOptions
interface.GetKeyOwnerOptions
interface.getKeyOwner()
function becameGetKeyOwnerOptions
(wasDocumentLoader
).DoesActorOwnKeyOptions
interface.doesActorOwnKey()
function becameDoesActorOwnKeyOptions
(wasDocumentLoader
).Added
width
andheight
properties toDocument
class for better compatibility with Mastodon. [#47]Document.width
property.Document.height
property.new Document()
constructor now acceptswidth
option.new Document()
constructor now acceptsheight
option.Document.clone()
method now acceptswidth
option.Document.clone()
method now acceptsheight
option.Removed the dependency on @js-temporal/polyfill on Deno, and Fedify now requires
--unstable-temporal
flag. On other runtime, it still depends on @js-temporal/polyfill.Added more log messages using the LogTape library. Currently the below logger categories are used:
["fedify", "federation", "collection"]
["fedify", "httpsig", "verify"]
["fedify", "runtime", "docloader"]
Fixed a bug where the authenticated document loader had thrown
InvalidUrl
error when the URL redirection was involved in Bun.Fixed a bug of
lookupObject()
that it had failed to look up the actor object when WebFinger response had no links with"type": "application/activity+json"
but had"type": "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\""
.This discussion was created from the release Fedify 0.8.0.
Beta Was this translation helpful? Give feedback.
All reactions