Skip to content

Commit

Permalink
Switch to sealed class
Browse files Browse the repository at this point in the history
  • Loading branch information
rodydavis committed Mar 15, 2024
1 parent 73fc866 commit 570e250
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.2.0

- Make `Query` sealed instead of abstract.

## 2.1.0

- Naming consistency refactor:
Expand Down
2 changes: 1 addition & 1 deletion lib/src/ast.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ abstract class QueryEvaluator<R> {
}

/// Base interface for queries.
abstract class Query {
sealed class Query {
const Query({
required this.position,
});
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ name: query
description: >
Search query parser to implement customized search.
Supports boolean groups, field scopes, ranges, comparisons...
version: 2.1.0
version: 2.2.0
homepage: https://github.com/isoos/query

environment:
sdk: '>=2.17.0 <3.0.0'
sdk: '>=3.0.0 <4.0.0'

dependencies:
petitparser: ^5.0.0
Expand Down

0 comments on commit 570e250

Please sign in to comment.