Fedify 0.14.0
Released on August 27, 2024.
-
Removed the limitation that the
sendActivity({ handle: string }, "followers", Activity)overload is only available forRequestContextbut not forContext. Now it is available for both. [#115]- Added
Context.sendActivity({ handle: string }, "followers", Activity)overload. - Added type parameter
TContexttoCollectionsDispatchertype's first parameter to distinguish betweenRequestContextandContext. - The first parameter of
CollectionDispatchertype becameTContext(wasRequestContext). - Added type parameter
TContexttoCollectionsCursortype's first parameter to distinguish betweenRequestContextandContext. - The first parameter of
CollectionCursortype becameTContext(wasRequestContext). - Added type parameter
TContexttoCollectionsCallbackSetterstype's first parameter to distinguish betweenRequestContextandContext.
- Added
-
Added
sourceproperty toObjectclass in Activity Vocabulary API. [#114]- Added
Object.sourceproperty. new Object()constructor now acceptssourceoption.Object.clone()method now acceptssourceoption.
- Added
-
Added
Sourceclass to Activity Vocabulary API. [#114] -
Added
aliasesproperty toActortype in Activity Vocabulary API.- Added
Application.getAliases()method. - Added
Application.getAlias()method. new Application()constructor now acceptsaliasoption.new Application()constructor now acceptsaliasesoption.Application.clone()method now acceptsaliasoption.Application.clone()method now acceptsaliasesoption.- Added
Group.getAliases()method. - Added
Group.getAlias()method. new Group()constructor now acceptsaliasoption.new Group()constructor now acceptsaliasesoption.Group.clone()method now acceptsaliasoption.Group.clone()method now acceptsaliasesoption.- Added
Organization.getAliases()method. - Added
Organization.getAlias()method. new Organization()constructor now acceptsaliasoption.new Organization()constructor now acceptsaliasesoption.Organization.clone()method now acceptsaliasoption.Organization.clone()method now acceptsaliasesoption.- Added
Person.getAliases()method. - Added
Person.getAlias()method. new Person()constructor now acceptsaliasoption.new Person()constructor now acceptsaliasesoption.Person.clone()method now acceptsaliasoption.Person.clone()method now acceptsaliasesoption.- Added
Service.getAliases()method. - Added
Service.getAlias()method. new Service()constructor now acceptsaliasoption.new Service()constructor now acceptsaliasesoption.Service.clone()method now acceptsaliasoption.Service.clone()method now acceptsaliasesoption.
- Added
-
Improved the performance of
Object.toJsonLd()method.Object.toJsonLd()method no longer guarantees that the returned JSON-LD object is compacted unless theformat: "compact"option is provided.- Added
formatoption toObject.toJsonLd()method. - Deprecated
expandoption ofObject.toJsonLd()method. Useformat: "expand"option instead. - The
contextoption ofObject.toJsonLd()method is now only applicable toformat: "compact". Otherwise, it throws aTypeError.
-
The
getActorHandle()function now supports cross-origin WebFinger resources. -
The
lookupWebFinger()andgetActorHandle()functions no more throw an error when they fail to reach the WebFinger resource. -
Collection dispatchers now set the
idproperty of theOrderedCollection/OrderedCollectionPageobjects that they return to the their canonical URI. -
Now
fedify initgenerates a default tsconfig.json file on Node.js and Bun, and fills the deno.json file with the defaultcompilerOptionson Deno.