Skip to content

Commit 00bc7ba

Browse files
Releasing version 3.0.0
1 parent 7972d8c commit 00bc7ba

File tree

3 files changed

+18
-9
lines changed

3 files changed

+18
-9
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22

33
All notable changes to the `launchdarkly-js-sdk-common` package will be documented in this file. Changes that affect the dependent SDKs such as `launchdarkly-js-client-sdk` should also be logged in those projects, in the next release that uses the updated version of this package. This project adheres to [Semantic Versioning](http://semver.org).
44

5+
## [3.0.0] - 2019-12-13
6+
### Added:
7+
- Configuration property `eventCapacity`: the maximum number of analytics events (not counting evaluation counters) that can be held at once, to prevent the SDK from consuming unexpected amounts of memory in case an application generates events unusually rapidly. In JavaScript code this would not normally be an issue, since the SDK flushes events every two seconds by default, but you may wish to increase this value if you will intentionally be generating a high volume of custom or identify events. The default value is 100.
8+
9+
### Changed:
10+
- (Breaking change) The `extraDefaults` parameter to the internal common `initialize` method is now `extraOptionDefs` and has a different format, allowing for more flexible validation.
11+
- The SDK now logs a warning if any configuration property has an inappropriate type, such as `baseUri:3` or `sendEvents:"no"`. For boolean properties, the SDK will still interpret the value in terms of truthiness, which was the previous behavior. For all other types, since there's no such commonly accepted way to coerce the type, it will fall back to the default setting for that property; previously, the behavior was undefined but most such mistakes would have caused the SDK to throw an exception at some later point.
12+
- Removed or updated some development dependencies that were causing vulnerability warnings.
13+
14+
### Deprecated:
15+
- The `samplingInterval` configuration property was deprecated in the code in the previous minor version release, and in the changelog, but the deprecation notice was accidentally omitted from the documentation comments. It is hereby deprecated again.
16+
17+
518
## [2.14.1] - 2019-11-04
619
### Fixed:
720
- Removed uses of `Object.assign` that caused errors in Internet Explorer unless a polyfill for that function was present.

package-lock.json

Lines changed: 4 additions & 8 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
@@ -1,6 +1,6 @@
11
{
22
"name": "launchdarkly-js-sdk-common",
3-
"version": "2.14.1",
3+
"version": "3.0.0",
44
"description": "LaunchDarkly SDK for JavaScript - common code",
55
"author": "LaunchDarkly <team@launchdarkly.com>",
66
"license": "Apache-2.0",

0 commit comments

Comments
 (0)