cosmos-sdk/collections/CHANGELOG.md

4.2 KiB

Changelog

[Unreleased]

v1.1.0

Improvements

  • #23515 Bring in collections/protocodec go module as package within collections module.

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 NewJSONValueCodec value codec as an alternative for codec.CollValue from the SDK for non protobuf types.
  • #21090 Introduces Quad, a composite key with four keys.
  • #20704 Add ModuleCodec method to Schema and HasSchemaCodec interface in order to support cosmossdk.io/schema compatible indexing.
  • #20538 Add Nameable variations to KeyCodec and ValueCodec to allow for better indexing of collections types.
  • #22544 Schema's ModuleCodec will 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.HasGenesis interface.

v0.3.0

Features

  • #16074 Introduces Clear method for Map and KeySet
  • #16773
    • Adds AltValueCodec which 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.

v0.2.0

Features

  • #16074 Makes the generic Collection interface public, still highly unstable.

API Breaking

  • #16127 In the Walk method 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.