Skip to content

Latest commit

 

History

History
221 lines (145 loc) · 5.85 KB

CHANGELOG.md

File metadata and controls

221 lines (145 loc) · 5.85 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Added

  • Added Update() method to all map types.

Changed

  • The Set() method on all map types now returns the map, to allow for easier in-line map building.

0.16.1 - 2024-10-05

Added

  • Added message package, which is a largely drop-in replacement for configkit/message.

0.16.0 - 2024-10-03

Added

  • Added maps.NewFromSeq() (and variants) which construct map types from iter.Seq2 sequences.
  • Added sets.NewFromSeq() (and variants) which construct set types from iter.Seq sequences.
  • Added sets.NewFromKeys() (and variants) which construct set types from the keys of iter.Seq2 sequences.
  • Added sets.NewFromValues() (and variants) which construct set types from the values of iter.Seq2 sequences.
  • Added Intersection() method to all set types.

Changed

  • [BC] Changed message stubs to accept validation scopes.
  • The results of Clone(), Merge(), Select() and Project() on any map type are now guaranteed to be non-nil.
  • The results of Clone(), Union() and Project() on any set type are now guaranteed to be non-nil.

Removed

  • [BC] Removed cmp parameter from maps.NewOrderedByComparator() and its variants. The comparator logic must now be totally encapsulated by the comparator type alone.

0.15.1 - 2024-10-02

Removed

  • Removed nocopy protection from collection types.

0.15.0 - 2024-10-02

Added

  • Added sets.Proto which is an unordered set of proto.Message values.
  • Added maps.Proto which is an unordered map of proto.Message keys to arbitrary values.

Changed

  • [BC] Split collection package into separate collections/maps and collections/sets packages.

0.14.0 - 2024-09-30

Added

  • Added collection.OrderedSet and UnorderedSet.
  • Added collection.OrderedMap.

Removed

  • [BC] Removed uuidpb.OrderedSet and Map, use collections.OrderedSet and OrderedMap instead.

0.13.0 - 2024-09-30

Added

  • Added Marshaler.UnmarshalTypeFromMediaType().

Removed

  • Removed Envelope.PortableName. The MediaType field is now guaranteed to include the portable name as a parameter.
  • Removed Packet.PortableName().

0.12.2 - 2024-09-30

Fixed

  • Fixed error in Marshaler.MarshalAs() when passed a media-type that is unsupported because it does not have a type parameter. The implementation now correctly returns false instead.

0.12.1 - 2024-09-29

Added

  • Added identitypb.Identity.Equal().
  • Added envelopepb.Packer and Transcoder types.

0.12.0 - 2024-09-29

Changed

  • [BC] Renamed uuidpb.FromString() to Parse().

Added

  • Added uuidpb.MustParse().
  • Added marshaler package as a replacement for dogmatiq/marshalkit.

0.11.1 - 2024-09-27

Added

  • Added JSON struct tags to stub types.

0.11.0 - 2024-09-25

Added

  • Added Map.All(), which returns an iterator that ranges over all key/value pairs in the map.
  • AddedMap.Keys() and Values() methods, which return iterators that range over the map's keys and values, respectively.
  • Added OrderedSet.All(), which returns an iterator that ranges over all values in the set, in order.
  • Added Map.Len() and OrderedSet.Len().
  • Added protobuf/configpb and grpc/configgrpc packages as a replacement for the configspec package from dogmatiq/interopspec.

Changed

  • Bumped minimum Go version to v1.23.
  • [BC] Map is now a struct instead of an actual Go map. Iteration is provided by a new All() method that returns an iterator.
  • [BC] Set has been renamed to OrderedSet, and is now a struct instead of a slice. Iteration is provided by a new All() method that returns an iterator.

Removed

  • [BC] Removed MapKey type.

0.10.3 - 2024-08-21

Added

  • Added the enginetest/stubs package as a replacement for the deprecated github.com/dogmatiq/dogma/fixtures package.

0.10.2 - 2024-04-08

Added

  • Added uuidpb.Map.Has().

Fixed

  • Fixed unsigned integer overflow in uuidpb.Compare().

0.10.1 - 2024-04-08

Added

  • Added uuidpb.MapKey.Format(), String() and DapperString() methods.

0.10.0 - 2024-03-27

  • Initial release.

Note

Releases v0.9.0 and prior where part of a prior "incarnation" of the enginekit package name. These versions are still cached on go.pkg.dev, but are unrelated to this repository.