diff --git a/CHANGELOG.md b/CHANGELOG.md index 6699e890b..3c691dc4d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ ## 1.3.0 +*Use latest version of `hive_generator`* + ### Breaking changes - `TypeAdapters` and `@HiveType()` now require a `typeId` - `Hive.registerAdapter()` does not need a `typeId` anymore. @@ -17,8 +19,6 @@ ## 1.2.0 -*Use latest version of `hive_generator`* - ### Breaking changes - Removed the `Hive.path` getter - Removed `Hive.openBoxFromBytes()` (use the `bytes` parameter of `Hive.openBox()` instead) diff --git a/README.md b/README.md index 945ce587d..2aa02a71d 100644 --- a/README.md +++ b/README.md @@ -11,12 +11,12 @@ Hive is a lightweight and blazing fast key-value database written in pure Dart. ## Features -- 🚀 Mobile, Desktop, & Browser Support -- ⚡ Great Performance (see [benchmark](#benchmark)) -- ❤️ Simple, Powerful, & Intuitive API -- 🔒 Strong Encryption built in -- 🎈 **NO** Native Dependencies -- 🔋 Batteries Included +- 🚀 Cross plarform: mobile, desktop, browser +- ⚡ Great performance (see [benchmark](#benchmark)) +- ❤️ Simple, powerful, & intuitive API +- 🔒 Strong encryption built in +- 🎈 **NO** native dependencies +- 🔋 Batteries included ## Getting Started diff --git a/example/lib/main.dart b/example/lib/main.dart index 37a9073e4..45a479186 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -34,7 +34,7 @@ void main() async { ..age = 22 ..friends = ['Linda', 'Marc', 'Anne']; - box.put('dave', person); + await box.put('dave', person); print(box.get('dave')); // Dave: 22 } diff --git a/example/lib/main.g.dart b/example/lib/main.g.dart index a7c572dc9..98875ee53 100644 --- a/example/lib/main.g.dart +++ b/example/lib/main.g.dart @@ -8,7 +8,7 @@ part of 'main.dart'; class PersonAdapter extends TypeAdapter { @override - int get typeId => 1; + final typeId = 1; @override Person read(BinaryReader reader) {