PackageTrack
Sign in Get early access

hive_generator

Extension for Hive. Automatically generates TypeAdapters to store any class.

2.0.1 167K downloads/mo #923 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 9 days to 10 months

Nearly every release is documented

notes for 27 of 29 stable releases

Nothing withdrawn

no release was ever pulled

7 years old

31 releases · first in 2019

0 releases in the last 12 months

see the full history below

Release timeline

31 releases · Jul 2019 to Aug 2023
2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 31
  1. 2.0.1 13 Aug 2023
    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 →
    Release notes
    • Updated analyzer version constraints to >=4.6.0 <7.0.0
    • Updates SDK version
    Open source →
  2. 2.0.0 15 Oct 2022
    Release notes

    Fixes

    • Stable null-safety version
    Open source →
  3. 1.1.3 18 May 2022
    Release notes
    • Updated analyzer version constraints to <5.0.0
    Open source →
  4. 1.1.2 09 Jan 2022
    Release notes
    • Updated analyzer version constraints
    Open source →
  5. 1.1.1 09 Sep 2021
    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 →
    Release notes
    • Updated dependency versions
    Open source →
  6. 1.1.0 19 Apr 2021
    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 →
    Release notes
    • Fixes empty class generates adapter with warnings - #638
    • Default value support for class type adapter generators - #625
    Open source →
  7. 1.0.1 28 Mar 2021
    Release notes
    • Fixed dependencies for null-safety compatibility
    Open source →
  8. 1.0.0 05 Mar 2021
    Release notes
    • First stable release
    Open source →
    Release notes
    • Stable null-safety version
    Open source →
  9. 0.9.0-nullsafety.1 31 Jan 2021 pre-release
    Release notes
    • Enum nullsafety support - #555
    Open source →
  10. 0.9.0-nullsafety.0 30 Jan 2021 pre-release
    Release notes
    • Support generating null-safe code for libraries using Dart >= 2.12.0
    • Does not generate incompatible code for legacy libraries, so this is NOT a breaking change.
    Open source →
  11. 0.8.2 02 Nov 2020
    Release notes
    • Inheritance support. Fixes #442
    • Support for both older and newer analyzer versions
    Open source →
  12. 0.8.1 04 Oct 2020
    Release notes
    Open source →
  13. 0.8.0 03 Oct 2020
    Release notes
    • analyzer: ^0.40.0 version support - #455
    Open source →
  14. 0.7.3 03 Oct 2020

    Nothing published for this version

  15. 0.7.2 23 Sep 2020
    Release notes
    Open source →
  16. 0.7.2+1 23 Sep 2020
    Release notes
    • Fixed [#225]
    Open source →
  17. 0.7.1 24 Jul 2020
    Release notes
    • Fixed dependency issues
    Open source →
  18. 0.7.0 03 Jan 2020
    Release notes
    • Fixed final fields in constructor
    • Support for typeId parameter
    Open source →
  19. 0.7.0+1 22 Feb 2020

    Nothing published for this version

  20. 0.7.0+2 22 Feb 2020
    Release notes
    • Fixed Changelog
    Open source →
  21. 0.6.0 22 Dec 2019
    Release notes
    • Support for HiveLists
    • Support for getters & setters
    • Support for inheritance
    Open source →
  22. 0.5.2 29 Sep 2019
    Release notes
    • Fix bug with Uint8Lists
    Open source →
  23. 0.5.1 11 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 →
    Release notes
    • Bump Hive version
    Open source →
  24. 0.5.0 09 Sep 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 →
    Release notes
    • Support final members
    Open source →
  25. 0.4.0 09 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 →
  26. 0.4.0+1 20 Aug 2019
    Release notes
    • Support for enums
    • Sanity checks
    • Bugfixes
    Open source →
  27. 0.4.0+2 05 Sep 2019
    Release notes
    • Support for Lists and Maps in strong mode
    Open source →
  28. 0.3.0 04 Aug 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 →
    Release notes
    • Support for typed lists
    • Bugfixes
    • Breaking: Not compatible to previous adapters
    Open source →
  29. 0.2.0 24 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 →
    Release notes
    • Improve performance of adapers
    • Cast lists to the correct type
    Open source →
  30. 0.1.0 23 Jul 2019
    Release notes
    • First release
    Open source →
  31. 0.1.0+1 23 Jul 2019
    Release notes
    • First release
    Open source →

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