hivez 0.0.7
hivez: ^0.0.7 copied to clipboard
The cleanest way to use Hive in production. Type-safe, concurrency-safe, boilerplate-free. (Using hive_ce)
0.0.7 #
- Implemented extensive testing for all box types and functions
- Tests for
put,get,putAll,containsKey,keys,length,isEmpty,isNotEmpty,delete,deleteAt,deleteAll,clear,generateBackupJson,restoreBackupJson,generateBackupCompressed,restoreBackupCompressed - Box types tested:
HivezBox,HivezLazyBox,HivezIsolatedBox,HivezIsolatedLazyBox
0.0.6 #
- Created backup extension methods for all box types, it uses the existing json backup extension methods and compresses the json string using the
shrinkpackage with compression ratios of 5x-40xgenerateBackupCompressedfor generating compressed backupsrestoreBackupCompressedfor restoring compressed backups
- Started setting up testing for the package
- Implemented test setup utilities using the
hive_ce_flutterpackage - Added testing dev dependencies
0.0.5 #
- Created backup extension methods for all box types, it saves all data existing in the box to a json string and allows to restore the data from the json string back to the box
generateBackupJsonfor generating json backupsrestoreBackupJsonfor restoring json backups
0.0.4 #
- Added all box types, all ready to use out of the box
HivezBoxfor regular boxesHivezLazyBoxfor lazy boxesHivezIsolatedBoxfor regular isolated boxesHivezIsolatedLazyBoxfor lazy isolated boxes
0.0.3 #
- Added abstract boxes
AbstractHivezBoxfor lazy and regular boxesAbstractHivezIsolatedBoxfor lazy and regular isolated boxes
- Implemented shared functionality for all boxes
0.0.2 #
- Changed
BaseHiveServicetoBaseHivezBoxfor better abstraction and flexibility - Created core functionality, exceptions and base interfaces for Hivez boxes
- Added future support for all operations including isolated boxes
- Updated dart sdk dependency to support up to 4.0.0
- Updated README.md links
0.0.1 #
Initial release of hivez package.
- Introduced
BaseHiveService<K, T>for managing Hive boxes:- Lazy initialization via
ensureInitialized()with overridableonInit()hook - Concurrency-safe operations using
synchronizedWriteandsynchronizedRead - Guarded
boxgetter; throwsHiveServiceInitExceptionif uninitialized - Utilities:
closeBox(),deleteFromDisk(), optional logging viaLogHandleranddebugLog()
- Lazy initialization via
- Added
HiveServiceInitExceptionfor uninitialized service access