- #132
0945ebe
Thanks @branko-stripe! - Make the address fields required when generating invoices
- #129
250afcb
Thanks @brankoconjic! - Includefraudulent
in Orderstatus
type
-
#126
3c5c048
Thanks @brankoconjic! - Added deprecated TSDoc tag fordark
-
#126
3c5c048
Thanks @brankoconjic! - Added "deprecated" TSDoc tag to thedark
option
-
#124
abc2b7e
Thanks @brankoconjic! - Added options for overriding checkout styles -
#124
abc2b7e
Thanks @brankoconjic! - Added options which allow overriding checkout colors -
#124
abc2b7e
Thanks @brankoconjic! - Added new refund endpoints
-
#103
94ebe0a
Thanks @brankoconjic! - Addlinks
attribute to Variants -
13d4f6f
Thanks @brankoconjic! - Fix fetch types: allowdata
onerror
since it is valid and expected in some cases (validateLicense
) for example.
-
262ac74
Thanks @brankoconjic! - Improve and fix tests -
e231ce9
Thanks @brankoconjic! - Fix brokenlicense
test case. If a license is disabled it cannot be activated.
- #101
ae1b6a7
Thanks @brankoconjic! - Revert "Add subscriptionstatus
typeincomplete
"
-
c3f802e
Thanks @brankoconjic! - FixcreateDiscount
function so thatvariantIds
is not required unlesslimitedToProducts
is true
-
59fdd9c
Thanks @brankoconjic! - ### Breaking ChangeThe deprecated
LemonSqueezy
class, all its methods and related types from the library SDK (the_deprecated
folder) have been removed.The class has been deprecated for some time and is no longer needed. Removing this to clean up the codebase and reduce maintenance overhead.
If you were using any deprecated modules, you need to update your imports to use the new modules provided in the library. Visit Wiki page for function usage.
-
a7e8feb
Thanks @brankoconjic! - update dependencies -
#81
218d2ef
Thanks @keyding! - AddexpiresAt
toupdateLicenseKey
function -
#76
09fdd1a
Thanks @kldzj! - MadeUpdateSubscription
.pause
nullable -
c507272
Thanks @brankoconjic! - Addfrom_price_formatted
andto_price_formatted
attributes to the product object -
#75
b4d071a
Thanks @keyding! - Addtrial_ends_at
forupdateSubscription
function; Addskip_trial
forcheckoutOptions
in thecreateCheckout
function;
-
#61
93381d9
Thanks @keyding! - Addedinvoice_immediately
anddisable_prorations
parameters toSubscription
item update object. -
#65
27cbaf4
Thanks @keyding! - Addedurls.customer_portal_update_subscription
parameter to Subscription objects.
- #58
5bc530a
Thanks @keyding! - Addedtax_inclusive
parameter to Order objects and Subscription invoice objects
-
#48
fd20741
Thanks @keyding! - BREAKING CHANGE: Completely rewritten the JS SDK for full type-safety and tree-shakeability.- 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.
This release fixes the following issues.
- #35
- #29
- #28
- #25
- #22
- #19
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.
🎉 A massive thanks to @heybrostudio for their awesome work and contributions that led to this release.
- #50
655fe01
Thanks @brankoconjic! - update dependencies
-
#41
e64425a
Thanks @brankoconjic! - Fix documentation example - use named exports. -
#41
0ecd8d4
Thanks @brankoconjic! - Fix #32 TypeScript types no longer generated in 1.2.4 -
#41
0ecd8d4
Thanks @brankoconjic! - Add Changesets for improved library management and automated NPM releases. -
#43
af4c3c0
Thanks @brankoconjic! - Exclude changeset folder from Prettier -
#42
8f07f3e
Thanks @brankoconjic! - Fix changeset release workflow