Skip to content

Commit da28311

Browse files
Merge pull request #1 from depot/update
2 parents 7c1bc12 + 45cc1da commit da28311

18 files changed

+1253
-1145
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010

1111
- uses: pnpm/action-setup@v2
1212
with:
13-
version: 7.x.x
13+
version: 8.x.x
1414

1515
- uses: actions/setup-node@v3
1616
with:
17-
node-version: '16'
17+
node-version: '18'
1818
cache: pnpm
1919

2020
- run: pnpm install --frozen-lockfile

.prettierrc.cjs

Lines changed: 0 additions & 8 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"prettier.prettierPath": "node_modules/prettier/index.js",
2+
"prettier.prettierPath": "node_modules/prettier/index.cjs",
33
"typescript.tsdk": "node_modules/typescript/lib",
44
"typescript.enablePromptUseWorkspaceTsdk": true
55
}

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ Each of the Depot API services is exposed on the main `depot` export. Authentica
2222

2323
- [`depot.build.v1.BuildService`](https://buf.build/depot/api/docs/main:depot.build.v1#depot.build.v1.BuildService)
2424
- [`depot.buildkit.v1.BuildKitService`](https://buf.build/depot/api/docs/main:depot.buildkit.v1#depot.buildkit.v1.BuildKitService)
25-
- [`depot.core.v1.NamespaceService`](https://buf.build/depot/api/docs/main:depot.core.v1#depot.core.v1.NamespaceService)
25+
- [`depot.core.v1.ProjectService`](https://buf.build/depot/api/docs/main:depot.core.v1#depot.core.v1.ProjectService)
2626

2727
### Example
2828

29-
**List namespaces:**
29+
**List projects:**
3030

3131
```typescript
3232
import {depot} from '@depot/sdk-node'
@@ -36,8 +36,8 @@ const headers = {
3636
}
3737

3838
async function example() {
39-
const result = await depot.core.v1.NamespaceService.listNamespaces({}, {headers})
40-
console.log(result.namespaces)
39+
const result = await depot.core.v1.ProjectService.listProjects({}, {headers})
40+
console.log(result.projects)
4141
}
4242
```
4343

buf.gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ plugins:
33
- name: es
44
opt: target=ts
55
out: src/gen
6-
- name: connect-web
6+
- name: connect-es
77
opt: target=ts
88
out: src/gen

package.json

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,36 @@
2727
"type-check": "tsc --noEmit"
2828
},
2929
"dependencies": {
30-
"@bufbuild/connect-node": "^0.7.0",
31-
"@bufbuild/protobuf": "^1.0.0"
30+
"@bufbuild/protobuf": "^1.3.0",
31+
"@connectrpc/connect": "^0.13.1",
32+
"@connectrpc/connect-node": "^0.13.1"
3233
},
3334
"devDependencies": {
34-
"@bufbuild/protoc-gen-connect-web": "^0.7.0",
35-
"@bufbuild/protoc-gen-es": "^1.0.0",
36-
"@tsconfig/node18": "^1.0.1",
37-
"@types/node": "^18.11.13",
38-
"esbuild": "^0.17.5",
35+
"@bufbuild/protoc-gen-es": "^1.3.0",
36+
"@connectrpc/protoc-gen-connect-es": "^0.13.1",
37+
"@tsconfig/node18": "^18.2.1",
38+
"@types/node": "^20.5.3",
39+
"esbuild": "^0.19.2",
3940
"esbuild-register": "^3.4.2",
40-
"prettier": "^2.8.1",
41-
"prettier-plugin-organize-imports": "^3.2.1",
42-
"prettier-plugin-pkg": "^0.17.1",
43-
"tsup": "^6.5.0",
44-
"typescript": "^4.9.4"
41+
"prettier": "^3.0.2",
42+
"prettier-plugin-organize-imports": "^3.2.3",
43+
"prettier-plugin-pkg": "^0.18.0",
44+
"tsup": "^7.2.0",
45+
"typescript": "^5.1.6"
4546
},
4647
"publishConfig": {
4748
"access": "public"
4849
},
49-
"sideEffects": false
50+
"sideEffects": false,
51+
"prettier": {
52+
"printWidth": 120,
53+
"semi": false,
54+
"singleQuote": true,
55+
"trailingComma": "all",
56+
"bracketSpacing": false,
57+
"plugins": [
58+
"prettier-plugin-organize-imports",
59+
"prettier-plugin-pkg"
60+
]
61+
}
5062
}

0 commit comments

Comments
 (0)