-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump the connect-and-protobuf group with 2 updates #160
Changes from 6 commits
ffe36e5
ff8d308
7a156aa
e46830e
b1c0532
6e9d0fa
f081db0
09a64ce
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,11 +13,7 @@ | |
// limitations under the License. | ||
|
||
import { useCallback, useState, FormEvent, FC } from "react"; | ||
import { | ||
ConnectError, | ||
createPromiseClient, | ||
PromiseClient, | ||
} from "@connectrpc/connect"; | ||
import { ConnectError, createClient, Client } from "@connectrpc/connect"; | ||
import { | ||
createGrpcWebTransport, | ||
createConnectTransport, | ||
|
@@ -30,7 +26,7 @@ interface ChatMessage { | |
} | ||
|
||
const baseUrl = "https://demo.connectrpc.com"; | ||
let elizaClient: PromiseClient<typeof ElizaService>; | ||
let elizaClient: Client<typeof ElizaService>; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fine to update to the beta here. This change is expected. |
||
|
||
// Read the transport and format parameters from the URL | ||
// Note that users do not need to worry about this since this is just for | ||
|
@@ -41,15 +37,15 @@ const transportParam = params.get("transport"); | |
const useBinaryFormat = params.get("format") === "binary"; | ||
|
||
if (transportParam === "grpcweb") { | ||
elizaClient = createPromiseClient( | ||
elizaClient = createClient( | ||
ElizaService, | ||
createGrpcWebTransport({ | ||
baseUrl, | ||
useBinaryFormat, | ||
}), | ||
); | ||
} else { | ||
elizaClient = createPromiseClient( | ||
elizaClient = createClient( | ||
ElizaService, | ||
createConnectTransport({ | ||
baseUrl, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,21 +18,14 @@ | |
|
||
import type { GenFile, GenService } from "@bufbuild/protobuf/codegenv1"; | ||
import { fileDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1"; | ||
import type { | ||
Int32ValueSchema, | ||
StringValueSchema, | ||
} from "@bufbuild/protobuf/wkt"; | ||
import type { Int32ValueSchema, StringValueSchema } from "@bufbuild/protobuf/wkt"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like "generate" and "format" are racing here. We should ignore src/testdata in "format" in packages/connect-playwright/package.json. |
||
import { file_google_protobuf_wrappers } from "@bufbuild/protobuf/wkt"; | ||
|
||
/** | ||
* Describes the file test.proto. | ||
*/ | ||
export const file_test: GenFile = | ||
/*@__PURE__*/ | ||
fileDesc( | ||
"Cgp0ZXN0LnByb3RvEgR0ZXN0MusBCgtUZXN0U2VydmljZRJFCghVbmFyeU9uZRIbLmdvb2dsZS5wcm90b2J1Zi5JbnQzMlZhbHVlGhwuZ29vZ2xlLnByb3RvYnVmLlN0cmluZ1ZhbHVlEkUKCFVuYXJ5VHdvEhsuZ29vZ2xlLnByb3RvYnVmLkludDMyVmFsdWUaHC5nb29nbGUucHJvdG9idWYuU3RyaW5nVmFsdWUSTgoPU2VydmVyU3RyZWFtaW5nEhsuZ29vZ2xlLnByb3RvYnVmLkludDMyVmFsdWUaHC5nb29nbGUucHJvdG9idWYuU3RyaW5nVmFsdWUwAWIGcHJvdG8z", | ||
[file_google_protobuf_wrappers], | ||
); | ||
export const file_test: GenFile = /*@__PURE__*/ | ||
fileDesc("Cgp0ZXN0LnByb3RvEgR0ZXN0MusBCgtUZXN0U2VydmljZRJFCghVbmFyeU9uZRIbLmdvb2dsZS5wcm90b2J1Zi5JbnQzMlZhbHVlGhwuZ29vZ2xlLnByb3RvYnVmLlN0cmluZ1ZhbHVlEkUKCFVuYXJ5VHdvEhsuZ29vZ2xlLnByb3RvYnVmLkludDMyVmFsdWUaHC5nb29nbGUucHJvdG9idWYuU3RyaW5nVmFsdWUSTgoPU2VydmVyU3RyZWFtaW5nEhsuZ29vZ2xlLnByb3RvYnVmLkludDMyVmFsdWUaHC5nb29nbGUucHJvdG9idWYuU3RyaW5nVmFsdWUwAWIGcHJvdG8z", [file_google_protobuf_wrappers]); | ||
|
||
/** | ||
* @generated from service test.TestService | ||
|
@@ -45,21 +38,23 @@ export const TestService: GenService<{ | |
methodKind: "unary"; | ||
input: typeof Int32ValueSchema; | ||
output: typeof StringValueSchema; | ||
}; | ||
}, | ||
/** | ||
* @generated from rpc test.TestService.UnaryTwo | ||
*/ | ||
unaryTwo: { | ||
methodKind: "unary"; | ||
input: typeof Int32ValueSchema; | ||
output: typeof StringValueSchema; | ||
}; | ||
}, | ||
/** | ||
* @generated from rpc test.TestService.ServerStreaming | ||
*/ | ||
serverStreaming: { | ||
methodKind: "server_streaming"; | ||
input: typeof Int32ValueSchema; | ||
output: typeof StringValueSchema; | ||
}; | ||
}> = /*@__PURE__*/ serviceDesc(file_test, 0); | ||
}, | ||
}> = /*@__PURE__*/ | ||
serviceDesc(file_test, 0); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switched to only latest patch version bc 5.6 and above is not compatible with @typescript-eslint/estree.