Add an experimental API for JS agent debugging. We can use it to analyze agent operation on your side and solve problems faster. Contact support for more details.
The minimal supported version of TypeScript is 4.0.0.
Amend Safari private mode detection. It always detected incognito: true in desktop Safari controlled by Karma or BrowserStack Automate.
fix: It's impossible to set an endpoint that is relative to the current domain in the FingerprintJS.load() function. For example, the following code didn't work:
Warning. If you set the endpoint option to something like metrics.example.com, it will break because this is not an expected behavior. Change the endpoint to https://metrics.example.com.
The installation methods have been unified so that they have same options and same usage methods. Also we've added a couple new ways to install.
Result and error handling has been simplified. A single value type is returned (resolved) and a single value type is thrown (rejected). The agent throws error only when a visitor identification fails due to incorrect agent setup or network issues; special kinds of visitors don't cause errors.