From c02f42a31a888b880eb4bbd02afb4e5ff1cc7e71 Mon Sep 17 00:00:00 2001 From: Kingkor Roy Tirtho Date: Sun, 7 Aug 2022 13:58:25 +0600 Subject: [PATCH 1/2] build: bump versions for upcoming v0.2.0 & add changelog --- packages/fl_query/CHANGELOG.md | 14 +++++++++++++- packages/fl_query/example/pubspec.yaml | 2 +- packages/fl_query/pubspec.yaml | 2 +- packages/fl_query_hooks/example/pubspec.yaml | 4 ++-- packages/fl_query_hooks/pubspec.yaml | 4 ++-- 5 files changed, 19 insertions(+), 7 deletions(-) diff --git a/packages/fl_query/CHANGELOG.md b/packages/fl_query/CHANGELOG.md index c7e00d8..2018749 100644 --- a/packages/fl_query/CHANGELOG.md +++ b/packages/fl_query/CHANGELOG.md @@ -1,4 +1,16 @@ -v0.1.0 +## v0.2.0 + +### New +- Paginated/Lagged Query support using `QueryJob`'s `keepPreviousData` +- Mutation event context (returned data from `onMutate` available in `onData` & `onError`) +- Support for `refetchOnMount`. Now query will be refetched when a new widget is mounted. + +### Improvements +- Only one Query & Mutation instance in `QueryBuilder` & `MutationBuilder` +- Optimistic updates are now context driven + + +## v0.1.0 Initial Release diff --git a/packages/fl_query/example/pubspec.yaml b/packages/fl_query/example/pubspec.yaml index b0aa124..c8a7f07 100644 --- a/packages/fl_query/example/pubspec.yaml +++ b/packages/fl_query/example/pubspec.yaml @@ -34,7 +34,7 @@ dependencies: # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^1.0.2 - fl_query: ^0.1.0 + fl_query: ^0.2.0 http: ^0.13.5 dev_dependencies: diff --git a/packages/fl_query/pubspec.yaml b/packages/fl_query/pubspec.yaml index 5a82cd2..6eab676 100644 --- a/packages/fl_query/pubspec.yaml +++ b/packages/fl_query/pubspec.yaml @@ -1,6 +1,6 @@ name: fl_query description: Asynchronous data caching, refetching & invalidation library for Flutter -version: 0.1.0 +version: 0.2.0 homepage: https://fl-query.vercel.app issue_tracker: https://github.com/KRTirtho/fl-query/issues diff --git a/packages/fl_query_hooks/example/pubspec.yaml b/packages/fl_query_hooks/example/pubspec.yaml index 7072092..20e843b 100644 --- a/packages/fl_query_hooks/example/pubspec.yaml +++ b/packages/fl_query_hooks/example/pubspec.yaml @@ -34,8 +34,8 @@ dependencies: # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^1.0.2 - fl_query: ^0.1.0 - fl_query_hooks: ^0.1.0 + fl_query: ^0.2.0 + fl_query_hooks: ^0.2.0 flutter_hooks: ^0.18.5+1 http: ^0.13.5 diff --git a/packages/fl_query_hooks/pubspec.yaml b/packages/fl_query_hooks/pubspec.yaml index 9d3036d..f56fbbf 100644 --- a/packages/fl_query_hooks/pubspec.yaml +++ b/packages/fl_query_hooks/pubspec.yaml @@ -1,6 +1,6 @@ name: fl_query_hooks description: Elite flutter_hooks compatible library for fl_query, the Asynchronous data caching, refetching & invalidation library for Flutter -version: 0.1.0 +version: 0.2.0 homepage: https://fl-query.vercel.app issue_tracker: https://github.com/KRTirtho/fl-query/issues @@ -16,7 +16,7 @@ dependencies: sdk: flutter flutter_hooks: ^0.18.5+1 uuid: ^3.0.6 - fl_query: ^0.1.0 + fl_query: ^0.2.0 dev_dependencies: flutter_test: From 3b2e75272b62d309342830ef71b309f1c0b5de7e Mon Sep 17 00:00:00 2001 From: Kingkor Roy Tirtho Date: Sun, 7 Aug 2022 14:04:21 +0600 Subject: [PATCH 2/2] build: changelog update --- packages/fl_query/CHANGELOG.md | 2 +- packages/fl_query_hooks/CHANGELOG.md | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/fl_query/CHANGELOG.md b/packages/fl_query/CHANGELOG.md index 2018749..1575766 100644 --- a/packages/fl_query/CHANGELOG.md +++ b/packages/fl_query/CHANGELOG.md @@ -6,7 +6,7 @@ - Support for `refetchOnMount`. Now query will be refetched when a new widget is mounted. ### Improvements -- Only one Query & Mutation instance in `QueryBuilder` & `MutationBuilder` +- Only one Query & Mutation instance in `QueryBuilder` & `MutationBuilder` which reduces memory usage - Optimistic updates are now context driven diff --git a/packages/fl_query_hooks/CHANGELOG.md b/packages/fl_query_hooks/CHANGELOG.md index cc69b7d..6f6261b 100644 --- a/packages/fl_query_hooks/CHANGELOG.md +++ b/packages/fl_query_hooks/CHANGELOG.md @@ -1,3 +1,11 @@ +## 0.2.0 + +### New +- Support Paginated/Lagged Query using `keepPreviousData` + +### Improvements +- Only one Query & Mutation instance in `useQuery` & `useMutation` reducing memory usage + ## 0.1.0 Initial Release