Skip to content

Release v17.0.0

Choose a tag to compare

@einari einari released this 20 Jul 07:48
446ddc7

Summary

Renames the embeddings compare and remove builder methods and decorators to resolveUpdateToEvents and resolveDeletionToEvents, so that the API is consistent with the C# SDK. The new names also are more descriptive of their new function.

Also updated the JS sample code to match the new embeddings tutorial.

Added

  • A new exception CouldNotResolveUpdateToEvents, which can be used as the default exception for when the resolveUpdateToEvents couldn't resolve into any events
  • A new exception CouldNotResolveDeletionToEvents, which can be used as the default exception for when the resolveUpdateToEvents couldn't resolve into any events

Changed

  • compare method and decorator became resolveUpdateToEvents
  • remove method and decorator became resolveDeletionToEvents
  • resolveUpdateToEvents and resolveDeletionToEvents now has to return an Object | Object[] instead of any | any[]. This is to enforce the methods always returning one or many events