chore(examples): update Go/Python SDK deps to new releases#15
Open
lakhansamani wants to merge 2 commits into
Open
chore(examples): update Go/Python SDK deps to new releases#15lakhansamani wants to merge 2 commits into
lakhansamani wants to merge 2 commits into
Conversation
- Go examples: import path -> authorizer-go/v2, pin v2.2.0-rc.4; drop local `replace` directives now that the tag ships the client_credentials/client_assertion APIs (pulls authorizer-proto-go). - Python examples: bump authorizer-py to 0.3.0rc3 (pulls authorizer-proto). - with-rag-fga: PaginatedRequest was removed in 0.3.0rc3; use ListUsersRequest. - with-agents-python: switch editable-local install to released authorizer-py. - Refresh stale README/Dockerfile notes about the removed replaces.
Bump every example depending on authorizer-js or authorizer-react to the released RCs, matching each file's existing caret pin style. - authorizer-js ^3.2.1 -> ^3.3.0-rc.4: with-nextjs, with-nextjs-13, with-react-native-expo, with-express-js (direct); with-vanilla-js and with-vanilla-js-custom-ui via the unpkg UMD CDN URL. - authorizer-react ^2.0.7 -> ^2.2.0-rc.3: with-nextjs, with-nextjs-13, with-react, with-gatsbyjs. Transitive authorizer-js dedupes up to 3.3.0-rc.4 in each lockfile. - No code changes needed: no example calls the flattened admin pagination API, sets is_multi_factor_auth_enabled on signup, or composes AuthorizerVerifyOtp directly, so none of the RC breaking changes apply.
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.
Summary
Update every example that depends on
authorizer-goorauthorizer-pyto the newly released SDKs, which now consume the dedicatedauthorizer-proto-go/authorizer-protopackages as real versioned dependencies (instead of vendoring generated stubs). Go examples also move to the/v2module path.Changes
with-go,with-microservices-go,with-spiffe/workload,with-k8s-tokenreview/app): import pathgithub.com/authorizerdev/authorizer-go->.../authorizer-go/v2; requirev2.2.0-rc.4. Dropped the localreplace => ../authorizer-godirectives — the tagged release now carries theclient_credentials/client_assertionAPIs those examples needed.go mod tidypullsauthorizer-proto-go v0.1.0transitively.with-python,with-rag-fga,with-agents-python): bumpauthorizer-pyto0.3.0rc3(matching each file's existing pin style).authorizer-protois pulled transitively.with-rag-fga/seed.py:PaginatedRequestwas removed in0.3.0rc3; switched toListUsersRequest(samepagination=PaginationRequest(...)shape, which is whatadmin.users()now takes).with-agents-python: replaced the editable-local install (pip install -e ../../../authorizer-python, a path that doesn't exist for anyone cloning this repo) with arequirements.txtpinning the released SDK — the token-exchange API it needs now ships in0.3.0rc3.replacedirectives and old versions.Testing
go mod tidy+go build ./...+go vet ./...clean for all 4 modules.pip install -r requirements.txtfor each example resolves with no errors and landsauthorizer_protoin site-packages; every imported symbol resolves against0.3.0rc3and all.pyfiles compile.Please review — not self-merging.