Skip to content

v1.7.0

Choose a tag to compare

@andrijaricko andrijaricko released this 11 Feb 13:46
· 25 commits to main since this release
b5330ea

v1.7.0

Breaking changes

  • consentData.givenOn type change: The givenOn property in consentData now requires a JavaScript Date object instead of a string.

  • apiConfig.url replaced with proxy object. Previously, you provided the full API transaction endpoint for your proxy, for example: https://www.myproxy.com/api/v1/transaction. Now, proxy.baseUrl accepts your proxy's base domain + API suffix, without the final URL path. For example: https://www.myproxy.com/api/v1. The SDK then constructs the rest of the URL based on the action that is performed. Here's how the proxy object looks like:

    proxy: {
      baseUrl: string;
      startTransactionPath?: string; // Default: '/transaction'
      cancelWorkflowPath?: string; // Default: '/initialize/{workflowId}/cancel'
      workflowInfoPath?: string; // Default: '/initialize/{workflowId}/info'
    }

You also need to update your proxy. If you're using our proxy, upgrade to the latest available version.

Improvements

  • Fallback consent UI: If the consent object has isProcessingStoringAllowed set to false, users will now be prompted with a fallback consent UI form where they can accept or reject. If rejected, the transaction will be terminated.