8000 Release Release 6.0.0 · optimizely/javascript-sdk · GitHub
[go: up one dir, main page]

Skip to content

Release 6.0.0

Latest
Compare
Choose a tag to compare
@raju-opti raju-opti released this 29 May 18:13
· 1 commit to master since this release
760c72b

[6.0.0] - May 29, 2025

Breaking Changes

  • Modularized SDK architecture: The monolithic createInstance call 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.
  • onReady Promise 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 eventProcessor to 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 vuidManager to the client instance.
  • ODP functionality is no longer enabled by default. You must explicitly pass an odpManager to enable it.
  • Dropped support for older browser versions and Node.js versions earlier than 18.0.0.

New Features

Migration Guide

For detailed migration instructions, refer to the Migration Guide.

Documentation

For more details, see the official documentation: JavaScript SDK.

0