Fedify 0.14.0
Released on August 27, 2024.
-
Removed the limitation that the
sendActivity({ handle: string }, "followers", Activity)
overload is only available forRequestContext
but not forContext
. Now it is available for both. [#115]- Added
Context.sendActivity({ handle: string }, "followers", Activity)
overload. - Added type parameter
TContext
toCollectionsDispatcher
type's first parameter to distinguish betweenRequestContext
andContext
. - The first parameter of
CollectionDispatcher
type becameTContext
(wasRequestContext
). - Added type parameter
TContext
toCollectionsCursor
type's first parameter to distinguish betweenRequestContext
andContext
. - The first parameter of
CollectionCursor
type becameTContext
(wasRequestContext
). - Added type parameter
TContext
toCollectionsCallbackSetters
type's first parameter to distinguish betweenRequestContext
andContext
.
- Added
-
Added
source
property toObject
class in Activity Vocabulary API. [#114]- Added
Object.source
property. new Object()
constructor now acceptssource
option.Object.clone()
method now acceptssource
option.
- Added
-
Added
Source
class to Activity Vocabulary API. [#114] -
Added
aliases
property toActor
type in Activity Vocabulary API.- Added
Application.getAliases()
method. - Added
Application.getAlias()
method. new Application()
constructor now acceptsalias
option.new Application()
constructor now acceptsaliases
option.Application.clone()
method now acceptsalias
option.Application.clone()
method now acceptsaliases
option.- Added
Group.getAliases()
method. - Added
Group.getAlias()
method. new Group()
constructor now acceptsalias
option.new Group()
constructor now acceptsaliases
option.Group.clone()
method now acceptsalias
option.Group.clone()
method now acceptsaliases
option.- Added
Organization.getAliases()
method. - Added
Organization.getAlias()
method. new Organization()
constructor now acceptsalias
option.new Organization()
constructor now acceptsaliases
option.Organization.clone()
method now acceptsalias
option.Organization.clone()
method now acceptsaliases
option.- Added
Person.getAliases()
method. - Added
Person.getAlias()
method. new Person()
constructor now acceptsalias
option.new Person()
constructor now acceptsaliases
option.Person.clone()
method now acceptsalias
option.Person.clone()
method now acceptsaliases
option.- Added
Service.getAliases()
method. - Added
Service.getAlias()
method. new Service()
constructor now acceptsalias
option.new Service()
constructor now acceptsaliases
option.Service.clone()
method now acceptsalias
option.Service.clone()
method now acceptsaliases
option.
- 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
format
option toObject.toJsonLd()
method. - Deprecated
expand
option ofObject.toJsonLd()
method. Useformat: "expand"
option instead. - The
context
option 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
id
property of theOrderedCollection
/OrderedCollectionPage
objects that they return to the their canonical URI. -
Now
fedify init
generates a default tsconfig.json file on Node.js and Bun, and fills the deno.json file with the defaultcompilerOptions
on Deno.