Skip to content

Commit

Permalink
Preparing for release
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexios80 committed Oct 28, 2024
1 parent c7f0d6f commit 4a65db3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
4 changes: 4 additions & 0 deletions hive/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.7.0

- No longer reinitializes `Hive` when opening a `BoxCollection`

## 2.6.0

- Adds `TargetKind.parameter` to `HiveField` to support `freezed`
Expand Down
2 changes: 1 addition & 1 deletion hive/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: hive_ce
description: Hive Community Edition - A spiritual continuation of Hive v2
version: 2.6.0
version: 2.7.0
homepage: https://github.com/IO-Design-Team/hive_ce/tree/main/hive
documentation: https://docs.hivedb.dev/

Expand Down
12 changes: 8 additions & 4 deletions hive/test/tests/box_collection/box_collection_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,14 @@ void main() {
expect(collection.name, 'MyFirstFluffyBox');
expect(collection.boxNames, {'cats', 'dogs'});
});
test('initializes Hive', () async {
await _openCollection();
expect(hive.homePath, isNotNull);
});
test(
'initializes Hive',
() async {
await _openCollection();
expect(hive.homePath, isNotNull);
},
skip: isBrowser,
);
test('does not reinitialize Hive', () async {
hive.init('MYPATH');
await _openCollection();
Expand Down

0 comments on commit 4a65db3

Please sign in to comment.