Skip to content

Commit

Permalink
Merge pull request #121 from depot/update-connect
Browse files Browse the repository at this point in the history
Upgrade to latest Connect client
  • Loading branch information
jacobwgillespie authored Aug 20, 2024
2 parents 2f0c622 + daf1b21 commit cdbaffe
Show file tree
Hide file tree
Showing 4 changed files with 138 additions and 69 deletions.
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,19 @@
"type-check": "tsc --noEmit"
},
"dependencies": {
"@bufbuild/connect": "^0.12.0",
"@bufbuild/connect-node": "^0.12.0",
"@bufbuild/protobuf": "^1.3.0",
"@bufbuild/buf": "^1.37.0",
"@bufbuild/protobuf": "^1.10.0",
"@connectrpc/connect": "^1.4.0",
"@connectrpc/connect-node": "^1.4.0",
"@sentry/node": "^7.64.0",
"abort-controller-x": "^0.4.3",
"execa": "^7.2.0",
"node-graceful-shutdown": "^1.1.5",
"undici": "^5.28.4"
},
"devDependencies": {
"@bufbuild/protoc-gen-connect-es": "^0.12.0",
"@bufbuild/protoc-gen-es": "^1.3.0",
"@bufbuild/protoc-gen-es": "^1.10.0",
"@connectrpc/protoc-gen-connect-es": "^1.0.0",
"@tsconfig/node18": "^18.2.0",
"@types/node": "^20.5.0",
"esbuild": "^0.19.2",
Expand Down
190 changes: 129 additions & 61 deletions pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Code, ConnectError} from '@bufbuild/connect'
import {PartialMessage} from '@bufbuild/protobuf'
import {Code, ConnectError} from '@connectrpc/connect'
import * as Sentry from '@sentry/node'
import {execa} from 'execa'
import {RegisterMachineRequest} from './gen/ts/depot/cloud/v3/machine_pb'
Expand Down
4 changes: 2 additions & 2 deletions src/utils/grpc.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {createPromiseClient, Interceptor} from '@bufbuild/connect'
import {createConnectTransport} from '@bufbuild/connect-node'
import {createPromiseClient, Interceptor} from '@connectrpc/connect'
import {createConnectTransport} from '@connectrpc/connect-node'
import {MachineService} from '../gen/ts/depot/cloud/v3/machine_connect'
import {DEPOT_CLOUD_API_HOST, DEPOT_MACHINE_AGENT_VERSION} from './env'

Expand Down

0 comments on commit cdbaffe

Please sign in to comment.