Node.js module 2.0.0

General changes

  • Collect fetch metadata headers
  • Raise runtime error when using invalid constructor arguments

Breaking changes

  • Split @datadome/node-module into two separate packages:
  • Rename uriRegex option to urlPatternInclusion
  • Rename uriRegexExclusion option to urlPatternExclusion
  • Remove port, shouldUseSsl and path options from DatadomeClient
  • Move and rename endpoint parameter from being the second argument in DataDomeClient class to being part of the options object, now called endpointHost

@datadome/common

@datadome/module-express

  • Rename authCallback method to handleRequest
  • Add middleware method to return a request handler

@datadome/module-http

  • Rename auth method to handleRequest
  • Change the handleRequest signature to return a promise