Skip to content

Commit f8fc2fa

Browse files
authored
Switch to sealed class (#10)
1 parent 593f310 commit f8fc2fa

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.2.0
2+
3+
- Make `Query` sealed instead of abstract.
4+
15
## 2.1.1
26

37
- Updated `petitparser` dependency.

lib/src/ast.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ abstract class QueryEvaluator<R> {
2626
}
2727

2828
/// Base interface for queries.
29-
abstract class Query {
29+
sealed class Query {
3030
const Query({
3131
required this.position,
3232
});

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ name: query
22
description: >
33
Search query parser to implement customized search.
44
Supports boolean groups, field scopes, ranges, comparisons...
5-
version: 2.1.1
5+
version: 2.2.0
66
homepage: https://github.com/isoos/query
77

88
environment:
9-
sdk: '>=2.17.0 <4.0.0'
9+
sdk: '>=3.0.0 <4.0.0'
1010

1111
dependencies:
1212
petitparser: ^6.0.0

0 commit comments

Comments
 (0)