Skip to content

Latest commit

 

History

History
772 lines (405 loc) · 37.8 KB

CHANGELOG.md

File metadata and controls

772 lines (405 loc) · 37.8 KB

8.8.2 (2025-02-04)

Bug Fixes

  • check against subscription id that can be a None string (#168) (e26c13e)

8.8.1 (2025-01-28)

Bug Fixes

8.8.0 (2025-01-28)

Features

8.7.4 (2025-01-22)

Bug Fixes

  • format upsell offerings in getExperience (#162) (28af5a3)

8.7.3 (2025-01-20)

Bug Fixes

8.7.2 (2025-01-17)

Bug Fixes

  • return correct price for preferred currency (#160) (f4fad67)

8.7.1 (2025-01-16)

Bug Fixes

  • move away from relying on suggested currency price in offerings (#158) (ce6922e), closes #159

8.7.0 (2025-01-15)

Features

8.6.0 (2025-01-15)

Features

  • make checkAccess accept optional contentKey to check access for specific key (#154) (f259bd2)

8.5.0 (2025-01-15)

Features

  • include product attributes in experience (#153) (b8d3003)

8.4.1 (2025-01-14)

Bug Fixes

  • make isoCode in getCurrencyDetails optional (#150) (1aac179)

8.4.0 (2025-01-13)

Features

8.3.0 (2025-01-13)

Features

8.2.0 (2025-01-09)

Features

8.1.2 (2024-11-18)

Bug Fixes

  • close the document after write to prevent "sticky" window (f9b0165)

8.1.1 (2024-11-18)

Bug Fixes

  • disable pre-fetching of desired window location (9bc4452)

8.1.0 (2024-11-18)

Features

  • Include purchase ids in purchase method response (#122) (6958cfd)

8.0.2 (2024-11-14)

Bug Fixes

  • set window location if fails to fetch URL (a0b449b)

8.0.1 (2024-11-05)

Bug Fixes

8.0.0 (2024-11-01)

Features

BREAKING CHANGES

  • purchaseStatus in .purchase method is renamed to purchaseOutcome.

7.0.0 (2024-10-31)

feature

  • Include more currency details in offerings and tabs (#104) (c9eefa5)

BREAKING CHANGES

  • Change currency type from string (isoCode) to object (isoCode, baseUnit)

Details

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,
};

Why

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.

Changes

  • 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)

Features

  • return purchaseStatus in .purchase() (#94) (13eae65)

6.12.7 (2024-09-27)

Bug Fixes

6.12.6 (2024-09-27)

Bug Fixes

  • Don't require full tab before payment (#75) (4333b1c)

6.12.5 (2024-09-09)

Bug Fixes

  • Switch back to Hydra auth endpoint on PROD (#74) (e924571)

6.12.4 (2024-09-05)

Bug Fixes

6.12.3 (2024-09-03)

Bug Fixes

  • Switch back to Hydra auth endpoint on SBX (#70) (408220f)

6.12.2 (2024-08-22)

Bug Fixes

  • Switch to supertab.co domain on SBX (#63) (cea41b5)

6.12.1 (2024-08-22)

Bug Fixes

6.12.0 (2024-08-19)

Bug Fixes

Features

6.11.1 (2024-08-14)

Bug Fixes

  • Refactor connected subscription logic to fix TypeScript issue (#66) (d335205)

6.11.0 (2024-08-13)

Features

  • Expose connected subscription offerings (#65) (8ae9b5f)

6.10.0 (2024-08-07)

Features

  • improve bundler config to include external deps (92b702f)

6.9.1 (2024-08-07)

Bug Fixes

  • do not include sourcemap in the prod build (1e58d0d)

6.9.0 (2024-08-06)

Features

  • dynamically load omega animation (01d16b3)

6.8.0 (2024-08-06)

Features

6.7.5 (2024-08-06)

Bug Fixes

  • make npm publish script unscoped (890f3e6)

6.7.4 (2024-08-06)

Bug Fixes

6.7.3 (2024-08-06)

Bug Fixes

  • add ci step to publish to npm (0cd17b4)
  • use npmjs.org registry (9b33d4f)

6.7.2 (2024-08-06)

Bug Fixes

  • remove additional invokation of semantic-release/npm (6f5bb1c)

6.7.1 (2024-08-06)

Bug Fixes

6.7.0 (2024-08-06)

Bug Fixes

Features

  • publish to npm registry (8c058ff)

6.6.0 (2024-08-06)

Features

6.5.0 (2024-08-06)

Features

6.4.0 (2024-08-05)

Features

6.3.0 (2024-07-30)

Features

  • Add explicit auth and token urls (#62) (52896b1)

6.2.0 (2024-07-16)

Bug Fixes

Features

  • add tests for tab payment model (cefbfd0)
  • include payment model in tab response (9208857)

6.1.0 (2024-07-03)

Features

  • Add new public method openCheckoutWindow (#61) (ed45813)

6.0.1 (2024-07-01)

Bug Fixes

  • Increase checkout window width to fit Stripe subscription form (#60) (b333137)

6.0.0 (2024-06-21)

Features

BREAKING CHANGES

  • Format the reponse of payTab, too (it was returning the raw TabResponse before)
  • Return null instead of undefined from getTab if no open Tab was found.
  • Narrow down response types of the above methods
  • Add "status" property to the response of payTab. It can be success or error and makes handling the responses on the consuming end more fun.

5.5.0 (2024-06-20)

Features

  • Add timepass and subscription details to offerings (#57) (aa382c7)

5.4.0 (2024-06-20)

Features

  • Add flag isSubscription to return value of method checkAccess (#56) (dade8c6)

5.3.0 (2024-06-19)

Features

  • Include payment model in offerings (#55) (9926420)

5.2.0 (2024-06-05)

Features

  • allow calling getOfferings() in no-auth context (16e8840)

5.1.0 (2024-05-28)

Features

  • update tapper-sdk client to v37.0.0 (08691ec)

5.0.0 (2024-05-28)

Features

  • make checkAccess() responses more sensible (#54) (abbfb9c)

BREAKING CHANGES

  • 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)

Features

  • preload URLs for new windows only (#53) (5bbb22f)

4.6.0 (2024-04-30)

Features

  • Add optional constructor param systemUrls (#52) (5c34626)

4.5.2 (2024-04-24)

Bug Fixes

  • return type of .payTab() (6648800)

4.5.1 (2024-04-24)

Bug Fixes

4.5.0 (2024-04-22)

Features

  • add formatAmount function for formatting price (f2b0158)

4.4.3 (2024-04-19)

Bug Fixes

  • do not show zero fraction digits in tab limit formatted amount (c8f5e18)

4.4.2 (2024-04-19)

Bug Fixes

  • make purchase in suggested currency if tab is undefined and preferred currency not set (01f9bba)

4.4.1 (2024-04-19)

Bug Fixes

  • expose missing tab limit.text in purchase response (4e4d979)

4.4.0 (2024-04-19)

Features

  • return tab limit as an object (e9edafd)

4.3.0 (2024-04-19)

Features

  • return offerings in tab currency if tab is found (20d6f42)

4.2.1 (2024-04-19)

Bug Fixes

  • return object for the tab.total in purchase response (2459a93)

4.2.0 (2024-04-19)

Features

  • include formatted price in tab and purchases (#51) (10c135e)

4.1.0 (2024-04-17)

Bug Fixes

  • return preferred currency code (4611585)

Features

  • return entire price object for the offerings (7d946cd)

4.0.0 (2024-04-16)

Features

BREAKING CHANGES

  • purchase() function's preferredCurrency parameter renamed to preferredCurrencyCode 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)

Bug Fixes

  • make payTab return Promise (e969e7b)

3.0.5 (2024-02-26)

Bug Fixes

  • bring the prefetching back (5a83070)

3.0.4 (2024-02-22)

Bug Fixes

  • temporarily disable prefetching to avoid CORS issues (#48) (fd9794d)

3.0.3 (2024-02-22)

Bug Fixes

  • safer dom manipulation for loading animation (#47) (da2c5cb)

3.0.2 (2024-02-21)

Bug Fixes

  • catch errors in promise when pre-fetching URLs and let it fail silently (2b7396b)

3.0.1 (2024-02-08)

Bug Fixes

  • add viewport tag to opened windows to fix scaling (#45) (7567e4a)

3.0.0 (2024-02-06)

Features

BREAKING CHANGES

  • Function names have been updated.

  • auth is now authorize.

  • getCurrentUser is now getUser.

  • getUserTab is now getTab.

  • pay is now payTab.

  • openPersonalMarketingPage is now openAboutSupertab.

2.2.0 (2024-01-31)

Features

2.1.0 (2024-01-30)

Features

2.0.0 (2024-01-29)

Features

BREAKING CHANGES

  • Closed windows no longer throw errors but resolve the promise with { error: "Window closed" } instead.

1.13.0 (2024-01-25)

Features

  • add build for stg tapper environment (#43) (57d6d7b)

1.12.1 (2024-01-19)

Bug Fixes

  • send scope in the refresh token flow (#41) (e4e13d2)

1.12.0 (2024-01-09)

Features

1.11.0 (2023-12-22)

Features

  • Improve and fix argument types of method auth (#38) (5b002e7)

1.10.1 (2023-12-21)

Bug Fixes

  • Use origin instead of href when creating the redirect uri (#37) (d10cd39)

1.10.0 (2023-12-21)

Features

  • Add suppport for testmode: true to pay method (#36) (ba7436f)

1.9.0 (2023-12-20)

Features

  • pass usd for currency param in config (#34) (4794d85)
  • return salesModel for offerings (#35) (2bff6da)

1.8.0 (2023-12-18)

Features

1.7.0 (2023-12-15)

Features

1.6.0 (2023-12-15)

Features

  • make silently optional in auth function (#30) (a314866)

1.5.0 (2023-12-14)

Features

1.4.0 (2023-12-13)

Features

1.3.6 (2023-12-08)

Bug Fixes

1.3.5 (2023-12-07)

Bug Fixes

  • require build and test before release (9c02202)

1.3.4 (2023-12-07)

Bug Fixes

1.3.3 (2023-12-07)

Bug Fixes

  • attach workspace in release job (0ed7a12)

1.3.2 (2023-12-07)

Bug Fixes

  • persist dist/ to the workspace (031ddc6)

1.3.1 (2023-12-07)

Bug Fixes

  • Correct semver syntax error in peer dependency (#26) (4b88d45)

1.3.0 (2023-12-07)

Features

  • bump version to avoid conflict (5a7a354)

1.2.0 (2023-12-07)

Bug Fixes

Features

1.1.4 (2023-12-07)

Bug Fixes

1.2.2 (2023-12-05)

Bug Fixes

  • loose typescript peer dependency (5b54b80)

1.2.1 (2023-12-05)

Bug Fixes

  • split sbx/prod build folder (f4a6354)

1.2.0 (2023-12-05)

Features

1.1.4 (2023-12-04)

Bug Fixes

  • use target es5 and tsup to compile (13d703c)

1.1.3 (2023-12-04)

Bug Fixes

  • make package restricted and scoped (a544fd2)

1.1.2 (2023-12-04)

Bug Fixes

1.1.1 (2023-12-04)

Bug Fixes

1.1.0 (2023-12-04)

Bug Fixes

Features

1.0.0 (2023-12-01)

Bug Fixes

  • minimize user data exposed (#7) (f5d7ea9)
  • remove duplicate localeCode property (#10) (551f19d)

Features