Skip to content

docs(sdks): fix stale SDK versions and Go import path - #80

Open
lakhansamani wants to merge 1 commit into
mainfrom
docs/sdk-version-and-import-path-audit
Open

docs(sdks): fix stale SDK versions and Go import path#80
lakhansamani wants to merge 1 commit into
mainfrom
docs/sdk-version-and-import-path-audit

Conversation

@lakhansamani

Copy link
Copy Markdown
Contributor

Audit of SDK versions and install/import instructions across the docs ahead of the 2.4.0 stable release. Every version claim below was checked against the registry.

Go SDK

docs/sdks/authorizer-go/example.md imported github.com/authorizerdev/authorizer-go while index.md on the same sidebar tells you to go get github.com/authorizerdev/authorizer-go/v2. This does not fail loudly — Go resolves the bare path to an untagged pseudo-version of the pre-/v2 module and adds it alongside v2:

github.com/authorizerdev/authorizer-go v0.0.0-20260723093347-51768c568d86
github.com/authorizerdev/authorizer-go/v2 v2.2.0-rc.4

So the reader ends up with two copies of the SDK in one build and the example running against the old API. The corrected import builds clean against the published v2.2.0-rc.4.

docs/sdks/authorizer-go/admin.md told readers the generated authorizerv1 package "lives under internal/" and can only be imported from within the SDK module. That stopped being true in authorizerdev/authorizer-go#23 — the types now come from the public github.com/authorizerdev/authorizer-proto-go module (v0.2.0-rc.0, pulled in transitively). internal/ no longer exists in the repo.

index.md pkg.go.dev link now points at the /v2 path.

npm version pins

docs/getting-started/index.md and docs/migration/v1-to-v2.md still pinned release-candidate versions from the v2 beta period:

Was Registry says Now
@authorizerdev/authorizer-js@^3.0.0-rc.1 latest = 3.3.0 ^3.3.0
@authorizerdev/authorizer-react@^2.0.0-rc.1 latest = 2.0.7, rc = 2.2.0-rc.6 ^2.0.0

docs/introduction.md also listed authorizer-react as v2.1.0 — that version was never published; npm goes 2.0.72.2.0-rc.0.

Python SDK

pip install authorizer-py resolves to 0.2.0 (the current PyPI latest), which predates server 2.4.0:

  • 0.2.0 has no skip_mfa_setup — verified absent at the 0.2.0 tag
  • 0.2.0 _queries.py sends query adminUsers($data: PaginatedRequest); 2.4.0 renamed that input to PaginationRequest, which main now uses

PyPI has 0.3.0rc3 published. Install commands now use --pre, with a callout explaining why, until 0.3.0 goes stable.

Flutter

docs/sdks/authorizer-flutter/index.md pointed readers at authorizerdev/authorizer-flutter-sdk for "source code and usage instructions" — that repo contains only LICENSE, NOTICE and README. There is no authorizer package on pub.dev either. The page now says so and points at the REST/GraphQL APIs, which any Dart HTTP client can call.

docs/introduction.md linked Flutter to nickolasgomez/authorizer-flutter-sdk, which 404s.

Out of scope

No SDK package versions were bumped and nothing was published. versioned_docs/version-1.x/ is left untouched — it documents the v1 line.

Verification

npm run build passes with no new broken-link warnings.

- authorizer-go example imported the pre-/v2 path while the same page
  documents `go get .../v2`; Go silently resolves it to an untagged
  pseudo-version of the old module, so the example runs against a
  different SDK than the one installed
- admin.md claimed the generated proto types live under `internal/` and
  are unimportable externally; they moved to the public
  authorizer-proto-go module in authorizer-go#23
- getting-started and the v1-to-v2 guide still pinned
  authorizer-js@^3.0.0-rc.1 / authorizer-react@^2.0.0-rc.1; js is at
  3.3.0 and react v2 has been stable since 2.0.0
- introduction listed authorizer-react v2.1.0, which was never published
- `pip install authorizer-py` resolves to 0.2.0, which predates server
  2.4.0: no skip_mfa_setup, and paginated admin queries still send the
  renamed PaginatedRequest type. Use --pre until 0.3.0 is stable
- Flutter docs pointed readers at a placeholder repo for "usage
  instructions"; introduction linked a community fork that 404s
@netlify

netlify Bot commented Aug 4, 2026

Copy link
Copy Markdown

Deploy Preview for authorizerdev-docs ready!

Name Link
🔨 Latest commit 44f8c0c
🔍 Latest deploy log https://app.netlify.com/projects/authorizerdev-docs/deploys/6a71e377d9e8900008caf83d
😎 Deploy Preview https://deploy-preview-80--authorizerdev-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant