Skip to content

Commit 61d979c

Browse files
prepare 3.3.1 release (#39)
1 parent 860581f commit 61d979c

File tree

5 files changed

+35
-4
lines changed

5 files changed

+35
-4
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,3 @@ We encourage pull requests and other contributions from the community. Check out
3333
* [docs.launchdarkly.com](https://docs.launchdarkly.com/ "LaunchDarkly Documentation") for our documentation and SDK reference guides
3434
* [apidocs.launchdarkly.com](https://apidocs.launchdarkly.com/ "LaunchDarkly API Documentation") for our API documentation
3535
* [blog.launchdarkly.com](https://blog.launchdarkly.com/ "LaunchDarkly Blog Documentation") for the latest product updates
36-
* [Feature Flagging Guide](https://github.com/launchdarkly/featureflags/ "Feature Flagging Guide") for best practices and strategies

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
"test:junit": "cross-env NODE_ENV=test jest --testResultsProcessor jest-junit",
3434
"check-typescript": "node_modules/typescript/bin/tsc",
3535
"clean": "rimraf dist/**",
36-
"prepublishOnly": "npm run build:min"
36+
"prepublishOnly": "npm run build:min",
37+
"prepare": "npm run build"
3738
},
3839
"devDependencies": {
3940
"@babel/cli": "^7.8.4",

src/messages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const clientInitialized = function() {
1515
};
1616

1717
const docLink =
18-
' Please see https://docs.launchdarkly.com/docs/js-sdk-reference#section-initializing-the-client for instructions on SDK initialization.';
18+
' Please see https://docs.launchdarkly.com/docs/js-sdk-reference#initializing-the-client for instructions on SDK initialization.';
1919

2020
export const clientNotReady = function() {
2121
return 'LaunchDarkly client is not ready';

test-types.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ var ver: string = ld.version;
99
var logger: ld.LDLogger = ld.createConsoleLogger("info");
1010
var userWithKeyOnly: ld.LDUser = { key: 'user' };
1111
var anonUserWithNoKey: ld.LDUser = { anonymous: true };
12+
var anonUserWithKey: ld.LDUser = { key: 'anon-user', anonymous: true };
1213
var user: ld.LDUser = {
1314
key: 'user',
1415
secondary: 'otherkey',
@@ -30,6 +31,26 @@ var user: ld.LDUser = {
3031
},
3132
privateAttributeNames: [ 'name', 'email' ]
3233
};
34+
var allBaseOptions: ld.LDOptionsBase = {
35+
bootstrap: { },
36+
baseUrl: '',
37+
eventsUrl: '',
38+
streamUrl: '',
39+
streaming: true,
40+
useReport: true,
41+
sendLDHeaders: true,
42+
evaluationReasons: true,
43+
sendEvents: true,
44+
allAttributesPrivate: true,
45+
privateAttributeNames: [ 'x' ],
46+
inlineUsersInEvents: true,
47+
allowFrequentDuplicateEvents: true,
48+
sendEventsOnlyForVariation: true,
49+
flushInterval: 1,
50+
samplingInterval: 1,
51+
streamReconnectDelay: 1,
52+
logger: logger
53+
};
3354

3455
var client: ld.LDClientBase = {} as ld.LDClientBase; // wouldn't do this in real life, it's just so the following statements will compile
3556

@@ -40,6 +61,8 @@ client.identify(user).then(() => {});
4061
client.identify(user, undefined, () => {});
4162
client.identify(user, 'hash').then(() => {});
4263

64+
client.alias(user, anonUserWithKey);
65+
4366
var user: ld.LDUser = client.getUser();
4467

4568
client.flush(() => {});

typings.d.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,14 @@ declare module 'launchdarkly-js-sdk-common' {
169169
*/
170170
privateAttributeNames?: Array<string>;
171171

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+
172180
/**
173181
* Whether or not to send an analytics event for a flag evaluation even if the same flag was
174182
* evaluated with the same value within the last five minutes.
@@ -611,7 +619,7 @@ declare module 'launchdarkly-js-sdk-common' {
611619
/**
612620
* Registers an event listener.
613621
*
614-
* The following event names (keys) are used by the cliet:
622+
* The following event names (keys) are used by the client:
615623
*
616624
* - `"ready"`: The client has finished starting up. This event will be sent regardless
617625
* of whether it successfully connected to LaunchDarkly, or encountered an error

0 commit comments

Comments
 (0)