@datadome/fraud-sdk-node
Version:
Fraud Protection - Node.js SDK
38 lines (25 loc) • 1.46 kB
Markdown
# DataDome Fraud SDK Node.js
## 2.0.1 (2025-06-23)
- Fix the case of the `XRealIp` in the JSON payload to the Account Protect API
## 2.0.0 (2025-06-11)
### Breaking changes
- Update signature of `LoginEvent` and `RegistrationEvent` to accept a single configuration object instead of individual parameters
### Enhancements
- Add support for [account update](https://docs.datadome.co/docs/account-protect-account-update) events
- Add support for [password update](https://docs.datadome.co/docs/account-protect-password-update) events
- Add optional `session`, `user`, and `authentication` fields for login events
- Add optional `authentication` field for registration events
- Add `displayName`, `description`, `externalUrls`, and `pictureUrls` fields to the `User` interface
- Add the `score` and `eventId` fields on successful responses from the `Validate` method
- Add optional `requestMetadata` parameter for `collect` and `validate` methods to allow overriding the initial request's metadata
## 1.1.3 (2025-03-26)
- Update optional fields in `User` and `Address` interfaces to match validate and collect APIs for registration
- Clean TypeScript exports and interface declarations
## 1.1.2 (2023-11-08)
- Add `accept-language` field in payload to Account Protect API
## 1.1.1 (2023-10-31)
- Add `status` failure when the Account Protect API response is invalid
## 1.1.0 (2023-06-20)
- Rename package to `fraud-sdk-node`
## 1.0.0
- Initial release