Commit Graph

214 Commits

Author SHA1 Message Date
Eryu Xia f1fe57473f
Internal code sync (#1140) 2021-09-28 10:48:20 -07:00
Eryu Xia 627e33718d
Internal code sync (#1139)
- Internal code sync (up to Aug 4, 2021 for now..) & relevant improvements. :)
- Updated Closure dependency to 20210808.0.0 (necessary dependency)
2021-09-22 16:53:00 -07:00
Eryu Xia 78ddf996d8
Clean up Javascript-related Bazel rules. (#1138) 2021-09-21 23:16:28 -07:00
Eryu Xia 32fe12459b
Revamp Closure JsUnit tests runtime and optimize test/build flows. (#1137) 2021-09-21 15:27:21 -07:00
06kellyjac a56e7212a3 Allow for custom install prefix
Also create the dir if it doesn't exist
2021-08-11 14:01:24 -07:00
Stanley Cheung 3c74b0da5c Internal code sync 2021-08-03 15:05:08 -07:00
Yannic Bonenberger 6c1a2ceda1 Also set timeout on HTTP request if deadline for grpc call is set 2021-05-10 13:09:14 -07:00
Stanley Cheung 5a2ab7a75f Linter changes 2021-03-13 23:51:20 -08:00
Stanley Cheung 7afe497d8f Internal code sync 2021-03-13 23:30:51 -08:00
Warren He 201c689222 Allow null response 2021-01-22 17:03:41 -08:00
Stanley Cheung 042ccd160e fix build 2021-01-13 23:49:23 -08:00
Stanley Cheung 3fc20fbaf5 Code sync from internal code base 2021-01-13 23:49:23 -08:00
Stanley Cheung 2e3e8d2c50 Internal code sync 2020-11-20 21:10:26 -08:00
Stanley Cheung eecc629b00 Internal code sync 2020-11-20 21:10:26 -08:00
Stanley Cheung cce2f19faa Add ClientOptions class 2020-10-12 15:06:28 -07:00
Stanley Cheung 0c62fe8a3a Fix non-determinism in code generator 2020-10-05 20:49:15 -07:00
Yannic Bonenberger fecfe1cef4 Fix Protobuf .d.ts typings for .proto files without package
Fixes #939
2020-09-01 14:14:05 -07:00
Stanley Cheung 3d921fffb7 Review fixes 2020-08-18 12:39:10 -07:00
Stanley Cheung 0238da3b6e Add immutable methods withGrpcCallOption, withMetadata to grpc.web.request, response 2020-08-18 12:39:10 -07:00
Stanley Cheung 6f5ecb0ad1 Some more internal refactor 2020-08-13 16:26:21 -07:00
Stanley Cheung 91702e7461 Migrate to ES6 classes 2020-08-10 10:42:31 -07:00
Stanley Cheung 68c1810a37 Refactor ClientUnaryCallImpl 2020-08-08 23:20:10 -07:00
Stanley Cheung 0599c38922 Roll forward of #853 2020-08-07 15:50:24 -07:00
Stanley Cheung 0a4b48e2d0 Fix some type annotations 2020-08-05 17:10:44 -07:00
Stanley Cheung bcdf3520b0 Update MethodDescriptorInterface 2020-07-24 18:24:47 -07:00
Stanley Cheung 85f7751e77 Remove duplicate decodeURIComponent call 2020-07-24 13:27:03 -07:00
wapa5pow 1e450e683c refactor hanndle error 2020-07-24 13:12:41 -07:00
wapa5pow 630ab16f4a add decode error message 2020-07-24 13:12:41 -07:00
Jack Pearkes 6ad62b1670 guard against null getResponseText()
Given the READY_STATE_CHANGE event can be trigged from for various
reasons and be in a situation where the response is not yet
written, this guards against a null value which is possible per
the specification:

https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseText
2020-07-21 21:31:14 -07:00
Stanley Cheung 5276b1e36d Add error handling to a few error conditions 2020-07-17 11:45:12 -07:00
Stanley Cheung 0aac5494fe Revert "Use methoddescriptorinterface"
This reverts commit 1ac8aa5a63.
2020-07-13 21:44:18 -07:00
Stanley Cheung 1ac8aa5a63 Use methoddescriptorinterface 2020-07-13 17:23:52 -07:00
Stanley Cheung 9b73daa521 Add missing types definitions 2020-07-13 10:56:43 -07:00
Stanley Cheung a913c18158 Minor tweak to methoddescriptor argument type 2020-07-08 15:11:00 -07:00
Stanley Cheung dfa6e478f2 Add @interface MethodDescroptorInterface 2020-07-08 14:42:47 -07:00
Stanley Cheung e27be18859 Update code generator to support Proto3 optional 2020-07-08 11:45:32 -07:00
Yannic Bonenberger cd059a28b2 [generator] Refactor dependency management
No functional changes intended.
2020-07-06 14:18:47 -07:00
Stanley Cheung e0835e2d1c Bug fix 2020-07-02 21:24:12 -07:00
Stanley Cheung 95db26456b Add an option goog_promise to generator 2020-07-02 21:24:12 -07:00
Stanley Cheung 550c8d2375 Make UnaryResponse an interface 2020-06-24 11:19:02 -07:00
Stanley Cheung 01c3421c74 Revert #738 2020-06-23 13:57:44 -07:00
Stanley Cheung a8416b5e7a Refactor error handling in grpcwebclientbase 2020-06-21 22:18:52 -07:00
Stanley Cheung c9b2e34e57 Fix @fileoverview comments 2020-06-19 10:52:40 -07:00
Stanley Cheung 670326124a Migrate to ES6 classes 2020-06-19 10:52:40 -07:00
Stanley Cheung 7a93e7f93e Rollback a change to streambodyclientreadablestream 2020-06-11 17:57:47 -07:00
Stanley Cheung 6e632b4183 Add a ThenableCall base class for the promise-based unaryCall function 2020-06-11 15:37:32 -07:00
Stanley Cheung 6900db20c0 Fix issues with callbacks 2020-06-09 17:38:01 -07:00
Stanley Cheung aadbdb7e3b Some refactor on streambodyclientreadablestream 2020-06-08 22:58:45 -07:00
Stanley Cheung 05029f3d00 Fix code generator bug and add tests 2020-06-05 22:03:38 -07:00
Yannic Bonenberger a055960f80 Add experimental ES6 import style
This change adds a new `import_style` that emits ES6 modules.
For now, this only re-exports the symbols from `import_style=closure`.

In the future, this will no longer require emitting google modules
(`goog.provide`). If protobuf ever adds support for emitting ES6
modules, we will use them instead of the `goog.provided`'d versions
as well.

Note that the Bazel integration is currently broken because of a
limitation in `rules_closure`.
2020-06-04 16:46:05 -07:00