hive
Lightweight and blazing fast key-value database written in pure Dart. Strongly encrypted using AES-256.
2.2.3
1.1M downloads/mo
#343 most downloaded on pub.dev
hivedb/hive
What this package is like to depend on
Last release 3 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 10 months
Nearly every release is documented
notes for 37 of 38 stable releases
1 version withdrawn
withdrawn after publishing
7 years old
56 releases · first in 2019
0 releases in the last 12 months
see the full history below
Release timeline
56 releases · Jun 2019 to Aug 2023Releases
latest 56-
4.0.0-dev.225 Aug 2023 pre-releaseRelease notes
Open source →⚠️ THIS VERSION OF HIVE IS UNSTABLE AND NOT READY FOR PRODUCTION USE ⚠️
This is a complete rewrite of Hive. It is not compatible with older versions of Hive yet.
Hive now uses Isar internally which brings all the benefits of a native database to Hive.
Enchantments
- Much more resource efficiency
- Support for access from multiple isolates
- Support for transactions
- No more issues with concurrent access and corruption
- Vastly reduced startup time
- No more code generation
-
4.0.0-dev.123 Aug 2023 pre-release -
4.0.0-dev.022 Aug 2023 pre-releaseNothing published for this version
-
3.0.0-dev15 Oct 2022 pre-releaseRelease notes
Open source →What's Changed
- added the
notifyparameter to the functions of the public API by @tomassasovsky in #1019 - feat: implement Web Worker support by @TheOneWithTheBraid in #1030
- feat: add .gitignore by @TheOneWithTheBraid in #1035
- feat: improve BinaryWriter API by @TheOneWithTheBraid in #986
- Implement fully working StorageBackendMemory by @grieshofer in #1036
- feat: store open boxes including collection by @TheOneWithTheBraid in #1038
- fix: missing TupleBoxKey for opening boxes by @TheOneWithTheBraid in #1041
- fix(hive_generator): Apply analyzer 5.0.0 or higher by @jukqaz in #1085
New Contributors
- @tomassasovsky made their first contribution in #1019
- @grieshofer made their first contribution in #1036
- @jukqaz made their first contribution in #1085
Full Changelog: v2.2.3...v3.0.0-dev
Release notes
Open source →Enchantments
- Implemented in-memory storage backend
- Added
notifyparameter to public APIs - Web Worker support
- Threaded AesCipher support (requires hive_flutter >=2.0.0-dev)
- added the
-
2.2.330 Jun 2022Release notes
Open source →What's Changed
- fix: Remove print from deleteBoxFromDisk by @krillefear in #1015
- feat: made resetAdapters public by @alestiago in #1014
New Contributors
- @krillefear made their first contribution in #1015
- @alestiago made their first contribution in #1014
Full Changelog: v2.2.2...v2.2.3
-
2.2.210 Jun 2022 -
2.2.118 May 2022Release notes
Open source →What's Changed
- hive_generator: Update Analyzer version. by @ryojiro in #969
- fix: provide fallback backend manager by @TheOneWithTheBraid in #968
New Contributors
Full Changelog: v2.2.0...v2.2.1
Release notes
Open source →Fixes
- Retracted [email protected] from pub.dev
- Fixed hive web backend null value exception - #968
-
2.2.017 May 2022 withdrawnRelease notes
Open source →What's Changed
- Upstream FluffyBox patches by @TheOneWithTheBraid in #956
New Contributors
- @TheOneWithTheBraid made their first contribution in #956
Full Changelog: v2.1.0...v2.2.0
-
2.1.020 Mar 2022Release notes
Open source →What's Changed
- Do not return uninitialized box by @maRci002 in #916
- Support adapter type inheritance by @saibotma in #927
- Close uninitialized boxes by @themisir in #917
- Support UTF-8 keys by @themisir in #928
New Contributors
Full Changelog: v2.0.6...v2.1.0
-
2.0.624 Feb 2022Release notes
Open source →What's Changed
- Updated hive_generator analyzer dependency by @NatsuOnFire in #858
- Change pedantic to linter and fix warnings by @themisir in #876
- Fix: This should not happen. Please open an issue on GitHub. by @maRci002 in #914
New Contributors
- @NatsuOnFire made their first contribution in #858
- @maRci002 made their first contribution in #914
Full Changelog: v2.0.5...v2.0.6
Release notes
Open source →Fixes
- Fixed issue caused database to crash when executing crash recovery - #914
-
2.0.516 Dec 2021Release notes
Open source →Enhancements
- Get IndexedDB selectively based on window property - #802
- Added
pathparameter toboxExistsanddeleteBoxFromDiskmethods - #776 - Added
flushmethod to boxes - #852
Fixes
- Don't loose track of box objects if init crashes - #846
-
2.0.419 Apr 2021Release notes
Open source →Enhancements
- Adds default value support to hive_generator generated class adapters
-
2.0.313 Apr 2021 -
2.0.231 Mar 2021 -
2.0.128 Mar 2021Release notes
Open source →Fixes
BoxEventvalue isnullwhen watching aLazyBox- #592- Allow calling
.init()multiple times, instead of throwing error Hive will print warning to console - Hive will warn developers when registering adapters for
dynamictype
-
2.0.005 Mar 2021 -
1.6.0-nullsafety.231 Jan 2021 pre-release -
1.6.0-nullsafety.130 Jan 2021 pre-releaseRelease notes
Open source →Fixes
- Changed
metadependency version to^1.3.0-nullsafetyto support null-safety
- Changed
-
1.6.0-nullsafety.030 Jan 2021 pre-releaseRelease notes
Open source →Breaking changes
- Migrate to null-safety - #521
- Update minimum Dart sdk constraint to 2.12.0-0.
- In order to generate null-safe code use hive_generator >= 0.9.0-nullsafety.0
-
1.5.0-pre04 Oct 2020 pre-release -
1.4.420 Aug 2020 -
1.4.4+103 Oct 2020Release notes
Open source →Fixes
- Browser support for
BackendManager.boxExists(boxName, path)- #451
- Browser support for
-
1.4.309 Aug 2020 -
1.4.224 Jul 2020 -
1.4.122 Feb 2020Release notes
Open source →Enhancements
- Minor performance improvements
Fixes
- When a database operation failed, subsequent operations would not be performed
Other
- Fixed GitHub homepage path
-
1.4.1+126 Feb 2020 -
1.4.006 Feb 2020Release notes
Open source →Enhancements
- ~1000% encryption / decryption performance improvement
- Added option to implement custom encryption algorithm
- Added
box.valuesBetween(startKey, endKey) - Allow tree shaking to drop encryption engine if no encryption is used
Fixes
Hive.deleteBoxFromDisk()did not work for boxes with upper-case names
More
- Deprecated
encryptionKeyparameter. UseHive.openBox('name', encryptionCipher: HiveAesCipher(yourKey)). - Dropped
pointycastledependency - Dropped
pathdependency
-
1.4.0+108 Feb 2020Release notes
Open source →Enhancements
- Minor performance improvements
Fixes
- Allow more versions of
crypto
-
1.4.0-dev326 Jan 2020 pre-releaseNothing published for this version
-
1.4.0-dev226 Jan 2020 pre-releaseNothing published for this version
-
1.4.0-dev23 Jan 2020 pre-releaseNothing published for this version
-
1.3.003 Jan 2020Release notes
Open source →Use latest version of
hive_generatorBreaking changes
TypeAdaptersand@HiveType()now require atypeIdHive.registerAdapter()does not need atypeIdanymore.- Removed
BinaryReader.readAsciiString() - Removed
BinaryWriter.writeAsciiString()
Enhancements
- New documentation with tutorials and live code
Fixes
box.clear()resets auto increment counter
More
- Not calling
Hive.init()results in better exception
-
1.2.022 Dec 2019Release notes
Open source →Breaking changes
- Removed the
Hive.pathgetter - Removed
Hive.openBoxFromBytes()(use thebytesparameter ofHive.openBox()instead) LazyBoxandBoxnow have a common parent class:BoxBase- Lazy boxes need to be opened using
Hive.openLazyBox() - Open lazy boxes can be acquired using
Hive.lazyBox() - Box name bug resolved (more information below)
Enhancements
- Support for relationships,
HiveLists(see docs for details) - Support for inheritance
- Lazy boxes can now have a type argument
LazyBox<YourModel> - Added method to delete boxes without opening them
Hive.deleteBoxFromDisk() - Added
pathparameter to open boxes in a custom path - Improved documentation
Fixes
HiveObjectshave not been initialized correctly in lazy boxes- Fixed bug where uppercase box name resulted in an uppercase filename
- Fixed compaction bug which caused corrupted boxes
- Fixed bug which did not allow the key
0xFFFFFFFF - Fixed bug where not all
BoxEvents have been broadcasted
More
- Changed type of
encryptionKeyfromUint8ListtoList<int>
Important:
Due to a bug in previous Hive versions, boxes whose name contains uppercase characters were stored in a file that also contains upper case characters (e.g. 'myBox' -> 'myBox.hive').
To avoid different behavior on case sensitive file systems, Hive should store files with lower case names. This bug has been resolved in version 1.2.0.
If your box name contains upper case characters, the new version will not find a box stored by an older version. Please rename the hive file manually in that case.
This also applies to the web version. - Removed the
-
1.2.0-dev321 Dec 2019 pre-releaseNothing published for this version
-
1.2.0-dev217 Dec 2019 pre-releaseNothing published for this version
-
1.2.0-dev12 Dec 2019 pre-releaseNothing published for this version
-
1.1.118 Oct 2019Release notes
Open source →Breaking changes
object.delete()now throws exception if object is not stored in a box
Fixes
- Fixed bug where
object.save()would fail on subsequent calls
-
1.1.016 Oct 2019Release notes
Open source →Breaking changes
- Changed return type of
addAll()fromList<int>toIterable<int>. - Removed the option to register
TypeAdaptersfor a specific box. E.g.box.registerTypeAdapter(). getAt(),putAt(),deleteAt()andkeyAt()no longer allow indices out of range.
Enhancements
- Added
HiveObject - Boxes have now an optional type parameter
Box<E> - Support opening boxes from assets
Fixes
- Fixed bug which was caused by not awaiting write operations
- Fixed bug where custom compaction strategy was not applied
- Hive now locks box files while they are open to prevent concurrent access from multiple processes
More
- Improved performance of
putAll(),deleteAll(),add(),addAll() - Changed
valuesparameter ofaddAll()fromListtoIterable - Improved documentation
- Preparation for queries
- Changed return type of
-
1.1.0+117 Oct 2019 -
1.1.0+218 Oct 2019 -
1.1.0-beta316 Oct 2019 pre-releaseNothing published for this version
-
1.1.0-beta211 Oct 2019 pre-releaseNothing published for this version
-
1.1.0-beta02 Oct 2019 pre-releaseNothing published for this version
-
1.0.011 Sep 2019 -
0.5.105 Sep 2019Release notes
Open source →- Fixed
Hive.init()bug in browser - Fixed a bug with large lists or strings
- Improved box opening time in the browser
- Improved general write performance
- Improved docs
- Added integration tests
- Fixed
-
0.5.1+109 Sep 2019Release notes
Open source →- Change
keysparameter ofdeleteAllfromListtoIterable - Fixed bug in
BinaryWriter
- Change
-
0.5.030 Aug 2019Release notes
Open source →- Added
keyComparatorparameter for custom key order - Added
isEmptyandisNotEmptygetters to box - Added support for reading and writing subclasses
- Removed length limitation for Lists, Maps, and Strings
- Greatly improved performance of storing Uint8Lists in browser
- Removed CRC check in the browser (not needed)
- Improved documentation
- TypeIds are now allowed in the range of 0-223
- Fixed compaction
- Fixed writing longer Strings
- Breaking: Binary format changed
- Added
-
0.4.118 Aug 2019 -
0.4.1+120 Aug 2019 -
0.4.017 Aug 2019Release notes
Open source →- Added
BigIntsupport - Added
compactionStrategyparameter - Added automatic crash recovery
- Added
add()andaddAll()for auto-increment keys - Added
getAt(),putAt()anddeleteAt()for working with indices - Support for int (32 bit unsigned) keys
- Non-lazy boxes now notify their listeners immediately about changes
- Bugfixes
- More tests
- Breaking: Open boxes with
openBox() - Breaking: Writing
nullis no longer equivalent to deleting a key - Breaking: Temporarily removed support for transactions. New API design needed. Will be coming back in a future version.
- Breaking: Binary format changed
- Breaking: API changes
- Added
-
0.3.023 Jul 2019Release notes
Open source →- Big step towards stable API
- Support for transactions
- Annotations for hive_generator
- Bugfixes
- Improved web support
- Breaking:
inMemory->lazy - Breaking: Binary format changed
-
0.3.0+123 Jul 2019 -
0.2.010 Jul 2019Release notes
Open source →- Support for dart2js
- Improved performance
- Added
inMemoryoption - Breaking: Minor API changes
- Breaking: Changed Endianness to little
- Breaking: Removed Migrator
-
0.1.108 Jul 2019 -
0.1.008 Jul 2019 -
0.0.018 Jun 2019Nothing published for this version