Skip to content

Commit 23197a2

Browse files
Merge pull request #58 from microsoft/preview
Merge preview to release/v2
2 parents 443a658 + ef1f2f1 commit 23197a2

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

sdk/feature-management-applicationinsights-browser/package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/feature-management-applicationinsights-browser/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@microsoft/feature-management-applicationinsights-browser",
3-
"version": "2.0.0-preview.1",
3+
"version": "2.0.0-preview.2",
44
"description": "Feature Management Application Insights Plugin for Browser provides a solution for sending feature flag evaluation events produced by the Feature Management library.",
55
"main": "./dist/umd/index.js",
66
"module": "./dist/esm/index.js",

sdk/feature-management-applicationinsights-browser/src/telemetry.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ import { IEventTelemetry } from "@microsoft/applicationinsights-web";
1313
export function createTelemetryPublisher(client: ApplicationInsights): (event: EvaluationResult) => void {
1414
return (event: EvaluationResult) => {
1515
const eventProperties = {
16-
"FeatureName": event.feature?.id,
16+
"FeatureName": event.feature ? event.feature.id : "",
1717
"Enabled": event.enabled.toString(),
1818
// Ensure targetingId is string so that it will be placed in customDimensions
19-
"TargetingId": event.targetingId?.toString(),
20-
"Variant": event.variant?.name,
19+
"TargetingId": event.targetingId ? event.targetingId.toString() : "",
20+
"Variant": event.variant ? event.variant.name : "",
2121
"VariantAssignmentReason": event.variantAssignmentReason,
2222
};
2323

Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT license.
33

4-
export const VERSION = "2.0.0-preview.1";
4+
export const VERSION = "2.0.0-preview.2";

sdk/feature-management/package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/feature-management/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@microsoft/feature-management",
3-
"version": "2.0.0-preview.1",
3+
"version": "2.0.0-preview.2",
44
"description": "Feature Management is a library for enabling/disabling features at runtime. Developers can use feature flags in simple use cases like conditional statement to more advanced scenarios like conditionally adding routes.",
55
"main": "./dist/commonjs/index.js",
66
"module": "./dist/esm/index.js",

sdk/feature-management/src/version.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT license.
33

4-
export const VERSION = "2.0.0-preview.1";
4+
export const VERSION = "2.0.0-preview.2";

0 commit comments

Comments
 (0)