Skip to content

Commit 3366775

Browse files
fix: cloudflare-server-sdk exports to support using migrations (#854)
Changing `export *` to named exports so that they won't be excluded by rollup.
1 parent de13740 commit 3366775

File tree

1 file changed

+37
-4
lines changed

1 file changed

+37
-4
lines changed

packages/sdk/cloudflare/src/index.ts

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,56 @@ import {
2121

2222
import createPlatformInfo from './createPlatformInfo';
2323

24-
export * from '@launchdarkly/js-server-sdk-common-edge';
24+
export {
25+
createMigration,
26+
BasicLogger,
27+
type BasicLoggerOptions,
28+
type Cache,
29+
EdgeFeatureStore,
30+
type EdgeProvider,
31+
integrations,
32+
IsMigrationStage,
33+
type LDBigSegmentsOptions,
34+
type LDClient,
35+
type LDClientContext,
36+
type LDContext,
37+
LDConcurrentExecution,
38+
type LDEvaluationDetail,
39+
type LDEvaluationDetailTyped,
40+
type LDFeatureStore,
41+
type LDFlagValue,
42+
type LDFlagsState,
43+
type LDFlagsStateOptions,
44+
type LDLogger,
45+
type LDMigration,
46+
type LDMethodResult,
47+
type LDMigrationOptions,
48+
type LDMigrationOpEvent,
49+
type LDMigrationOrigin,
50+
type LDMigrationReadResult,
51+
type LDMigrationResult,
52+
LDMigrationStage,
53+
LDMigrationSuccess,
54+
type LDMigrationWriteResult,
55+
type LDMigrationVariation,
56+
type LDProxyOptions,
57+
type LDTLSOptions,
58+
type LDWaitForInitializationOptions,
59+
} from '@launchdarkly/js-server-sdk-common-edge';
2560

2661
export type TtlCacheOptions = internalServer.TtlCacheOptions;
2762

2863
/**
2964
* The Launchdarkly Edge SDKs configuration options.
3065
*/
31-
type LDOptions = {
66+
export type LDOptions = {
3267
/**
3368
* Optional TTL cache configuration which allows for caching feature flags in
3469
* memory.
3570
*/
3671
cache?: TtlCacheOptions;
3772
} & LDOptionsCommon;
3873

39-
export type { LDClient };
40-
4174
/**
4275
* Creates an instance of the Cloudflare LaunchDarkly client.
4376
*

0 commit comments

Comments
 (0)