protobuf-ts
protobuf-ts copied to clipboard
Make field writing order consistent between CODE_SIZE and SPEED
Fixes https://github.com/timostamm/protobuf-ts/issues/453
Binary serialization is explicitly not expected to be consistent between different code generators and languages, but we should at least be self-consistent within protobuf-ts.
https://github.com/timostamm/protobuf-ts/blob/3a7ce47d43113d1a80cacd0ae70630b3727eda3e/packages/proto/google/protobuf/unittest.proto#L568-L570