Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: protocolbuffers/protobuf-go
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.29.1
Choose a base ref
...
head repository: protocolbuffers/protobuf-go
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.30.0
Choose a head ref
  • 4 commits
  • 2 files changed
  • 2 contributors

Commits on Mar 14, 2023

  1. all: release v1.29.1

    Change-Id: Ib054f406292d9f2f37e9225d7dd81c65511f43af
    Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/475876
    Reviewed-by: Michael Stapelberg <[email protected]>
    lfolger committed Mar 14, 2023
    Copy the full SHA
    771d8c7 View commit details
  2. all: start v1.29.1-devel

    Change-Id: Ie844955201027d59486a14e2470ffbac5bce5da8
    Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/475877
    Reviewed-by: Michael Stapelberg <[email protected]>
    lfolger committed Mar 14, 2023
    Copy the full SHA
    32efccd View commit details

Commits on Mar 15, 2023

  1. protoadapt: helper functions to convert v1 or v2 message to either v1…

    … or v2 message.
    
    Fixes golang/protobuf#1442
    
    Change-Id: I7ec60982be81d5dc060094ccec51d819b17a3a8f
    Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/449576
    Reviewed-by: Michael Stapelberg <[email protected]>
    Reviewed-by: Damien Neil <[email protected]>
    Reviewed-by: Lasse Folger <[email protected]>
    stpabhi authored and stapelberg committed Mar 15, 2023
    Copy the full SHA
    e344383 View commit details

Commits on Mar 16, 2023

  1. all: release v1.30.0

    Change-Id: I065812c6b762f58d5c9d76689b81dea1e7082e2a
    Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/476835
    Reviewed-by: Michael Stapelberg <[email protected]>
    lfolger committed Mar 16, 2023
    Copy the full SHA
    f221882 View commit details
Showing with 33 additions and 2 deletions.
  1. +2 −2 internal/version/version.go
  2. +31 −0 protoadapt/convert.go
4 changes: 2 additions & 2 deletions internal/version/version.go
Original file line number Diff line number Diff line change
@@ -51,9 +51,9 @@ import (
// 10. Send out the CL for review and submit it.
const (
Major = 1
Minor = 29
Minor = 30
Patch = 0
PreRelease = "devel"
PreRelease = ""
)

// String formats the version string for this module in semver format.
31 changes: 31 additions & 0 deletions protoadapt/convert.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// Copyright 2023 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// Package protoadapt bridges the original and new proto APIs.
package protoadapt

import (
"google.golang.org/protobuf/proto"
"google.golang.org/protobuf/runtime/protoiface"
"google.golang.org/protobuf/runtime/protoimpl"
)

// MessageV1 is the original "github.com/golang/protobuf/proto".Message type.
type MessageV1 = protoiface.MessageV1

// MessageV2 is the Message type used by the current google.golang.org/protobuf
// module, adding support for reflection.
type MessageV2 = proto.Message

// MessageV1Of converts a v2 message to a v1 message.
// It returns nil if m is nil.
func MessageV1Of(m MessageV2) protoiface.MessageV1 {
return protoimpl.X.ProtoMessageV1Of(m)
}

// MessageV2Of converts a v1 message to a v2 message.
// It returns nil if m is nil.
func MessageV2Of(m MessageV1) proto.Message {
return protoimpl.X.ProtoMessageV2Of(m)
}