launchdarkly-js-sdk-common 3.2.7 → 3.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/ldclient-common.cjs.js +1 -1
- package/dist/ldclient-common.cjs.js.map +1 -1
- package/dist/ldclient-common.es.js +1 -1
- package/dist/ldclient-common.es.js.map +1 -1
- package/dist/ldclient-common.min.js +1 -1
- package/dist/ldclient-common.min.js.map +1 -1
- package/package.json +1 -2
- package/typings.d.ts +6 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "launchdarkly-js-sdk-common",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.10",
|
|
4
4
|
"description": "LaunchDarkly SDK for JavaScript - common code",
|
|
5
5
|
"author": "LaunchDarkly <team@launchdarkly.com>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -46,7 +46,6 @@
|
|
|
46
46
|
"@rollup/plugin-replace": "^2.2.0",
|
|
47
47
|
"babel-eslint": "^10.1.0",
|
|
48
48
|
"babel-jest": "^25.1.0",
|
|
49
|
-
"chai": "^4.1.2",
|
|
50
49
|
"cross-env": "^5.1.4",
|
|
51
50
|
"eslint": "^6.8.0",
|
|
52
51
|
"eslint-config-prettier": "^2.9.0",
|
package/typings.d.ts
CHANGED
|
@@ -651,8 +651,13 @@ declare module 'launchdarkly-js-sdk-common' {
|
|
|
651
651
|
* The name of the event, which may correspond to a goal in A/B tests.
|
|
652
652
|
* @param data
|
|
653
653
|
* Additional information to associate with the event.
|
|
654
|
+
* @param metricValue
|
|
655
|
+
* An optional numeric value that can be used by the LaunchDarkly experimentation
|
|
656
|
+
* feature in numeric custom metrics. Can be omitted if this event is used by only
|
|
657
|
+
* non-numeric metrics. This field will also be returned as part of the custom event
|
|
658
|
+
* for Data Export.
|
|
654
659
|
*/
|
|
655
|
-
track(key: string, data?: any): void;
|
|
660
|
+
track(key: string, data?: any, metricValue?: number): void;
|
|
656
661
|
|
|
657
662
|
/**
|
|
658
663
|
* Returns a map of all available flags to the current user's values.
|