Skip to content

Commit 6315c36

Browse files
prepare 3.3.4 release (#51)
1 parent 581c865 commit 6315c36

File tree

10 files changed

+25
-34
lines changed

10 files changed

+25
-34
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 2
22
jobs:
33
build:
44
docker:
5-
- image: circleci/node:11.10.1
5+
- image: cimg/node:12.22
66
steps:
77
- checkout
88

.ldrelease/config.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
version: 2
2+
13
repo:
24
public: js-sdk-common
35
private: js-sdk-common-private
@@ -6,9 +8,12 @@ publications:
68
- url: https://www.npmjs.com/package/launchdarkly-js-sdk-common
79
description: npm
810

9-
template:
10-
name: npm
11+
jobs:
12+
- docker:
13+
image: node:12-buster
14+
template:
15+
name: npm
1116

1217
documentation:
13-
githubPages: true
18+
gitHubPages: true
1419
title: LaunchDarkly Javascript SDK Core Components

docs/typedoc.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

package-lock.json

Lines changed: 6 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"dependencies": {
7474
"base64-js": "^1.3.0",
7575
"fast-deep-equal": "^2.0.1",
76-
"uuid": "^8.0.0"
76+
"uuid": "^3.3.2"
7777
},
7878
"repository": {
7979
"type": "git",

src/EventSender.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as errors from './errors';
22
import * as utils from './utils';
3-
const { v1: uuidv1 } = require('uuid');
3+
import uuidv1 from 'uuid/v1';
44

55
const MAX_URL_LENGTH = 2000;
66

src/UserValidator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { v1: uuidv1 } = require('uuid');
1+
import uuidv1 from 'uuid/v1';
22

33
import * as errors from './errors';
44
import * as messages from './messages';

src/diagnosticEvents.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { v1: uuidv1 } = require('uuid');
1+
const uuidv1 = require('uuid/v1');
22
// Note that in the diagnostic events spec, these IDs are to be generated with UUID v4. However,
33
// in JS we were already using v1 for unique user keys, so to avoid bringing in two packages we
44
// will use v1 here as well.

src/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,11 @@ export function initialize(env, user, specifiedOptions, platform, extraOptionDef
341341
return;
342342
}
343343

344+
// The following logic was used only for the JS browser SDK (js-client-sdk) and
345+
// is no longer needed as of version 2.9.13 of that SDK. The other client-side
346+
// JS-based SDKs did not define customEventFilter, and now none of them do. We
347+
// can remove this in the next major version of the common code, when it's OK to
348+
// make breaking changes to our internal API contracts.
344349
if (platform.customEventFilter && !platform.customEventFilter(key)) {
345350
logger.warn(messages.unknownCustomEventKey(key));
346351
}

src/messages.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export const localStorageUnavailableForUserId = function() {
4747

4848
export const networkError = e => 'network error' + (e ? ' (' + e + ')' : '');
4949

50+
// We should remove unknownCustomEventKey in the future - see comments in track() in index.js
5051
export const unknownCustomEventKey = function(key) {
5152
return 'Custom event "' + key + '" does not exist';
5253
};

0 commit comments

Comments
 (0)