@launchdarkly/js-server-sdk-common
Advanced tools
Comparing version 2.7.0 to 2.8.0
@@ -11,2 +11,16 @@ # Changelog | ||
## [2.8.0](https://github.com/launchdarkly/js-core/compare/js-server-sdk-common-v2.7.0...js-server-sdk-common-v2.8.0) (2024-10-09) | ||
### Features | ||
* adds datasource status to sdk-client ([#590](https://github.com/launchdarkly/js-core/issues/590)) ([6f26204](https://github.com/launchdarkly/js-core/commit/6f262045b76836e5d2f5ccc2be433094993fcdbb)) | ||
### Dependencies | ||
* The following workspace dependencies were updated | ||
* dependencies | ||
* @launchdarkly/js-sdk-common bumped from 2.9.0 to 2.10.0 | ||
## [2.7.0](https://github.com/launchdarkly/js-core/compare/js-server-sdk-common-v2.6.1...js-server-sdk-common-v2.7.0) (2024-09-26) | ||
@@ -13,0 +27,0 @@ |
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
/** | ||
@@ -3,0 +4,0 @@ * Additional parameters to pass to the Node HTTPS API for secure requests. These can include any |
@@ -28,3 +28,3 @@ "use strict"; | ||
(_b = this.logger) === null || _b === void 0 ? void 0 : _b.debug(`Invalid JSON follows: ${data}`); | ||
(_c = this.errorHandler) === null || _c === void 0 ? void 0 : _c.call(this, new js_sdk_common_1.LDPollingError('Malformed JSON data in polling response')); | ||
(_c = this.errorHandler) === null || _c === void 0 ? void 0 : _c.call(this, new js_sdk_common_1.LDPollingError(js_sdk_common_1.DataSourceErrorKind.InvalidData, 'Malformed JSON data in polling response')); | ||
}; | ||
@@ -43,3 +43,3 @@ const startTime = Date.now(); | ||
(_b = this.logger) === null || _b === void 0 ? void 0 : _b.error(message); | ||
(_c = this.errorHandler) === null || _c === void 0 ? void 0 : _c.call(this, new js_sdk_common_1.LDPollingError(message, status)); | ||
(_c = this.errorHandler) === null || _c === void 0 ? void 0 : _c.call(this, new js_sdk_common_1.LDPollingError(js_sdk_common_1.DataSourceErrorKind.ErrorResponse, message, status)); | ||
// It is not recoverable, return and do not trigger another | ||
@@ -46,0 +46,0 @@ // poll. |
@@ -42,3 +42,3 @@ "use strict"; | ||
if (res.status !== 200 && res.status !== 304) { | ||
const err = new js_sdk_common_1.LDStreamingError(`Unexpected status code: ${res.status}`, res.status); | ||
const err = new js_sdk_common_1.LDPollingError(js_sdk_common_1.DataSourceErrorKind.ErrorResponse, `Unexpected status code: ${res.status}`, res.status); | ||
return cb(err, undefined); | ||
@@ -45,0 +45,0 @@ } |
{ | ||
"name": "@launchdarkly/js-server-sdk-common", | ||
"version": "2.7.0", | ||
"version": "2.8.0", | ||
"type": "commonjs", | ||
@@ -30,7 +30,6 @@ "main": "./dist/index.js", | ||
"dependencies": { | ||
"@launchdarkly/js-sdk-common": "2.9.0", | ||
"@launchdarkly/js-sdk-common": "2.10.0", | ||
"semver": "7.5.4" | ||
}, | ||
"devDependencies": { | ||
"@launchdarkly/private-js-mocks": "0.0.1", | ||
"@trivago/prettier-plugin-sort-imports": "^4.1.1", | ||
@@ -37,0 +36,0 @@ "@types/jest": "^29.4.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
628622
19
8714
+ Added@launchdarkly/js-sdk-common@2.10.0(transitive)
- Removed@launchdarkly/js-sdk-common@2.9.0(transitive)