Skip to content

Support for protocol buffer editions #663

Answered by timostamm
jqueuniet asked this question in Q&A
Discussion options

You must be logged in to vote

Hey Johann, protobuf-es embeds minimal field info in the generated code - just the bare minimum to support serialization and custom options. In editions, features can be inherited to child elements, and the field info we're embedding is not well suited for this model.

There is a Protobuf implementation that supports editions: https://github.com/bufbuild/protobuf-es. The plan for protobuf-ts is to switch code generation to the plugin framework of protobuf-es. This will shed a lot of dead weight from this repository, but there hasn't been much progress. Long term, it would be great to use more parts of protobuf-es under the hood, possibly including editions.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jqueuniet
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants