v0.14.0
This version makes Protobuf Editions available to users of this package, without needing to use a special opt-in that is documented as test-only. It contains one backwards-incompatible change, only for users that used that Editions opt-in: it has been removed since the functionality is now generally available.
What's Changed
Bugfixes
- Correctly handle groups in the
TextNamemethod of field descriptors created by the compiler in #297 - Fix bug in extension declarations: presence of a declaration implies the range is verified in #303
- Fix a typo in code that adapts/re-parses features to match a descriptor; addresses a bug in
protoutil.ResolveCustomFeaturein #305 - Add more thorough checks for when to adapt a value when resolving custom feature; addresses a deficiency in
protoutil.ResolveCustomFeaturein #306 - Correctly handle maps in the
Kindmethod of field descriptors created by the compiler, in files that define a file-wide default of delimited encoding for messages in #312
Enhancements
- Add
google/protobuf/cpp_features.proto,google/protobuf/java_features.proto, andgoogle/protobuf/go_features.prototo the set of files provided byprotocomile.WithStandardImportsin #295 - Add some final checks to mirror logic of protoc v27.0: files cannot use custom features defined in the same file, enforce "feature support" options, which define the editions in which a feature and/or feature value can be used in #301 and #309
- Enable support for Protobuf Editions. To start, this only supports edition 2023. Added in #301
- This contains a backwards-incompatible change: the
editionstesting.AllowEditions()function (which was documented as temporary when introduced in v0.10.0) has been removed.
- This contains a backwards-incompatible change: the
- Add
wellknownimportspackage, for providing actual source code for the standard imports (wellknownimports.WithStandardImportsis an alternative toprotocompile.WithStandardImports) in #310
Other changes
- Update linker tests to use
protodescto create descriptors from compilation results, to verify compilation results can be correctly processed by protobuf-go runtime in #302 - Add another (missing) test case for extension declarations in #304
Full Changelog: v0.13.0...v0.14.0