Closed awbraunstein closed 3 years ago
@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.
[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
@MarcusLongmuir any chance to make a release containing this feature ?
protoc 3.15.0 ships with it as a non-experimental feature.
Changes
Add implementation for proto3 optional fields with presence tracking. Spec: https://github.com/protocolbuffers/protobuf/blob/master/docs/implementing_proto3_presence.md
Fixes: https://github.com/improbable-eng/ts-protoc-gen/issues/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.