mapbox / pbf

A low-level, lightweight protocol buffers implementation in JavaScript.
BSD 3-Clause "New" or "Revised" License
801 stars 107 forks source link

Fix broken tests #96

Closed slam closed 5 years ago

slam commented 5 years ago

One of the transitive dependencies (protocol-buffers-schema) got upgraded, causing some of the compile tests to break, most notably with this message:

Fields of type MessageType cannot be declared [packed=true]. Only
repeated fields of primitive numeric types (types which use the
varint, 32-bit, or 64-bit wire types) can be declared "packed". See
https://developers.google.com/protocol-buffers/docs/encoding#optional

Remove the MessageType enum and use int32 in its place.

The new version of protocol-buffers-schema also changed how enums are represented in json, breaking another test.