-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for proto3 optional presence #275
Add support for proto3 optional presence #275
Conversation
@MarcusLongmuir would appreciate a review on this. Thanks. |
Thanks for raising this @awbraunstein. @moadz is currently reviewing this. Will try to cut a release for this soon after it lands. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you for completing this!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: moadz The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@MarcusLongmuir any chance to make a release containing this feature ? protoc 3.15.0 ships with it as a non-experimental feature. |
This was implemented in ts-protoc-gen in improbable-eng/ts-protoc-gen#275 and released nearly a year ago in [email protected]; glancing through the issue history it looks like the only reason this hasn't been bumped yet is because no one's tried to contribute it.
This was implemented in ts-protoc-gen in improbable-eng/ts-protoc-gen#275 and released nearly a year ago in [email protected]; glancing through the issue history it looks like the only reason this hasn't been bumped yet is because no one's tried to contribute it.
This was implemented in ts-protoc-gen in improbable-eng/ts-protoc-gen#275 and released nearly a year ago in [email protected]; glancing through the issue history it looks like the only reason this hasn't been bumped yet is because no one's tried to contribute it.
Changes
Add implementation for proto3 optional fields with presence tracking. Spec: https://github.com/protocolbuffers/protobuf/blob/master/docs/implementing_proto3_presence.md
Fixes: #263
Additionally, this change:
.buffer
on the serialized message before passing intoBuffer.from
to handle a weird typescript issue.Verification
Tested via unit tests and visual inspection of generated files.