launchdarkly-js-sdk-common 3.2.12 → 3.3.2
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 +19 -0
- package/README.md +0 -1
- 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 +3 -2
- package/typings.d.ts +32 -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.3.2",
|
|
4
4
|
"description": "LaunchDarkly SDK for JavaScript - common code",
|
|
5
5
|
"author": "LaunchDarkly <team@launchdarkly.com>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,7 +33,8 @@
|
|
|
33
33
|
"test:junit": "cross-env NODE_ENV=test jest --testResultsProcessor jest-junit",
|
|
34
34
|
"check-typescript": "node_modules/typescript/bin/tsc",
|
|
35
35
|
"clean": "rimraf dist/**",
|
|
36
|
-
"prepublishOnly": "npm run build:min"
|
|
36
|
+
"prepublishOnly": "npm run build:min",
|
|
37
|
+
"prepare": "npm run build"
|
|
37
38
|
},
|
|
38
39
|
"devDependencies": {
|
|
39
40
|
"@babel/cli": "^7.8.4",
|
package/typings.d.ts
CHANGED
|
@@ -169,6 +169,14 @@ declare module 'launchdarkly-js-sdk-common' {
|
|
|
169
169
|
*/
|
|
170
170
|
privateAttributeNames?: Array<string>;
|
|
171
171
|
|
|
172
|
+
/**
|
|
173
|
+
* Whether to include full user details in every analytics event.
|
|
174
|
+
*
|
|
175
|
+
* The default is `false`: events will only include the user key, except for one "index" event
|
|
176
|
+
* that provides the full details for the user.
|
|
177
|
+
*/
|
|
178
|
+
inlineUsersInEvents?: boolean;
|
|
179
|
+
|
|
172
180
|
/**
|
|
173
181
|
* Whether or not to send an analytics event for a flag evaluation even if the same flag was
|
|
174
182
|
* evaluated with the same value within the last five minutes.
|
|
@@ -259,6 +267,14 @@ declare module 'launchdarkly-js-sdk-common' {
|
|
|
259
267
|
* If `wrapperName` is unset, this field will be ignored.
|
|
260
268
|
*/
|
|
261
269
|
wrapperVersion?: string;
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* Whether to disable the automatic sending of an alias event when [[identify]] is
|
|
273
|
+
* called with a non-anonymous user when the previous user is anonymous.
|
|
274
|
+
*
|
|
275
|
+
* The default value is `false`.
|
|
276
|
+
*/
|
|
277
|
+
autoAliasingOptOut?: boolean;
|
|
262
278
|
}
|
|
263
279
|
|
|
264
280
|
/**
|
|
@@ -603,7 +619,7 @@ declare module 'launchdarkly-js-sdk-common' {
|
|
|
603
619
|
/**
|
|
604
620
|
* Registers an event listener.
|
|
605
621
|
*
|
|
606
|
-
* The following event names (keys) are used by the
|
|
622
|
+
* The following event names (keys) are used by the client:
|
|
607
623
|
*
|
|
608
624
|
* - `"ready"`: The client has finished starting up. This event will be sent regardless
|
|
609
625
|
* of whether it successfully connected to LaunchDarkly, or encountered an error
|
|
@@ -671,6 +687,21 @@ declare module 'launchdarkly-js-sdk-common' {
|
|
|
671
687
|
*/
|
|
672
688
|
track(key: string, data?: any, metricValue?: number): void;
|
|
673
689
|
|
|
690
|
+
/**
|
|
691
|
+
* Associates two users for analytics purposes.
|
|
692
|
+
*
|
|
693
|
+
* This can be helpful in the situation where a person is represented by multiple
|
|
694
|
+
* LaunchDarkly users. This may happen, for example, when a person initially logs into
|
|
695
|
+
* an application-- the person might be represented by an anonymous user prior to logging
|
|
696
|
+
* in and a different user after logging in, as denoted by a different user key.
|
|
697
|
+
*
|
|
698
|
+
* @param user
|
|
699
|
+
* The newly identified user.
|
|
700
|
+
* @param previousUser
|
|
701
|
+
* The previously identified user.
|
|
702
|
+
*/
|
|
703
|
+
alias(user: LDUser, previousUser: LDUser): void;
|
|
704
|
+
|
|
674
705
|
/**
|
|
675
706
|
* Returns a map of all available flags to the current user's values.
|
|
676
707
|
*
|