Skip to content

Commit

Permalink
Update dependencies, use ProjectService
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwgillespie committed Aug 22, 2023
1 parent 7c1bc12 commit f49d4c4
Show file tree
Hide file tree
Showing 17 changed files with 1,251 additions and 1,143 deletions.
8 changes: 0 additions & 8 deletions .prettierrc.cjs

This file was deleted.

2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"prettier.prettierPath": "node_modules/prettier/index.js",
"prettier.prettierPath": "node_modules/prettier/index.cjs",
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true
}
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ Each of the Depot API services is exposed on the main `depot` export. Authentica

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

### Example

**List namespaces:**
**List projects:**

```typescript
import {depot} from '@depot/sdk-node'
Expand All @@ -36,8 +36,8 @@ const headers = {
}

async function example() {
const result = await depot.core.v1.NamespaceService.listNamespaces({}, {headers})
console.log(result.namespaces)
const result = await depot.core.v1.ProjectService.listProjects({}, {headers})
console.log(result.projects)
}
```

Expand Down
2 changes: 1 addition & 1 deletion buf.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ plugins:
- name: es
opt: target=ts
out: src/gen
- name: connect-web
- name: connect-es
opt: target=ts
out: src/gen
38 changes: 25 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,36 @@
"type-check": "tsc --noEmit"
},
"dependencies": {
"@bufbuild/connect-node": "^0.7.0",
"@bufbuild/protobuf": "^1.0.0"
"@bufbuild/protobuf": "^1.3.0",
"@connectrpc/connect": "^0.13.1",
"@connectrpc/connect-node": "^0.13.1"
},
"devDependencies": {
"@bufbuild/protoc-gen-connect-web": "^0.7.0",
"@bufbuild/protoc-gen-es": "^1.0.0",
"@tsconfig/node18": "^1.0.1",
"@types/node": "^18.11.13",
"esbuild": "^0.17.5",
"@bufbuild/protoc-gen-es": "^1.3.0",
"@connectrpc/protoc-gen-connect-es": "^0.13.1",
"@tsconfig/node18": "^18.2.1",
"@types/node": "^20.5.3",
"esbuild": "^0.19.2",
"esbuild-register": "^3.4.2",
"prettier": "^2.8.1",
"prettier-plugin-organize-imports": "^3.2.1",
"prettier-plugin-pkg": "^0.17.1",
"tsup": "^6.5.0",
"typescript": "^4.9.4"
"prettier": "^3.0.2",
"prettier-plugin-organize-imports": "^3.2.3",
"prettier-plugin-pkg": "^0.18.0",
"tsup": "^7.2.0",
"typescript": "^5.1.6"
},
"publishConfig": {
"access": "public"
},
"sideEffects": false
"sideEffects": false,
"prettier": {
"printWidth": 120,
"semi": false,
"singleQuote": true,
"trailingComma": "all",
"bracketSpacing": false,
"plugins": [
"prettier-plugin-organize-imports",
"prettier-plugin-pkg"
]
}
}
Loading

0 comments on commit f49d4c4

Please sign in to comment.