v2.0.0
What's Changed
-
#48
fd20741
Thanks @keyding! - BREAKING CHANGE: Completely rewritten the JS SDK for full type-safety and tree-shakeability.Notes:
- Bun: Transitioned to Bun for repo management.
- Type-safe: Written in TypeScript and documented with TSDoc.
- Tree-shakeable: Use only functions that you need.
- Improved docs: Added detailed Wiki pages on how to use the new SDK functions.
- Deprecate old SDK classes and methods: The deprecated methods and the LemonSqueezy class will be removed with the next major release.
- Unit tests: Introduces comprehensive unit tests for all functions.
- Improved repo management: Transitioned to Bun, adopted Conventional Commits convention, husky, Prettier, ESLint and other tools for better repo management.
Fixes:
This release fixes the following issues.
How to upgrade
Use the new setup function to initialize the SDK with your API key.
lemonSqueezySetup({ apiKey });
Import functions from the SDK and use them in your application.
const { data, error, statusCode } = await getAuthenticatedUser();
For more information, see API Reference and Functions Usage Wiki.
Credits
π A massive thanks to @heybrostudio for their awesome work and contributions that led to this release.