- Updated
@stigg/js-client-sdkto 6.7.1, which stops empty or stale entitlements from replacing the cached ones. See the JavaScript SDK changelog.
- Added:
decimalPlacesonCreditUsageChart, the maximum number of decimal places for credit values in the total, legend, tooltip and y-axis. Without it, the total, legend and tooltip show up to 5 decimal places and the y-axis uses the locale’s default, as before. The other credit widgets already take the same prop.
- Updated
@stigg/js-client-sdkto 6.4.0, which addserrorCodeto a subscription’slatestInvoice. See the JavaScript SDK changelog.
Usage and reset text in the Customer Portal
-
Fixed: a usage tile for an unlimited entitlement shows
<usage> / Unlimited. It no longer shows “In current billing period”, which suggested the usage resets. - Changed: a usage tile shows “Resets monthly”, “Resets weekly”, “Resets daily”, “Resets hourly” or “Resets yearly” only when the entitlement has a reset period. Yearly reset periods are now supported.
- Changed: a usage-based charge shows “In current billing period” when its reset period matches the billing period, and “Resets” with the period otherwise. A charge with no reset period shows neither.
-
Added:
stigg-feature-usage-reset-period-textandstigg-charge-reset-period-textCSS classes on the reset text, so you can hide it. To hide it for one feature, scope the rule withstigg-entitlement-usage-<featureId>orstigg-charge-list-item-<featureId>:
- Fixed: the Customer Portal shows a feature’s real usage when its price is
PER_UNIT, in the usage section and the subscription overview charges. It previously showed the committed quantity, which is also the limit, so the feature looked fully used. Usage-based prices are unchanged.
Number formatting follows the locale
-
⚠️ Breaking: when
StiggProviderhas nolocale, widgets format numbers in the end user’s browser locale, falling back toen-USwhen there is none, as during server rendering. They previously useden-US, including for Paywall prices and entitlement limits. Passlocale="en-US"to keep the previous output:See Global theming. -
Changed: every number in the widgets is formatted in the
StiggProviderlocale. Previously some were fixed toen-USand others used the browser locale, whatever thelocaleprop said. -
Changed: a change to the
localeprop after mount now takes effect. -
Changed: an invalid
locale, such asen_US, falls back to the default instead of breaking the widgets. - Fixed: numbers that were shown without thousands separators now have them, in the locale’s style. These include unit quantity ranges, Checkout quantity validation, the first graduated tier, Customer Portal add-on quantities, block sizes, scheduled quantity changes and auto-recharge validation messages.
-
Fixed: price formatting keeps thousands separators that are spaces, as in
fr-FR.
- Fixed: the plan step enforces the minimum and maximum unit quantity on tiered prices. It previously enforced them only on flat per-unit prices, so a tiered price accepted any quantity. An out-of-range quantity now shows “Minimum N” or “Maximum N”, disables Next and skips the preview.
- Fixed: the summary stays readable with large numbers. A long graduated-tier calculation wraps below its label instead of overflowing, and amounts use tabular digits so they line up.
- ⚠️ Breaking: updated
@stigg/js-client-sdkto 6.0.0.useMeteredEntitlementwithoutrequestedUsagenow denies a customer who has reached the limit. See the JavaScript SDK changelog.
- Updated
@stigg/js-client-sdkto 5.4.0, which addsbrandandwalletTypeto the customer’spaymentMethodDetails. See the JavaScript SDK changelog.
-
Added: optional
decimalPlacesprop onCustomerPortalandCustomerPortalProvider. It sets the maximum number of decimal places shown for usage and limit values in feature usage, credit usage, usage-based charges and promotions. When unset ornull, values keep the previous locale formatting.
- Fixed: after a declined payment, the Checkout widget now lets the customer retry with a different card. The payment step reloads with a fresh Stripe setup intent or Airwallex consent and the customer’s current default card, while the selected plan, add-ons, billing period and step stay as they were.
- Fixed: the Checkout widget no longer reports success for an Airwallex payment that failed or is still processing. As with Stripe, a
FAILEDorPROCESSINGpayment now fails the checkout and shows the invoice’s error message.
- Fixed: the Airwallex Checkout no longer times out while the customer completes a 3D Secure challenge. The challenge now opens in a modal, including on browsers without
:has()support (Safari before 15.4, Firefox before 121), and the Subscribe button waits until the payment form is ready. - Fixed: a declined card or cancelled 3D Secure challenge no longer shows the same error message twice in the Airwallex Checkout.
- Updated
@stigg/js-client-sdkto 5.2.1. See the JavaScript SDK changelog.
- Updated
@stigg/js-client-sdkto 5.2.0, which addsrequestedUsageto credit entitlement options. See the JavaScript SDK changelog.
- Fixed: the Checkout summary no longer shows a
$0.00recurring charge when the change has no recurring charge, for example when the subscription ends at the current period end. The recurring row and next-billing caption now appear only when there is a recurring total.
- Fixed: the Customer Portal no longer shows the text
undefinedfor a feature with no usage value. It shows0.
- Fixed: on paid plans, the Customer Portal no longer shows
0usage (or “Usage unavailable”) for metered features that are entitled but have no price. Their real current usage is shown.
Credit widgets distinguish “no data” from “not entitled”Requires
@stigg/js-client-sdk 5.0.0, and inherits its changes to fallback and miss behavior — see the JavaScript SDK changelog.- ⚠️ Credit
isFallbackis nowfalseon a plain miss, where it was alwaystrue. This is what the widget fixes below rely on — if you read credit entitlements directly instead of through the widgets, see the upgrade note in the JavaScript SDK changelog. - ⚠️ Enum
requestedValuesis[]rather thanundefinedwhen the caller passes none — also on reads served from cache.if (entitlement.requestedValues)now takes the other branch; test for.lengthinstead. - Fixed:
CreditBalance,CreditUtilizationand their value components (CreditBalanceValue,CreditUtilizationValue) no longer render a fabricated0balance or0 / 0utilization for a currency the customer has no entitlement to, and no longer offer an “Add credits” action for one. - Fixed:
AutomaticRechargeConfigreports that the balance could not be loaded instead of showing an editable recharge form for an unentitled currency. - A customer who has spent their balance still sees the real numbers and the top-up offer — this behavior is unchanged.
- Credit
accessDeniedReasonon a fallback isEntitlementNotFound, wasUnknown. - Changed: with no
StiggProvidermounted,useMeteredEntitlementanduseEnumEntitlementnow echo the caller’srequestedUsage/requestedValuesinstead of the fallback constant’s values. - Enum
requestedValueson an unavailable read now echoes the caller’s values instead of being absent. - A wrong-kind read whose fallback grants access no longer carries
FeatureTypeMismatch. - A fallback that grants access no longer carries an
accessDeniedReason, andfeatureon an untyped fallback is now present, carrying the requested ID and the kind answered. - A configured fallback read through the bulk APIs returns a real entitlement of its own kind.
- A fallback’s fields belonging to another entitlement kind are dropped rather than echoed, and a cached entitlement of a kind you did not ask for is no longer answered as the asked-for kind.
isFallback, see the upgrade note in the JavaScript SDK changelog.- Fixed: add-ons hidden from Checkout, paid or free, no longer appear in the Checkout widget’s list of purchasable add-ons.
- Added:
eventCounton credit usage series and points, with the number of usage events behind the credit consumption.
- Changed: the Airwallex payment step in the Checkout widget now uses Airwallex’s drop-in element, collecting the card and billing address.
- Added: Checkout widget support for Stripe billing brokered by Received (
RECEIVEDbilling vendor).
- Fixed:
CreditBalance,CreditUtilizationandAutomaticRechargeConfignow read credit entitlements for theresourceIdset onStiggProvider.
- Changed: the Customer Portal’s next estimated bill and per-feature usage now come from the subscription’s next invoice preview, falling back to the subscription total and the entitlement’s current usage when no preview is available.
Credit wallet soft limit
- Added:
hasSoftLimitfield onCreditEntitlement(via@stigg/js-client-sdk4.6.0). When a credit entitlement is configured as a soft limit,useEntitlement()returnshasAccess: trueandhasSoftLimit: trueeven after the credit balance reaches zero. Hard limit (the default) continues to returnhasAccess: falsewhen the balance is exhausted.
The Checkout widget now reliably supports changing existing add-on quantities on narrow or embedded screens. The quantity input is fixed-width so it stays fully visible at any viewport size, Undo is stacked beneath it for a cleaner layout, and the controls stay anchored so validation text never pushes the Undo or delete buttons out of place.
Upgraded MUI dependency from v5 to v7. This is a major version bump — if your application pins MUI, update it to v7 to avoid peer dependency conflicts.
Bumped
@stigg/js-client-sdk to 4.0.0. The following subset of js-client-sdk breaking changes affect react-sdk consumers:- The SDK is now published from the
stiggio/stigg-sdkmonorepo to the public npm registry. No API change.
Negative credit balances
- Added: credit widgets handle overdraft.
CreditBalanceshows a negative balance in red,CreditUtilizationshows a red progress bar and a negative balance label, andCreditGrantsshows theOVERDRAFTgrant type and theDEPLETEDandVOIDEDstatuses. - Fixed: the
EXPIREDgrant status is shown in gray, and theRECURRINGgrant type now has a label.
- Added: the Paywall shows a credit entitlement’s dependency feature units, for example “100 credits / seat”.
- Added:
resetBillingPeriodprop on the Checkout widget, to reset the billing cycle anchor when the subscription changes. - Changed: for plans with recurring credit charges, Checkout and its preview default to no proration and a billing cycle anchor of now, for subscription changes only.
- Changed: credit charges in the Paywall are shown as “per month” or “per year”, using the price’s billing period for credit charges and the entitlement’s cadence for package credit entitlements.
- Billing address collected via the Checkout widget is now stored on the Stripe Customer object (previously it was stored only as part of the payment method details).
- Billing address entered in the Checkout widget is now automatically reflected in generated invoices.
Breaking changes:
- Removed
useCreditBalancehook — useuseCreditEntitlementinstead - Removed
showSymbolprop fromCreditBalanceandCreditUtilizationwidgets (no replacement) onAddCreditscallback now receivesCreditEntitlementinstead ofCreditBalanceData
- Added
useCreditEntitlementhook — synchronous, reads from the SDK’s local cache with no extra API call. ReturnscurrentBalance,totalConsumed,totalGranted, andcurrency.
- Changed: credit usage cards in the Customer Portal show the credit display name with its units, and the reset period when available.
- Credit balance widget
- Added: “Add credits” CTA button with
onAddCreditscallback for prompting customers to top up credits - Added: New CSS classes:
stigg-credit-balance-add-credits-buttonstigg-credit-balance-add-credits-icon
- Added: “Add credits” CTA button with
- Credit utilization widget
- Added: “Add credits” CTA button with
onAddCreditscallback for prompting customers to top up credits - Added: New CSS classes:
stigg-credit-utilization-add-credits-buttonstigg-credit-utilization-add-credits-icon
- Added: “Add credits” CTA button with
- Fixed: add-ons hidden from widgets that are already on the customer’s subscription are handled correctly in Checkout.
- Added Tax ID collection support to Stripe checkout when enabled, including UI inputs, validation, preview handling, and end-to-end billing state propagation.
- Added: Auto-recharge Status Widget — displays current auto-recharge settings, recharge rules, and a progress bar tracking monthly spend against the spend limit.
- Added: Auto-recharge Configuration Widget — allows customers to toggle auto-recharge, adjust low-balance thresholds, set target top-up amounts, and configure monthly spending caps.
- Added class
stigg-checkout-summary-containerfor configuring a custommin-widthfor the checkout summary container.
- Changed: the Checkout summary’s next billing caption is now empty by default and can be customized with the
nextBillingCaptiontext override.
- Improved add-on checkout layout and conditional rendering.
- Hidden quantity input when only a single instance is allowed.
- Added auto-focus and select behavior to quantity field edits.
- Added the ability to pass the
skeletonPlanCountparameter to thePaywallcomponent to customize the number of columns on the skeleton. - Added a way to disable the Stripe script so the widget no longer loads
js.stripe.comwhen Stripe isn’t used.
- Checkout widget
- Added: Callbacks
onBeforeStepChange,onAddonChange, andonBillableFeatureChangefor validation and step gating.
- Added: Callbacks
- Changed: in Checkout, an add-on whose billing period doesn’t match the selected plan’s is shown as disabled.
- Fixed: the Customer Portal no longer shows usage widgets for entitlements with a usage limit of
0, and keeps entitlements with no usage limit.
- ⚠️ Changed: the package is now published as an ES module with a CommonJS build and an
exportsmap (dist/react-sdk.esm.js,dist/react-sdk.cjs.js). Imports from paths insidedistare no longer supported.
- Updated SDK to prevent dependency on compromised NPM packages
- Added:
AccessDeniedReason.Revokedfor determining when an entitlement has been explicitly revoked.
- Added: each entitlement row in the Paywall has a per-feature CSS class,
stigg-entitlement-<featureId>.
- Pricing table
- Added:
CurrentSubscriptionOverrideFntype to support for overriding the current subscription in the paywall. - Bug fixes
- Added:
- Checkout widget
- Added: New CSS classes (see here):
stigg-checkout-summary-captionsstigg-checkout-summary-captions-remaining-creditsstigg-checkout-summary-captions-scheduled-updatesstigg-checkout-summary-captions-next-billing
- Added: New CSS classes (see here):
- Fixed: price amounts with decimal points now always appear with 2 decimal points (i.e.
$23.1will appear as$23.10).
-
Added: custom React hooks
- useStiggContext
- useBooleanEntitlement
- useNumericEntitlement
- useMeteredEntitlement
- useActiveSubscriptions
- useCustomerPortal
-
Added: entitlement guard components
- BooleanEntitlementGuard
- NumericEntitlementGuard
- MeteredEntitlementGuard
- Added: support for offline mode
-
Added:
GetUsageHistoryV2 -
⚠️ Deprecated:
GetUsageHistory(please useGetUsageHistoryV2instead) -
Changed:
- Input Object:
customerRefIdrenamed tocustomerIdresourceRefIdrenamed toresourceIdfeatureRefIdrenamed tofeatureIdresetPeriodremovedyearlyResetPeriodConfigurationremovedmonthlyResetPeriodConfigurationremovedweeklyResetPeriodConfigurationremoved
- Output Object
startDateremovedendDateremovedusageMeasurements[i].daterenamed toseries[0].point[i].timestampusageMeasurements[i].valuerenamed toseries[0].point[i].valueusageMeasurements[i].isResetPointrenamed toseries[0].point[i].isResetPoint- Old Value:
trueif and only if usage was reset due to periodic reset. - New Value:
trueif and only if usage was reset due to periodic reset or due to a plan transition.
- Old Value:
groups[i].groupInfo[j].keyrenamed toseries[i].tags[j].keygroups[i].groupInfo[j].valuerenamed toseries[i].tags[j].valuegroups[i].usageMeasurements[j].daterenamed toseries[i].point[j].timestampgroups[i].usageMeasurements[j].valuerenamed toseries[i].point[j].valuegroups[i].usageMeasurements[j].isResetPointrenamed toseries[i].point[j].isResetPoint- Old Value:
trueif and only if usage was reset due to periodic reset. - New Value:
trueif and only if usage was reset due to periodic reset or due to a plan transition.
- Old Value:
- Input Object:
- Added: ability to override prices when there’s a scheduled update in place (currently without widgets)
-
Checkout widget
- Added: responsive layout for mobile
-
Customer portal widget
- Added: responsive layout for mobile
-
Checkout widget
- Fixed: stair-step pricing values are now formatted using commas (,)

- Fixed: stair-step pricing values are now formatted using commas (,)
-
Pricing table widget
- Fixed: stair-step pricing values are now formatted using commas (,)

- Fixed: stair-step pricing values are now formatted using commas (,)
- Checkout widget
- Added: Ability to skip steps
- Added: New CSS classes
stigg-checkout-progress-containerstigg-checkout-summary-plan-title-containerstigg-checkout-summary-usage-charges-containerstigg-checkout-summary-base-charges-container
- Added: the Paywall formats prices with a block size.
- Improved: the Paywall title when a plan has no entitlements.
- Added:
filterEntitlementscallback on the Customer Portal, to choose which entitlements appear in the usage section.
