Update references to version 1.3.0 (#1148)

This commit is contained in:
Eryu Xia 2021-10-14 21:30:22 +00:00 committed by GitHub
parent 4835cb6df8
commit 0368e31aaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 34 additions and 13 deletions

View File

@ -1,6 +1,29 @@
[//]: # (GENERATED FILE -- DO NOT EDIT!)
[//]: # (See scripts/release_notes.py for more details.)
## 1.3.0
### Major Features
- [#1139](https://github.com/grpc/grpc-web/pull/1139) Improve error type with `RpcError` & internal code sync (contributor: @TomiBelan)
+ (experimental) Typescript users need to update type references from `Error` -> `RpcError`
### Other Changes
- [#1140](https://github.com/grpc/grpc-web/pull/1140) Improve `RpcError.code` typing & internal code sync (contributor: @richieforeman)
- [#1138](https://github.com/grpc/grpc-web/pull/1138) Remove Bazel in Javascript toolchain
- [#1137](https://github.com/grpc/grpc-web/pull/1137) Revamp Closure JsUnit tests runtime and optimize test/build flows.
- [#1115](https://github.com/grpc/grpc-web/pull/1115) Bump Bazel version -> 4.1.0 and Protobuf version -> 3.17.3
- [#1107](https://github.com/grpc/grpc-web/pull/1107) Allow for custom install prefix @06kellyjac
- [#1063](https://github.com/grpc/grpc-web/pull/1063) Also set timeout on HTTP request if deadline for grpc call is set @Yannic
- [#1004](https://github.com/grpc/grpc-web/pull/1004) Bump closure library version to v20201102
- [#1002](https://github.com/grpc/grpc-web/pull/1002) Bump Envoy version to 1.16.1
- [#998](https://github.com/grpc/grpc-web/pull/998) Fix GrpcWebClientBaseOptions types in index.d.ts @acalvo
- [#971](https://github.com/grpc/grpc-web/pull/971) Add grpc.web.ClientOptions to better document options and add type res... @jennnnny
- [#969](https://github.com/grpc/grpc-web/pull/969) Fix non-determinism in code generator
- [#941](https://github.com/grpc/grpc-web/pull/941) Fix Protobuf .d.ts typings for .proto files without package @Yannic
## 1.2.1
- [#910](https://github.com/grpc/grpc-web/pull/910) Add test to show how to access metadata in interceptor
@ -194,4 +217,3 @@
- [#209](https://github.com/grpc/grpc-web/pull/209) Add bazel integration and tests
- [#206](https://github.com/grpc/grpc-web/pull/206) Surface underlying XHR errors better
- [#185](https://github.com/grpc/grpc-web/pull/185) Support for proto files without packages [@zaucy](https://github.com/zaucy)

View File

@ -62,7 +62,7 @@ Make sure they are both executable and are discoverable from your PATH.
For example, in MacOS, you can do:
```
$ sudo mv ~/Downloads/protoc-gen-grpc-web-1.2.1-darwin-x86_64 \
$ sudo mv ~/Downloads/protoc-gen-grpc-web-1.3.0-darwin-x86_64 \
/usr/local/bin/protoc-gen-grpc-web
$ chmod +x /usr/local/bin/protoc-gen-grpc-web
```

View File

@ -24,8 +24,8 @@ protoc-3.14.0-linux-x86_64.zip -o protoc.zip && \
unzip -qq protoc.zip && \
cp ./bin/protoc /usr/local/bin/protoc
RUN curl -sSL https://github.com/grpc/grpc-web/releases/download/1.2.1/\
protoc-gen-grpc-web-1.2.1-linux-x86_64 -o /usr/local/bin/protoc-gen-grpc-web && \
RUN curl -sSL https://github.com/grpc/grpc-web/releases/download/1.3.0/\
protoc-gen-grpc-web-1.3.0-linux-x86_64 -o /usr/local/bin/protoc-gen-grpc-web && \
chmod +x /usr/local/bin/protoc-gen-grpc-web
WORKDIR /var/www/html/dist
@ -39,4 +39,3 @@ RUN git clone https://github.com/grpc/grpc-web . && \
mvn package --no-transfer-progress
ENTRYPOINT ["java", "-cp", "net/grpc/gateway/examples/grpc-web-java/interop-test-service/target/interop-test-0.1-jar-with-dependencies.jar", "grpcweb.examples.StartServiceAndGrpcwebProxy"]

View File

@ -5,7 +5,7 @@
"license": "Apache-2.0",
"dependencies": {
"google-protobuf": "~3.14.0",
"grpc-web": "~1.2.1"
"grpc-web": "~1.3.0"
},
"devDependencies": {
"webpack": "~4.43.0",

View File

@ -4,7 +4,7 @@
"@types/jquery": "~3.3.6",
"@types/node": "~10.17.0",
"google-protobuf": "~3.14.0",
"grpc-web": "~1.2.1",
"grpc-web": "~1.3.0",
"jquery": "~3.5.1",
"mock-xmlhttprequest": "~2.0.0",
"webpack": "~4.43.0",

View File

@ -155,7 +155,7 @@ You will need a `package.json` file
"name": "grpc-web-commonjs-example",
"dependencies": {
"google-protobuf": "~3.14.0",
"grpc-web": "~1.2.1"
"grpc-web": "~1.3.0"
},
"devDependencies": {
"webpack": "~4.43.0",

View File

@ -202,7 +202,7 @@ the `client.js` files.
"@grpc/proto-loader": "~0.5.4",
"async": "~1.5.2",
"google-protobuf": "~3.14.0",
"grpc-web": "~1.2.1",
"grpc-web": "~1.3.0",
"lodash": "~4.17.0",
"webpack": "~4.43.0",
"webpack-cli": "~3.3.11"
@ -250,7 +250,7 @@ To generate the protobuf messages and client service stub class from your
> For example, in MacOS, you can do:
>
> ```sh
> $ sudo mv ~/Downloads/protoc-gen-grpc-web-1.2.1-darwin-x86_64 \
> $ sudo mv ~/Downloads/protoc-gen-grpc-web-1.3.0-darwin-x86_64 \
> /usr/local/bin/protoc-gen-grpc-web
> $ sudo chmod +x /usr/local/bin/protoc-gen-grpc-web
> ```
@ -271,7 +271,7 @@ in the current directory:
- `helloworld_pb.js`: this contains the `HelloRequest` and `HelloReply`
classes
- `helloworld_grpc_web_pb.js`: this contains the `GreeterClient` class
These are also the 2 files that our `client.js` file imported earlier in the
example.

View File

@ -8,7 +8,7 @@
"@grpc/proto-loader": "~0.5.4",
"async": "~1.5.2",
"google-protobuf": "~3.14.0",
"grpc-web": "~1.2.1",
"grpc-web": "~1.3.0",
"lodash": "~4.17.0",
"webpack": "~4.43.0",
"webpack-cli": "~3.3.11"

View File

@ -8,7 +8,7 @@
},
"dependencies": {
"google-protobuf": "~3.14.0",
"grpc-web": "~1.2.1"
"grpc-web": "~1.3.0"
},
"devDependencies": {
"minimist": "~1.2.5",