v4.0.0
Rehive JavaScript SDK v4.0.0
A ground-up rewrite with a modular, tree-shakeable architecture and full TypeScript type safety.
What's new
- Modular imports -- import only the APIs you need; unused code is eliminated at build time
- Full TypeScript autocomplete on every method, parameter, and response
- 1,449 typed API methods across platform and 15 extensions
- 4 new extensions -- Billing, Builder, Rain, Alchemy
- Multi-session support -- switch between companies without re-authenticating
- Cross-tab session sync -- auth state syncs across browser tabs automatically
- Authenticated fetch -- createAuthenticatedFetch() for custom endpoints not in the SDK
- React integration -- AuthProvider + useAuth hook
- Zero runtime dependencies
Breaking changes
This is a major rewrite. All imports and usage patterns have changed.
- Monolithic Rehive client removed -- replaced by standalone factory functions (createAuth,
createUserApi, createAdminApi, create*Api) - Structured parameters -- all methods now use { query, body, path } instead of flat argument lists
- Extension namespaces flattened -- no more nested .user / .admin on extensions; all methods at top
level - Auth is standalone -- createAuth() is a separate module that API factories reference via { auth }
- Code generation engine changed -- migrated from swagger-typescript-api to @hey-api/openapi-ts
See the README for full usage details and migration examples.