Commit Graph

848 Commits

Author SHA1 Message Date
Eryu Xia 173cb546b7
Fix release notes script to handle empty PR descriptions. (#1196) 2022-02-08 11:21:45 -08:00
Eryu Xia 81ce4c52ff
Revert "Expose MethodDescriptor's public methods (#1160)" (#1199)
This reverts commit 97baed4dbe.
2022-01-31 17:50:44 -08:00
Eryu Xia 454fe5f458
Bump version to 1.3.1 (#1195) 2022-01-29 00:02:14 -08:00
Eryu Xia 11370185b6
Internal code sync (#1194) 2022-01-28 23:35:44 -08:00
Eryu Xia 4dbd519bc8
Disable caching of local generated main.js file (#1193) 2022-01-28 21:47:21 -08:00
Matt Nathan eb313c1f3d
Correctly support proto3 optional fields in commonjs+dts .d.ts output (#1184)
* Correctly support proto3 optional fields in commonjs+dts .d.ts output

Fixes #1072

* Use has_optional_keyword instead of is_optional

* Improve the readability of the condition guarding hasXxx .d.ts field generation.
2022-01-28 12:41:59 -08:00
Stanley Cheung 3fcc2a2a8a
Update envoy version to 1.20 (#1173) 2021-11-19 15:25:35 -08:00
Lukas Möller 6b1d1e97a9
Fix missing TypeScript return type for `serverStreaming` calls. (#1167)
* Add strongly types to MethodDescriptor constructor
* Adds return type declaration to server streaming call

Co-authored-by: Eryu Xia <eryu@google.com>
2021-11-19 15:15:34 -08:00
Cirillo Ferreira 97baed4dbe
Expose MethodDescriptor's public methods (#1160)
Co-authored-by: Eryu Xia <eryu@google.com>
2021-11-19 01:44:39 -08:00
Eryu Xia cc1a135855
Fix issue where no RPC is issued when `deadline` is specified. (#1172) 2021-11-19 01:01:18 -08:00
Eryu Xia b849db4dfa
Use latest typescript and manually move `*_pb.js` files for the echo client (#1171) 2021-11-18 11:32:55 -08:00
Eryu Xia f1d863f2dc
Pin typescript to @4.4.4 to fix CI (#1170) 2021-11-18 10:34:01 -08:00
Eryu Xia 9f76a56ac9
Update Echo App instructions to pull `prereqs` (#1149)
.. as it's currently specified as a runtime dependency (in docker-compose.yml), even tho it's technically only needed at build time.

(Ideas needed: Anyone has idea on how to specify an image to only be needed at build time? 😃)
2021-11-17 13:59:47 -08:00
Eryu Xia 1efe741695
Add missing exports from RpcError and add test. (#1166) 2021-11-12 11:55:38 -08:00
Tin Rabzelj 53964f3668
Add missing class exports (#1164) 2021-11-10 10:32:48 -08:00
Eryu Xia 5831a96b56
Update generator to stop mentioning methodInfo (in TS files) (#1152) 2021-10-20 16:21:17 -07:00
Eryu Xia 0368e31aaa
Update references to version 1.3.0 (#1148) 2021-10-14 14:30:22 -07:00
Eryu Xia 4835cb6df8
Update g++ flags based on MacOS v.s. Linux (#1147) 2021-10-13 20:27:55 -07:00
Eryu Xia 4676d14333
Adding `-static` to generator g++ build flag (#1146) 2021-10-13 18:25:59 -07:00
Eryu Xia 7f70efec6e
Bump version to 1.3.0 (#1145) 2021-10-13 16:52:01 -07:00
Rohit Joshi 541e3aed20
document stream cancel function (#1081)
Co-authored-by: Eryu Xia <eryu@google.com>
2021-10-07 17:21:01 -07:00
Michal Augustýn 41f7cc71cf
docs: example showing binary format generation fixed (#1135)
Co-authored-by: Eryu Xia <eryu@google.com>
2021-10-07 13:31:56 -07:00
Eryu Xia 3956560ad0
Redo #1063 - Also set timeout on HTTP request if deadline for grpc call is set. (#1142) 2021-09-28 18:44:18 -07:00
Eryu Xia a992d943f8
Pin chrome version to `93.0.4577.63` (as in the Docker image) (#1143) 2021-09-28 14:53:27 -07:00
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
Ola Flisbäck d9a6c7a738
Require assert in hello world README example (#1116) 2021-09-08 01:29:54 -07:00
Eryu Xia a489de6f9e Replace use of `third_party/closure-library` submodule
... in favor of `google-closure-library` npm package.

Removed the third_party/closure-library submodule following the instructions here:
https://git.wiki.kernel.org/index.php/GitSubmoduleTutorial#Removal

Tested:
- Verified that `npm run build` inside `packages/grpc-web` generates
  exactly the same output as before.
- Test ran closure client: `docker-compose up --build node-server envoy closure-client`
2021-09-01 18:17:14 -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
Eryu Xia da552fc7ee Optimize `prereqs` Dockerfile to checkout Git submodules first
Due to Docker build cache, this can usually save me 20s+ build time on my MacbookPro each time i
rebuild after a local code change.
2021-08-06 10:51:14 -07:00
Eryu Xia fb3f864a0d Add troubleshooting info on Bazel crashes (OOM).
Explains what to do when Bazel crashes (OOM).
2021-08-05 10:50:08 -07:00
Eryu Xia ef0f44e1ce Bump Bazel version -> 4.1.0 and Protobuf version -> 3.17.3 2021-08-05 00:26:31 -07:00
Stanley Cheung 3c74b0da5c Internal code sync 2021-08-03 15:05:08 -07:00
Eryu Xia b24f5ca6ec Update Envoy timeout configs 2021-08-02 21:28:16 -07:00
dependabot[bot] 511cc32525 Bump jetty-server in /src/connector
Bumps [jetty-server](https://github.com/eclipse/jetty.project) from 9.4.40.v20210413 to 9.4.41.v20210516.
- [Release notes](https://github.com/eclipse/jetty.project/releases)
- [Commits](https://github.com/eclipse/jetty.project/compare/jetty-9.4.40.v20210413...jetty-9.4.41.v20210516)

---
updated-dependencies:
- dependency-name: org.eclipse.jetty:jetty-server
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-27 11:07:07 -07:00
Stanley Cheung 78d5ded10f Fix grpc-js dep version 2021-05-10 13:41:45 -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
Piotr Morgwai Kotarbinski 9c0169748a Cleanup and refresh maven pom.xml files
It was impossible to build a project using grpcweb-java due to multiple
enforcer errors. Fixing grpcweb-java broke examples hence these had to
be cleaned as well.
2021-05-10 12:37:25 -07:00
Warren He 35c16a9e4e ts: fill in other MethodDescriptor methods 2021-03-15 11:37:13 -07:00
Warren He b63099d977 ts: declare MethodType 2021-03-15 11:37:13 -07:00
Stanley Cheung c5bd9f7061 Clean up docker builds 2021-03-15 00:45:08 -07:00
Stanley Cheung 7b944d9dd4 Removed old nginx gateway code 2021-03-14 23:59:11 -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
Yannic 7984205077 Set upstream timeout for envoy in echo example
Without this, streaming calls fail after a few seconds because envoy terminates the connection to the gRPC upstream.
2021-03-13 01:31:06 -08:00
Stanley Cheung 247e211031 Use bazel to build echo_server example 2021-03-13 01:04:51 -08:00
Stanley Cheung 3d7789ab28 Fix go env var for 1.16 2021-03-13 00:07:38 -08:00
nghialv ecf7512b88 Fix envoy config in the guide of helloworld example 2021-03-12 23:10:40 -08:00