Skip to content

Commit

Permalink
Prepare for v1.7.0 (#496)
Browse files Browse the repository at this point in the history
Prepares for the Connect v1.7.0 release, featuring Connect Get support.

Changes the `IsAtLeastVersion1_6_0` constant to `IsAtLeastVersion1_7_0`
too, since it actually is from changes that only landed afterwards.
  • Loading branch information
jchadwick-buf authored Apr 19, 2023
1 parent 75880e4 commit eea9433
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/protoc-gen-connect-go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func generatePreamble(g *protogen.GeneratedFile, file *protogen.File) {
"compiled into your binary. You can fix the problem by either regenerating this code ",
"with an older version of connect or updating the connect version compiled into your binary.")
if needsWithIdempotency(file) {
g.P("const _ = ", connectPackage.Ident("IsAtLeastVersion1_6_0"))
g.P("const _ = ", connectPackage.Ident("IsAtLeastVersion1_7_0"))
} else {
g.P("const _ = ", connectPackage.Ident("IsAtLeastVersion0_1_0"))
}
Expand Down
4 changes: 2 additions & 2 deletions connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ import (
)

// Version is the semantic version of the connect module.
const Version = "1.7.0-dev"
const Version = "1.7.0"

// These constants are used in compile-time handshakes with connect's generated
// code.
const (
IsAtLeastVersion0_0_1 = true
IsAtLeastVersion0_1_0 = true
IsAtLeastVersion1_6_0 = true
IsAtLeastVersion1_7_0 = true
)

// StreamType describes whether the client, server, neither, or both is
Expand Down
2 changes: 1 addition & 1 deletion internal/gen/connect/ping/v1/pingv1connect/ping.connect.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit eea9433

Please sign in to comment.