PackageTrack
Sign in Get early access

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 2023
2020 2021 2022 2023 2024 2025 2026
Release Pre-release Withdrawn

Releases

latest 56
  1. 4.0.0-dev.2 25 Aug 2023 pre-release
    Release notes

    ⚠️ 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
    Open source →
  2. 4.0.0-dev.1 23 Aug 2023 pre-release
    Release notes

    Added convenience method to start and initialize Isolates.

    Open source →
  3. 4.0.0-dev.0 22 Aug 2023 pre-release

    Nothing published for this version

  4. 3.0.0-dev 15 Oct 2022 pre-release
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v2.2.3...v3.0.0-dev

    Open source →
    Release notes

    Enchantments

    • Implemented in-memory storage backend
    • Added notify parameter to public APIs
    • Web Worker support
    • Threaded AesCipher support (requires hive_flutter >=2.0.0-dev)
    Open source →
  5. 2.2.3 30 Jun 2022
    Release notes

    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

    Open source →
    Release notes

    Enhancements

    • Exposed resetAdapters method for testing - #1014
    • Removed unnecessary print statement - #1015
    Open source →
  6. 2.2.2 10 Jun 2022
    Release notes

    Fixes

    • Register DateTime adapter on web - #983
    Open source →
  7. 2.2.1 18 May 2022
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v2.2.0...v2.2.1

    Open source →
    Release notes

    Fixes

    Open source →
  8. 2.2.0 17 May 2022 withdrawn
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v2.1.0...v2.2.0

    Open source →
    Release notes

    Enhancements

    • Added multiple storage backends for web - #956
    Open source →
  9. 2.1.0 20 Mar 2022
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v2.0.6...v2.1.0

    Open source →
    Release notes

    Fixes

    • Do not return uninitialized box - #916

    Enhancements

    • Adapter type inheritance - #927
    • UTF8 keys - #928
    Open source →
  10. 2.0.6 24 Feb 2022
    Release notes

    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

    Full Changelog: v2.0.5...v2.0.6

    Open source →
    Release notes

    Fixes

    • Fixed issue caused database to crash when executing crash recovery - #914
    Open source →
  11. 2.0.5 16 Dec 2021
    Release notes

    Enhancements

    • Get IndexedDB selectively based on window property - #802
    • Added path parameter to boxExists and deleteBoxFromDisk methods - #776
    • Added flush method to boxes - #852

    Fixes

    • Don't loose track of box objects if init crashes - #846
    Open source →
  12. 2.0.4 19 Apr 2021
    Release notes

    Enhancements

    • Adds default value support to hive_generator generated class adapters
    Open source →
  13. 2.0.3 13 Apr 2021
    Release notes

    Fixes

    • Fix regression where lists are no longer growable - #631
    Open source →
  14. 2.0.2 31 Mar 2021
    Release notes

    Fixes

    • HiveObjectMixin not assigning box to object - #618
    Open source →
  15. 2.0.1 28 Mar 2021
    Release notes

    Fixes

    • BoxEvent value is null when watching a LazyBox - #592
    • Allow calling .init() multiple times, instead of throwing error Hive will print warning to console
    • Hive will warn developers when registering adapters for dynamic type
    Open source →
  16. 2.0.0 05 Mar 2021
    Release notes

    Fixes

    • Stable null-safety version
    Open source →
  17. 1.6.0-nullsafety.2 31 Jan 2021 pre-release
    Release notes

    Fixes

    • Added defaultValue property to @HiveField() annotation - #557
    Open source →
  18. 1.6.0-nullsafety.1 30 Jan 2021 pre-release
    Release notes

    Fixes

    • Changed meta dependency version to ^1.3.0-nullsafety to support null-safety
    Open source →
  19. 1.6.0-nullsafety.0 30 Jan 2021 pre-release
    Release notes

    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
    Open source →
  20. 1.5.0-pre 04 Oct 2020 pre-release
    Release notes

    Enhancements

    • Timezone support for DateTime - #419
    Open source →
  21. 1.4.4 20 Aug 2020
    Release notes

    Fixes

    • Edge browser support - #357
    Open source →
  22. 1.4.4+1 03 Oct 2020
    Release notes

    Fixes

    • Browser support for BackendManager.boxExists(boxName, path) - #451
    Open source →
  23. 1.4.3 09 Aug 2020
    Release notes

    Enhancements

    • Added Hive.ignoreTypeId(typeId) - #397

    Fixes

    • open(Lazy)Box can potentially open a box twice - #345
    • Remove extra byte reservation in writeBoolLis - #398
    Open source →
  24. 1.4.2 24 Jul 2020
    Release notes

    Fixes

    • Fixed dependency issues and minor improvements
    Open source →
  25. 1.4.1 22 Feb 2020
    Release notes

    Enhancements

    • Minor performance improvements

    Fixes

    • When a database operation failed, subsequent operations would not be performed

    Other

    • Fixed GitHub homepage path
    Open source →
  26. 1.4.1+1 26 Feb 2020
    Release notes

    Other

    • Added docs to all public members
    Open source →
  27. 1.4.0 06 Feb 2020
    Release notes

    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 encryptionKey parameter. Use Hive.openBox('name', encryptionCipher: HiveAesCipher(yourKey)).
    • Dropped pointycastle dependency
    • Dropped path dependency
    Open source →
  28. 1.4.0+1 08 Feb 2020
    Release notes

    Enhancements

    • Minor performance improvements

    Fixes

    • Allow more versions of crypto
    Open source →
  29. 1.4.0-dev3 26 Jan 2020 pre-release

    Nothing published for this version

  30. 1.4.0-dev2 26 Jan 2020 pre-release

    Nothing published for this version

  31. 1.4.0-dev 23 Jan 2020 pre-release

    Nothing published for this version

  32. 1.3.0 03 Jan 2020
    Release notes

    Use latest version of hive_generator

    Breaking changes

    • TypeAdapters and @HiveType() now require a typeId
    • Hive.registerAdapter() does not need a typeId anymore.
    • 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
    Open source →
  33. 1.2.0 22 Dec 2019
    Release notes

    Breaking changes

    • Removed the Hive.path getter
    • Removed Hive.openBoxFromBytes() (use the bytes parameter of Hive.openBox() instead)
    • LazyBox and Box now 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 path parameter to open boxes in a custom path
    • Improved documentation

    Fixes

    • HiveObjects have 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 encryptionKey from Uint8List to List<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.

    Open source →
  34. 1.2.0-dev3 21 Dec 2019 pre-release

    Nothing published for this version

  35. 1.2.0-dev2 17 Dec 2019 pre-release

    Nothing published for this version

  36. 1.2.0-dev 12 Dec 2019 pre-release

    Nothing published for this version

  37. 1.1.1 18 Oct 2019
    Release notes

    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
    Open source →
  38. 1.1.0 16 Oct 2019
    Release notes

    Breaking changes

    • Changed return type of addAll() from List<int> to Iterable<int>.
    • Removed the option to register TypeAdapters for a specific box. E.g. box.registerTypeAdapter().
    • getAt(), putAt(), deleteAt() and keyAt() 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 values parameter of addAll() from List to Iterable
    • Improved documentation
    • Preparation for queries
    Open source →
  39. 1.1.0+1 17 Oct 2019
    Release notes

    Fixes

    • Fixed bug that corrupted boxes were not detected
    Open source →
  40. 1.1.0+2 18 Oct 2019
    Release notes

    Fixes

    • Fixed bug that it was not possible to open typed boxes (Box<E>)
    Open source →
  41. 1.1.0-beta3 16 Oct 2019 pre-release

    Nothing published for this version

  42. 1.1.0-beta2 11 Oct 2019 pre-release

    Nothing published for this version

  43. 1.1.0-beta 02 Oct 2019 pre-release

    Nothing published for this version

  44. 1.0.0 11 Sep 2019
    Release notes
    • First stable release
    Open source →
  45. 0.5.1 05 Sep 2019
    Release notes
    • 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
    Open source →
  46. 0.5.1+1 09 Sep 2019
    Release notes
    • Change keys parameter of deleteAll from List to Iterable
    • Fixed bug in BinaryWriter
    Open source →
  47. 0.5.0 30 Aug 2019
    Release notes
    • Added keyComparator parameter for custom key order
    • Added isEmpty and isNotEmpty getters 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
    Open source →
  48. 0.4.1 18 Aug 2019
    Release notes
    • Allow different versions of the path package
    Open source →
  49. 0.4.1+1 20 Aug 2019
    Release notes
    • Document all public APIs
    • Fixed flutter_web error
    Open source →
  50. 0.4.0 17 Aug 2019
    Release notes
    • Added BigInt support
    • Added compactionStrategy parameter
    • Added automatic crash recovery
    • Added add() and addAll() for auto-increment keys
    • Added getAt(), putAt() and deleteAt() 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 null is 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
    Open source →
  51. 0.3.0 23 Jul 2019
    Release notes
    • Big step towards stable API
    • Support for transactions
    • Annotations for hive_generator
    • Bugfixes
    • Improved web support
    • Breaking: inMemory -> lazy
    • Breaking: Binary format changed
    Open source →
  52. 0.3.0+1 23 Jul 2019
    Release notes
    • Bugfix: Hive['yourBox'] didn't work with uppercase box names
    Open source →
  53. 0.2.0 10 Jul 2019
    Release notes
    • Support for dart2js
    • Improved performance
    • Added inMemory option
    • Breaking: Minor API changes
    • Breaking: Changed Endianness to little
    • Breaking: Removed Migrator
    Open source →
  54. 0.1.1 08 Jul 2019
    Release notes
    • Downgrade to meta: ^1.1.6 to support flutter
    Open source →
  55. 0.1.0 08 Jul 2019
    Release notes
    • First release
    Open source →
  56. 0.0.0 18 Jun 2019

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive