Migration to v4.X and higher
Asynchronous Flagship.start
// New version - asynchronous
const flagship = await Flagship.start('ENV_ID', 'API_KEY', {
// config options
});
// Now you can safely use the SDK
const visitor = flagship.newVisitor({
visitorId: 'visitor-id',
hasConsented: true
});// Previous version - synchronous
const flagship = Flagship.start('ENV_ID', 'API_KEY', {
// config options
});
// Immediately use the SDK
const visitor = flagship.newVisitor({
visitorId: 'visitor-id',
hasConsented: true
});Visitor Creation options
Flagship configuration
Renamed Types and APIs
Flag Status
Flagship SDK Status
V4.X
V3.X
GetFlag method update
GetFlag method updateLast updated
Was this helpful?

