@launchdarkly/js-sdk-common 2.32.2 → 2.32.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/cjs/datasource/CompositeDataSource.d.ts +4 -1
- package/dist/cjs/datasource/CompositeDataSource.d.ts.map +1 -1
- package/dist/cjs/index.cjs +925 -1738
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/datasource/CompositeDataSource.d.ts +4 -1
- package/dist/esm/datasource/CompositeDataSource.d.ts.map +1 -1
- package/dist/esm/index.mjs +866 -1737
- package/dist/esm/index.mjs.map +1 -1
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@launchdarkly/js-sdk-common` will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org).
|
|
4
4
|
|
|
5
|
+
## [2.32.3](https://github.com/launchdarkly/js-core/compare/js-sdk-common-v2.32.2...js-sdk-common-v2.32.3) (2026-11-18)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* Initialize the server SDK from FDv2 payloads without a selector ([#2193](https://github.com/launchdarkly/js-core/issues/2193)) ([10c6941](https://github.com/launchdarkly/js-core/commit/10c6941d717ab007198417d8fc92d526571758ec))
|
|
11
|
+
|
|
5
12
|
## [2.32.2](https://github.com/launchdarkly/js-core/compare/js-sdk-common-v2.32.1...js-sdk-common-v2.32.2) (2026-11-06)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -22,6 +22,7 @@ export declare class CompositeDataSource implements DataSource {
|
|
|
22
22
|
private readonly _logger?;
|
|
23
23
|
private readonly _transitionConditions;
|
|
24
24
|
private readonly _backoff;
|
|
25
|
+
private readonly _onInitializersExhausted?;
|
|
25
26
|
private _initPhaseActive;
|
|
26
27
|
private _initFactories;
|
|
27
28
|
private _syncFactories;
|
|
@@ -38,8 +39,10 @@ export declare class CompositeDataSource implements DataSource {
|
|
|
38
39
|
* @param _logger for logging
|
|
39
40
|
* @param _transitionConditions to control automated transition between datasources. Typically only used for testing.
|
|
40
41
|
* @param _backoff to control delay between transitions. Typically only used for testing.
|
|
42
|
+
* @param _onInitializersExhausted called before starting synchronizers when all initializers have run.
|
|
41
43
|
*/
|
|
42
|
-
constructor(initializers: LDDataSourceFactory[], synchronizers: LDDataSourceFactory[], fdv1Synchronizers: LDDataSourceFactory[], _logger?: LDLogger | undefined, _transitionConditions?: TransitionConditions, _backoff?: Backoff);
|
|
44
|
+
constructor(initializers: LDDataSourceFactory[], synchronizers: LDDataSourceFactory[], fdv1Synchronizers: LDDataSourceFactory[], _logger?: LDLogger | undefined, _transitionConditions?: TransitionConditions, _backoff?: Backoff, _onInitializersExhausted?: (() => void) | undefined);
|
|
45
|
+
get initializing(): boolean;
|
|
43
46
|
start(dataCallback: (basis: boolean, data: any) => void, statusCallback: (status: DataSourceState, err?: any) => void, selectorGetter?: () => string | undefined): Promise<void>;
|
|
44
47
|
stop(): Promise<void>;
|
|
45
48
|
private _reset;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompositeDataSource.d.ts","sourceRoot":"","sources":["../../src/datasource/CompositeDataSource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,OAAO,EACL,UAAU,EACV,eAAe,EACf,mBAAmB,EACpB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,OAAO,EAAkB,MAAM,WAAW,CAAC;AAOpD;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,CAAC;AAE1E;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;KAChC,CAAC,IAAI,eAAe,CAAC,CAAC,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,UAAU,CAAA;KAAE;CACxE,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