Skip to content

Rename to @pinax/api (v0.3.0)#56

Merged
DenisCarriere merged 1 commit into
mainfrom
rename-to-pinax-api
May 27, 2026
Merged

Rename to @pinax/api (v0.3.0)#56
DenisCarriere merged 1 commit into
mainfrom
rename-to-pinax-api

Conversation

@DenisCarriere
Copy link
Copy Markdown
Contributor

Summary

  • Rename package @pinax/token-api@pinax/api
  • Rename main class TokenAPIPinaxAPI (kept TokenAPI/TokenClient as deprecated aliases for backward compat)
  • Bump version to v0.3.0
  • Env var TOKENAPI_KEYPINAX_API_KEY in examples
  • Update User-Agent header to @pinax/api
  • Regenerated OpenAPI types from https://api.pinax.network/openapi
  • Verified all 65 v1 routes from the OpenAPI spec are covered by the SDK (no missing routes)
  • Updated README, examples, and doc comments to drop "Token API" branding

Breaking changes

  • Package name change requires consumers to install @pinax/api
  • Class rename: prefer PinaxAPI; TokenAPI still works but is deprecated
  • Env var convention: examples now read PINAX_API_KEY (old name no longer referenced)

Test plan

  • bun run typecheck passes
  • bun test — 111/111 pass
  • Diff of OpenAPI routes vs SDK GET() calls is empty
  • Publish dry-run on npm before tagging release

🤖 Generated with Claude Code

Rename Token API SDK to Pinax API. Package `@pinax/token-api` becomes
`@pinax/api`, main class `TokenAPI` becomes `PinaxAPI`. `TokenAPI` and
`TokenClient` kept as deprecated aliases for backward compatibility.
Env var `TOKENAPI_KEY` → `PINAX_API_KEY` in examples. Regenerated
OpenAPI types; verified all 65 v1 routes covered.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@DenisCarriere DenisCarriere merged commit 18f0a42 into main May 27, 2026
1 check passed
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