Skip to content

Releases: thriftrw/thriftrw-go

v1.25.0

10 Sep 16:04
936bbdc
Compare
Choose a tag to compare

Added

  • Add RootModules field to api.GenerateServiceRequest.

v1.24.0

24 Jun 19:34
84592e4
Compare
Choose a tag to compare

Added

  • Generate Default_* methods that construct Thrift structs with defined
    default values pre-populated.

Changed

  • gen: Redefine Options.Plugin as a struct usable outside go.uber.org/thriftrw.

Fixed

  • Serializing generated Thrift objects no longer mutates them with default
    values for unspecified fields.

v1.23.0

31 Mar 20:21
4a3f3be
Compare
Choose a tag to compare

Added

  • Support opting out of the omitempty JSON option by adding !omitempty to the
    JSON struct tag.

Changed

  • Drop library dependency in tools.go. This includes: github.com/golang/mock/mockgen,
    golang.org/x/lint, golang.org/x/tools, honnef.co/go/tools/cmd/staticcheck.

v1.22.0

22 Jan 22:41
a5a94bf
Compare
Choose a tag to compare

Added

  • Arguments now include Annotations as defined in the Thrift file.

v1.21.0

02 Jan 21:56
b762dca
Compare
Choose a tag to compare

Added

  • Generated exceptions now include an ErrorName() method that returns the
    name of the exception as defined in the Thrift file.
  • gen: Templates now have access to enumItemName to determine the Go-level
    name of the enum item.

Changed

  • nil slices are now treated as empty lists for fields of list type. This
    relaxes the previous requirement of accepting only non-nil slices for
    required list fields. Note: this does not affect map and set types
    with unhashable keys slices are accepted.
  • Migrated to Go modules.

v1.20.2

17 Oct 21:12
Compare
Choose a tag to compare

Fixed

  • Added canonical import path directive to avoid checking out ThriftRW at the
    wrong import path.
  • Package names are now normalized before Go files are generated.

v1.20.1

30 Jul 17:55
Compare
Choose a tag to compare

Fixed

  • Fixed field compilation to allow fields with similar looking names and
    different casing.

v1.20.0

12 Jun 18:47
23f23e7
Compare
Choose a tag to compare

Changed

  • ThriftRW now generates non-plugin code into a single file.
  • Module data is now provided to ThriftRW plugins when the Module does not
    contain a service.

v1.19.1

16 May 23:13
f3ff6fe
Compare
Choose a tag to compare

Fixed

  • Fixed a bug that caused invalid code to be generated if two slices of the
    same type with different go.type annotations were encountered in the same
    Thrift file.

v1.19.0

26 Apr 19:58
8c0d416
Compare
Choose a tag to compare
  • Sets now support a (go.type = "slice") annotation to be generated as
    slices rather than maps.