4.2 KiB
4.2 KiB
Changelog
[Unreleased]
v1.1.0
Improvements
- #23515 Bring in
collections/protocodecgo module as package withincollectionsmodule.
v1.0.0
Features
- #22641 Add reverse iterator support for
Triple. - #17656 Introduces
Vec, a collection type that allows to represent a growable array on top of a KVStore. - #18933 Add LookupMap implementation. It is basic wrapping of the standard Map methods but is not iterable.
- #19343 Simplify IndexedMap creation by allowing to infer indexes through reflection.
- #19861 Add
NewJSONValueCodecvalue codec as an alternative forcodec.CollValuefrom the SDK for non protobuf types. - #21090 Introduces
Quad, a composite key with four keys. - #20704 Add
ModuleCodecmethod toSchemaandHasSchemaCodecinterface in order to supportcosmossdk.io/schemacompatible indexing. - #20538 Add
Nameablevariations toKeyCodecandValueCodecto allow for better indexing ofcollectionstypes. - #22544 Schema's
ModuleCodecwill now also return Enum descriptors to be registered with the indexer.
v0.4.0
Features
- #17024 Introduces
Triple, a composite key with three keys.
API Breaking
- #17290 Collections iteration methods (Iterate, Walk) will not error when the collection is empty.
Improvements
- #17021 Make collections implement the
appmodule.HasGenesisinterface.
v0.3.0
Features
- #16074 Introduces
Clearmethod forMapandKeySet - #16773
- Adds
AltValueCodecwhich provides a way to decode a value in two ways. - Adds the possibility to specify an alternative way to decode the values of
KeySet,indexes.Multi,indexes.ReversePair.
- Adds
v0.2.0
Features
- #16074 Makes the generic Collection interface public, still highly unstable.
API Breaking
- #16127 In the
Walkmethod the call back function being passed is allowed to error.
v0.1.0
Collections v0.1.0 is released! Check out the docs to know how to use the APIs.