Skip to content

Releases: thriftrw/thriftrw-go

v1.18.0

28 Mar 20:06
Compare
Choose a tag to compare

Added

  • Ptr methods for primitive typedefs

v1.17.0

15 Mar 18:09
Compare
Choose a tag to compare

Changed

  • Imports in generated code are now always named imports.

v1.16.1

23 Jan 18:02
4fe4d5a
Compare
Choose a tag to compare

Fixed

  • Bump API Version for ThriftRW plugins because the previous release contained
    a significant change to the ThriftRW Plugin API.

v1.16.0

22 Jan 22:33
bef228c
Compare
Choose a tag to compare

Added

  • Expose Thrift file names, package prefix, and Thrift root directory to
    plugins.

Fixed

  • plugin: Library version matching was dropped.

v1.15.0

14 Jan 18:28
Compare
Choose a tag to compare

Changed

  • GeneratedGet* and IsSet* methods on structs are now nil-safe.

v1.14.0

18 Oct 21:21
Compare
Choose a tag to compare

Added

  • Structs now include IsSet* methods for fields that can be nil.

v1.13.1

04 Oct 17:05
7c449cc
Compare
Choose a tag to compare

Fixed

  • gen/plugin: Fixed a bug where typedefs of structs were mishandled; while they
    should have been pointers, they were generated without * and failed to
    compile.
  • gen/zap: Fixed a bug where logging nil structs would panic.

v1.13.0

10 Sep 16:40
Compare
Choose a tag to compare

Added

  • gen: Added support for a go.label annotation that allows overriding the
    user-readable string names of enum items and struct fields. This has no
    effect on the names of the generated Go entities.
  • Generated types now implement zapcore.ObjectMarshaler or
    zapcore.ArrayMarshaler where appropriate. This should lead to much faster
    logging of these objects.
  • Added go.nolog annotation for struct fields: Those with
    this annotation will not be included in Zap logging.
  • gen/enum: MarshalText and UnmarshalText now round-trips, even if
    the enum value is unrecognized.

Fixed

  • ThriftRW now does a bounds-check on field identifiers rather than silently
    truncating them.
  • gen: Equals methods on generated structs no longer panic if either value is
    nil.
  • gen: Fixed a bug where *_Values functions for empty enums would not be
    generated.
  • gen: Fixed infinite loop in generated Equals methods of specific typedefs.

v1.12.0

25 Jun 19:04
Compare
Choose a tag to compare

Added

  • gen: Added ThriftPackageImporter to control import path
    resolution Thrift files.
  • Structs now include getter functions for all fields. This
    improves Apache Thrift compatibility.
  • Enums now implement encoding.TextMarshaler.

Changed

  • gen: NewGenerator is now usable from other packages.

v1.11.0

27 Mar 17:46
Compare
Choose a tag to compare

Added

  • Plugins now have access to service and function annotations.