[{"data":1,"prerenderedAt":128},["ShallowReactive",2],{"docs:\u002Fdocs\u002Flaunchdarkly":3,"docs-navigation":87},{"id":4,"title":5,"body":6,"description":16,"extension":80,"meta":81,"navigation":82,"path":83,"seo":84,"stem":85,"__hash__":86},"docs\u002Fdocs\u002Flaunchdarkly.md","Migrate from LaunchDarkly",{"type":7,"value":8,"toc":75},"minimark",[9,13,17,22,39,43,46,56,64],[10,11,5],"h1",{"id":12},"migrate-from-launchdarkly",[14,15,16],"p",{},"Start with one application and environment. Inventory the boolean flags it reads and keep their code defaults. Recreate the flag keys and target users in Dipswitch. This release supports an environment switch, individual overrides and static segments. Review percentage rules, prerequisites and multivariate flags separately during the move. The automatic importer is planned for a later release.",[18,19,21],"h2",{"id":20},"web-applications","Web applications",[14,23,24,25,34,35,38],{},"Try the changes in staging with the same user IDs and check the flags for signed-in and anonymous visitors. In Vue, use the ",[26,27,29,30],"a",{"href":28},"\u002Fdocs\u002Fvue\u002F","Dipswitch plugin and ",[31,32,33],"code",{},"useFlag"," in place of the LaunchDarkly plugin and ",[31,36,37],{},"useLDFlag",". Guarded routes should wait for flags and any user switch before deciding. Remove the old client after the transition is stable.",[18,40,42],{"id":41},"node-services","Node services",[14,44,45],{},"The shadow package runs both SDKs and keeps returning the LaunchDarkly result while recording differences. It uses the LaunchDarkly user key, including the user entry in a multi-context. Checks with no user key use Dipswitch's anonymous result.",[47,48,54],"pre",{"className":49,"code":51,"language":52,"meta":53},[50],"language-sh","npm install @dipswitch\u002Fsdk-node @dipswitch\u002Fsdk-node-launchdarkly\n","sh","",[31,55,51],{"__ignoreMap":53},[47,57,62],{"className":58,"code":60,"language":61,"meta":53},[59],"language-ts","import { createClient } from '@dipswitch\u002Fsdk-node'\nimport { createFlagClient } from '@dipswitch\u002Fsdk-node-launchdarkly'\nimport type { LDClient } from '@launchdarkly\u002Fnode-server-sdk'\n\nexport async function compare(launchDarkly: LDClient, serverKey: string) {\n  const dipswitch = createClient({ serverKey })\n  await dipswitch.ready\n  return { flags: createFlagClient({ launchDarkly, dipswitch }), dipswitch }\n}\n","ts",[31,63,60],{"__ignoreMap":53},[14,65,66,67,70,71,74],{},"Compare real checks for at least a week without mismatches. Set ",[31,68,69],{},"returnFrom"," to ",[31,72,73],{},"dipswitch"," for one service at a time, and keep observing the comparisons until you are ready to remove the LaunchDarkly client. Close both SDKs when the service shuts down.",{"title":53,"searchDepth":76,"depth":76,"links":77},2,[78,79],{"id":20,"depth":76,"text":21},{"id":41,"depth":76,"text":42},"md",{},true,"\u002Fdocs\u002Flaunchdarkly",{"title":5,"description":16},"docs\u002Flaunchdarkly","krOPn0qPveyD-ukqNCgB8fqBLxY9SJ_BNB0s8wJkXSk",[88,91,94,97,100,103,104,107,110,113,116,119,122,125],{"path":89,"title":90},"\u002Fdocs","Dipswitch documentation",{"path":92,"title":93},"\u002Fdocs\u002Fdotnet",".NET quickstart",{"path":95,"title":96},"\u002Fdocs\u002Fidentity","Verify user identity",{"path":98,"title":99},"\u002Fdocs\u002Fjava","Java quickstart",{"path":101,"title":102},"\u002Fdocs\u002Fjavascript","JavaScript quickstart",{"path":83,"title":5},{"path":105,"title":106},"\u002Fdocs\u002Fmanagement-api","Management API",{"path":108,"title":109},"\u002Fdocs\u002Fnode","Node.js quickstart",{"path":111,"title":112},"\u002Fdocs\u002Fopenfeature","OpenFeature and OFREP",{"path":114,"title":115},"\u002Fdocs\u002Fphp","PHP quickstart",{"path":117,"title":118},"\u002Fdocs\u002Fplans","Plans and limits",{"path":120,"title":121},"\u002Fdocs\u002Frate-limits","Rate limits",{"path":123,"title":124},"\u002Fdocs\u002Freact","React quickstart",{"path":126,"title":127},"\u002Fdocs\u002Fvue","Vue quickstart",1795767833783]