ipfs / protons

Protocol Buffers for Node.js and the browser without eval
Other
32 stars 23 forks source link

feat: add support for maps #75

Closed achingbrain closed 1 year ago

achingbrain commented 1 year ago

You can now use maps:

message MapTypes {
  map<string, string> stringMap = 1;
}

They are deserlialized as ES6 Maps and can support keys of any type - n.b. protobuf.js deserializes maps as Objects and only supports round tripping string keys, every other type gets stringified which can have unpredictable results.

github-actions[bot] commented 1 year ago

:tada: This PR is included in version protons-v6.1.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

github-actions[bot] commented 3 months ago

:tada: This issue has been resolved in version 3.0.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: