Repository navigation
v1.4.2
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
protocthat 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.protogoogle/protobuf/type.protogoogle/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
ComputeUrlmethod of type*msgregistry.MessageRegistrywould return incorrect results for types that were explicitly added via theAddMessage,AddEnum, orAddFilemethods. This has been fixed.