Node.js module 2.0.0
about 2 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
uriRegex
option tourlPatternInclusion
- Rename
uriRegexExclusion
option tourlPatternExclusion
- Remove
port
,shouldUseSsl
andpath
options fromDatadomeClient
- Move and rename
endpoint
parameter from being the second argument inDataDomeClient
class to being part of the options object, now calledendpointHost
@datadome/common
- Create package to interface with @datadome/node-core
@datadome/module-express
- Rename
authCallback
method tohandleRequest
- Add
middleware
method to return a request handler
@datadome/module-http
- Rename
auth
method tohandleRequest
- Change the
handleRequest
signature to return a promise