@flags-sdk/launchdarkly@1.0.0
Major Changes
-
#418
5488865Thanks @mbrakken! - Support the native LaunchDarkly Marketplace integration.Breaking changes:
-
The default adapter (
ldAdapter) now reads the Edge Config connection string from theEXPERIMENTATION_CONFIGenvironment variable instead ofEDGE_CONFIG. This aligns with the native LaunchDarkly Marketplace integration and matches the behavior of other adapters (e.g. Statsig).EDGE_CONFIGis no longer read by the default adapter. The error thrown whenEXPERIMENTATION_CONFIGis not set changed toLaunchDarkly Adapter: Missing EXPERIMENTATION_CONFIG environment variable.If you use the legacy LaunchDarkly Vercel integration (which provides the connection string as
EDGE_CONFIG), pass the connection string explicitly withcreateLaunchDarklyAdapter:import { createLaunchDarklyAdapter } from "@flags-sdk/launchdarkly"; const ldAdapter = createLaunchDarklyAdapter({ projectSlug: process.env.LAUNCHDARKLY_PROJECT_SLUG, clientSideId: process.env.LAUNCHDARKLY_CLIENT_SIDE_ID, edgeConfigConnectionString: process.env.EDGE_CONFIG, });
-