removed breaking change
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
## Upcoming
|
## Upcoming
|
||||||
|
|
||||||
🛑️ Breaking Changes from `3.0.0`
|
✅ Added
|
||||||
|
|
||||||
- `Filter.notExists` now replaces `Filter.exists(key, exists: false)`.
|
- `Filter.notExists` now replaces `Filter.exists(key, exists: false)`.
|
||||||
|
|
||||||
|
|||||||
@@ -167,12 +167,11 @@ class Filter extends Equatable {
|
|||||||
Filter._(operator: FilterOperator.autoComplete, key: key, value: text);
|
Filter._(operator: FilterOperator.autoComplete, key: key, value: text);
|
||||||
|
|
||||||
/// Matches values that exist.
|
/// Matches values that exist.
|
||||||
factory Filter.exists(String key) =>
|
factory Filter.exists(String key, {bool exists = true}) =>
|
||||||
Filter._(operator: FilterOperator.exists, key: key, value: true);
|
Filter._(operator: FilterOperator.exists, key: key, value: exists);
|
||||||
|
|
||||||
/// Matches values that don't exist.
|
/// Matches values that don't exist.
|
||||||
factory Filter.notExists(String key) =>
|
factory Filter.notExists(String key) => Filter.exists(key, exists: false);
|
||||||
Filter._(operator: FilterOperator.exists, key: key, value: false);
|
|
||||||
|
|
||||||
/// Matches any list that contains the specified values
|
/// Matches any list that contains the specified values
|
||||||
factory Filter.contains(String key, Object value) =>
|
factory Filter.contains(String key, Object value) =>
|
||||||
|
|||||||
Reference in New Issue
Block a user