chore: bump version of both packages and generate CHANGELOG
docs(README): mention newest feature
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||

|

|
||||||
<h1>
|
<h1>
|
||||||
<p align="center">
|
<p align="center">
|
||||||
Fl-Query
|
Fl-Query
|
||||||
@@ -16,17 +16,10 @@ Fl-Query makes asynchronous server state management a breeze in flutter
|
|||||||
- Smart + effective refetching
|
- Smart + effective refetching
|
||||||
- Optimistic updates
|
- Optimistic updates
|
||||||
- Automatically cached data invalidation & unneeded query/mutation garbage collection
|
- Automatically cached data invalidation & unneeded query/mutation garbage collection
|
||||||
|
- Infinite data pagination via `InfiniteQuery`
|
||||||
- Easy to write & understand code. Follows DRY (Don't repeat yourself) convention
|
- Easy to write & understand code. Follows DRY (Don't repeat yourself) convention
|
||||||
- Compatible with both vanilla Flutter & elite [flutter_hooks](https://pub.dev/packages/flutter_hooks)
|
- Compatible with both vanilla Flutter & elite [flutter_hooks](https://pub.dev/packages/flutter_hooks)
|
||||||
|
|
||||||
|
|
||||||
## Support Us
|
|
||||||
<a href="https://www.buymeacoffee.com/krtirtho">
|
|
||||||
<img src="https://img.buymeacoffee.com/button-api/?text=Buy me a coffee&emoji=&slug=krtirtho&button_colour=FF5F5F&font_colour=ffffff&font_family=Inter&outline_colour=000000&coffee_colour=FFDD00" />
|
|
||||||
</a>
|
|
||||||
<br/>
|
|
||||||
<a href="https://patreon.com/krtirtho"><img src="https://user-images.githubusercontent.com/61944859/180249027-678b01b8-c336-451e-b147-6d84a5b9d0e7.png" width="250"/></a>
|
|
||||||
|
|
||||||
# Installation
|
# Installation
|
||||||
|
|
||||||
Regular installation:
|
Regular installation:
|
||||||
@@ -53,6 +46,7 @@ First wrap your `MaterialApp` with with `QueryBowlScope` widget
|
|||||||
```dart
|
```dart
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return QueryBowlScope(
|
return QueryBowlScope(
|
||||||
|
bowl: QueryBowl(),
|
||||||
child: MaterialApp(
|
child: MaterialApp(
|
||||||
title: 'Fl-Query Example App',
|
title: 'Fl-Query Example App',
|
||||||
theme: ThemeData(
|
theme: ThemeData(
|
||||||
@@ -146,7 +140,9 @@ class Example extends HookWidget{
|
|||||||
```
|
```
|
||||||
|
|
||||||
# Why?
|
# Why?
|
||||||

|
<p align="center">
|
||||||
|
<img src="https://media.giphy.com/media/1M9fmo1WAFVK0/giphy.gif" alt="The hell, why?">
|
||||||
|
</p>
|
||||||
|
|
||||||
The main purpose of Fl-Query is providing the easiest way to manage the messy server-state part requiring the least amount of code with code reusability & performance
|
The main purpose of Fl-Query is providing the easiest way to manage the messy server-state part requiring the least amount of code with code reusability & performance
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,26 @@
|
|||||||
|
# Changelog
|
||||||
|
|
||||||
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
||||||
|
|
||||||
|
### [0.3.0](https://github.com/KRTirtho/fl-query/compare/v0.2.0...v0.3.0) (2022-09-23)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* add initial support for `InfiniteQuery` ([1452d7d](https://github.com/KRTirtho/fl-query/commit/1452d7d79e14ef933391221f245c8bff1e869af6))
|
||||||
|
* **infinite-query:** add `useInfiniteQuery` hook with example ([2a3ac29](https://github.com/KRTirtho/fl-query/commit/2a3ac29f64971fe534fa70600e8be4490429304e))
|
||||||
|
* **infinite-query:** add all the features of query in infinite query ([61958c7](https://github.com/KRTirtho/fl-query/commit/61958c7d9499921387c646cc27ab9d6202694804))
|
||||||
|
* **infinite-query:** add refetchPages, refetchOnStale, refetchOnMount support ([95b1837](https://github.com/KRTirtho/fl-query/commit/95b183762021b51df7225adb66f3330e8d84bd96))
|
||||||
|
* **infinite-query:** add setInfiniteQueryData support ([6eb7b2a](https://github.com/KRTirtho/fl-query/commit/6eb7b2a4293b64243e36307a70720601a76878a3))
|
||||||
|
* **infinite-query:** onData and onError listener support ([f47ca98](https://github.com/KRTirtho/fl-query/commit/f47ca98472ccd3eecf49ae348225332c8a2f61ea))
|
||||||
|
* **query_bowl:** `QueryBowl` as separate class
|
||||||
|
* **performance:** lazily update ListenerWidgets or listeners instead of triggering an update for whole widget tree
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **InfiniteQueryJob:** remove unneeded `keepPreviousData` property ([8df1fc5](https://github.com/KRTirtho/fl-query/commit/8df1fc54c326b62ea1f4df0b4b472ef88198ef4d))
|
||||||
|
|
||||||
## v0.2.0
|
## v0.2.0
|
||||||
|
|
||||||
### New
|
### New
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ Fl-Query makes asynchronous server state management a breeze in flutter
|
|||||||
- Smart + effective refetching
|
- Smart + effective refetching
|
||||||
- Optimistic updates
|
- Optimistic updates
|
||||||
- Automatically cached data invalidation & unneeded query/mutation garbage collection
|
- Automatically cached data invalidation & unneeded query/mutation garbage collection
|
||||||
|
- Infinite data pagination via `InfiniteQuery`
|
||||||
- Easy to write & understand code. Follows DRY (Don't repeat yourself) convention
|
- Easy to write & understand code. Follows DRY (Don't repeat yourself) convention
|
||||||
- Compatible with both vanilla Flutter & elite [flutter_hooks](https://pub.dev/packages/flutter_hooks)
|
- Compatible with both vanilla Flutter & elite [flutter_hooks](https://pub.dev/packages/flutter_hooks)
|
||||||
|
|
||||||
@@ -139,7 +140,9 @@ class Example extends HookWidget{
|
|||||||
```
|
```
|
||||||
|
|
||||||
# Why?
|
# Why?
|
||||||

|
<p align="center">
|
||||||
|
<img src="https://media.giphy.com/media/1M9fmo1WAFVK0/giphy.gif" alt="The hell, why?">
|
||||||
|
</p>
|
||||||
|
|
||||||
The main purpose of Fl-Query is providing the easiest way to manage the messy server-state part requiring the least amount of code with code reusability & performance
|
The main purpose of Fl-Query is providing the easiest way to manage the messy server-state part requiring the least amount of code with code reusability & performance
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
name: fl_query
|
name: fl_query
|
||||||
description: Asynchronous data caching, refetching & invalidation library for Flutter
|
description: Asynchronous data caching, refetching & invalidation library for Flutter
|
||||||
version: 0.2.0
|
version: 0.3.0
|
||||||
homepage: https://fl-query.vercel.app
|
homepage: https://fl-query.vercel.app
|
||||||
|
|
||||||
issue_tracker: https://github.com/KRTirtho/fl-query/issues
|
issue_tracker: https://github.com/KRTirtho/fl-query/issues
|
||||||
|
|||||||
@@ -1,3 +1,20 @@
|
|||||||
|
# Changelog
|
||||||
|
|
||||||
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
||||||
|
|
||||||
|
### [0.3.0](https://github.com/KRTirtho/fl-query/compare/v0.2.0...v0.3.0) (2022-09-23)
|
||||||
|
|
||||||
|
|
||||||
|
### New
|
||||||
|
|
||||||
|
* `InfiniteQuery` support
|
||||||
|
|
||||||
|
### Improvement
|
||||||
|
|
||||||
|
* More efficient `QueryBowl` because it's now a class instead of a StatefulWidget
|
||||||
|
* Listeners are updated lazily now
|
||||||
|
|
||||||
|
|
||||||
## 0.2.0
|
## 0.2.0
|
||||||
|
|
||||||
### New
|
### New
|
||||||
@@ -12,5 +29,3 @@ Initial Release
|
|||||||
|
|
||||||
- `useQuery` for binding the `Query` & `QueryJob` data to the UI layer of the application
|
- `useQuery` for binding the `Query` & `QueryJob` data to the UI layer of the application
|
||||||
- `useMutation` for binding the `Mutation` & `MutationJob` operations to the UI layer of the application
|
- `useMutation` for binding the `Mutation` & `MutationJob` operations to the UI layer of the application
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
name: fl_query_hooks
|
name: fl_query_hooks
|
||||||
description: Elite flutter_hooks compatible library for fl_query, the Asynchronous data caching, refetching & invalidation library for Flutter
|
description: Elite flutter_hooks compatible library for fl_query, the Asynchronous data caching, refetching & invalidation library for Flutter
|
||||||
version: 0.2.0
|
version: 0.3.0
|
||||||
homepage: https://fl-query.vercel.app
|
homepage: https://fl-query.vercel.app
|
||||||
|
|
||||||
issue_tracker: https://github.com/KRTirtho/fl-query/issues
|
issue_tracker: https://github.com/KRTirtho/fl-query/issues
|
||||||
@@ -16,7 +16,7 @@ dependencies:
|
|||||||
sdk: flutter
|
sdk: flutter
|
||||||
flutter_hooks: ^0.18.5+1
|
flutter_hooks: ^0.18.5+1
|
||||||
uuid: ^3.0.6
|
uuid: ^3.0.6
|
||||||
fl_query: ^0.2.0
|
fl_query: ^0.3.0
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
|
|||||||
Reference in New Issue
Block a user