@launchdarkly/js-client-sdk-common 1.7.0 → 1.9.0
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 +54 -0
- package/dist/DataManager.d.ts +64 -0
- package/dist/DataManager.d.ts.map +1 -0
- package/dist/HookRunner.d.ts +12 -0
- package/dist/HookRunner.d.ts.map +1 -0
- package/dist/LDClientImpl.d.ts +14 -48
- package/dist/LDClientImpl.d.ts.map +1 -1
- package/dist/LDEmitter.d.ts +13 -1
- package/dist/LDEmitter.d.ts.map +1 -1
- package/dist/api/LDClient.d.ts +13 -14
- package/dist/api/LDClient.d.ts.map +1 -1
- package/dist/api/LDOptions.d.ts +28 -12
- package/dist/api/LDOptions.d.ts.map +1 -1
- package/dist/api/index.d.ts +2 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/integrations/Hooks.d.ts +133 -0
- package/dist/api/integrations/Hooks.d.ts.map +1 -0
- package/dist/api/integrations/index.d.ts +2 -0
- package/dist/api/integrations/index.d.ts.map +1 -0
- package/dist/configuration/Configuration.d.ts +59 -19
- package/dist/configuration/Configuration.d.ts.map +1 -1
- package/dist/configuration/index.d.ts +2 -2
- package/dist/configuration/index.d.ts.map +1 -1
- package/dist/configuration/validators.d.ts.map +1 -1
- package/dist/context/addAutoEnv.d.ts +3 -3
- package/dist/context/addAutoEnv.d.ts.map +1 -1
- package/dist/crypto/digest.d.ts +3 -0
- package/dist/crypto/digest.d.ts.map +1 -0
- package/dist/datasource/DataSourceEventHandler.d.ts +16 -0
- package/dist/datasource/DataSourceEventHandler.d.ts.map +1 -0
- package/dist/datasource/DataSourceStatus.d.ts +39 -0
- package/dist/datasource/DataSourceStatus.d.ts.map +1 -0
- package/dist/datasource/DataSourceStatusErrorInfo.d.ts +8 -0
- package/dist/datasource/DataSourceStatusErrorInfo.d.ts.map +1 -0
- package/dist/datasource/DataSourceStatusManager.d.ts +40 -0
- package/dist/datasource/DataSourceStatusManager.d.ts.map +1 -0
- package/dist/diagnostics/createDiagnosticsInitConfig.d.ts +1 -1
- package/dist/diagnostics/createDiagnosticsInitConfig.d.ts.map +1 -1
- package/dist/diagnostics/createDiagnosticsManager.d.ts +1 -1
- package/dist/diagnostics/createDiagnosticsManager.d.ts.map +1 -1
- package/dist/events/createEventProcessor.d.ts +3 -3
- package/dist/events/createEventProcessor.d.ts.map +1 -1
- package/dist/flag-manager/FlagManager.d.ts +39 -15
- package/dist/flag-manager/FlagManager.d.ts.map +1 -1
- package/dist/flag-manager/FlagPersistence.d.ts +2 -1
- package/dist/flag-manager/FlagPersistence.d.ts.map +1 -1
- package/dist/flag-manager/FlagStore.d.ts.map +1 -1
- package/dist/index.cjs +1686 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +16 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +1659 -0
- package/dist/index.mjs.map +1 -0
- package/dist/polling/PollingProcessor.d.ts.map +1 -1
- package/dist/polling/Requestor.d.ts +16 -1
- package/dist/polling/Requestor.d.ts.map +1 -1
- package/dist/storage/namespaceUtils.d.ts +7 -7
- package/dist/storage/namespaceUtils.d.ts.map +1 -1
- package/dist/streaming/DataSourceConfig.d.ts +24 -0
- package/dist/streaming/DataSourceConfig.d.ts.map +1 -0
- package/dist/streaming/StreamingProcessor.d.ts +33 -0
- package/dist/streaming/StreamingProcessor.d.ts.map +1 -0
- package/dist/streaming/index.d.ts +4 -0
- package/dist/streaming/index.d.ts.map +1 -0
- package/dist/types/index.d.ts +3 -3
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +18 -7
- package/dist/LDClientImpl.js +0 -460
- package/dist/LDClientImpl.js.map +0 -1
- package/dist/LDEmitter.js +0 -64
- package/dist/LDEmitter.js.map +0 -1
- package/dist/api/ConnectionMode.js +0 -3
- package/dist/api/ConnectionMode.js.map +0 -1
- package/dist/api/LDClient.js +0 -3
- package/dist/api/LDClient.js.map +0 -1
- package/dist/api/LDEvaluationDetail.js +0 -3
- package/dist/api/LDEvaluationDetail.js.map +0 -1
- package/dist/api/LDIdentifyOptions.js +0 -3
- package/dist/api/LDIdentifyOptions.js.map +0 -1
- package/dist/api/LDOptions.js +0 -3
- package/dist/api/LDOptions.js.map +0 -1
- package/dist/api/index.js +0 -20
- package/dist/api/index.js.map +0 -1
- package/dist/configuration/Configuration.js +0 -73
- package/dist/configuration/Configuration.js.map +0 -1
- package/dist/configuration/index.js +0 -5
- package/dist/configuration/index.js.map +0 -1
- package/dist/configuration/validators.js +0 -37
- package/dist/configuration/validators.js.map +0 -1
- package/dist/context/addAutoEnv.js +0 -114
- package/dist/context/addAutoEnv.js.map +0 -1
- package/dist/context/ensureKey.js +0 -72
- package/dist/context/ensureKey.js.map +0 -1
- package/dist/diagnostics/createDiagnosticsInitConfig.js +0 -19
- package/dist/diagnostics/createDiagnosticsInitConfig.js.map +0 -1
- package/dist/diagnostics/createDiagnosticsManager.js +0 -12
- package/dist/diagnostics/createDiagnosticsManager.js.map +0 -1
- package/dist/evaluation/evaluationDetail.js +0 -20
- package/dist/evaluation/evaluationDetail.js.map +0 -1
- package/dist/events/EventFactory.js +0 -25
- package/dist/events/EventFactory.js.map +0 -1
- package/dist/events/createEventProcessor.js +0 -11
- package/dist/events/createEventProcessor.js.map +0 -1
- package/dist/flag-manager/ContextIndex.js +0 -64
- package/dist/flag-manager/ContextIndex.js.map +0 -1
- package/dist/flag-manager/FlagManager.js +0 -74
- package/dist/flag-manager/FlagManager.js.map +0 -1
- package/dist/flag-manager/FlagPersistence.js +0 -120
- package/dist/flag-manager/FlagPersistence.js.map +0 -1
- package/dist/flag-manager/FlagStore.js +0 -28
- package/dist/flag-manager/FlagStore.js.map +0 -1
- package/dist/flag-manager/FlagUpdater.js +0 -69
- package/dist/flag-manager/FlagUpdater.js.map +0 -1
- package/dist/flag-manager/ItemDescriptor.js +0 -3
- package/dist/flag-manager/ItemDescriptor.js.map +0 -1
- package/dist/flag-manager/calculateChangedKeys.js +0 -22
- package/dist/flag-manager/calculateChangedKeys.js.map +0 -1
- package/dist/index.js +0 -22
- package/dist/index.js.map +0 -1
- package/dist/polling/PollingProcessor.js +0 -79
- package/dist/polling/PollingProcessor.js.map +0 -1
- package/dist/polling/Requestor.js +0 -50
- package/dist/polling/Requestor.js.map +0 -1
- package/dist/storage/getOrGenerateKey.js +0 -21
- package/dist/storage/getOrGenerateKey.js.map +0 -1
- package/dist/storage/namespaceUtils.js +0 -61
- package/dist/storage/namespaceUtils.js.map +0 -1
- package/dist/types/index.js +0 -3
- package/dist/types/index.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,59 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.9.0](https://github.com/launchdarkly/js-core/compare/js-client-sdk-common-v1.8.0...js-client-sdk-common-v1.9.0) (2024-10-09)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* Add basic secure mode support for browser SDK. ([#598](https://github.com/launchdarkly/js-core/issues/598)) ([3389983](https://github.com/launchdarkly/js-core/commit/33899830781affbe986f3bb9df35e5c908884f99))
|
|
9
|
+
* Add bootstrap support. ([#600](https://github.com/launchdarkly/js-core/issues/600)) ([4e5dbee](https://github.com/launchdarkly/js-core/commit/4e5dbee48d6bb236b5febd872c910e809058a012))
|
|
10
|
+
* Add ESM support for common and common-client (rollup) ([#604](https://github.com/launchdarkly/js-core/issues/604)) ([8cd0cdc](https://github.com/launchdarkly/js-core/commit/8cd0cdce988f606b1efdf6bfd19484f6607db2e5))
|
|
11
|
+
* Add support for hooks. ([#605](https://github.com/launchdarkly/js-core/issues/605)) ([04d347b](https://github.com/launchdarkly/js-core/commit/04d347b25e01015134a2545be22bfd8b1d1e85cc))
|
|
12
|
+
* Add visibility handling to allow proactive event flushing. ([#607](https://github.com/launchdarkly/js-core/issues/607)) ([819a311](https://github.com/launchdarkly/js-core/commit/819a311db6f56e323bb84c925789ad4bd19ae4ba))
|
|
13
|
+
* adds datasource status to sdk-client ([#590](https://github.com/launchdarkly/js-core/issues/590)) ([6f26204](https://github.com/launchdarkly/js-core/commit/6f262045b76836e5d2f5ccc2be433094993fcdbb))
|
|
14
|
+
* adds support for individual flag change listeners ([#608](https://github.com/launchdarkly/js-core/issues/608)) ([da31436](https://github.com/launchdarkly/js-core/commit/da3143654331d7d2fd8ba76d9d995855dbf6c7a1))
|
|
15
|
+
* Browser-SDK Automatically start streaming based on event handlers. ([#592](https://github.com/launchdarkly/js-core/issues/592)) ([f2e5cbf](https://github.com/launchdarkly/js-core/commit/f2e5cbf1d0b3ae39a95881fecdcbefc11e9d0363))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* Ensure client logger is always wrapped in a safe logger. ([#599](https://github.com/launchdarkly/js-core/issues/599)) ([980e4da](https://github.com/launchdarkly/js-core/commit/980e4daaf32864e18f14b1e5e28e308dff0ae94f))
|
|
21
|
+
* Use flagVersion in analytics events. ([#611](https://github.com/launchdarkly/js-core/issues/611)) ([35fa033](https://github.com/launchdarkly/js-core/commit/35fa0332dc1553c82afd75c9a4770a4833f2dca3))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Dependencies
|
|
25
|
+
|
|
26
|
+
* The following workspace dependencies were updated
|
|
27
|
+
* dependencies
|
|
28
|
+
* @launchdarkly/js-sdk-common bumped from 2.9.0 to 2.10.0
|
|
29
|
+
|
|
30
|
+
## [1.8.0](https://github.com/launchdarkly/js-core/compare/js-client-sdk-common-v1.7.0...js-client-sdk-common-v1.8.0) (2024-09-26)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Features
|
|
34
|
+
|
|
35
|
+
* Add platform support for async hashing. ([#573](https://github.com/launchdarkly/js-core/issues/573)) ([9248035](https://github.com/launchdarkly/js-core/commit/9248035a88fba1c7375c5df22ef6b4a80a867983))
|
|
36
|
+
* Add support for conditional event source capabilities. ([#577](https://github.com/launchdarkly/js-core/issues/577)) ([fe82500](https://github.com/launchdarkly/js-core/commit/fe82500f28cf8d8311502098aa6cc2e73932064e))
|
|
37
|
+
* Add support for js-client-sdk style initialization. ([53f5bb8](https://github.com/launchdarkly/js-core/commit/53f5bb89754ff05405d481a959e75742fbd0d0a9))
|
|
38
|
+
* Add URLs for custom events and URL filtering. ([#587](https://github.com/launchdarkly/js-core/issues/587)) ([7131e69](https://github.com/launchdarkly/js-core/commit/7131e6905f19cc10a1374aae5e74cec66c7fd6de))
|
|
39
|
+
* Adds support for REPORT. ([#575](https://github.com/launchdarkly/js-core/issues/575)) ([916b724](https://github.com/launchdarkly/js-core/commit/916b72409b63abdf350e70cca41331c4204b6e95))
|
|
40
|
+
* Allow using custom user-agent name. ([#580](https://github.com/launchdarkly/js-core/issues/580)) ([ed5a206](https://github.com/launchdarkly/js-core/commit/ed5a206c86f496942664dd73f6f8a7c602a1de28))
|
|
41
|
+
* Implement goals for client-side SDKs. ([#585](https://github.com/launchdarkly/js-core/issues/585)) ([fd38a8f](https://github.com/launchdarkly/js-core/commit/fd38a8fa8560dad0c6721c2eaeed2f3f5c674900))
|
|
42
|
+
* Refactor data source connection handling. ([53f5bb8](https://github.com/launchdarkly/js-core/commit/53f5bb89754ff05405d481a959e75742fbd0d0a9))
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Bug Fixes
|
|
46
|
+
|
|
47
|
+
* Flag store should not access values from prototype. ([#567](https://github.com/launchdarkly/js-core/issues/567)) ([fca4d92](https://github.com/launchdarkly/js-core/commit/fca4d9293746d023a0a122110849bbf335aa3b62))
|
|
48
|
+
* Use flag value whenever provided even if variaiton is null or undefined. ([#581](https://github.com/launchdarkly/js-core/issues/581)) ([d11224c](https://github.com/launchdarkly/js-core/commit/d11224c64863c007f4f42f4c48683fd170dd2b32))
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
### Dependencies
|
|
52
|
+
|
|
53
|
+
* The following workspace dependencies were updated
|
|
54
|
+
* dependencies
|
|
55
|
+
* @launchdarkly/js-sdk-common bumped from 2.8.0 to 2.9.0
|
|
56
|
+
|
|
3
57
|
## [1.7.0](https://github.com/launchdarkly/js-core/compare/js-client-sdk-common-v1.6.0...js-client-sdk-common-v1.7.0) (2024-09-03)
|
|
4
58
|
|
|
5
59
|
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { Context, EventName, internal, LDContext, LDHeaders, LDLogger, Platform, ProcessStreamResponse, subsystem } from '@launchdarkly/js-sdk-common';
|
|
2
|
+
import { LDIdentifyOptions } from './api/LDIdentifyOptions';
|
|
3
|
+
import { Configuration } from './configuration/Configuration';
|
|
4
|
+
import DataSourceStatusManager from './datasource/DataSourceStatusManager';
|
|
5
|
+
import { FlagManager } from './flag-manager/FlagManager';
|
|
6
|
+
import LDEmitter from './LDEmitter';
|
|
7
|
+
import { DataSourcePaths } from './streaming';
|
|
8
|
+
export interface DataManager {
|
|
9
|
+
/**
|
|
10
|
+
* This function handles the data management aspects of the identification process.
|
|
11
|
+
*
|
|
12
|
+
* Implementation Note: The identifyResolve and identifyReject function resolve or reject the
|
|
13
|
+
* identify function at LDClient level. It is likely in individual implementations that these
|
|
14
|
+
* functions will be passed to other components, such as a datasource, do indicate when the
|
|
15
|
+
* identify process has been completed. The data manager identify function should return once
|
|
16
|
+
* everything has been set in motion to complete the identification process.
|
|
17
|
+
*
|
|
18
|
+
* @param identifyResolve Called to reject the identify operation.
|
|
19
|
+
* @param identifyReject Called to complete the identify operation.
|
|
20
|
+
* @param context The context being identified.
|
|
21
|
+
* @param identifyOptions Options for identification.
|
|
22
|
+
*/
|
|
23
|
+
identify(identifyResolve: () => void, identifyReject: (err: Error) => void, context: Context, identifyOptions?: LDIdentifyOptions): Promise<void>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Factory interface for constructing data managers.
|
|
27
|
+
*/
|
|
28
|
+
export interface DataManagerFactory {
|
|
29
|
+
(flagManager: FlagManager, configuration: Configuration, baseHeaders: LDHeaders, emitter: LDEmitter, diagnosticsManager?: internal.DiagnosticsManager): DataManager;
|
|
30
|
+
}
|
|
31
|
+
export interface ConnectionParams {
|
|
32
|
+
queryParameters?: {
|
|
33
|
+
key: string;
|
|
34
|
+
value: string;
|
|
35
|
+
}[];
|
|
36
|
+
}
|
|
37
|
+
export declare abstract class BaseDataManager implements DataManager {
|
|
38
|
+
protected readonly platform: Platform;
|
|
39
|
+
protected readonly flagManager: FlagManager;
|
|
40
|
+
protected readonly credential: string;
|
|
41
|
+
protected readonly config: Configuration;
|
|
42
|
+
protected readonly getPollingPaths: () => DataSourcePaths;
|
|
43
|
+
protected readonly getStreamingPaths: () => DataSourcePaths;
|
|
44
|
+
protected readonly baseHeaders: LDHeaders;
|
|
45
|
+
protected readonly emitter: LDEmitter;
|
|
46
|
+
protected readonly diagnosticsManager?: internal.DiagnosticsManager | undefined;
|
|
47
|
+
protected updateProcessor?: subsystem.LDStreamProcessor;
|
|
48
|
+
protected readonly logger: LDLogger;
|
|
49
|
+
protected context?: Context;
|
|
50
|
+
private connectionParams?;
|
|
51
|
+
protected readonly dataSourceStatusManager: DataSourceStatusManager;
|
|
52
|
+
private readonly dataSourceEventHandler;
|
|
53
|
+
constructor(platform: Platform, flagManager: FlagManager, credential: string, config: Configuration, getPollingPaths: () => DataSourcePaths, getStreamingPaths: () => DataSourcePaths, baseHeaders: LDHeaders, emitter: LDEmitter, diagnosticsManager?: internal.DiagnosticsManager | undefined);
|
|
54
|
+
/**
|
|
55
|
+
* Set additional connection parameters for requests polling/streaming.
|
|
56
|
+
*/
|
|
57
|
+
protected setConnectionParams(connectionParams?: ConnectionParams): void;
|
|
58
|
+
abstract identify(identifyResolve: () => void, identifyReject: (err: Error) => void, context: Context, identifyOptions?: LDIdentifyOptions): Promise<void>;
|
|
59
|
+
protected createPollingProcessor(context: LDContext, checkedContext: Context, identifyResolve?: () => void, identifyReject?: (err: Error) => void): void;
|
|
60
|
+
protected createStreamingProcessor(context: LDContext, checkedContext: Context, identifyResolve?: () => void, identifyReject?: (err: Error) => void): void;
|
|
61
|
+
protected createStreamListeners(context: Context, identifyResolve?: () => void): Map<EventName, ProcessStreamResponse>;
|
|
62
|
+
private decorateProcessorWithStatusReporting;
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=DataManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataManager.d.ts","sourceRoot":"","sources":["../src/DataManager.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,SAAS,EACT,QAAQ,EACR,SAAS,EACT,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,qBAAqB,EACrB,SAAS,EACV,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAG9D,OAAO,uBAAuB,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,SAAS,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAE,eAAe,EAAsB,MAAM,aAAa,CAAC;AAGlE,MAAM,WAAW,WAAW;IAC1B;;;;;;;;;;;;;OAaG;IACH,QAAQ,CACN,eAAe,EAAE,MAAM,IAAI,EAC3B,cAAc,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,EACpC,OAAO,EAAE,OAAO,EAChB,eAAe,CAAC,EAAE,iBAAiB,GAClC,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,CACE,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,aAAa,EAC5B,WAAW,EAAE,SAAS,EACtB,OAAO,EAAE,SAAS,EAClB,kBAAkB,CAAC,EAAE,QAAQ,CAAC,kBAAkB,GAC/C,WAAW,CAAC;CAChB;AAED,MAAM,WAAW,gBAAgB;IAC/B,eAAe,CAAC,EAAE;QAAE,GAAG,EAA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,EAAE,MAAM,IAAI,EAC3B,cAAc,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,EACpC,OAAO,EAAE,OAAO,EAChB,eAAe,CAAC,EAAE,iBAAiB,GAClC,OAAO,CAAC,IAAI,CAAC;IAEhB,SAAS,CAAC,sBAAsB,CAC9B,OAAO,EAAE,SAAS,EAClB,cAAc,EAAE,OAAO,EACvB,eAAe,CAAC,EAAE,MAAM,IAAI,EAC5B,cAAc,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI;IAiCvC,SAAS,CAAC,wBAAwB,CAChC,OAAO,EAAE,SAAS,EAClB,cAAc,EAAE,OAAO,EACvB,eAAe,CAAC,EAAE,MAAM,IAAI,EAC5B,cAAc,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI;IA+BvC,SAAS,CAAC,qBAAqB,CAC7B,OAAO,EAAE,OAAO,EAChB,eAAe,CAAC,EAAE,MAAM,IAAI,GAC3B,GAAG,CAAC,SAAS,EAAE,qBAAqB,CAAC;IA4BxC,OAAO,CAAC,oCAAoC;CAoB7C"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LDContext, LDLogger } from '@launchdarkly/js-sdk-common';
|
|
2
|
+
import { Hook, IdentifySeriesResult } from './api/integrations/Hooks';
|
|
3
|
+
import { LDEvaluationDetail } from './api/LDEvaluationDetail';
|
|
4
|
+
export default class HookRunner {
|
|
5
|
+
private readonly logger;
|
|
6
|
+
private readonly hooks;
|
|
7
|
+
constructor(logger: LDLogger, initialHooks: Hook[]);
|
|
8
|
+
withEvaluation(key: string, context: LDContext | undefined, defaultValue: unknown, method: () => LDEvaluationDetail): LDEvaluationDetail;
|
|
9
|
+
identify(context: LDContext, timeout: number | undefined): (result: IdentifySeriesResult) => void;
|
|
10
|
+
addHook(hook: Hook): void;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=HookRunner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HookRunner.d.ts","sourceRoot":"","sources":["../src/HookRunner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAElE,OAAO,EAGL,IAAI,EAGJ,oBAAoB,EACrB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AA0G9D,MAAM,CAAC,OAAO,OAAO,UAAU;IAI3B,OAAO,CAAC,QAAQ,CAAC,MAAM;IAHzB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAc;gBAGjB,MAAM,EAAE,QAAQ,EACjC,YAAY,EAAE,IAAI,EAAE;IAKtB,cAAc,CACZ,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,SAAS,GAAG,SAAS,EAC9B,YAAY,EAAE,OAAO,EACrB,MAAM,EAAE,MAAM,kBAAkB,GAC/B,kBAAkB;IAiBrB,QAAQ,CACN,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,MAAM,GAAG,SAAS,GAC1B,CAAC,MAAM,EAAE,oBAAoB,KAAK,IAAI;IAYzC,OAAO,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI;CAG1B"}
|
package/dist/LDClientImpl.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { AutoEnvAttributes, internal, LDContext, LDFlagSet, LDFlagValue, LDLogger, Platform } from '@launchdarkly/js-sdk-common';
|
|
2
|
-
import {
|
|
1
|
+
import { AutoEnvAttributes, Context, internal, LDContext, LDFlagSet, LDFlagValue, LDLogger, Platform } from '@launchdarkly/js-sdk-common';
|
|
2
|
+
import { Hook, LDClient, type LDOptions } from './api';
|
|
3
3
|
import { LDEvaluationDetail, LDEvaluationDetailTyped } from './api/LDEvaluationDetail';
|
|
4
4
|
import { LDIdentifyOptions } from './api/LDIdentifyOptions';
|
|
5
|
-
import {
|
|
5
|
+
import { LDClientInternalOptions } from './configuration';
|
|
6
|
+
import { DataManager, DataManagerFactory } from './DataManager';
|
|
7
|
+
import LDEmitter, { EventName } from './LDEmitter';
|
|
6
8
|
export default class LDClientImpl implements LDClient {
|
|
7
9
|
readonly sdkKey: string;
|
|
8
10
|
readonly autoEnvAttributes: AutoEnvAttributes;
|
|
@@ -18,27 +20,16 @@ export default class LDClientImpl implements LDClient {
|
|
|
18
20
|
private readonly highTimeoutThreshold;
|
|
19
21
|
private eventFactoryDefault;
|
|
20
22
|
private eventFactoryWithReasons;
|
|
21
|
-
|
|
23
|
+
protected emitter: LDEmitter;
|
|
22
24
|
private flagManager;
|
|
23
|
-
private readonly clientContext;
|
|
24
25
|
private eventSendingEnabled;
|
|
25
|
-
private
|
|
26
|
-
|
|
26
|
+
private baseHeaders;
|
|
27
|
+
protected dataManager: DataManager;
|
|
28
|
+
private hookRunner;
|
|
27
29
|
/**
|
|
28
30
|
* Creates the client object synchronously. No async, no network calls.
|
|
29
31
|
*/
|
|
30
|
-
constructor(sdkKey: string, autoEnvAttributes: AutoEnvAttributes, platform: Platform, options: LDOptions, internalOptions?:
|
|
31
|
-
/**
|
|
32
|
-
* Sets the SDK connection mode.
|
|
33
|
-
*
|
|
34
|
-
* @param mode - One of supported {@link ConnectionMode}. Default is 'streaming'.
|
|
35
|
-
*/
|
|
36
|
-
setConnectionMode(mode: ConnectionMode): Promise<void>;
|
|
37
|
-
/**
|
|
38
|
-
* Gets the SDK connection mode.
|
|
39
|
-
*/
|
|
40
|
-
getConnectionMode(): ConnectionMode;
|
|
41
|
-
isOffline(): boolean;
|
|
32
|
+
constructor(sdkKey: string, autoEnvAttributes: AutoEnvAttributes, platform: Platform, options: LDOptions, dataManagerFactory: DataManagerFactory, internalOptions?: LDClientInternalOptions);
|
|
42
33
|
allFlags(): LDFlagSet;
|
|
43
34
|
close(): Promise<void>;
|
|
44
35
|
flush(): Promise<{
|
|
@@ -46,24 +37,7 @@ export default class LDClientImpl implements LDClient {
|
|
|
46
37
|
result: boolean;
|
|
47
38
|
}>;
|
|
48
39
|
getContext(): LDContext | undefined;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Generates the url path for streaming.
|
|
52
|
-
*
|
|
53
|
-
* @protected This function must be overridden in subclasses for streaming
|
|
54
|
-
* to work.
|
|
55
|
-
* @param _context The LDContext object
|
|
56
|
-
*/
|
|
57
|
-
protected createStreamUriPath(_context: LDContext): string;
|
|
58
|
-
/**
|
|
59
|
-
* Generates the url path for polling.
|
|
60
|
-
* @param _context
|
|
61
|
-
*
|
|
62
|
-
* @protected This function must be overridden in subclasses for polling
|
|
63
|
-
* to work.
|
|
64
|
-
* @param _context The LDContext object
|
|
65
|
-
*/
|
|
66
|
-
protected createPollUriPath(_context: LDContext): string;
|
|
40
|
+
protected getInternalContext(): Context | undefined;
|
|
67
41
|
private createIdentifyPromise;
|
|
68
42
|
/**
|
|
69
43
|
* Identifies a context to LaunchDarkly. See {@link LDClient.identify}.
|
|
@@ -81,10 +55,8 @@ export default class LDClientImpl implements LDClient {
|
|
|
81
55
|
* 3. A network error is encountered during initialization.
|
|
82
56
|
*/
|
|
83
57
|
identify(pristineContext: LDContext, identifyOptions?: LDIdentifyOptions): Promise<void>;
|
|
84
|
-
private createPollingProcessor;
|
|
85
|
-
private createStreamingProcessor;
|
|
86
|
-
off(eventName: EventName, listener: Function): void;
|
|
87
58
|
on(eventName: EventName, listener: Function): void;
|
|
59
|
+
off(eventName: EventName, listener: Function): void;
|
|
88
60
|
track(key: string, data?: any, metricValue?: number): void;
|
|
89
61
|
private variationInternal;
|
|
90
62
|
variation(flagKey: string, defaultValue?: LDFlagValue): LDFlagValue;
|
|
@@ -98,19 +70,13 @@ export default class LDClientImpl implements LDClient {
|
|
|
98
70
|
numberVariationDetail(key: string, defaultValue: number): LDEvaluationDetailTyped<number>;
|
|
99
71
|
stringVariationDetail(key: string, defaultValue: string): LDEvaluationDetailTyped<string>;
|
|
100
72
|
jsonVariationDetail(key: string, defaultValue: unknown): LDEvaluationDetailTyped<unknown>;
|
|
101
|
-
|
|
102
|
-
* Inform the client of the network state. Can be used to modify connection behavior.
|
|
103
|
-
*
|
|
104
|
-
* For instance the implementation may choose to suppress errors from connections if the client
|
|
105
|
-
* knows that there is no network available.
|
|
106
|
-
* @param _available True when there is an available network.
|
|
107
|
-
*/
|
|
108
|
-
protected setNetworkAvailability(available: boolean): void;
|
|
73
|
+
addHook(hook: Hook): void;
|
|
109
74
|
/**
|
|
110
75
|
* Enable/Disable event sending.
|
|
111
76
|
* @param enabled True to enable event processing, false to disable.
|
|
112
77
|
* @param flush True to flush while disabling. Useful to flush on certain state transitions.
|
|
113
78
|
*/
|
|
114
79
|
protected setEventSendingEnabled(enabled: boolean, flush: boolean): void;
|
|
80
|
+
protected sendEvent(event: internal.InputEvent): void;
|
|
115
81
|
}
|
|
116
82
|
//# sourceMappingURL=LDClientImpl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LDClientImpl.d.ts","sourceRoot":"","sources":["../src/LDClientImpl.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,
|
|
1
|
+
{"version":3,"file":"LDClientImpl.d.ts","sourceRoot":"","sources":["../src/LDClientImpl.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EAEjB,OAAO,EAEP,QAAQ,EAER,SAAS,EACT,SAAS,EACT,WAAW,EAEX,QAAQ,EACR,QAAQ,EAIT,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACvF,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAoC,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAG5F,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAUhE,OAAO,SAAS,EAAE,EAA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MAAM,CAAC;IAOzF,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,GAAG,uBAAuB,CAAC,OAAO,CAAC;IAIzF,OAAO,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI;IAIzB;;;;OAIG;IACH,SAAS,CAAC,sBAAsB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI;IA2BxE,SAAS,CAAC,SAAS,CAAC,KAAK,EAAE,QAAQ,CAAC,UAAU,GAAG,IAAI;CAGtD"}
|
package/dist/LDEmitter.d.ts
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import { LDLogger } from '@launchdarkly/js-sdk-common';
|
|
2
|
-
|
|
2
|
+
type FlagChangeKey = `change:${string}`;
|
|
3
|
+
/**
|
|
4
|
+
* Type for name of emitted events. 'change' is used for all flag changes. 'change:flag-name-here' is used
|
|
5
|
+
* for specific flag changes.
|
|
6
|
+
*/
|
|
7
|
+
export type EventName = 'change' | FlagChangeKey | 'dataSourceStatus' | 'error';
|
|
8
|
+
/**
|
|
9
|
+
* Implementation Note: There should not be any default listeners for change events in a client
|
|
10
|
+
* implementation. Default listeners mean a client cannot determine when there are actual
|
|
11
|
+
* application developer provided listeners. If we require default listeners, then we should add
|
|
12
|
+
* a system to allow listeners which have counts independent of the primary listener counts.
|
|
13
|
+
*/
|
|
3
14
|
export default class LDEmitter {
|
|
4
15
|
private logger?;
|
|
5
16
|
private listeners;
|
|
@@ -17,4 +28,5 @@ export default class LDEmitter {
|
|
|
17
28
|
eventNames(): string[];
|
|
18
29
|
listenerCount(name: EventName): number;
|
|
19
30
|
}
|
|
31
|
+
export {};
|
|
20
32
|
//# sourceMappingURL=LDEmitter.d.ts.map
|
package/dist/LDEmitter.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LDEmitter.d.ts","sourceRoot":"","sources":["../src/LDEmitter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAEvD,MAAM,MAAM,SAAS,GAAG,
|
|
1
|
+
{"version":3,"file":"LDEmitter.d.ts","sourceRoot":"","sources":["../src/LDEmitter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAEvD,KAAK,aAAa,GAAG,UAAU,MAAM,EAAE,CAAC;AAExC;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,aAAa,GAAG,kBAAkB,GAAG,OAAO,CAAC;AAEhF;;;;;GAKG;AACH,MAAM,CAAC,OAAO,OAAO,SAAS;IAGhB,OAAO,CAAC,MAAM,CAAC;IAF3B,OAAO,CAAC,SAAS,CAAyC;gBAEtC,MAAM,CAAC,sBAAU;IAErC,EAAE,CAAC,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ;IAQtC;;;;;OAKG;IACH,GAAG,CAAC,IAAI,EAAE,SAAS,EAAE,QAAQ,CAAC,EAAE,QAAQ;IAqBxC,OAAO,CAAC,cAAc;IAQtB,IAAI,CAAC,IAAI,EAAE,SAAS,EAAE,GAAG,MAAM,EAAE,GAAG,EAAE;IAKtC,UAAU,IAAI,MAAM,EAAE;IAItB,aAAa,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM;CAGvC"}
|
package/dist/api/LDClient.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LDContext, LDFlagSet, LDFlagValue, LDLogger } from '@launchdarkly/js-sdk-common';
|
|
2
|
-
import
|
|
2
|
+
import { Hook } from './integrations/Hooks';
|
|
3
3
|
import { LDEvaluationDetail, LDEvaluationDetailTyped } from './LDEvaluationDetail';
|
|
4
4
|
import { LDIdentifyOptions } from './LDIdentifyOptions';
|
|
5
5
|
/**
|
|
@@ -71,13 +71,6 @@ export interface LDClient {
|
|
|
71
71
|
error?: Error;
|
|
72
72
|
result: boolean;
|
|
73
73
|
}>;
|
|
74
|
-
/**
|
|
75
|
-
* Gets the SDK connection mode.
|
|
76
|
-
*
|
|
77
|
-
* @remarks
|
|
78
|
-
* Possible values are offline or streaming. See {@link ConnectionMode} for more information.
|
|
79
|
-
*/
|
|
80
|
-
getConnectionMode(): ConnectionMode;
|
|
81
74
|
/**
|
|
82
75
|
* Returns the client's current context.
|
|
83
76
|
*
|
|
@@ -210,6 +203,9 @@ export interface LDClient {
|
|
|
210
203
|
* The callback parameters are the context and an Error object. Errors are also output by
|
|
211
204
|
* the {@link logger} at the error level.
|
|
212
205
|
*
|
|
206
|
+
* - `"dataSourceStatus"`: Event indicating that there has been a change in the status of the
|
|
207
|
+
* data source. This will include the state of the data source as well any error information.
|
|
208
|
+
*
|
|
213
209
|
* @param key
|
|
214
210
|
* The name of the event for which to listen.
|
|
215
211
|
* @param callback
|
|
@@ -217,12 +213,6 @@ export interface LDClient {
|
|
|
217
213
|
* receive parameters, depending on the type of event.
|
|
218
214
|
*/
|
|
219
215
|
on(key: string, callback: (...args: any[]) => void): void;
|
|
220
|
-
/**
|
|
221
|
-
* Sets the SDK connection mode.
|
|
222
|
-
*
|
|
223
|
-
* @param mode - One of supported {@link ConnectionMode}. By default, the SDK uses streaming.
|
|
224
|
-
*/
|
|
225
|
-
setConnectionMode(mode: ConnectionMode): void;
|
|
226
216
|
/**
|
|
227
217
|
* Determines the string variation of a feature flag.
|
|
228
218
|
*
|
|
@@ -312,5 +302,14 @@ export interface LDClient {
|
|
|
312
302
|
* An {@link LDEvaluationDetail} object containing the value and explanation.
|
|
313
303
|
*/
|
|
314
304
|
variationDetail(key: string, defaultValue?: LDFlagValue): LDEvaluationDetail;
|
|
305
|
+
/**
|
|
306
|
+
* Add a hook to the client. In order to register a hook before the client
|
|
307
|
+
* starts, please use the `hooks` property of {@link LDOptions}.
|
|
308
|
+
*
|
|
309
|
+
* Hooks provide entrypoints which allow for observation of SDK functions.
|
|
310
|
+
*
|
|
311
|
+
* @param Hook The hook to add.
|
|
312
|
+
*/
|
|
313
|
+
addHook?(hook: Hook): void;
|
|
315
314
|
}
|
|
316
315
|
//# sourceMappingURL=LDClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LDClient.d.ts","sourceRoot":"","sources":["../../src/api/LDClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAE1F,OAAO,
|
|
1
|
+
{"version":3,"file":"LDClient.d.ts","sourceRoot":"","sources":["../../src/api/LDClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAE1F,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD;;;;;;GAMG;AACH,MAAM,WAAW,QAAQ;IACvB;;;;;;;OAOG;IACH,QAAQ,IAAI,SAAS,CAAC;IAEtB;;;;;;;;;;OAUG;IACH,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,GAAG,OAAO,CAAC;IAE3D;;;;;;;;;;;;;;;;;;OAkBG;IACH,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,GAAG,uBAAuB,CAAC,OAAO,CAAC,CAAC;IAE1F;;;;OAIG;IACH,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEvB;;;;;;;;;OASG;IACH,KAAK,IAAI,OAAO,CAAC;QAAE,KAAK,CAAC,EAAE,KAAK,CAAC;QAAC,MAAM,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IAErD;;;;;OAKG;IACH,UAAU,IAAI,SAAS,GAAG,SAAS,CAAC;IAEpC;;;;;;;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YG;IACH,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3D;;;;;;;;;;;;;;;;OAgBG;IACH,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,WAAW,GAAG,WAAW,CAAC;IAEhE;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,WAAW,GAAG,kBAAkB,CAAC;IAE7E;;;;;;;OAOG;IACH,OAAO,CAAC,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;CAC5B"}
|
package/dist/api/LDOptions.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { LDLogger } from '@launchdarkly/js-sdk-common';
|
|
2
|
-
import
|
|
2
|
+
import { Hook } from './integrations/Hooks';
|
|
3
3
|
export interface LDOptions {
|
|
4
4
|
/**
|
|
5
5
|
* Whether all context attributes (except the context key) should be marked as private, and
|
|
@@ -101,20 +101,11 @@ export interface LDOptions {
|
|
|
101
101
|
*/
|
|
102
102
|
eventsUri?: string;
|
|
103
103
|
/**
|
|
104
|
-
*
|
|
104
|
+
* The interval in between flushes of the analytics events queue, in seconds.
|
|
105
105
|
*
|
|
106
|
-
* @defaultValue 30s.
|
|
106
|
+
* @defaultValue 2s for browser implementations 30s for others.
|
|
107
107
|
*/
|
|
108
108
|
flushInterval?: number;
|
|
109
|
-
/**
|
|
110
|
-
* Sets the mode to use for connections when the SDK is initialized.
|
|
111
|
-
*
|
|
112
|
-
* @remarks
|
|
113
|
-
* Possible values are offline or streaming. See {@link ConnectionMode} for more information.
|
|
114
|
-
*
|
|
115
|
-
* @defaultValue streaming.
|
|
116
|
-
*/
|
|
117
|
-
initialConnectionMode?: ConnectionMode;
|
|
118
109
|
/**
|
|
119
110
|
* An object that will perform logging for the client.
|
|
120
111
|
*
|
|
@@ -177,6 +168,13 @@ export interface LDOptions {
|
|
|
177
168
|
* The minimum polling interval is 30 seconds.
|
|
178
169
|
*/
|
|
179
170
|
pollInterval?: number;
|
|
171
|
+
/**
|
|
172
|
+
* Directs the SDK to use the REPORT method for HTTP requests instead of GET. (Default: `false`)
|
|
173
|
+
*
|
|
174
|
+
* This setting applies both to requests to the streaming service, as well as flag requests when the SDK is in polling
|
|
175
|
+
* mode.
|
|
176
|
+
*/
|
|
177
|
+
useReport?: boolean;
|
|
180
178
|
/**
|
|
181
179
|
* Whether LaunchDarkly should provide additional information about how flag values were
|
|
182
180
|
* calculated.
|
|
@@ -216,5 +214,23 @@ export interface LDOptions {
|
|
|
216
214
|
* config property.
|
|
217
215
|
*/
|
|
218
216
|
payloadFilterKey?: string;
|
|
217
|
+
/**
|
|
218
|
+
* Initial set of hooks for the client.
|
|
219
|
+
*
|
|
220
|
+
* Hooks provide entrypoints which allow for observation of SDK functions.
|
|
221
|
+
*
|
|
222
|
+
* LaunchDarkly provides integration packages, and most applications will not
|
|
223
|
+
* need to implement their own hooks. Refer to the `@launchdarkly/node-server-sdk-otel`
|
|
224
|
+
* for instrumentation for the `@launchdarkly/node-server-sdk`.
|
|
225
|
+
*
|
|
226
|
+
* Example:
|
|
227
|
+
* ```typescript
|
|
228
|
+
* import { init } from '@launchdarkly/node-server-sdk';
|
|
229
|
+
* import { TracingHook } from '@launchdarkly/node-server-sdk-otel';
|
|
230
|
+
*
|
|
231
|
+
* const client = init('my-sdk-key', { hooks: [new TracingHook()] });
|
|
232
|
+
* ```
|
|
233
|
+
*/
|
|
234
|
+
hooks?: Hook[];
|
|
219
235
|
}
|
|
220
236
|
//# sourceMappingURL=LDOptions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LDOptions.d.ts","sourceRoot":"","sources":["../../src/api/LDOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;A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MAAM,CAAC;IAErC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;;;;;;OASG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;;;;;;;;;;OAaG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;;;;;;;;;;;;;;OAgBG;IACH,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;CAChB"}
|
package/dist/api/index.d.ts
CHANGED
|
@@ -2,5 +2,7 @@ import ConnectionMode from './ConnectionMode';
|
|
|
2
2
|
export * from './LDOptions';
|
|
3
3
|
export * from './LDClient';
|
|
4
4
|
export * from './LDEvaluationDetail';
|
|
5
|
+
export * from './integrations';
|
|
5
6
|
export { ConnectionMode };
|
|
7
|
+
export * from './LDIdentifyOptions';
|
|
6
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/api/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAE9C,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAE9C,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAE/B,OAAO,EAAE,cAAc,EAAE,CAAC;AAC1B,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { LDContext } from '@launchdarkly/js-sdk-common';
|
|
2
|
+
import { LDEvaluationDetail } from '../LDEvaluationDetail';
|
|
3
|
+
/**
|
|
4
|
+
* Contextual information provided to evaluation stages.
|
|
5
|
+
*/
|
|
6
|
+
export interface EvaluationSeriesContext {
|
|
7
|
+
readonly flagKey: string;
|
|
8
|
+
/**
|
|
9
|
+
* Optional in case evaluations are performed before a context is set.
|
|
10
|
+
*/
|
|
11
|
+
readonly context?: LDContext;
|
|
12
|
+
readonly defaultValue: unknown;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Implementation specific hook data for evaluation stages.
|
|
16
|
+
*
|
|
17
|
+
* Hook implementations can use this to store data needed between stages.
|
|
18
|
+
*/
|
|
19
|
+
export interface EvaluationSeriesData {
|
|
20
|
+
readonly [index: string]: unknown;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Meta-data about a hook implementation.
|
|
24
|
+
*/
|
|
25
|
+
export interface HookMetadata {
|
|
26
|
+
readonly name: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Contextual information provided to evaluation stages.
|
|
30
|
+
*/
|
|
31
|
+
export interface IdentifySeriesContext {
|
|
32
|
+
readonly context: LDContext;
|
|
33
|
+
/**
|
|
34
|
+
* The timeout, in seconds, associated with the identify operation.
|
|
35
|
+
*/
|
|
36
|
+
readonly timeout?: number;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Implementation specific hook data for evaluation stages.
|
|
40
|
+
*
|
|
41
|
+
* Hook implementations can use this to store data needed between stages.
|
|
42
|
+
*/
|
|
43
|
+
export interface IdentifySeriesData {
|
|
44
|
+
readonly [index: string]: unknown;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* The status an identify operation completed with.
|
|
48
|
+
*/
|
|
49
|
+
export type IdentifySeriesStatus = 'completed' | 'error';
|
|
50
|
+
/**
|
|
51
|
+
* The result applies to a single identify operation. An operation may complete
|
|
52
|
+
* with an error and then later complete successfully. Only the first completion
|
|
53
|
+
* will be executed in the evaluation series.
|
|
54
|
+
*/
|
|
55
|
+
export interface IdentifySeriesResult {
|
|
56
|
+
status: IdentifySeriesStatus;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Interface for extending SDK functionality via hooks.
|
|
60
|
+
*/
|
|
61
|
+
export interface Hook {
|
|
62
|
+
/**
|
|
63
|
+
* Get metadata about the hook implementation.
|
|
64
|
+
*/
|
|
65
|
+
getMetadata(): HookMetadata;
|
|
66
|
+
/**
|
|
67
|
+
* This method is called during the execution of a variation method
|
|
68
|
+
* before the flag value has been determined. The method is executed synchronously.
|
|
69
|
+
*
|
|
70
|
+
* @param hookContext Contains information about the evaluation being performed. This is not
|
|
71
|
+
* mutable.
|
|
72
|
+
* @param data A record associated with each stage of hook invocations. Each stage is called with
|
|
73
|
+
* the data of the previous stage for a series. The input record should not be modified.
|
|
74
|
+
* @returns Data to use when executing the next state of the hook in the evaluation series. It is
|
|
75
|
+
* recommended to expand the previous input into the return. This helps ensure your stage remains
|
|
76
|
+
* compatible moving forward as more stages are added.
|
|
77
|
+
* ```js
|
|
78
|
+
* return {...data, "my-new-field": /*my data/*}
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
beforeEvaluation?(hookContext: EvaluationSeriesContext, data: EvaluationSeriesData): EvaluationSeriesData;
|
|
82
|
+
/**
|
|
83
|
+
* This method is called during the execution of the variation method
|
|
84
|
+
* after the flag value has been determined. The method is executed synchronously.
|
|
85
|
+
*
|
|
86
|
+
* @param hookContext Contains read-only information about the evaluation
|
|
87
|
+
* being performed.
|
|
88
|
+
* @param data A record associated with each stage of hook invocations. Each
|
|
89
|
+
* stage is called with the data of the previous stage for a series.
|
|
90
|
+
* @param detail The result of the evaluation. This value should not be
|
|
91
|
+
* modified.
|
|
92
|
+
* @returns Data to use when executing the next state of the hook in the evaluation series. It is
|
|
93
|
+
* recommended to expand the previous input into the return. This helps ensure your stage remains
|
|
94
|
+
* compatible moving forward as more stages are added.
|
|
95
|
+
* ```js
|
|
96
|
+
* return {...data, "my-new-field": /*my data/*}
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
99
|
+
afterEvaluation?(hookContext: EvaluationSeriesContext, data: EvaluationSeriesData, detail: LDEvaluationDetail): EvaluationSeriesData;
|
|
100
|
+
/**
|
|
101
|
+
* This method is called during the execution of the identify process before the operation
|
|
102
|
+
* completes, but after any context modifications are performed.
|
|
103
|
+
*
|
|
104
|
+
* @param hookContext Contains information about the evaluation being performed. This is not
|
|
105
|
+
* mutable.
|
|
106
|
+
* @param data A record associated with each stage of hook invocations. Each stage is called with
|
|
107
|
+
* the data of the previous stage for a series. The input record should not be modified.
|
|
108
|
+
* @returns Data to use when executing the next state of the hook in the evaluation series. It is
|
|
109
|
+
* recommended to expand the previous input into the return. This helps ensure your stage remains
|
|
110
|
+
* compatible moving forward as more stages are added.
|
|
111
|
+
* ```js
|
|
112
|
+
* return {...data, "my-new-field": /*my data/*}
|
|
113
|
+
* ```
|
|
114
|
+
*/
|
|
115
|
+
beforeIdentify?(hookContext: IdentifySeriesContext, data: IdentifySeriesData): IdentifySeriesData;
|
|
116
|
+
/**
|
|
117
|
+
* This method is called during the execution of the identify process before the operation
|
|
118
|
+
* completes, but after any context modifications are performed.
|
|
119
|
+
*
|
|
120
|
+
* @param hookContext Contains information about the evaluation being performed. This is not
|
|
121
|
+
* mutable.
|
|
122
|
+
* @param data A record associated with each stage of hook invocations. Each stage is called with
|
|
123
|
+
* the data of the previous stage for a series. The input record should not be modified.
|
|
124
|
+
* @returns Data to use when executing the next state of the hook in the evaluation series. It is
|
|
125
|
+
* recommended to expand the previous input into the return. This helps ensure your stage remains
|
|
126
|
+
* compatible moving forward as more stages are added.
|
|
127
|
+
* ```js
|
|
128
|
+
* return {...data, "my-new-field": /*my data/*}
|
|
129
|
+
* ```
|
|
130
|
+
*/
|
|
131
|
+
afterIdentify?(hookContext: IdentifySeriesContext, data: IdentifySeriesData, result: IdentifySeriesResult): IdentifySeriesData;
|
|
132
|
+
}
|
|
133
|
+
//# sourceMappingURL=Hooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Hooks.d.ts","sourceRoot":"","sources":["../../../src/api/integrations/Hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAExD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC;IAC7B,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC;CAOhC;AAED;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;CACnC;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,WAAW,GAAG,OAAO,CAAC;AAEzD;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,oBAAoB,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,IAAI;IACnB;;OAEG;IACH,WAAW,IAAI,YAAY,CAA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