Skip to content

Commit 036dcb8

Browse files
anidotnetclaude
andcommitted
chore: bump packages to 2.0.4
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 638daff commit 036dcb8

10 files changed

Lines changed: 29 additions & 9 deletions

File tree

packages/nitrite/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.0.4
2+
3+
- Fixed `field.eq(x)` / `field.within(..)` on an array (list) field silently matching nothing when the filter runs as a collection scan. Array membership is matched element-wise on the index path but was matched by whole-value equality (`deepEquals`) on the collection-scan path, so results depended on whether an index existed or was chosen by the planner. Combined with the 2.0.3 planner change (mirror of nitrite-java [#1266](https://github.com/nitrite/nitrite-java/issues/1266)) — which correctly relegates the non-winning-index filter to a collection scan — an AND of an indexed array `eq` and a bounded range on a second indexed field left the array `eq` running as a collection scan, where it matched no documents. `EqualsFilter` and `_InFilter` now match an array/`Iterable` field by element containment on the collection-scan path, mirroring `applyOnIndex`.
4+
15
## 2.0.3
26

37
- Fixed a type-comparison crash (e.g. `InvalidOperationException: Could not compare type int to String`) when an AND filter combined a filter on one indexed field with filters on another, differently-typed indexed field matching a different number of fields (e.g. a single-field index next to a compound index). The query planner picked the best-matching index candidate per field independently but accumulated filters from every candidate it visited into one shared set instead of keeping only the winning index's filters, so filters from an unrelated index leaked into the scan of the chosen index. The planner now selects a single best-matching index and only keeps that index's own filters for the index scan. Mirrors nitrite-java issue [#1266](https://github.com/nitrite/nitrite-java/issues/1266).

packages/nitrite/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: nitrite
22
description: An embedded nosql document store for dart/flutter. It supports both in-memory and file based persistent store.
3-
version: 2.0.3
3+
version: 2.0.4
44
homepage: https://nitrite.dizitart.com/
55
repository: https://github.com/nitrite/nitrite-flutter
66

packages/nitrite_generator/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.0.4
2+
3+
- Maintenance release: raised `nitrite` dependency to `^2.0.4`.
4+
15
## 2.0.3
26

37
- Maintenance release: raised `nitrite` dependency to `^2.0.3`.

packages/nitrite_generator/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: nitrite_generator
22
description: Nitrite entity generator. Automatically generates Nitrite entities from Dart classes.
3-
version: 2.0.3
3+
version: 2.0.4
44
homepage: https://nitrite.dizitart.com/
55
repository: https://github.com/nitrite/nitrite-flutter
66

@@ -14,7 +14,7 @@ dependencies:
1414
dart_style: ">=3.0.0 <4.0.0"
1515
source_gen: ">=4.2.3 <5.0.0"
1616
analyzer: ">=12.0.0 <15.0.0"
17-
nitrite: ^2.0.3
17+
nitrite: ^2.0.4
1818
collection: ^1.19.1
1919

2020
dev_dependencies:

packages/nitrite_hive_adapter/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.0.4
2+
3+
- Maintenance release: raised `nitrite` dependency to `^2.0.4`.
4+
15
## 2.0.3
26

37
- Maintenance release: raised `nitrite` dependency to `^2.0.3`.

packages/nitrite_hive_adapter/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: nitrite_hive_adapter
22
description: A persistent storage module for Nitrite database based on Hive.
3-
version: 2.0.3
3+
version: 2.0.4
44
homepage: https://nitrite.dizitart.com/
55
repository: https://github.com/nitrite/nitrite-flutter
66

@@ -10,7 +10,7 @@ environment:
1010
dependencies:
1111
hive: ^2.2.3
1212
path: ^1.8.3
13-
nitrite: ^2.0.3
13+
nitrite: ^2.0.4
1414
path_provider: ^2.1.1
1515
logging: ^1.0.2
1616
meta: ^1.10.0

packages/nitrite_spatial/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.0.4
2+
3+
- Maintenance release: raised `nitrite` dependency to `^2.0.4`.
4+
15
## 2.0.3
26

37
- Maintenance release: raised `nitrite` dependency to `^2.0.3`.

packages/nitrite_spatial/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: nitrite_spatial
22
description: Nitrite Spatial module provides support for spatial queries. The module uses JTS port of the dart package dart_jts for spatial operations.
3-
version: 2.0.3
3+
version: 2.0.4
44
homepage: https://nitrite.dizitart.com/
55
repository: https://github.com/nitrite/nitrite-flutter
66

@@ -9,7 +9,7 @@ environment:
99

1010
dependencies:
1111
dart_jts: ^0.3.0+1
12-
nitrite: ^2.0.3
12+
nitrite: ^2.0.4
1313
hive: ^2.2.3
1414

1515
dev_dependencies:

packages/nitrite_support/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.0.4
2+
3+
- Maintenance release: raised `nitrite` dependency to `^2.0.4`.
4+
15
## 2.0.3
26

37
- Maintenance release: raised `nitrite` dependency to `^2.0.3`.

packages/nitrite_support/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: nitrite_support
22
description: Support library for Nitrite database to provide some additional features like encryption, import/export database etc.
3-
version: 2.0.3
3+
version: 2.0.4
44
homepage: https://nitrite.dizitart.com/
55
repository: https://github.com/nitrite/nitrite-flutter
66

@@ -9,7 +9,7 @@ environment:
99

1010
dependencies:
1111
path: ^1.8.0
12-
nitrite: ^2.0.3
12+
nitrite: ^2.0.4
1313
compute: ^1.0.2
1414
convert: ^3.1.1
1515
encrypt: ^5.0.1

0 commit comments

Comments
 (0)