Skip to content

v0.2.0

Choose a tag to compare

@Jcparkyn Jcparkyn released this 18 Aug 11:42
· 141 commits to main since this release

Added

  • New GetCachedQuery method on Endpoint to look up a cache entry.
    • The returned cache entry can also be invalidated with Invalidate(), or have its data updated with UpdateQueryData(...).
  • New overload for UpdateQueryData which takes a function of the old query data.
  • New DefaultStaleTime option for Endpoint, which sets the stale time when no value is passed to Use.
  • New synchronous Prefetch() method on Endpoint, which doesn't return a Task.

Changed

  • BREAKING CHANGE: Rename QuerySuccessContext and QueryFailureContext to QuerySuccessEventArgs and QueryFailureEventArgs.
  • Various improvements to documentation and sample projects.

Fixed

  • Query functions that throw OperationCancelledException instead of TaskCancelledException will now be caught correctly after cancelling a query.