Skip to content

v1.4.2

Choose a tag to compare

@jhump jhump released this 12 Jun 16:58
efd29ef

This release contains just bug fixes.

"github.com/jhump/protoreflect/desc/builder"

Changes/fixes:

  • A panic could occur when removing a child element from a builder. This has been fixed.

"github.com/jhump/protoreflect/desc/protoparse"

Changes/fixes:

  • This package will now accept multi-line type references, as long as any whitespace (including newlines) appears between a component of a qualified name and the subsequent dot (.). For example, the following source would now be accepted (but previously would not):

    syntax = "proto3";
    import "google/protobuf/empty.proto";
    message Foo {
        google
            .protobuf
                .Empty bar = 1;
    }
  • When parsing either a well-known import (files included with protoc that have a "google/protobuf" import path) or a file that imports a well-known import, parsing would fail if the well-known import itself had any dependencies. This means that trying to parse any of the following (or files that imported any of the following) would return an error indicating unrecognized symbols:

    • google/protobuf/api.proto
    • google/protobuf/type.proto
    • google/protobuf/compiler/plugin.proto

    This issue is fixed, and parsing the above well-known imports now works.

"github.com/jhump/protoreflect/dynamic/msgregistry"

Changes/fixes:

  • The ComputeUrl method of type *msgregistry.MessageRegistry would return incorrect results for types that were explicitly added via the AddMessage, AddEnum, or AddFile methods. This has been fixed.