Skip to content

v1.0.0

Latest
Compare
Choose a tag to compare
@Jcparkyn Jcparkyn released this 13 Jul 04:09

🎉 Version 1.0! No new features, but after much procrastination I'm confident that Phetch is stable and ready to release properly.

Changed

  • BREAKING CHANGE: SetArgAsync, RefetchAsync, and TriggerAsync no longer throw an exception if the query function fails, and instead return a QueryResult<T> type which is either a success or failure.
    • This makes them safer to use as callbacks in your Blazor components, but in most cases you should still use the non-async versions (SetArg, Refetch, Trigger).
    • To migrate code using these methods without changing the functionality, simply replace await query.SetArgAsync(..) with (await query.SetArgAsync(..)).GetOrThrow().

Removed

  • BREAKING CHANGE: Removed the old Mutation<TArg> class which was previously marked obsolete. Use Query<TArg, Unit> instead, which is equivalent.
  • BREAKING CHANGE: Removed the old Skip option on <UseEndpoint/>, which was previously marked obsolete. Use AutoFetch instead.