launchdarkly-js-client-sdk 2.24.0 → 3.0.0-alpha.1
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 +0 -11
- package/dist/ldclient.cjs.js +1 -1
- package/dist/ldclient.cjs.js.map +1 -1
- package/dist/ldclient.es.js +1 -1
- package/dist/ldclient.es.js.map +1 -1
- package/dist/ldclient.min.js +1 -1
- package/dist/ldclient.min.js.map +1 -1
- package/package.json +2 -2
- package/typings.d.ts +4 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "launchdarkly-js-client-sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-alpha.1",
|
|
4
4
|
"description": "LaunchDarkly SDK for JavaScript",
|
|
5
5
|
"author": "LaunchDarkly <team@launchdarkly.com>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
},
|
|
78
78
|
"dependencies": {
|
|
79
79
|
"escape-string-regexp": "^4.0.0",
|
|
80
|
-
"launchdarkly-js-sdk-common": "
|
|
80
|
+
"launchdarkly-js-sdk-common": "5.0.0-alpha.1"
|
|
81
81
|
},
|
|
82
82
|
"repository": {
|
|
83
83
|
"type": "git",
|
package/typings.d.ts
CHANGED
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* This is the API reference for the LaunchDarkly SDK for browser JavaScript.
|
|
3
|
-
*
|
|
4
|
-
* In typical usage, you will call [[initialize]] once at startup time to obtain an instance of
|
|
5
|
-
* [[LDClient]], which provides access to all of the SDK's functionality.
|
|
6
|
-
*
|
|
7
|
-
* For more information, see the [SDK reference guide](https://docs.launchdarkly.com/sdk/client-side/javascript).
|
|
8
|
-
*/
|
|
1
|
+
// Put top level documentation into docs/doc.md.
|
|
9
2
|
declare module 'launchdarkly-js-client-sdk' {
|
|
10
3
|
|
|
11
4
|
//// DOCBUILD-START-REPLACE (see docs/Makefile)
|
|
@@ -13,9 +6,9 @@ declare module 'launchdarkly-js-client-sdk' {
|
|
|
13
6
|
import {
|
|
14
7
|
BasicLoggerOptions,
|
|
15
8
|
LDClientBase,
|
|
9
|
+
LDContext,
|
|
16
10
|
LDLogger,
|
|
17
11
|
LDOptionsBase,
|
|
18
|
-
LDUser
|
|
19
12
|
} from 'launchdarkly-js-sdk-common';
|
|
20
13
|
//// DOCBUILD-END-REPLACE
|
|
21
14
|
|
|
@@ -46,13 +39,13 @@ declare module 'launchdarkly-js-client-sdk' {
|
|
|
46
39
|
* @return
|
|
47
40
|
* The new client instance.
|
|
48
41
|
*/
|
|
49
|
-
export function initialize(envKey: string, user:
|
|
42
|
+
export function initialize(envKey: string, user: LDContext, options?: LDOptions): LDClient;
|
|
50
43
|
|
|
51
44
|
// This is @ignored because TypeDoc does not show default exports correctly. We'll just explain
|
|
52
45
|
// the export situation in the comment for initialize().
|
|
53
46
|
/** @ignore */
|
|
54
47
|
const LaunchDarkly: {
|
|
55
|
-
initialize: (envKey: string, user:
|
|
48
|
+
initialize: (envKey: string, user: LDContext, options?: LDOptions) => LDClient;
|
|
56
49
|
version: string;
|
|
57
50
|
};
|
|
58
51
|
|