2.0.0
Microsoft Feature Management Updates
The packages associated with this release are
- @microsoft/feature-management 2.0.0
- @microsoft/feature-management-applicationinsights-browser 2.0.0
- @microsoft/feature-management-applicationinsights-node 2.0.0
@microsoft/feature-management
Enhancements
This is the first stable release of the following features.
-
Variant Feature Flags
A variant feature flag is an enhanced feature flag that supports multiple states or variations. While it can still be toggled on or off, it also allows for different configurations, ranging from simple primitives to complex JSON objects. Variant feature flags are particularly useful for feature rollouts, configuration rollouts, and feature experimentation (also known as A/B testing).
The new
getVariantmethod ofFeatureManagerhas been introduced to evaluate the assigned variant based on the variant feature flag configuration and targeting context. #13 -
Telemetry
Telemetry provides observability into flag evaluations, offering insights into which users received specific flag results. This enables more powerful metric analysis, such as experimentation.
The new
onFeatureEvaluatedconstructor parameter ofFeatureManagerallows you to set a custom callback for all feature evaluations. This hook can be used to publish telemetry. You can callcreateTelemetryPublisherAPI from@microsoft/feature-management-applicationinsights-browserand@microsoft/feature-management-applicationinsights-nodepackages to publish feature evaluation event to Application Insights. #36
Bug Fixes
- Fixed a bug that caused error when calling
getFeatureFlagsandlistFeatureNames. #74
@microsoft/feature-management-applicationinsights-browser
Enhancements
This is the first stable release of the following features.
-
A
createTelemetryPublisherfunction that has been added that enables feature evaluation telemetry to be published to Application Insights. -
A
TrackEventfunction has been added to enable sending custom events embedded with targeting information to Application Insights. This function is meant to be used in place of the Application Insights package's standardTrackEventcall.
@microsoft/feature-management-applicationinsights-node
Enhancements
This is the first stable release of the following features.
-
A
createTelemetryPublisherfunction that has been added that enables feature evaluation telemetry to be published to Application Insights. -
A
TrackEventfunction has been added to enable sending custom events embedded with targeting information to Application Insights. This function is meant to be used in place of the Application Insights package's standardTrackEventcall.