Node.js module 2.0.0
12 months ago by Riberon-Piatyszek Léo
General changes
- Collect fetch metadata headers
- Raise runtime error when using invalid constructor arguments
Breaking changes
- Split @datadome/node-module into two separate packages:
- @datadome/module-express for usage with Express
- @datadome/module-http for usage with built-in HTTP module from Node.js
- Rename
uriRegexoption tourlPatternInclusion - Rename
uriRegexExclusionoption tourlPatternExclusion - Remove
port,shouldUseSslandpathoptions fromDatadomeClient - Move and rename
endpointparameter from being the second argument inDataDomeClientclass to being part of the options object, now calledendpointHost
@datadome/common
- Create package to interface with @datadome/node-core
@datadome/module-express
- Rename
authCallbackmethod tohandleRequest - Add
middlewaremethod to return a request handler
@datadome/module-http
- Rename
authmethod tohandleRequest - Change the
handleRequestsignature to return a promise
