Release 6.0.0
[6.0.0] - May 29, 2025
Breaking Changes
- Modularized SDK architecture: The monolithic
createInstancecall has been split into multiple factory functions for greater flexibility and control. - Core functionalities (project configuration, event processing, ODP, VUID, logging, and error handling) are now configured through dedicated components created via factory functions, giving you greater flexibility and control in enabling/disabling certain components and allowing optimizing the bundle size for frontend projects.
onReadyPromise behavior changed: It now resolves only when the SDK is ready and rejects on initialization errors.- event processing is disabled by default and must be explicitly enabled by passing a
eventProcessorto the client. - Event dispatcher interface updated to use Promises instead of callbacks.
- Logging is disabled by default and must be explicitly enabled using a logger created via a factory function.
- VUID tracking is disabled by default and must be explicitly enabled by passing a
vuidManagerto the client instance. - ODP functionality is no longer enabled by default. You must explicitly pass an
odpManagerto enable it. - Dropped support for older browser versions and Node.js versions earlier than 18.0.0.
New Features
- Added support for async user profile service and async decide methods (see dcoumentation for User Profile Service and Decide methods)
Migration Guide
For detailed migration instructions, refer to the Migration Guide.
Documentation
For more details, see the official documentation: JavaScript SDK.