@launchdarkly/js-server-sdk-common
Advanced tools
Comparing version 2.4.2 to 2.4.3
@@ -11,2 +11,16 @@ # Changelog | ||
## [2.4.3](https://github.com/launchdarkly/js-core/compare/js-server-sdk-common-v2.4.2...js-server-sdk-common-v2.4.3) (2024-06-04) | ||
### Bug Fixes | ||
* Cleanup timeout timer for waitForInitialization ([#478](https://github.com/launchdarkly/js-core/issues/478)) ([fccbfac](https://github.com/launchdarkly/js-core/commit/fccbfaccb88c7a66f86a2981b74445c894618a06)) | ||
### Dependencies | ||
* The following workspace dependencies were updated | ||
* dependencies | ||
* @launchdarkly/js-sdk-common bumped from 2.4.2 to 2.5.0 | ||
## [2.4.2](https://github.com/launchdarkly/js-core/compare/js-server-sdk-common-v2.4.1...js-server-sdk-common-v2.4.2) (2024-05-31) | ||
@@ -13,0 +27,0 @@ |
@@ -493,4 +493,7 @@ "use strict"; | ||
if (timeout) { | ||
const timeoutPromise = (0, js_sdk_common_1.timedPromise)(timeout, 'waitForInitialization'); | ||
return Promise.race([basePromise, timeoutPromise.then(() => this)]).catch((reason) => { | ||
const cancelableTimeout = (0, js_sdk_common_1.cancelableTimedPromise)(timeout, 'waitForInitialization'); | ||
return Promise.race([ | ||
basePromise.then(() => cancelableTimeout.cancel()).then(() => this), | ||
cancelableTimeout.promise.then(() => this), | ||
]).catch((reason) => { | ||
if (reason instanceof js_sdk_common_1.LDTimeoutError) { | ||
@@ -497,0 +500,0 @@ logger === null || logger === void 0 ? void 0 : logger.error(reason.message); |
{ | ||
"name": "@launchdarkly/js-server-sdk-common", | ||
"version": "2.4.2", | ||
"version": "2.4.3", | ||
"type": "commonjs", | ||
@@ -30,3 +30,3 @@ "main": "./dist/index.js", | ||
"dependencies": { | ||
"@launchdarkly/js-sdk-common": "2.4.2", | ||
"@launchdarkly/js-sdk-common": "2.5.0", | ||
"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
619561
8630
+ Added@launchdarkly/js-sdk-common@2.5.0(transitive)
- Removed@launchdarkly/js-sdk-common@2.4.2(transitive)