Skip to content

Commit

Permalink
Update dependencies (#928)
Browse files Browse the repository at this point in the history
  • Loading branch information
smaye81 authored Dec 1, 2023
1 parent a2ad5fd commit 22ef9ed
Show file tree
Hide file tree
Showing 25 changed files with 544 additions and 481 deletions.
928 changes: 496 additions & 432 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/connect-node-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@grpc/grpc-js": "^1.9.4",
"@types/express": "^4.17.18",
"@types/jasmine": "^5.0.0",
"esbuild": "^0.16.12",
"esbuild": "^0.19.8",
"express": "^4.18.2",
"fastify": "^4.22.1",
"jasmine": "^5.1.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ describe("client_streaming", () => {
await new Promise((resolve) => setTimeout(resolve, 1));
}
const client = createPromiseClient(TestService, transport());
const { aggregatedPayloadSize } = await client.streamingInputCall(
input(),
);
const { aggregatedPayloadSize } =
await client.streamingInputCall(input());
expect(aggregatedPayloadSize).toBe(sizes.reduce((p, c) => p + c, 0));
});
});
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/connect-node-test/src/gen/server/v1/server_pb.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/connect-node/src/node-error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export function getNodeErrorProps(reason: unknown): {
export function connectErrorFromH2ResetCode(
rstCode: number,
): ConnectError | undefined {
switch (rstCode) {
switch (rstCode as H2Code) {
case H2Code.PROTOCOL_ERROR:
case H2Code.INTERNAL_ERROR:
case H2Code.FLOW_CONTROL_ERROR:
Expand Down
4 changes: 2 additions & 2 deletions packages/connect-web-bench/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ it like a web server would usually do.

| code generator | bundle size | minified | compressed |
|----------------|-------------------:|-----------------------:|---------------------:|
| connect | 115,578 b | 50,754 b | 13,683 b |
| grpc-web | 414,071 b | 300,352 b | 53,255 b |
| connect | 115,808 b | 50,395 b | 13,564 b |
| grpc-web | 415,212 b | 300,936 b | 53,420 b |
2 changes: 1 addition & 1 deletion packages/connect-web-bench/buf.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ plugins:
- plugin: buf.build/protocolbuffers/js:v3.21.2
out: src/gen/grpcweb
opt: import_style=commonjs
- plugin: buf.build/grpc/web:v1.4.2
- plugin: buf.build/grpc/web:v1.5.0
out: src/gen/grpcweb
opt: import_style=commonjs+dts,mode=grpcweb
6 changes: 3 additions & 3 deletions packages/connect-web-bench/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
"clean": "rm -rf README.md src/gen"
},
"dependencies": {
"@connectrpc/connect-web": "1.1.3",
"@bufbuild/protoc-gen-es": "^1.4.2",
"@bufbuild/protobuf": "^1.4.2",
"@bufbuild/protoc-gen-es": "^1.4.2",
"@connectrpc/connect-web": "1.1.3",
"brotli": "^1.3.3",
"esbuild": "^0.16.12",
"esbuild": "^0.19.8",
"google-protobuf": "^3.21.0",
"grpc-web": "^1.4.2"
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/connect-web-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
"default": "./dist/esm/index.js"
},
"dependencies": {
"@connectrpc/connect-web": "1.1.3",
"@connectrpc/connect": "1.1.3",
"@connectrpc/connect-web": "1.1.3",
"@types/jasmine": "^5.0.0",
"esbuild": "^0.16.12",
"esbuild": "^0.19.8",
"jasmine": "^5.1.0",
"karma": "^6.4.2",
"karma-browserstack-launcher": "^1.6.0",
"karma-chrome-launcher": "^3.2.0",
"karma-esbuild": "^2.2.5",
"karma-esbuild": "^2.3.0",
"karma-jasmine": "^5.1.0"
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/connect-web-test/src/gen/server/v1/server_pb.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions packages/connect-web/src/connect-transport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ export function createConnectTransport(
timeoutMs === undefined
? options.defaultTimeoutMs
: timeoutMs <= 0
? undefined
: timeoutMs;
? undefined
: timeoutMs;
return await runUnaryCall<I, O>({
interceptors: options.interceptors,
signal,
Expand Down Expand Up @@ -307,8 +307,8 @@ export function createConnectTransport(
timeoutMs === undefined
? options.defaultTimeoutMs
: timeoutMs <= 0
? undefined
: timeoutMs;
? undefined
: timeoutMs;
return await runStreamingCall<I, O>({
interceptors: options.interceptors,
timeoutMs,
Expand Down
8 changes: 4 additions & 4 deletions packages/connect-web/src/grpc-web-transport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ export function createGrpcWebTransport(
timeoutMs === undefined
? options.defaultTimeoutMs
: timeoutMs <= 0
? undefined
: timeoutMs;
? undefined
: timeoutMs;
return await runUnaryCall<I, O>({
interceptors: options.interceptors,
signal,
Expand Down Expand Up @@ -311,8 +311,8 @@ export function createGrpcWebTransport(
timeoutMs === undefined
? options.defaultTimeoutMs
: timeoutMs <= 0
? undefined
: timeoutMs;
? undefined
: timeoutMs;
return runStreamingCall<I, O>({
interceptors: options.interceptors,
signal,
Expand Down
4 changes: 2 additions & 2 deletions packages/connect/src/protocol-connect/request-header.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ export function requestHeader(
? contentTypeUnaryProto
: contentTypeUnaryJson
: useBinaryFormat
? contentTypeStreamProto
: contentTypeStreamJson,
? contentTypeStreamProto
: contentTypeStreamJson,
);
result.set(headerProtocolVersion, protocolVersion);
if (setUserAgent) {
Expand Down
8 changes: 4 additions & 4 deletions packages/connect/src/protocol-connect/transport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ export function createTransport(opt: CommonTransportOptions): Transport {
timeoutMs === undefined
? opt.defaultTimeoutMs
: timeoutMs <= 0
? undefined
: timeoutMs;
? undefined
: timeoutMs;
return await runUnaryCall<I, O>({
interceptors: opt.interceptors,
signal,
Expand Down Expand Up @@ -208,8 +208,8 @@ export function createTransport(opt: CommonTransportOptions): Transport {
timeoutMs === undefined
? opt.defaultTimeoutMs
: timeoutMs <= 0
? undefined
: timeoutMs;
? undefined
: timeoutMs;
return runStreamingCall<I, O>({
interceptors: opt.interceptors,
signal,
Expand Down
8 changes: 4 additions & 4 deletions packages/connect/src/protocol-grpc-web/transport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ export function createTransport(opt: CommonTransportOptions): Transport {
timeoutMs === undefined
? opt.defaultTimeoutMs
: timeoutMs <= 0
? undefined
: timeoutMs;
? undefined
: timeoutMs;
return await runUnaryCall<I, O>({
interceptors: opt.interceptors,
signal,
Expand Down Expand Up @@ -209,8 +209,8 @@ export function createTransport(opt: CommonTransportOptions): Transport {
timeoutMs === undefined
? opt.defaultTimeoutMs
: timeoutMs <= 0
? undefined
: timeoutMs;
? undefined
: timeoutMs;
return runStreamingCall<I, O>({
interceptors: opt.interceptors,
signal,
Expand Down
2 changes: 1 addition & 1 deletion packages/connect/src/protocol-grpc/gen/status_pb.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions packages/connect/src/protocol-grpc/transport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ export function createTransport(opt: CommonTransportOptions): Transport {
timeoutMs === undefined
? opt.defaultTimeoutMs
: timeoutMs <= 0
? undefined
: timeoutMs;
? undefined
: timeoutMs;
return await runUnaryCall<I, O>({
interceptors: opt.interceptors,
signal,
Expand Down Expand Up @@ -184,8 +184,8 @@ export function createTransport(opt: CommonTransportOptions): Transport {
timeoutMs === undefined
? opt.defaultTimeoutMs
: timeoutMs <= 0
? undefined
: timeoutMs;
? undefined
: timeoutMs;
return runStreamingCall<I, O>({
interceptors: opt.interceptors,
signal,
Expand Down
6 changes: 3 additions & 3 deletions packages/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@
"node": ">=16"
},
"dependencies": {
"@bufbuild/protobuf": "^1.4.2",
"@connectrpc/connect-node": "^1.1.3",
"@connectrpc/connect-web": "^1.1.3",
"@bufbuild/protobuf": "^1.4.2",
"tsx": "^3.13.0"
},
"devDependencies": {
"@bufbuild/buf": "^1.27.2",
"@connectrpc/protoc-gen-connect-es": "^1.1.3",
"@bufbuild/protoc-gen-es": "^1.4.2",
"@connectrpc/protoc-gen-connect-es": "^1.1.3",
"@types/express": "^4.17.18",
"esbuild": "^0.16.12",
"esbuild": "^0.19.8",
"typescript": "^5.2.2"
}
}
2 changes: 1 addition & 1 deletion packages/example/src/gen/eliza_pb.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 22ef9ed

Please sign in to comment.