@amplitude/experiment-js-client
Advanced tools
Comparing version 1.13.2 to 1.14.0
import { ExperimentConfig } from './config'; | ||
import { ExperimentClient } from './experimentClient'; | ||
/** | ||
* Initializes a singleton {@link ExperimentClient} identified by the configured | ||
* instance name. | ||
* | ||
* @param apiKey The deployment API Key | ||
* @param config See {@link ExperimentConfig} for config options | ||
*/ | ||
export declare const initialize: (apiKey: string, config?: ExperimentConfig) => ExperimentClient; | ||
/** | ||
* Initialize a singleton {@link ExperimentClient} which automatically | ||
* integrates with the installed and initialized instance of the amplitude | ||
* analytics SDK. | ||
* | ||
* You must be using amplitude-js SDK version 8.17.0+ for this integration to | ||
* work. | ||
* | ||
* @param apiKey The deployment API Key | ||
* @param config See {@link ExperimentConfig} for config options | ||
*/ | ||
export declare const initializeWithAmplitudeAnalytics: (apiKey: string, config?: ExperimentConfig) => ExperimentClient; | ||
/** | ||
* Provides factory methods for storing singleton instances of {@link ExperimentClient} | ||
@@ -5,0 +25,0 @@ * @category Core Usage |
@@ -10,3 +10,3 @@ /** | ||
export { AmplitudeIntegrationPlugin } from './integration/amplitude'; | ||
export { Experiment } from './factory'; | ||
export { Experiment, initialize, initializeWithAmplitudeAnalytics, } from './factory'; | ||
export { StubExperimentClient } from './stubClient'; | ||
@@ -13,0 +13,0 @@ export { ExperimentClient } from './experimentClient'; |
{ | ||
"name": "@amplitude/experiment-js-client", | ||
"version": "1.13.2", | ||
"version": "1.14.0", | ||
"description": "Amplitude Experiment Javascript Client SDK", | ||
@@ -50,3 +50,3 @@ "keywords": [ | ||
], | ||
"gitHead": "a9dc4e4623b25a25529bb284e2d20578da726cec" | ||
"gitHead": "e0c33b7baf4b13934959f7cd9d8ce3974652c9e4" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
420749
10271