Skip to content

Releases: Worldline-Global-Collect/connect-sdk-client-js

5.0.0

19 Mar 10:33
Compare
Choose a tag to compare

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 the Session instance to retrieve the policy for a paymentProductId and/or locale. Providing no paymentProductId will retrieve all available payment product policies.

Removed:

  • The method getCustomerDetails is removed from the Session instance since it is no longer supported by the payment engine.
    • The methods transformPaymentProductJSON and transformPaymentProductGroupJSON are removed from the Session instance, which are no longer used anymore.

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