@launchdarkly/cloudflare-server-sdk 2.6.4 → 2.7.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 +23 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +15 -3
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { KVNamespace } from '@cloudflare/workers-types';
|
|
2
|
-
import {
|
|
2
|
+
import { internalServer, LDClient, LDOptions as LDOptions$1 } from '@launchdarkly/js-server-sdk-common-edge';
|
|
3
3
|
export * from '@launchdarkly/js-server-sdk-common-edge';
|
|
4
4
|
export { LDClient } from '@launchdarkly/js-server-sdk-common-edge';
|
|
5
5
|
|
|
@@ -14,6 +14,18 @@ export { LDClient } from '@launchdarkly/js-server-sdk-common-edge';
|
|
|
14
14
|
* @packageDocumentation
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
+
type TtlCacheOptions = internalServer.TtlCacheOptions;
|
|
18
|
+
/**
|
|
19
|
+
* The Launchdarkly Edge SDKs configuration options.
|
|
20
|
+
*/
|
|
21
|
+
type LDOptions = {
|
|
22
|
+
/**
|
|
23
|
+
* Optional TTL cache configuration which allows for caching feature flags in
|
|
24
|
+
* memory.
|
|
25
|
+
*/
|
|
26
|
+
cache?: TtlCacheOptions;
|
|
27
|
+
} & LDOptions$1;
|
|
28
|
+
|
|
17
29
|
/**
|
|
18
30
|
* Creates an instance of the Cloudflare LaunchDarkly client.
|
|
19
31
|
*
|
|
@@ -31,10 +43,10 @@ export { LDClient } from '@launchdarkly/js-server-sdk-common-edge';
|
|
|
31
43
|
* @param kvNamespace
|
|
32
44
|
* The Cloudflare KV configured for LaunchDarkly.
|
|
33
45
|
* @param options
|
|
34
|
-
* Optional configuration settings.
|
|
46
|
+
* Optional configuration settings.
|
|
35
47
|
* @return
|
|
36
48
|
* The new {@link LDClient} instance.
|
|
37
49
|
*/
|
|
38
50
|
declare const init: (clientSideID: string, kvNamespace: KVNamespace, options?: LDOptions) => LDClient;
|
|
39
51
|
|
|
40
|
-
export { init };
|
|
52
|
+
export { type TtlCacheOptions, init };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@launchdarkly/cloudflare-server-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"description": "Cloudflare LaunchDarkly SDK",
|
|
5
5
|
"homepage": "https://github.com/launchdarkly/js-core/tree/main/packages/sdk/cloudflare",
|
|
6
6
|
"repository": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@cloudflare/workers-types": "^4.20230321.0",
|
|
44
|
-
"@launchdarkly/js-server-sdk-common-edge": "2.
|
|
44
|
+
"@launchdarkly/js-server-sdk-common-edge": "2.6.0",
|
|
45
45
|
"crypto-js": "^4.1.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|