Fedify 0.9.0
Released on June 2, 2024.
-
Added
Tombstoneclass to Activity Vocabulary API. -
Added
Hashtagclass to Activity Vocabulary API. [#48] -
Added
Emojiclass to Activity Vocabulary API. [#48] -
Added an actor handle normalization function.
- Added
normalizeActorHandle()function. - Added
NormalizeActorHandleOptionsinterface. - The
getActorHandle()function now guarantees that the returned actor handle is normalized. - Added the second optional parameter to
getActorHandle()function. - The return type of
getActorHandle()function becamePromise<`@${string}@${string}` | `${string}@${string}`>(wasPromise<`@${string}@${string}`>).
- Added
-
Added
excludeBaseUrisoption toContext.sendActivity()andFederation.sendActivity()methods.- Added
SendActivityOptions.excludeBaseUrisproperty. - Added
ExtractInboxesParameters.excludeBaseUrisproperty.
- Added
-
The
Contextnow can parse URIs of objects, inboxes, and collections as well as actors.- Added
Context.parseUri()method. - Added
ParseUriResulttype. - Deprecated
Context.getHandleFromActorUri()method.
- Added
-
The time window for signature verification is now configurable. [#52]
- The default time window for signature verification is now a minute (was 30 seconds).
- Added
signatureTimeWindowoption toFederationParametersinterface. - Added
VerifyOptionsinterface. - The signature of the
verify()function is revamped; it now optionally takes aVerifyOptionsobject as the second parameter.
-
Renamed the
@fedify/fedify/httpsigmodule to@fedify/fedify/sig, and also:- Deprecated
sign()function. UsesignRequest()instead. - Deprecated
verify()function. UseverifyRequest()instead. - Deprecated
VerifyOptionsinterface. UseVerifyRequestOptionsinstead.
- Deprecated
-
When signing an HTTP request, the
algorithmparameter is now added to theSignatureheader. This change improves the compatibility with Misskey and other implementations that require thealgorithmparameter. -
Added more log messages using the LogTape library. Currently the below logger categories are used:
["fedify", "federation", "actor"]["fedify", "federation", "http"]["fedify", "sig", "http"]["fedify", "sig", "key"]["fedify", "sig", "owner"]