Repository navigation
v1.7.0
v1.7.0
Breaking changes
-
consentData.givenOntype change: ThegivenOnproperty inconsentDatanow requires a JavaScriptDateobject instead of astring. -
apiConfig.urlreplaced withproxyobject. Previously, you provided the full API transaction endpoint for your proxy, for example:https://www.myproxy.com/api/v1/transaction. Now,proxy.baseUrlaccepts 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 theproxyobject 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
isProcessingStoringAllowedset tofalse, users will now be prompted with a fallback consent UI form where they can accept or reject. If rejected, the transaction will be terminated.