JavaScript, Node, Deno
Welcome to the Flagship JS SDK documentation!
The following article will guide you through the steps to get Flagship up and running on your Go servers or scripts using our client library with preconfigured methods to implement the Decision API.
Wants to have a look at the GitHub repo? Link here.
Feel free to contact us if you have any questions regarding this documentation.
That SDK is compatible with NodeJS, JS, TS & Deno Environment.
Any question? Contact our support
Release notes
Fixed
- Flagship.Start method returns a null instead of Flagship instance when API_KEY or ENV_ID is null,
Fixed
- Flagship.Start method returns null instead of Flagship instance when API_KEY or ENV_ID is null,
Added
- esm support
Added
- slug property in flag.metadata
Changed
- Now lookupVisitor and lookupHits methods will be called each time visitor.fetchFlags method is called
- When the default flag value is "null", no type checking will be performed anymore
Built
- deno package
Improved
- Performance of Flag.exists method
Removed
- flag.GetValue log message when value of flagDTO is null
Added
- Deno as SDK_LANGUAGE in x-sdk-client http header when running in Deno environment
Fixed
- Batch hit length
Changed
- No SEGMENT hits will be sent when visitor context is empty
Fixed
- Reset visitor cache data when visitorId property has changed
Added
- AssignmentsHistory property in VisitorCacheDTO type
Fixed
- Variation Re-allocation in bucketing mode
Added
- Visitor.fetchFlags method
- Visitor.getFlag method
- Flag class
- FlagMetadata class
- Managing visitor cache
- SDK Status / Status changed callback.
- Visitor consent.
- Predefined context.
- Custom log manager
- Visitor.getFlagsDataArray method
- Visitor.getAllFlagsData method
- Visitor.getFlatsDataForCampaign method
Deprecated
- visitor.synchronizeModifications method
- Visitor.getModification method
- Visitor.getModificationSync method
- Visitor.getModificationInfoSync method
- Visitor.getModificationInfo method
- Visitor.activateModifications method
- Visitor.getModificationsForCampaign method
- Visitor.getAllModifications method
Changed
- Flagship.newVisitor signature.
- Visitor.sendHit and Visitor.sendHits signature
- Visitor.activateModifications signature
Removed
- Flagship.startBucketingPolling method
- Flagship.stopBucketingPolling method
Fixed
- fix authenticate and unauthenticate unhandle error
Added
- Save VisitorData at each synchronizeModifications
Updated 16 days ago
Did this page help you?