Skip to content

Commit

Permalink
Switch to sealed class (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodydavis authored Sep 23, 2024
1 parent 593f310 commit f8fc2fa
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.1

- Updated `petitparser` dependency.
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.1
version: 2.2.0
homepage: https://github.com/isoos/query

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

dependencies:
petitparser: ^6.0.0
Expand Down

0 comments on commit f8fc2fa

Please sign in to comment.