Skip to content

Fedify 1.4.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 05 Feb 03:15
· 6 commits to main since this release
1.4.0
5dc91fc

Released on February 5, 2025.

  • Document loader and context loader are now configurable with a factory function for more flexibility.

    • Deprecated CreateFederationOptions.documentLoader option. Use CreateFederationOptions.documentLoaderFactory option instead.
    • Deprecated CreateFederationOptions.contextLoader option. Use CreateFederationOptions.contextLoaderFactory option instead.
    • Added DocumentLoaderFactory type.
    • Added DocumentLoaderFactoryOptions interface.
    • Added the second parameter with DocumentLoaderFactoryOptions type to AuthenticatedDocumentLoaderFactory type.
    • GetAuthenticatedDocumentLoaderOptions interface became to extend DocumentLoaderFactoryOptions interface.
    • Added a type parameter TContextData to CreateFederationOptions interface.
    • Fedify now assigns a random-generated http:/https: URI to activities if these do not have explicit id properties. This behavior can be disabled by excluding autoIdAssigner() from the CreateFederationOptions.activityTransformers option.
  • Introduced ActivityTransformers for adjusting outgoing activities before sending them so that some ActivityPub implementations with quirks are satisfied.

    • Added @fedify/fedify/compat module.
    • Added ActivityTransformer type.
    • Added autoIdAssigner() function.
    • Added actorDehydrator() function.
    • Added defaultActivityTransformers constant.
    • Added CreateFederationOptions.activityTransformers option.
  • The suppressError option of Activity Vocabulary APIs, traverseCollection() function, and Context.traverseCollection() method now suppresses errors occurred JSON-LD processing.

  • WebFinger responses are now customizable. [#3]

    • Added ActorCallbackSetters.mapAlias() method.
    • Added ActorAliasMapper type.
  • Added Context.getNodeInfo() method. [#203]

  • Added shares property to Object class in Activity Vocabulary API.

    • Added Object.sharesId property.
    • Added Object.getShares() method.
    • new Object() constructor now accepts shares option.
    • Object.clone() method now accepts shares option.
  • Added likes property to Object class in Activity Vocabulary API.

    • Added Object.likesId property.
    • Added Object.getLikes() method.
    • new Object() constructor now accepts likes option.
    • Object.clone() method now accepts likes option.
  • Added emojiReactions property to Object class in Activity Vocabulary API.

    • Added Object.emojiReactionsId property
    • Added Object.getEmojiReactions() method.
    • new Object() constructor now accepts emojiReactions option.
    • Object.clone() method now accepts emojiReactions option.
  • Added allowPrivateAddress option to LookupWebFingerOptions interface.

  • Added more log messages using the LogTape library. Currently the below logger categories are used:

    • ["fedify", "compat", "transformers"]
  • Added -t/--traverse option to the fedify lookup subcommand. [#195]

  • Added -S/--suppress-errors option to the fedify lookup subcommand. [#195]