Upgrade dependencies and bump authzed/api to v1.45.4#35
Merged
Conversation
- Bump version to 1.7.0 - Update grpc and protobuf dependencies to versions 0.11.0 and 0.16.0 respectively - Remove deprecated Google RPC modules from the codebase - Add GRPC.Client.Supervisor to the supervision tree in the documentation - Clean up docker-compose-test.yml by removing the version line
42e0baa to
dd8bd02
Compare
Owner
|
Apologies this took a while to review. Merged now and deployed! 🎉 Thank you! |
Contributor
Author
|
No worries! It might be worth to put the note about the changed supervision tree into the release note though!
|
Owner
|
Nice catch! Updated it now: https://github.com/goodhamgupta/authzed_ex/releases/tag/v1.7.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I regenerated the api client based on authzed/api v1.45.4
Google RPC types are no longer taken from Buf; they come from the googleapis Hex package (pulled in via grpc). I updated the Makefile accordingly.
Important: Users need to add GRPC.Client.Supervisor to their supervision tree (e.g. {GRPC.Client.Supervisor, []} in the app’s children). The gRPC client needs this supervisor to open connections.
Aside from that, typical app code can stay the same if you already pass a single target string to the client.
Authzed.Api.V1.Client
Client.new/3now takes a single endpoint string (e.g. "host:port"), matching GRPC.Stub.connect/2 (including typed forms like ipv4:… / ipv6:… where appropriate).Client.new/4(host + port) remains for backward compatibility but is @deprecated. It no longer calls the deprecated GRPC.Stub.connect/3 path (which can surface as warnings or break warnings_as_errors). Instead it builds a target string and delegates to new/3, so deprecation is our compile-time @deprecated, not the library’s runtime warning.