Fedify 1.3.0
Released on November 30, 2024.
-
MessageQueues now can be differently configured for incoming and outgoing activities.- Changed the type of
CreateFederationOptions.queueoption toFederationQueueOptions | MessageQueue | undefined(wasMessageQueue | undefined). - Added
FederationQueueOptionsinterface. - Added
FederationStartQueueOptions.queueoption.
- Changed the type of
-
Fedify now makes HTTP requests with the proper
User-Agentheader. [#162]- Added
getUserAgent()function. - Added
GetUserAgentOptionsinterface. - Added
getDocumentLoader()function. - Added
GetDocumentLoaderOptionsinterface. - The type of
getAuthenticatedDocumentLoader()function's second parameter becameGetAuthenticatedDocumentLoaderOptions | undefined(wasboolean | undefined). - Added
GetAuthenticatedDocumentLoaderOptionsinterface. - Deprecated
fetchDocumentLoader()function. - Added
LookupObjectOptions.userAgentoption. - Added the type of
getActorHandle()function's second parameter becameGetActorHandleOptions | undefined(wasNormalizeActorHandleOptions | undefined). - Added
GetActorHandleOptionsinterface. - Added the optional second parameter to
lookupWebFinger()function. - Added
LookupWebFingerOptionsinterface. - Added
GetNodeInfoOptions.userAgentoption. - Added
-u/--user-agentoption tofedify lookupsubcommand. - Added
-u/--user-agentoption tofedify nodesubcommand.
- Added
-
Fedify now caches unavailable keys of remote actors as well to avoid trying fetching the same unavailable key multiple times.
- The return type of the
KeyCache.get()method becamePromise<CryptographicKey | MultiKey | null | undefined>(wasPromise<CryptographicKey | MultiKey | null>). - The type of the
KeyCache.set()method's second parameter becameCryptographicKey | MultiKey | null(wasCryptographicKey | MultiKey). - Added
fetchKey()function. - Added
FetchKeyOptionsinterface. - Added
FetchKeyResultinterface.
- The return type of the
-
The
Routernow provide the matched route's URI template besides the name.- The return type of
Router.route()method becameRouterRouteResult | null(was{ name: string; values: Record<string, string> } | null). - Added
RouterRouteResultinterface.
- The return type of
-
Added
getTypeId()function. -
Context.sendActivity()andInboxContext.forwardActivity()methods now reject when they fail to enqueue the task. [#192] -
Fedify now allows you to manually route an
Activityto the corresponding inbox listener. [#193]- Added
Context.routeActivity()method. - Added
RouteActivityOptionsinterface.
- Added
-
Object.toJsonLd()without anyformatoption now returns its original JSON-LD object even if it not created fromObject.fromJsonLd()but it is returned from anotherObject'sget*()method. -
Fedify now supports OpenTelemetry for tracing. [#170]
-
Added
Context.tracerProviderproperty. -
Added
CreateFederationOptions.tracerProvideroption. -
Added
LookupWebFingerOptions.tracerProvideroption. -
Added
LookupObjectOptions.tracerProvideroption. -
Added
GetActorHandleOptions.tracerProvideroption. -
Added
VerifyRequestOptions.tracerProvideroption. -
Added
SignRequestOptionsinterface. -
Added the optional fourth parameter to
signRequest()function. -
Added
VerifyProofOptions.tracerProvideroption. -
Added
VerifyObjectOptions.tracerProvideroption. -
Added
SignObjectOptions.tracerProvideroption. -
Added
VerifySignatureOptions.tracerProvideroption. -
Added
VerifyJsonLdOptions.tracerProvideroption. -
Added
SignJsonLdOptions.tracerProvideroption. -
Added
DoesActorOwnKeyOptions.tracerProvideroption. -
Added
GetKeyOwnerOptions.tracerProvideroption. -
Added
tracerProvideroption to the following Activity Vocabulary APIs:- The second parameters of constructors.
- The second parameters of
fromJsonLd()static methods. - The second parameters of
get*()methods.
-
-
Added
@fedify/fedify/x/sveltekitmodule for integrating with SvelteKit hook. [#171, #183 by Jiyu Park]- Added
fedifyHook()function.
- Added
-
The scaffold project generated by
fedify initcommand now enables tracing data into log messages. -
Let the
fedify lookupcommand take multiple arguments. [#173, #186 by PGD]