Skip to content

Commit

Permalink
Merge pull request #55 from samkim/deprecate-v0
Browse files Browse the repository at this point in the history
Deprecate v0 API
  • Loading branch information
samkim committed Feb 11, 2022
2 parents c781fa7 + 352ec2b commit 969870d
Show file tree
Hide file tree
Showing 12 changed files with 298 additions and 256 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Expand Up @@ -64,6 +64,6 @@ jobs:
- uses: "actions/checkout@v2"
- uses: "bufbuild/buf-setup-action@v0.6.0"
with:
version: "1.0.0-rc8"
version: "1.0.0-rc12"
- name: "Generate & Diff Protos"
run: "./buf.gen.yaml && git diff && bash -c '[ $(git status --porcelain | tee /dev/fd/2 | wc -c) -eq 0 ]'"
run: "./buf.gen.yaml && git diff --text && bash -c '[ $(git status --porcelain | tee /dev/fd/2 | wc -c) -eq 0 ]'"
6 changes: 6 additions & 0 deletions .golangci.yaml
Expand Up @@ -24,3 +24,9 @@ linters:
- "typecheck"
- "unused"
- "varcheck"
issues:
exclude-rules:
- linters:
- "staticcheck"
path: "v0" # Temporarily skip deprecation checks during grace period
text: "SA1019:"
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -18,7 +18,7 @@ Once stored, data can be performantly queried to answer questions such as "Does
Supported client API versions:
- [v1](https://buf.build/authzed/api/docs/main/authzed.api.v1)
- [v1alpha1](https://buf.build/authzed/api/docs/main/authzed.api.v1alpha1)
- [v0](https://buf.build/authzed/api/docs/main/authzed.api.v0)
- "v0" - deprecated

You can find more info about the API in the [Authzed Documentation API Reference] or the [Authzed API Buf Registry repository].

Expand Down Expand Up @@ -60,7 +60,7 @@ Because this library is using [gRPC] under the hood, you are free to leverage th

In order to successfully connect, you will have to provide a [Bearer Token] with your own API Token from the [Authzed dashboard] in place of `t_your_token_here_1234567deadbeef` in the following example:

[`NewClient()`]: https://pkg.go.dev/github.com/authzed/authzed-go/v0#NewClient
[`NewClient()`]: https://pkg.go.dev/github.com/authzed/authzed-go/v1#NewClient
[Bearer Token]: https://datatracker.ietf.org/doc/html/rfc6750#section-2.1
[Authzed Dashboard]: https://app.authzed.com
[gRPC]: https://grpc.io
Expand Down
2 changes: 1 addition & 1 deletion buf.gen.yaml
@@ -1,4 +1,4 @@
#!/usr/bin/env -S buf generate buf.build/authzed/api:44dcca2238300779aef959dccd6afbcf14542f8f --template
#!/usr/bin/env -S buf generate buf.build/authzed/api:8ae4cf539d36085c169d8805c54e1bead3d7b9b9 --template
---
version: "v1"
plugins:
Expand Down
299 changes: 158 additions & 141 deletions proto/authzed/api/v0/acl_service.pb.go

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions proto/authzed/api/v0/acl_service_grpc.pb.go

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

113 changes: 61 additions & 52 deletions proto/authzed/api/v0/namespace_service.pb.go

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

0 comments on commit 969870d

Please sign in to comment.