- Support
userAgent: false
option to suppress addinguser-agent
header
- Include
user-agent
header, can be set withuserAgent
option
- Add current.effective/end to CurrentPhase
- default baseURL to https://api.tier.run if apiKey is set
- add end, trial to CurrentPhase
- Add test clock support
- add support for FeatureDefinition.divide
- Add support for passing in an AbortSignal to cancel any requests on a given Tier client.
- Add paymentMethodID, invoiceSettings, lookupPaymentMethods, requireBillingAddress
- Support added for making requests to the Tier API server using CORS and browser credentials.
- Added
onError
option to Tier client.
- Add support for external Tier API server with Tier API Key
- Rename
TIER_SIDECAR
env toTIER_BASE_URL
- Refactor
child_process
into a dynamic import so that the main export can be safely used wherechild_process
is unavailable.
- Remove previous experimental iteration of Checkout
- Implement Checkout using
/v1/checkout
API endpoint - This requires version 0.7.1 or higher of the tier binary
- Move growing parameter lists into
SubscribeOptions
andScheduleOptions
object params. - Add support for
trialDays
option totier.subscribe()
- Add
tier.cancel()
method - Add experimental support for
checkout
option totier.subscribe()
andtier.schedule()
- Consistently name option argument types as
{Thing}Params
instead of{Thing}Options
- Add
tier.can()
interface
- Add
tier.push()
method - Separate raw client mode from managed sidecar mode, to support
environments lacking Node's
child_process
module.
- Improve error handling
tier.pull()
methodtier.pullLatest()
method- use named exports
tier.limit()
method
tier.phase()
method- start sidecar listening on PID-specific port
Initial beta release.
All 1.x versions are actually a different (abandoned) package. Special thanks to Tian Jian for graciously letting us take over the name he was no longer using.