Releases: alta/protopatch
Releases · alta/protopatch
v0.5.3
v0.5.2
v0.5.1
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
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 thecasttype
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
Added
- #65: 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
v0.3.3
v0.3.2
v0.3.1
v0.3.0
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.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.
Fixed
- Enum values nested under renamed messages will now be correctly renamed.