Skip to content

v2.0.0

Latest

Choose a tag to compare

@fingerprint-dx-team fingerprint-dx-team released this 01 Apr 13:22
· 6 commits to main since this release
e0915f6

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)