-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
You can now use maps: ```protobuf message MapTypes { map<string, string> stringMap = 1; } ``` They are deserlialized as ES6 `Map`s and can support keys of any type - n.b. protobuf.js deserializes maps as `Object`s and only supports round tripping string keys.
- Loading branch information
1 parent
26c569d
commit e8dfc0a
Showing
8 changed files
with
735 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
; package-lock with tarball deps breaks lerna/nx - remove when https://github.com/semantic-release/github/pull/487 is merged | ||
package-lock=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ export default { | |
build: { | ||
config: { | ||
platform: 'node' | ||
} | ||
}, | ||
bundle: false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
syntax = "proto3"; | ||
|
||
message SubMessage { | ||
string foo = 1; | ||
} | ||
|
||
message MapTypes { | ||
map<string, string> stringMap = 1; | ||
map<int32, int32> intMap = 2; | ||
map<bool, bool> boolMap = 3; | ||
map<string, SubMessage> messageMap = 4; | ||
} |
Oops, something went wrong.