Skip to content

Latest commit

 

History

History
115 lines (84 loc) · 6.04 KB

CHANGELOG.md

File metadata and controls

115 lines (84 loc) · 6.04 KB

Changelog

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

v0.5.3 — 2023-08-08

Updated

  • google.golang.org/protobuf v1.30.0 → v1.31.0
  • github.com/envoyproxy/protoc-gen-validate v1.0.0 → v1.0.2
  • github.com/stretchr/testify v1.8.3 → v1.8.4
  • golang.org/x/tools v0.9.1 → v0.12.0

v0.5.2 — 2023-04-28

Updated

  • google.golang.org/protobuf v1.28.1 → v1.30.0
  • github.com/envoyproxy/protoc-gen-validate v0.9.1 → v1.0.0

v0.5.1 — 2023-02-27

Updated

  • github.com/envoyproxy/protoc-gen-validate v0.6.2 → v0.9.1
  • github.com/stretchr/testify v1.6.1 → v1.8.2
  • golang.org/x/tools v0.1.7 → v0.6.0
  • google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0 → v1.2.0
  • google.golang.org/protobuf v1.27.1 → v1.28.1
  • (other indirect dependencies)

v0.5.0 — 2021-11-01

Added

  • #61: specify the Go type for a message field. Specify (go.field).type = "SomeType" to override the field type in generated Go code. The specified type must be castable to the field’s native type, and defined in the target package. Scalar and repeated fields are supported, e.g. type Things []Thing. This feature is similar to the casttype feature in gogoprotobuf.
  • #65: add optional support for proto3.

Updated

  • github.com/envoyproxy/protoc-gen-validate v0.6.1 → v0.6.2
  • golang.org/x/tools v0.1.6 → v0.1.7
  • Updated go.mod to Go 1.17 format

v0.4.0 — 2021-09-23

Added

  • #56: embedded message fields. Set (go.field).embed = true to embed a message field in the generated Go struct. The resulting field will be a pointer to and sharing a name with the generated Go struct.

Updated

  • github.com/envoyproxy/protoc-gen-validate v0.6.0 → v0.6.1 (reverted breaking API change)
  • golang.org/x/tools v0.1.0 → v0.1.6
  • google.golang.org/protobuf v1.26.0 → v1.27.1

v0.3.4 — 2021-04-23

Updated

  • Removed dependency on github.com/golang/protobuf
  • github.com/envoyproxy/protoc-gen-validate v0.5.1 → v0.6.0

v0.3.3 — 2021-03-18

Updated

  • github.com/envoyproxy/protoc-gen-validate v0.4.1 → v0.5.0
  • github.com/golang/protobuf v1.4.3 → v1.5.1
  • golang.org/x/tools v0.0.0-20201223225330-bdbb3c917f0b → v0.1.0
  • google.golang.org/protobuf v1.25.0 → v1.26.0
  • protoc v3.14.0 → v3.15.6

v0.3.2 — 2021-03-12

Fixed

  • Scan Go packages in a deterministic order (FIFO) to fix a flaky recurrence of a bug related to the fix for #40.

v0.3.1 — 2021-03-11

Fixed

  • #40: enum values renamed with go.lint are now usable when imported into another proto file.

v0.3.0 — 2021-01-04

Added

  • #37: new file-level go.lint option. When specified, protoc-gen-go-patch will attempt to fix generated Go names to their idiomatic equivalents, e.g. IdID, UrlURL, etc. It will also eliminate stutter from enum values, e.g. Foo_FOO_UNKNOWNFooUnknown. Thanks to @Green7 for the initial implementation in #22.
  • File-level (go.lint).initialisms option to specify your own initialisms for go.lint. Example: (go.lint).initialisms = 'RGB'; // Lints RgbColor to RGBColor. You may specify as many custom initialisms as needed. They will only affect identifiers declared in that file.

Fixed

  • Enum values nested under renamed messages will now be correctly renamed.

v0.2.0 — 2020-12-28

Breaking Changes

  • Renamed the stringer_name option to stringer to match the Go fmt.Stringer interface. For backwards compatibility, stringer_name will be supported for at least 6 months.

Added

  • Struct tags, including defaults generated by protoc-gen-go can be replaced. The struct tag code was overhauled using the terrific structtag package by @fatih. Thanks to @liov for the initial prototype in #15.
  • Updated docs, examples, and tests to use concise option syntax instead of {} delimited options.
  • Rudimentary tests for proto2 extension patching.

Fixed

v0.1.0 — 2020-12-23

Known Issues

  • #21 — Running protoc plugins other than go breaks on missing symbols.
  • #15 — It’s not currently possible to mix or replace existing generated struct tags.