The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
This module now requires Go 1.21 or higher.
- Added support for buf.build.
- Changelog from here forward will only include major dependency updates.
v0.5.3 — 2023-08-08
- 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
- 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
- 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
- #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 thecasttype
feature in gogoprotobuf. - #65: add
optional
support for proto3.
- 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
- #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.
- 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
- 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
- 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
- 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
- #40: enum values renamed with
go.lint
are now usable when imported into another proto file.
v0.3.0 — 2021-01-04
- #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.Id
→ID
,Url
→URL
, etc. It will also eliminate stutter from enum values, e.g.Foo_FOO_UNKNOWN
→FooUnknown
. Thanks to @Green7 for the initial implementation in #22. - File-level
(go.lint).initialisms
option to specify your own initialisms forgo.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.
- Enum values nested under renamed messages will now be correctly renamed.
v0.2.0 — 2020-12-28
- Renamed the
stringer_name
option tostringer
to match the Gofmt.Stringer
interface. For backwards compatibility,stringer_name
will be supported for at least 6 months.
- Struct tags, including defaults generated by
protoc-gen-go
can be replaced. The struct tag code was overhauled using the terrificstructtag
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.
- #21 — It is now possible to patch output of other plugins like
protoc-gen-validate
.