[2.7.0] - 2018-09-19
Added:
- New client method
waitForInitialization
returns a Promise, likewaitUntilReady
; but whilewaitUntilReady
will be resolved as soon as client initialization either succeeds or fails,waitForInitialization
will be resolved only if initialization succeeds, and will be rejected (with an error object) if it fails. - New config option
fetchGoals
(default: true) allows you to control whether the client will request A/B testing parameters from LaunchDarkly. If you do not use A/B testing, you may wish to disable this to reduce the number of HTTP requests. - New config option
sendLDHeaders
(default: true) allows you to control whether the client will add a custom header to LaunchDarkly HTTP requests (to indicate the SDK version). You may wish to disable this behavior if you have performance concerns, as it causes browsers to make an additional CORS preflight check (since it is no longer a simple request).