8.8.2 (2025-02-04)
8.8.1 (2025-01-28)
- export types (fd5269c)
8.8.0 (2025-01-28)
8.7.4 (2025-01-22)
8.7.3 (2025-01-20)
8.7.2 (2025-01-17)
8.7.1 (2025-01-16)
8.7.0 (2025-01-15)
8.6.0 (2025-01-15)
8.5.0 (2025-01-15)
8.4.1 (2025-01-14)
8.4.0 (2025-01-13)
8.3.0 (2025-01-13)
8.2.0 (2025-01-09)
8.1.2 (2024-11-18)
- close the document after write to prevent "sticky" window (f9b0165)
8.1.1 (2024-11-18)
- disable pre-fetching of desired window location (9bc4452)
8.1.0 (2024-11-18)
8.0.2 (2024-11-14)
- set window location if fails to fetch URL (a0b449b)
8.0.1 (2024-11-05)
8.0.0 (2024-11-01)
purchaseStatus
in.purchase
method is renamed topurchaseOutcome
.
7.0.0 (2024-10-31)
- Change currency type from
string
(isoCode) toobject
(isoCode, baseUnit)
Offerings, tabs and tab purchases now contain more currency details in the form of an object. Before, they contained just the currency iso code string.
type PublicCurrencyDetails = Pick<Currency, "isoCode" | "baseUnit">;
// Example
const currency: PublicCurrencyDetails = {
isoCode: "USD",
baseUnit: 100,
};
We're implementing Google's Monetization Provider API for experiences.js and we need to know the currency's base unit for the response data.
- fix: Correct typo in STG token URL
- Add missing data to mock user
- Include currency isoCode and baseUnit in offerings
- Include currency iso code and base unit in tabs
- Fix inconsitent currency handling in test mock api
6.13.0 (2024-10-04)
6.12.7 (2024-09-27)
6.12.6 (2024-09-27)
6.12.5 (2024-09-09)
6.12.4 (2024-09-05)
6.12.3 (2024-09-03)
6.12.2 (2024-08-22)
6.12.1 (2024-08-22)
6.12.0 (2024-08-19)
- use
NPM_TOKEN
for CI (86228b2)
- use @getsupertab scope and host on npm (#67) (af0ce1d)
6.11.1 (2024-08-14)
6.11.0 (2024-08-13)
6.10.0 (2024-08-07)
- improve bundler config to include external deps (92b702f)
6.9.1 (2024-08-07)
- do not include sourcemap in the prod build (1e58d0d)
6.9.0 (2024-08-06)
- dynamically load omega animation (01d16b3)
6.8.0 (2024-08-06)
- version bump (dd91f7a)
6.7.5 (2024-08-06)
- make npm publish script unscoped (890f3e6)
6.7.4 (2024-08-06)
6.7.3 (2024-08-06)
6.7.2 (2024-08-06)
- remove additional invokation of semantic-release/npm (6f5bb1c)
6.7.1 (2024-08-06)
- auth token env var (38167f7)
6.7.0 (2024-08-06)
- consolidate registries (2ab71ce)
- publish to npm registry (8c058ff)
6.6.0 (2024-08-06)
- bump version (55c167c)
6.5.0 (2024-08-06)
- add new version (4264857)
6.4.0 (2024-08-05)
- make package public (daf408c)
6.3.0 (2024-07-30)
6.2.0 (2024-07-16)
- test cases (68c5d3d)
6.1.0 (2024-07-03)
6.0.1 (2024-07-01)
6.0.0 (2024-06-21)
- Format the reponse of
payTab
, too (it was returning the raw TabResponse before) - Return
null
instead ofundefined
fromgetTab
if no open Tab was found.
- Narrow down response types of the above methods
- Add "status" property to the response of
payTab
. It can besuccess
orerror
and makes handling the responses on the consuming end more fun.
5.5.0 (2024-06-20)
5.4.0 (2024-06-20)
5.3.0 (2024-06-19)
5.2.0 (2024-06-05)
- allow calling getOfferings() in no-auth context (16e8840)
5.1.0 (2024-05-28)
- update tapper-sdk client to v37.0.0 (08691ec)
5.0.0 (2024-05-28)
- checkAccess() response was modified. It now returns access object with validTo property if access is found. If no access, the access is set to null.
4.7.0 (2024-05-14)
4.6.0 (2024-04-30)
4.5.2 (2024-04-24)
- return type of .payTab() (6648800)
4.5.1 (2024-04-24)
- return type of .payTab (31dac44)
4.5.0 (2024-04-22)
- add formatAmount function for formatting price (f2b0158)
4.4.3 (2024-04-19)
- do not show zero fraction digits in tab limit formatted amount (c8f5e18)
4.4.2 (2024-04-19)
- make purchase in suggested currency if tab is undefined and preferred currency not set (01f9bba)
4.4.1 (2024-04-19)
- expose missing tab limit.text in purchase response (4e4d979)
4.4.0 (2024-04-19)
- return tab limit as an object (e9edafd)
4.3.0 (2024-04-19)
- return offerings in tab currency if tab is found (20d6f42)
4.2.1 (2024-04-19)
- return object for the
tab.total
in purchase response (2459a93)
4.2.0 (2024-04-19)
4.1.0 (2024-04-17)
- return preferred currency code (4611585)
- return entire price object for the offerings (7d946cd)
4.0.0 (2024-04-16)
purchase()
function'spreferredCurrency
parameter renamed topreferredCurrencyCode
to unify the naming.- Removed
?currency=USD
from the client config call. This can break integrations that do not have offerings created in all prices (shouldn't occur in production, but can break some client apps created by hand by us across envs).
3.0.6 (2024-04-11)
- make payTab return Promise (e969e7b)
3.0.5 (2024-02-26)
- bring the prefetching back (5a83070)
3.0.4 (2024-02-22)
3.0.3 (2024-02-22)
3.0.2 (2024-02-21)
- catch errors in promise when pre-fetching URLs and let it fail silently (2b7396b)
3.0.1 (2024-02-08)
3.0.0 (2024-02-06)
-
Function names have been updated.
-
auth
is nowauthorize
. -
getCurrentUser
is nowgetUser
. -
getUserTab
is nowgetTab
. -
pay
is nowpayTab
. -
openPersonalMarketingPage
is nowopenAboutSupertab
.
2.2.0 (2024-01-31)
2.1.0 (2024-01-30)
2.0.0 (2024-01-29)
- Closed windows no longer throw errors but resolve the promise with
{ error: "Window closed" }
instead.
1.13.0 (2024-01-25)
1.12.1 (2024-01-19)
1.12.0 (2024-01-09)
1.11.0 (2023-12-22)
1.10.1 (2023-12-21)
1.10.0 (2023-12-21)
1.9.0 (2023-12-20)
- pass
usd
for currency param in config (#34) (4794d85) - return
salesModel
for offerings (#35) (2bff6da)
1.8.0 (2023-12-18)
1.7.0 (2023-12-15)
1.6.0 (2023-12-15)
1.5.0 (2023-12-14)
1.4.0 (2023-12-13)
1.3.6 (2023-12-08)
1.3.5 (2023-12-07)
- require
build
andtest
beforerelease
(9c02202)
1.3.4 (2023-12-07)
- persist to workspace (be196f2)
1.3.3 (2023-12-07)
- attach workspace in release job (0ed7a12)
1.3.2 (2023-12-07)
- persist
dist/
to the workspace (031ddc6)
1.3.1 (2023-12-07)
1.3.0 (2023-12-07)
- bump version to avoid conflict (5a7a354)
1.2.0 (2023-12-07)
- Bundle with tsup (d87e730)
- bundle with
tsup
(2813f22)
1.1.4 (2023-12-07)
- Bundle with tsup (d87e730)
1.2.2 (2023-12-05)
- loose typescript peer dependency (5b54b80)
1.2.1 (2023-12-05)
- split sbx/prod build folder (f4a6354)
1.2.0 (2023-12-05)
- bundling with tsup (cdf127e)
1.1.4 (2023-12-04)
- use target es5 and tsup to compile (13d703c)
1.1.3 (2023-12-04)
- make package restricted and scoped (a544fd2)
1.1.2 (2023-12-04)
- make package public (ccc924c)
1.1.1 (2023-12-04)
1.1.0 (2023-12-04)
- replace bunx by bun x (b16c1bb)
- semantic release (8dc111a)
checkAccess
function (#12) (1da8452), closes #13getUserTab
(#17) (4f59230)purchase
(#20) (60ea65d)- add @authenticated decorator to do auth check (#6) (1d3da09)
- add eslint/prettier and make sure all files are formatted (#19) (370f4a4)
- add unit test with DOM support via happy-dom lib (#3) (9955096)
- Bump @laterpay/tapper-sdk to v25.0.0 (#16) (a503ca0)
- Bun bundler (#2) (5ff792f)
- get offerings function (#9) (74aba46), closes #8
- Introduce Supertab Class for Simplified Configuration Management (#5) (97b4350)
- simple auth with demo page (#4) (18ee8d5)