150 Commits

Author SHA1 Message Date
Taegeun Moon
f1e3f6d7d3 use option method 2022-12-03 00:31:26 +09:00
Taegeun Moon
80332044c7 update typeBrandHint location 2022-12-01 14:12:10 +09:00
Taegeun Moon
256fbd8915 set defaults for brand option 2022-12-01 13:34:32 +09:00
Taegeun Moon
927c29de4a support both input and output
update readme

update readme
2022-12-01 13:34:31 +09:00
Taegeun Moon
e955c47bd5 rename as outputBranded 2022-12-01 11:09:09 +09:00
Taegeun Moon
9e548d4d87 update readme 2022-11-30 22:34:15 +09:00
Taegeun Moon
6f755fe346 add branded option for proto-loader-gen-types 2022-11-30 22:31:22 +09:00
install
ef7b8e8f14 Don't allow null for enum field inputs/outputs 2022-11-16 10:10:13 -05:00
install
c7125fbdb5 proto-loader-gen-types Avoid TS enums 2022-11-15 16:44:52 -05:00
Michael Lumish
1c0b6459fe proto-loader: Bump to 0.7.3 2022-09-21 10:44:59 -07:00
install
d81ec8e532 Update golden tests - use input/output templates 2022-09-07 10:05:24 -04:00
install
bc66ebf62f proto-loader-gen-types Typename templates
- Allow for customizing the naming pattern for both restricted and permissive types
2022-09-07 10:05:24 -04:00
Michael Lumish
09f3dd9e05
Merge pull request #2172 from chm-diederichs/proto-loader-maps
include `.map` files in proto-loader npm package
2022-08-29 14:33:25 -07:00
Michael Lumish
d0e7f356db proto-loader: Undo upgrade of 'long' dependency 2022-08-17 12:44:48 -07:00
Michael Lumish
f49c42c4c8
Merge pull request #2196 from murgatroid99/proto-loader_dep_fix
proto-loader: Update dependencies to fix compilation error
2022-08-17 10:20:59 -07:00
Michael Lumish
9d0eb60d19 proto-loader: Update dependencies to fix compilation error 2022-08-17 09:33:14 -07:00
Simen Bekkhus
d23d7bdd09
remove types
`long` ships with types now
2022-08-09 12:32:57 +02:00
Simen Bekkhus
9e3935ec83
fix: update long to v5 2022-08-09 12:26:33 +02:00
Christophe Diederichs
924fb9a329 include proto-loader-gen-types.js.map in release 2022-07-22 09:23:22 +01:00
Christophe Diederichs
3ab4ee3467 include .map files in proto-loader npm package 2022-07-21 17:59:11 +01:00
Michael Lumish
7b4704cc92 proto-loader: Update protobufjs dependency to 7.x 2022-07-11 11:32:04 -07:00
Michael Lumish
475559f976 proto-loader: Increment version to 0.6.13 2022-06-06 14:08:13 -07:00
Conall Ó Cofaigh
e94bd36bf1
bump protobufjs to "^6.11.3" 2022-05-30 13:54:05 +01:00
Michael Lumish
d8d957bf8c proto-loader: Switch long dependency back to 4.x 2022-05-05 09:27:48 -07:00
Michael Lumish
2b67d5b010 proto-loader: Don't force long@5 2022-05-03 10:16:54 -07:00
Michael Lumish
3388765cbb proto-loader: Update to Long 5.x 2022-05-02 11:03:01 -07:00
Michael Lumish
ee9226e3c8 proto-loader: Update version to 0.6.9 2022-01-05 10:51:45 -08:00
Michael Lumish
f049333e48 proto-loader: Decrease dependency to yargs 16 for compatibility with Node <12 2022-01-05 10:51:00 -08:00
Michael Lumish
9f5187fbaa proto-loader: Increase version to 0.6.8 2022-01-04 10:09:17 -08:00
Michael Lumish
9f3001eb97 proto-loader: Update yargs to version 17 2022-01-04 10:08:40 -08:00
Michael Lumish
2af9a05ee4 Ensure consistent null in missing file names 2021-12-09 13:18:06 -05:00
Michael Lumish
8d771044e7 Make diff command work on Mac, make file comment use consistent directory separator 2021-12-09 12:46:59 -05:00
Michael Lumish
f706d524e7 Ignore trailing whitespace in proto-loader golden file test diff 2021-12-09 10:47:48 -05:00
Michael Lumish
20dbaa8e27 Make npm clean scripts platform-agnostic 2021-12-08 14:54:56 -05:00
Michael Lumish
4b20bf3fce proto-loader: Fix generated types for callbacks 2021-11-15 10:05:10 -08:00
Michael Lumish
144c41b366 proto-loader: Make serializers reject arrays 2021-10-15 09:48:42 -07:00
Michael Lumish
c95219b1ea proto-loader: Avoid generating conflicting method names in service clients 2021-09-07 14:38:58 -07:00
Michael Lumish
6ba982548e proto-loader: bump to 0.6.4 2021-06-28 13:17:16 -07:00
Mike Lewis
41e09f7d12
Prevent early return in proto-loader containsDefinition
f289c343b3393aad73795c0657415f4160bcdcb5 introduced a bug - the
recursive for-loop descended into the first elements nested array
and returned that value without iterating over the other members
of the array. This means that the code would only work correctly
when the protofile contained a definition whose name was alphabetically
first amongst its siblings.

This commit fixes the issue by moving the call to containsDefinition
into the if statement to allow iteration to continue if
containsDefinition returns false.
2021-06-28 19:40:18 +01:00
Michael Lumish
12b2412356 proto-loader: Bump to version 0.6.3 2021-06-23 12:46:53 -07:00
Mike Lewis
61e64a3c4f
Update golden-generated in proto-loader
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2021-06-23 17:55:38 +01:00
Mike Lewis
f289c343b3
Avoid unused definition imports from proto-loader
Since proto files don't always contain all types of definition, it was
possible to get into a state where generated code contained unused
imports which caused TS errors. This change makes those imports
conditional on the existence of the corresponding definitions in the
proto file.

Co-authored-by: Austin Puri <austin.puri@gmail.com>
Co-authored-by: Joe Porpeglia <josephp@spotify.com>
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2021-06-23 16:46:23 +01:00
Michael Lumish
7c2acccff5 proto-loader: Bump to 0.6.2 2021-05-06 14:28:15 -07:00
Eduardo Laranjo
a5fb029e70 Add new generated golden files 2021-05-05 13:41:45 +01:00
@EduardoLaranjo
4c767ca946
Fix auto-generated service definition
relate to issue #1766
2021-05-04 19:27:24 +01:00
Michael Lumish
bf2e5cb1dd
Merge pull request #1745 from murgatroid99/proto-loader_generate_service_definition
proto-loader: generator: add specific service definition interfaces
2021-04-14 13:58:19 -07:00
Michael Lumish
e7dccd6656 proto-loader: Bump version to 0.6.1 2021-04-08 13:00:04 -07:00
Michael Lumish
c3a49262cc proto-loader: generator: add specific service definition interfaces 2021-04-08 12:56:50 -07:00
Michael Lumish
799bd16fe6 proto-loader: generator: allow for null message values 2021-04-08 11:22:04 -07:00
Michael Lumish
b920292b59
Merge pull request #1474 from murgatroid99/proto-loader_type_generator
proto-loader: Add TypeScript generator
2021-04-06 10:31:18 -07:00