2.0.0 • Published 6 months ago
@outreach/launchdarkly-js-extension-sdk v2.0.0
@outreach/launchdarkly-js-extension-sdk
LaunchDarkly SDK for browser extension background service workers.
The SDK is built on top of js-sdk-common which is not an official API provided by LaunchDarkly. This SDK can break with feature releases of js-sdk-common.
The implementation of the SDK is similar to browser SDK with following differences:
- It uses
fetchinstead ofXMLHttpRequestfor network requests - It uses
chrome.storage.localfor flag caching instead oflocalStorage - It hooks to
chrome.runtime.onSuspendfor cleanup (flushing analytic events) instead ofunloadevent listener