The most important upgrade relies on the pageview event. In SDK v1.x, pageview events were sent automatically when instancing the object. That led to some confusion as it was not very explicit.
Now on v2, pageview events have to be sent manually when the page is rendered. Please check how to send this event in this guide.
3. Change the sendConnectWallet method name
On v1, the method was called sendConnectWalletEvent, now it was changed to sendConnectWallet.
For more information on sending this event, check out this guide.
Migrating from 2.x to 3.x version
There is only a minor breaking change when upgrading the Fuul SDK to the 3.x versions:
1. Getting the affiliate tracking links
The generateTrackingLink method now returns a Promise<string> instead of a string. It now also accounts for affiliate codes created by the affiliateAddress argument.
v1.x/v2.x
v3.x
For more information on getting the affiliate link, check out this guide.