Skip to content

v0.14.0

Compare
Choose a tag to compare
@jhump jhump released this 05 Jun 23:54
· 44 commits to main since this release
604d705

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 TextName method 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.ResolveCustomFeature in #305
  • Add more thorough checks for when to adapt a value when resolving custom feature; addresses a deficiency in protoutil.ResolveCustomFeature in #306
  • Correctly handle maps in the Kind method 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, and google/protobuf/go_features.proto to the set of files provided by protocomile.WithStandardImports in #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.
  • Add wellknownimports package, for providing actual source code for the standard imports (wellknownimports.WithStandardImports is an alternative to protocompile.WithStandardImports) in #310

Other changes

  • Update linker tests to use protodesc to 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