Skip to content

Commit

Permalink
prepare 3.3.4 release (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
LaunchDarklyReleaseBot authored Oct 15, 2021
1 parent 581c865 commit 6315c36
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2
jobs:
build:
docker:
- image: circleci/node:11.10.1
- image: cimg/node:12.22
steps:
- checkout

Expand Down
11 changes: 8 additions & 3 deletions .ldrelease/config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
version: 2

repo:
public: js-sdk-common
private: js-sdk-common-private
Expand All @@ -6,9 +8,12 @@ publications:
- url: https://www.npmjs.com/package/launchdarkly-js-sdk-common
description: npm

template:
name: npm
jobs:
- docker:
image: node:12-buster
template:
name: npm

documentation:
githubPages: true
gitHubPages: true
title: LaunchDarkly Javascript SDK Core Components
12 changes: 0 additions & 12 deletions docs/typedoc.js

This file was deleted.

20 changes: 6 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"dependencies": {
"base64-js": "^1.3.0",
"fast-deep-equal": "^2.0.1",
"uuid": "^8.0.0"
"uuid": "^3.3.2"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/EventSender.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as errors from './errors';
import * as utils from './utils';
const { v1: uuidv1 } = require('uuid');
import uuidv1 from 'uuid/v1';

const MAX_URL_LENGTH = 2000;

Expand Down
2 changes: 1 addition & 1 deletion src/UserValidator.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { v1: uuidv1 } = require('uuid');
import uuidv1 from 'uuid/v1';

import * as errors from './errors';
import * as messages from './messages';
Expand Down
2 changes: 1 addition & 1 deletion src/diagnosticEvents.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { v1: uuidv1 } = require('uuid');
const uuidv1 = require('uuid/v1');
// Note that in the diagnostic events spec, these IDs are to be generated with UUID v4. However,
// in JS we were already using v1 for unique user keys, so to avoid bringing in two packages we
// will use v1 here as well.
Expand Down
5 changes: 5 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,11 @@ export function initialize(env, user, specifiedOptions, platform, extraOptionDef
return;
}

// The following logic was used only for the JS browser SDK (js-client-sdk) and
// is no longer needed as of version 2.9.13 of that SDK. The other client-side
// JS-based SDKs did not define customEventFilter, and now none of them do. We
// can remove this in the next major version of the common code, when it's OK to
// make breaking changes to our internal API contracts.
if (platform.customEventFilter && !platform.customEventFilter(key)) {
logger.warn(messages.unknownCustomEventKey(key));
}
Expand Down
1 change: 1 addition & 0 deletions src/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export const localStorageUnavailableForUserId = function() {

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

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

0 comments on commit 6315c36

Please sign in to comment.