sovlookup
c2d7e4adda
load protobuf.js JSON descriptor
2021-03-12 19:39:06 +08:00
Michael Lumish
b2776b52b4
proto-loader: bump to 0.5.6
2021-01-19 14:36:41 -08:00
Richard Willis
cf9d0fd4cc
proto-loader: Fix yargs types
2021-01-08 08:11:35 +00:00
Richard Willis
ac86173a20
proto-loader: Add example usage to README
2021-01-08 08:11:24 +00:00
Richard Willis
d3ef8f3233
proto-loader: Replace Windows CRLF pair with Unix LF
2020-12-20 08:12:25 +00:00
Michael Lumish
999634a74d
Merge branch 'master' into proto-loader_type_generator
2020-12-01 12:29:25 -08:00
A. Tate Barber
d86994dc6a
Split file descriptor set logic into two utility functions
...
This change exposes loadFileDescriptorSetFromBuffer and
loadFileDescriptorSetFromObject functions.
2020-11-30 21:20:49 -06:00
Michael Lumish
4b3e0b6a8a
Update version and dependencies for final release
2020-11-24 16:18:47 -08:00
A. Tate Barber
8c50e2d40f
Refactor loadFileDescriptorSetFile to not catch JSON decoding errors
...
This change ensures that errors are not hidden when
loadFileDescriptorSet fails to decode JSON. Instead, only JSON parsing
errors are hidden.
2020-11-23 21:54:34 -06:00
A. Tate Barber
63af3bcd6a
Enable loadFileDescriptorSetFile to parse JSON files
2020-11-23 21:46:04 -06:00
A. Tate Barber
bf98c167cd
Refactor loadFileDescriptorSet
...
This change refactors the loadFileDescriptorSetFile function to take
a plain Buffer or Javascript object as input.
2020-11-23 21:24:39 -06:00
A. Tate Barber
08254e4d2e
Add functions for loading and parsing binary-encoded file decriptor sets
...
Fixes #1627
2020-11-22 17:30:43 -06:00
Michael Lumish
94391ca64d
import type * as grpc, fix ConstructorParameters usage
2020-10-22 11:09:23 -07:00
Michael Lumish
f2c82cc8e5
Bump the version again to capture a merge
2020-10-21 14:36:50 -07:00
Michael Lumish
542f619124
Merge branch 'proto-loader_type_generator' of https://github.com/murgatroid99/grpc-node into proto-loader_type_generator
2020-10-21 14:35:11 -07:00
Michael Lumish
96cba74b9b
Use 'import type' where possible
2020-10-21 14:33:21 -07:00
Richard Willis
e85b72bbc4
Regenerate golden types
2020-10-11 12:10:52 +01:00
Richard Willis
330d1835fe
proto-loader: fix typescript generation callType for client streaming
2020-10-11 12:01:32 +01:00
Richard Willis
829333c459
Regenerate golden types
2020-09-24 18:22:52 +01:00
Richard Willis
acf403b704
proto-loader: use method descriptor types to define server handlers
2020-09-24 09:42:10 +01:00
Michael Lumish
677741d442
ConstructorParameters is already a TypeScript builtin
2020-09-02 13:35:43 -07:00
Michael Lumish
2d1cb15dec
Fix imports for messages without packages
2020-08-31 09:40:17 -07:00
Michael Lumish
6389e92c8b
Bump version to 0.6.0
2020-08-20 09:54:10 -07:00
Michael Lumish
7550c00a24
Regenerate golden files
2020-08-10 15:20:13 -07:00
Michael Lumish
471c59fa27
Fix missing type argument in client streaming server handler
2020-08-10 15:18:58 -07:00
Michael Lumish
bbff8cb449
A few more service type fixes
2020-08-10 11:35:26 -07:00
Michael Lumish
128d4e9083
Add TS generator information to README
2020-08-04 13:23:02 -07:00
Michael Lumish
d8e035445c
Fix imports of messages defined in other messages, add missing comma
2020-08-03 10:59:10 -07:00
Michael Lumish
d329387c8f
Skip test properly on older versions
2020-07-21 15:07:39 -07:00
Michael Lumish
437f534930
Generate comments in golden files
2020-07-21 13:43:30 -07:00
Michael Lumish
8438fc7a12
Fix golden file test
2020-07-21 13:25:43 -07:00
Michael Lumish
831755a0b7
Merge branch 'proto-loader_type_generator' of https://github.com/murgatroid99/grpc-node into proto-loader_type_generator
2020-07-21 10:31:53 -07:00
Michael Lumish
59471863bf
Add 'golden' generator output from a file in gapic-showcase
2020-07-21 10:31:19 -07:00
Michael Lumish
894f100192
Merge branch 'master' into proto-loader_type_generator
2020-07-20 14:28:27 -07:00
Michael Lumish
b96cb3b8cc
Make messages always optional, fix map type generation
2020-07-20 14:26:38 -07:00
Michael Lumish
4963b0d9f8
Update protobufjs dependency to ^6.10.0
2020-07-20 14:06:42 -07:00
Michael Lumish
842757c55f
Fix @types/mocha compatibility issue
2020-07-15 10:36:52 -07:00
Michael Lumish
cca10597d5
Add files for service definitions, remove redundant exports from root files
2020-07-13 13:13:39 -07:00
Michael Lumish
8e6dae7bb7
Add option to generate comments
2020-07-10 14:14:24 -07:00
Michael Lumish
e14667207e
Bump prerelease version again
2020-07-10 12:49:37 -07:00
Michael Lumish
e80d89479e
Refactor shared code, remove mkdirp, sort some things for stable output, add verbose option
2020-07-10 12:48:53 -07:00
Michael Lumish
4cc4a17910
Merge branch 'master' into proto-loader_type_generator
2020-07-10 10:56:04 -07:00
Michael Lumish
cee9a455a6
Load google/protobuf/* into common using require
2020-07-10 09:10:13 -07:00
Michael Lumish
e03118d8cb
Generate .ts files instead of .d.ts for better handling by tsc
2020-07-10 08:46:03 -07:00
Michael Lumish
f64599f7ed
Bump to 0.6.0-pre6
2020-07-06 09:03:59 -07:00
Michael Lumish
06f63a22ca
Merge branch 'proto-loader_type_generator' of https://github.com/murgatroid99/grpc-node into proto-loader_type_generator
2020-07-06 09:01:59 -07:00
Richard Willis
c6d4ea5a02
Fix some type issues in the server interface
2020-07-03 09:22:02 +01:00
Michael Lumish
110cb2f1b8
Export service client interfaces
2020-06-25 12:45:46 -07:00
Michael Lumish
f37e7d43bf
A few more fixes to make the generated code compile
2020-06-24 16:36:26 -07:00
Michael Lumish
c7bbf045b6
Add json option and google.protobuf.Any wrapper type
2020-06-18 15:52:37 -07:00
Michael Lumish
c6e17f2758
Fix constructor argument declaration
2020-06-18 10:14:55 -07:00
Michael Lumish
8bfa472df0
Fix a couple of type name errors
2020-06-12 11:22:07 -07:00
Michael Lumish
3d369e9f56
Update to prerelease version, fix copyright date
2020-06-12 10:58:42 -07:00
Michael Lumish
da3fefb58e
proto-loader: Add TypeScript generator
2020-06-12 10:21:10 -07:00
Michael Lumish
eab63a94ac
Don't use gts clean in npm clean to avoid errors on Node 8
2020-05-08 11:37:56 -07:00
Michael Lumish
82ddf3bdb8
Bump proto-loader to 0.5.4
2020-03-30 10:40:50 -07:00
Michael Lumish
0c3b93fc3a
proto-loader: Warn if file not found in imports
2020-03-13 13:46:09 -07:00
Natan Sągol
8cbda9b03c
build(proto-loader): add full gts configuration and fix reported issues
2019-11-08 08:09:40 +01:00
murgatroid99
0fe10fd1fb
proto-loader: Pass file descriptors around instead of caching them separately
2019-11-01 10:34:35 -07:00
murgatroid99
a17c53050a
Bump proto-loader to 0.5.2
2019-08-29 15:03:27 -07:00
Dmitry Cheryasov
8f724121a2
Fix a TypeError loading a non-existent proto file.
...
The issue: https://github.com/grpc/grpc-node/issues/876
This is an obvious typo; `typeof` has to return a string `'undefined'`, not a literal `undefined.`
2019-05-20 15:36:15 -05:00
murgatroid99
643dc6c25c
Bump proto-loader to 0.5.1
2019-05-16 16:04:11 -07:00
Michael Lumish
8e2e2b25c2
Merge branch 'master' into multi-filenames
2019-05-16 10:28:15 -07:00
murgatroid99
904d820bd2
Merge remote-tracking branch 'upstream/grpc@1.20.x' into v1.20_upmerge
2019-05-08 13:32:11 -07:00
murgatroid99
1b64626cbb
Fix missing clean deps
2019-04-24 17:06:23 -07:00
murgatroid99
2ef046e96f
Properly signal task completion in gulpfiles
2019-04-24 16:54:03 -07:00
murgatroid99
df57548805
Update gulp to version 4, rewrite scripts
2019-04-24 16:12:02 -07:00
murgatroid99
3b8cf357e4
Re-add typescript dependency on packages that use it
2019-04-09 16:03:54 -07:00
murgatroid99
cd4b2ad524
Bump proto-loader version to 0.5.0
2019-04-09 10:34:55 -07:00
murgatroid99
952d04c3e8
Merge remote-tracking branch 'upstream/grpc@1.19.x' into v1.19_upmerge
2019-04-01 17:33:28 -07:00
cjihrig
c5cc74e589
proto-loader: fix linting issues
...
This commit makes the linter pass for proto-loader.
2019-04-01 16:29:50 -04:00
cjihrig
cbff0b4601
proto-loader: include Google well known protos
...
This commit ensures that the Google well known protos are
available because protobufjs only exposes a subset of them.
2019-04-01 16:29:26 -04:00
James Roper
7f85a775d6
Fixed load/loadSync filename parameter type
...
Fixes #805 .
Changed the type of the filename parameter to the proto-loader load
method to match the type of the protobuf.js load method that it is
passed to.
Signed-off-by: James Roper <james@jazzy.id.au>
2019-03-29 16:03:51 +11:00
murgatroid99
157e7c69b6
Remove other typescript dev dependencies
2019-03-22 11:48:15 -07:00
raunaqrox
f9311fceca
Fix typo in error message
2019-03-20 23:12:02 +05:30
raunaqrox
1d7ed8167a
isArray instead of instanceof for consistent checking
2019-03-20 23:09:25 +05:30
Nicolas "Pixel" Noble
6bc7184542
Adding missing license on a bunch of source files.
2019-03-19 01:06:57 +01:00
murgatroid99
1395444a04
Don't fill in any templates in LICENSE files
2019-03-06 11:01:44 -08:00
murgatroid99
3d597420a4
Add missing license files to package directories
2019-03-06 10:37:43 -08:00
murgatroid99
a14e7bcba0
Update typescript version to 3.3
2019-03-05 15:28:11 -08:00
murgatroid99
6d2b6d2dcc
Bump proto-loader to 0.4.0
2019-01-17 10:00:43 -08:00
Michael Lumish
eb932db144
Merge pull request #703 from murgatroid99/proto-loader_messages
...
Add message and enum type information to package definition output.
2019-01-17 09:34:24 -08:00
murgatroid99
0bc3d0b3b6
Skip proto-loader tests for unsupported versions
2019-01-14 14:35:46 -08:00
murgatroid99
1a9e7cd7c7
Add message type information to package definition output.
2019-01-14 14:08:24 -08:00
murgatroid99
93c9ca64b0
Update proto-loader to 0.3.1
2018-12-17 15:57:14 -08:00
murgatroid99
a6ecc7c8c8
proto loader: Fall back to default path resolution
2018-12-07 11:43:02 -08:00
Justin Beckwith
7e472e5bf4
refactor: use individual lodash package for proto loader
2018-11-09 16:39:03 -08:00
cjihrig
489305db79
proto-loader: rename grpc-protobufjs to match npm
...
This commit renames grpc-protobufjs to proto-loader to more
closely match the name used on npm.
2018-11-01 17:09:28 -04:00