How to upgrade from v1 to v2

This guide will help you navigate through changes included in version 2 of the DataDome Worker for a successful upgrade.
In this update, we have introduced the ES module format, TypeScript, and an npm package to ease the installation process.

📘

Documentation for version 2

Please refer to the new documentation for detailed instructions on how to use version 2 of the module.

Overview of the changes

  • Migration to ES module format
  • Migration to Typescript
  • Introduction of a new package: @datadome/module-cloudflare-worker
  • Renaming and deprecation of some options

Choose your migration path

Select the installation method that matches your setup. You can refer to this section to help you choose.

📘

Workers Bindings

If you used Workers HTTP Service Bindings with v1 of DataDome Cloudflare Worker, we recommend you use npm.