Skip to content

v0.0.51

Compare
Choose a tag to compare
@tatethurston tatethurston released this 28 Mar 19:52
· 54 commits to main since this release
84f7ae6

What's Changed

  • When using protobuf map fields, map keys are now typed as strings: Record<string, $SomeType>. Previously other types were accepted, which would cause type checking to fail when the key was boolean, bigint, or number. This is also more correct because JavaScript always encodes object keys as strings. Generated type definitions for map types are no longer exported. See #151 for more background.
  • Empty messages now generate the full serialization interface implemented by other messages. This resolves an issue where messages with fields whose value was an empty message would fail code generation.
  • Enum serializers now have two private serialization helpers. This resolves an issue where Enums imported into other protobuf files failed code generation. See #150 for more background.

Full Changelog: v0.0.50...v0.0.51