Node.js SDK v6.0.2
What's New
π§ Bug Fix: Empty Object Serialization
- Fix: Empty JSON object serialization β objects with no properties now correctly serialize to
{} instead of []
- Resolves backend validation errors when sending empty optional/nested objects
β¨ New Features: Consent Groups Management
- List consent groups β GET /contacts/consent-groups
- Create a consent group β POST /contacts/consent-groups
- Get consent group details β GET /contacts/consent-groups/{id}
- Update consent group β PUT /contacts/consent-groups/{id} (name, description, signup mode)
- Delete consent group β DELETE /contacts/consent-groups/{id}
π² Extended Operations
- Import contacts β POST /contacts/import now accepts optional
consentGroupIds field to add imported contacts to specified consent groups
- Get contact details β GET /contacts/{identifier} now returns
consentGroups array showing subscription status (when feature enabled)
π³ New Wallet Feature
- Get pass installation URL β GET /wallet/passes/{passId}/installUrl/{contactId}
- Generates per-contact wallet installation URLs
- Enables sharing via email, SMS, or QR code for Apple Wallet/Google Wallet integration
Bug Fixes
- Fixed serialization of empty optional/nullable objects to produce valid JSON objects instead of arrays
- Resolves issues where backends strict on type validation would reject payloads containing empty nested objects
Compatibility
- β
Backward compatible β no breaking changes
- β
No API surface changes
- β
No method signature changes
Installation
npm install @getbrevo/brevo@6.0.2