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
Releases
latest 31-
2.0.113 Aug 2023Release 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
Release notes
Open source →- Updated
analyzerversion constraints to>=4.6.0 <7.0.0 - Updates SDK version
-
2.0.015 Oct 2022 -
1.1.318 May 2022 -
1.1.209 Jan 2022 -
1.1.109 Sep 2021Release 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.019 Apr 2021Release 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.0.128 Mar 2021 -
1.0.005 Mar 2021 -
0.9.0-nullsafety.131 Jan 2021 pre-release -
0.9.0-nullsafety.030 Jan 2021 pre-releaseRelease notes
Open source →- 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.
-
0.8.202 Nov 2020Release notes
Open source →- Inheritance support. Fixes #442
- Support for both older and newer analyzer versions
-
0.8.104 Oct 2020 -
0.8.003 Oct 2020 -
0.7.303 Oct 2020Nothing published for this version
-
0.7.223 Sep 2020 -
0.7.2+123 Sep 2020 -
0.7.124 Jul 2020 -
0.7.003 Jan 2020 -
0.7.0+122 Feb 2020Nothing published for this version
-
0.7.0+222 Feb 2020 -
0.6.022 Dec 2019Release notes
Open source →- Support for HiveLists
- Support for getters & setters
- Support for inheritance
-
0.5.229 Sep 2019 -
0.5.111 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.009 Sep 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.009 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.4.0+120 Aug 2019 -
0.4.0+205 Sep 2019 -
0.3.004 Aug 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
Release notes
Open source →- Support for typed lists
- Bugfixes
- Breaking: Not compatible to previous adapters
-
0.2.024 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.023 Jul 2019 -
0.1.0+123 Jul 2019