Releases: KRTirtho/fl-query
Releases · KRTirtho/fl-query
v1.1.0
What's Changed
- Fix error not resetting after successful query/mutation by @PetrKubes97 in #43
- Fixes by @PetrKubes97 in #50
- fix: infinite query hasErrors always true for dynamic error types by @PetrKubes97 in #57
- feat: add is fetching getter by @PetrKubes97 in #65
- Fix: infinite query did not load pages in the correct order by @PetrKubes97 in #64
New Contributors
- @PetrKubes97 made their first contribution in #43
Full Changelog: v1.0.0...v1.1.0
v1.0.0
Fl-Query has reached V1 🎉
Highlights
- Persistent Query/InfiniteQuery support using Hive
- Offline capabilites
- Working internet connectivity based query refreshing (
fl_query_connectivity_plus_adapter) - New API for creating Query/Mutation directly using builder widget or hooks instead of Jobs
- Make The old Jobs API work better
- Experimental Devtools (
fl_query_devtools) - Make it ready for production usage. [Real world apps: Spotube and Flemozi]
- Complete Documentation of the Library including the hook version (fl-query.krtirtho.dev)
Visit the docs for mastering Fl-Query: https://fl-query.krtirtho.dev
Full Changelog: v0.3.0...v1.0.0
v1.0.0-alpha.1
BREAKING CHANGES
- The Jobs API has been disabled. So there's no
QueryJob,MutationJobandInfiniteQueryJobanymore. Instead, you can use theQueryBuilder,MutationBuilderandInfiniteQueryBuilderdirectly - Some of the classes were renamed to more mature names
QueryBowlProvider->QueryClientProviderQueryBowl->QueryClient
- The unnecessary
getPreviousPageParamis now removed fromInfiniteQuery getNextPageParamhas been renamed tonextPage- Also,
fetchNextPagehas been renamed tofetchNext QueryandInfiniteQuery'ssetQueryDatahas been renamed tosetDataand it now accepts data directly instead of a call back function- useForceUpdate hook is now removed from the package
- Finally,
QueryClient's unneededprefetchQuerymethod 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)
v0.3.0
Highlights
InfiniteQuerysupport- Lazy updates. Now fl_query updates all the listeners when needed instead of updating the entire widget tree
QueryBowlis now refactored to a separate class. It fixes the biggest performance overhead of loading all the queries/mutations in every new page- Custom cache support via
QueryCache - Multiple
QueryBowland nestedQueryBowlsupport just like any Dependency Injection thanks to newQueryBowlScope
Features
- add initial support for
InfiniteQuery(1452d7d) - infinite-query: add
useInfiniteQueryhook with example (2a3ac29) - infinite-query: add all the features of query in infinite query (61958c7)
- infinite-query: add refetchPages, refetchOnStale, refetchOnMount support (95b1837)
- infinite-query: add setInfiniteQueryData support (6eb7b2a)
- infinite-query: onData and onError listener support (f47ca98)
- query_bowl:
QueryBowlas separate class - performance: lazily update ListenerWidgets or listeners instead of triggering an update for whole widget tree
Bug Fixes
- InfiniteQueryJob: remove unneeded
keepPreviousDataproperty (8df1fc5)
Full Changelog: v0.2.0...v0.3.0
v0.2.0
New 🎉
- Paginated/Lagged Query support using
QueryJob'skeepPreviousData - Mutation event context (returned data from
onMutateavailable inonData&onError) - Support for
refetchOnMount. Now query will be refetched when a new widget is mounted.
Improvements 📈
- Only one Query & Mutation instance in
QueryBuilder,MutationBuilder,useQuery&useMutationwhich reduces memory usage - Optimistic updates are now context driven
What's Changed
Full Changelog: v0.1.0...v0.2.0
v0.1.0
Very First Release of Fl-Query, the Async Data manager for Flutter
QueryBowl&QueryBowlScopefor managing & caching all the query data.Queryfor advanced fetch, refetch & data management APIsMutationfor advanced mutate (a function that modifies data somewhere) & post-mutation management APIsQueryJobfor defining the logic of how data should be fetched or refetched or invalidatedMutationJobfor defining the logic of how data should be mutatedQueryBuilderfor binding theQuery&QueryJobto a Flutter WidgetMutationBuilderfor binding theMutation&MutationJobto a Flutter WidgetuseQueryfor binding theQuery&QueryJobdata to the UI layer of the applicationuseMutationfor binding theMutation&MutationJoboperations to the UI layer of the application
Full Changelog: https://github.com/KRTirtho/fl-query/commits/v0.1.0