·
6 commits
to main
since this release
Major Changes
-
Added support for Fingerprint JavaScript agent v4. Compatibility with JavaScript agent v3 is maintained, you can upgrade to the latest JavaScript agent at your convenience.
When upgrading to the JavaScript agent v4, remove the scriptUrlPattern and endpoint options. Replace them with a single endpoints option pointing to the worker route of your Cloudflare proxy integration:
- const fpPromise = FingerprintJS.load({ - apiKey: PUBLIC_API_KEY, - scriptUrlPattern: "https://yourwebsite.com/INTEGRATION_PATH/AGENT_SCRIPT_DOWNLOAD_PATH?apiKey=<apiKey>&version=<version>&loaderVersion=<loaderVersion>", - endpoint: "https://yourwebsite.com/INTEGRATION_PATH/GET_RESULT_PATH?region=eu", - }); + const fpPromise = Fingerprint.start({ + apiKey: PUBLIC_API_KEY, + endpoints: "https://yourwebsite.com/INTEGRATION_PATH/?region=eu", + });
See Migration guide for Fastly VCL from API v3 to API v4 for more details. (41afc61)