Releases: Worldline-Global-Collect/connect-sdk-client-js
Releases · Worldline-Global-Collect/connect-sdk-client-js
5.0.0
This SDK is a rebranded and updated version of the SDK that was previously published under the Ingenico name. Next to renaming to Worldline, most deprecations have been removed. Please have a look at the release notes below to see what has changed and use the migration guide to upgrade from the previous version in a few easy steps. Previous versions and release notes of this SDK can be found here.
An overview of the changes:
Added:
- The method
getPrivacyPolicy
was added to theSession
instance to retrieve the policy for apaymentProductId
and/orlocale
. Providing nopaymentProductId
will retrieve all available payment product policies.
Removed:
- The method
getCustomerDetails
is removed from theSession
instance since it is no longer supported by the payment engine.- The methods
transformPaymentProductJSON
andtransformPaymentProductGroupJSON
are removed from theSession
instance, which are no longer used anymore.
- The methods
Changed:
- Polyfilled promises are replaced by native promises, see migration guide
- Use https://developer.mozilla.org/en-US/docs/Web/API/fetch instead of XMLHttpRequest
- Improve error handling (always throw an instance of Error), see migration guide
- Improved refer entity by ID, see migration guide
- Library exported as UMD, ES modules and CommonJS, see migration guide how to import into your application
- Better TypeScript support
- Smaller bundle size; build supports tree-shaking
- When using AMD; does no longer support loading modules from Session object
- Internal rewrite to modern standards using native browser API (
Map
,Set
etc). - Remove critical vulnerabilities from external dependencies
- Update typedoc generation