@launchdarkly/js-server-sdk-common
Advanced tools
Comparing version 2.4.0 to 2.4.1
@@ -11,2 +11,16 @@ # Changelog | ||
## [2.4.1](https://github.com/launchdarkly/js-core/compare/js-server-sdk-common-v2.4.0...js-server-sdk-common-v2.4.1) (2024-04-26) | ||
### Bug Fixes | ||
* Produce a warning when track is called with a non-numeric metric value. ([#449](https://github.com/launchdarkly/js-core/issues/449)) ([6799742](https://github.com/launchdarkly/js-core/commit/6799742a7914d32b3313e54408f0a2a3dda3ff5c)) | ||
### Dependencies | ||
* The following workspace dependencies were updated | ||
* dependencies | ||
* @launchdarkly/js-sdk-common bumped from 2.4.1 to 2.4.2 | ||
## [2.4.0](https://github.com/launchdarkly/js-core/compare/js-server-sdk-common-v2.3.0...js-server-sdk-common-v2.4.0) (2024-04-16) | ||
@@ -13,0 +27,0 @@ |
@@ -351,3 +351,3 @@ "use strict"; | ||
track(key, context, data, metricValue) { | ||
var _a; | ||
var _a, _b; | ||
const checkedContext = js_sdk_common_1.Context.fromLDContext(context); | ||
@@ -358,2 +358,6 @@ if (!checkedContext.valid) { | ||
} | ||
// 0 is valid, so do not truthy check the metric value | ||
if (metricValue !== undefined && !js_sdk_common_1.TypeValidators.Number.is(metricValue)) { | ||
(_b = this.logger) === null || _b === void 0 ? void 0 : _b.warn(ClientMessages.invalidMetricValue(typeof metricValue)); | ||
} | ||
this.eventProcessor.sendEvent(this.eventFactoryDefault.customEvent(key, checkedContext, data, metricValue)); | ||
@@ -360,0 +364,0 @@ } |
{ | ||
"name": "@launchdarkly/js-server-sdk-common", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"type": "commonjs", | ||
@@ -30,3 +30,3 @@ "main": "./dist/index.js", | ||
"dependencies": { | ||
"@launchdarkly/js-sdk-common": "2.4.1", | ||
"@launchdarkly/js-sdk-common": "2.4.2", | ||
"semver": "7.5.4" | ||
@@ -33,0 +33,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
618333
8626
+ Added@launchdarkly/js-sdk-common@2.4.2(transitive)
- Removed@launchdarkly/js-sdk-common@2.4.1(transitive)