v5.0.0
BREAKING CHANGE: Complete rewrite to TypeScript
- Requires Node.js 18 or higher (up from previous version)
- Converts entire codebase to TypeScript with full type definitions
- Migrates from CommonJS to ES Modules (import/export syntax)
- Replaces https module with modern fetch API for network requests
- Improves error handling with proper TypeScript types
- Updates all examples to demonstrate both Promise and async/await patterns
- Adds proper typing for all API responses and request parameters
- Restructures exports to support both TypeScript and JavaScript consumers
- Updates build process to generate proper type declarations
Migration guide:
- Update Node.js to v20+
- Change require() to import syntax
- Update error handling to use instanceof checks with typed errors
- Review API method signatures which now have explicit typing