Skip to content

v1.0.0-alpha.1

Compare
Choose a tag to compare
@KRTirtho KRTirtho released this 06 Mar 16:22
· 30 commits to new-architecture since this release

BREAKING CHANGES

  • The Jobs API has been disabled. So there's no QueryJob, MutationJob and InfiniteQueryJob anymore. Instead, you can use the QueryBuilder, MutationBuilder and InfiniteQueryBuilder directly
  • Some of the classes were renamed to more mature names
    • QueryBowlProvider -> QueryClientProvider
    • QueryBowl -> QueryClient
  • The unnecessary getPreviousPageParam is now removed from InfiniteQuery
  • getNextPageParam has been renamed to nextPage
  • Also, fetchNextPage has been renamed to fetchNext
  • Query and InfiniteQuery's setQueryData has been renamed to setData and it now accepts data directly instead of a call back function
  • useForceUpdate hook is now removed from the package
  • Finally, QueryClient's unneeded prefetchQuery method was eradicated

Features

  • add infinite query builder (efa2c81)
  • add mutation and mutation builder (6a90f84)
  • add query and infinite query disk caching support (074175e)
  • add Cache, Client, QueryBuilder widget and refreshOnQueryFnChange support for queries (18584a3)
  • InfiniteQuery implementation (45b6f92)
  • add InfiniteQueryListenable widget and cache event stream (783a273)
  • add Query and Retryer (b304466)
  • infinite query's nextPage method (f2a23b0)
  • new QueryListableBuilder widget (975f9ea)
  • safe cancellation of running operation on reset (5dde200)
  • safe setState for builders, separate cache box for query and infinite query (68e60c1)
  • add usMutation hook (383d0e0)
  • add useInfiniteQuery hook (f9a5207)
  • add useQuery hook (7fabf44)