Skip to content

Commit

Permalink
Update protobuf in JS SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentaTomas committed Nov 15, 2024
1 parent 3b2a17d commit 4fa514d
Show file tree
Hide file tree
Showing 11 changed files with 772 additions and 1,599 deletions.
5 changes: 5 additions & 0 deletions .changeset/stale-eels-drive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'e2b': patch
---

Update protobuf version
6 changes: 3 additions & 3 deletions packages/js-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@
"typescript"
],
"dependencies": {
"@bufbuild/protobuf": "^1.10.0",
"@connectrpc/connect": "^1.4.0",
"@connectrpc/connect-web": "^1.4.0",
"@bufbuild/protobuf": "^2.2.2",
"@connectrpc/connect": "2.0.0-rc.3",
"@connectrpc/connect-web": "2.0.0-rc.3",
"compare-versions": "^6.1.0",
"openapi-fetch": "^0.9.7",
"platform": "^1.3.6"
Expand Down
6 changes: 3 additions & 3 deletions packages/js-sdk/src/envd/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
formatSandboxTimeoutError,
AuthenticationError,
} from '../errors'
import { StartResponse } from './process/process_pb'
import { StartResponse, ConnectResponse } from './process/process_pb'
import { Code, ConnectError } from '@connectrpc/connect'
import { WatchDirResponse } from './filesystem/filesystem_pb'

Expand Down Expand Up @@ -48,9 +48,9 @@ export async function handleEnvdApiError<A, B, C extends `${string}/${string}`>(
}

export async function handleProcessStartEvent(
events: AsyncIterable<StartResponse>
events: AsyncIterable<StartResponse | ConnectResponse>
) {
let startEvent: StartResponse
let startEvent: StartResponse | ConnectResponse

try {
startEvent = (await events[Symbol.asyncIterator]().next()).value
Expand Down
2 changes: 1 addition & 1 deletion packages/js-sdk/src/envd/filesystem/filesystem_connect.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts"
// @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts"
// @generated from file filesystem/filesystem.proto (package filesystem, syntax proto3)
/* eslint-disable */
// @ts-nocheck
Expand Down
Loading

0 comments on commit 4fa514d

Please sign in to comment.