@launchdarkly/js-server-sdk-common
Advanced tools
Comparing version 2.9.1 to 2.10.0
@@ -11,2 +11,9 @@ # Changelog | ||
## [2.10.0](https://github.com/launchdarkly/js-core/compare/js-server-sdk-common-v2.9.1...js-server-sdk-common-v2.10.0) (2024-11-14) | ||
### Features | ||
* Add support for getting the logger from server-side SDKs. ([#684](https://github.com/launchdarkly/js-core/issues/684)) ([1c411a1](https://github.com/launchdarkly/js-core/commit/1c411a15e308520dc7a0f20af76045f84d53e8a4)) | ||
## [2.9.1](https://github.com/launchdarkly/js-core/compare/js-server-sdk-common-v2.9.0...js-server-sdk-common-v2.9.1) (2024-11-04) | ||
@@ -13,0 +20,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { LDContext, LDEvaluationDetail, LDEvaluationDetailTyped, LDFlagValue } from '@launchdarkly/js-sdk-common'; | ||
import { LDContext, LDEvaluationDetail, LDEvaluationDetailTyped, LDFlagValue, LDLogger } from '@launchdarkly/js-sdk-common'; | ||
import { LDMigrationOpEvent, LDMigrationVariation } from './data'; | ||
@@ -402,3 +402,9 @@ import { LDFlagsState } from './data/LDFlagsState'; | ||
addHook?(hook: Hook): void; | ||
/** | ||
* Get the logger used by this LDClient instance. | ||
* | ||
* For all platforms that support logging the logger should be present. | ||
*/ | ||
get logger(): LDLogger | undefined; | ||
} | ||
//# sourceMappingURL=LDClient.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import { internal, LDContext, LDEvaluationDetail, LDEvaluationDetailTyped, Platform } from '@launchdarkly/js-sdk-common'; | ||
import { internal, LDContext, LDEvaluationDetail, LDEvaluationDetailTyped, LDLogger, Platform } from '@launchdarkly/js-sdk-common'; | ||
import { LDClient, LDFlagsState, LDFlagsStateOptions, LDMigrationOpEvent, LDMigrationStage, LDMigrationVariation, LDOptions } from './api'; | ||
@@ -38,2 +38,3 @@ import { Hook } from './api/integrations/Hook'; | ||
private _hookRunner; | ||
get logger(): LDLogger | undefined; | ||
/** | ||
@@ -40,0 +41,0 @@ * Intended for use by platform specific client implementations. |
@@ -47,2 +47,5 @@ "use strict"; | ||
class LDClientImpl { | ||
get logger() { | ||
return this._logger; | ||
} | ||
constructor(_sdkKey, _platform, options, callbacks, internalOptions) { | ||
@@ -49,0 +52,0 @@ var _a, _b, _c, _d, _e; |
{ | ||
"name": "@launchdarkly/js-server-sdk-common", | ||
"version": "2.9.1", | ||
"version": "2.10.0", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
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
632727
8732