From 8d8250cafb20b60e45ac3661fd8b079cb62fb83e Mon Sep 17 00:00:00 2001 From: Ryan Lamb <4955475+kinyoklion@users.noreply.github.com> Date: Wed, 13 Nov 2024 08:58:37 -0800 Subject: [PATCH] fix: Export correct options for compat. (#678) --- packages/sdk/browser/src/common.ts | 3 +-- packages/sdk/browser/src/compat/index.ts | 5 +++-- packages/sdk/browser/src/index.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/sdk/browser/src/common.ts b/packages/sdk/browser/src/common.ts index a6850c438..58d3e61ff 100644 --- a/packages/sdk/browser/src/common.ts +++ b/packages/sdk/browser/src/common.ts @@ -1,11 +1,10 @@ import { BasicLogger, BasicLoggerOptions, LDLogger } from '@launchdarkly/js-client-sdk-common'; import { BrowserIdentifyOptions as LDIdentifyOptions } from './BrowserIdentifyOptions'; -import { BrowserOptions as LDOptions } from './options'; // The exported LDIdentifyOptions and LDOptions are the browser specific implementations. // These shadow the common implementations. -export type { LDIdentifyOptions, LDOptions }; +export type { LDIdentifyOptions }; export type { AutoEnvAttributes, diff --git a/packages/sdk/browser/src/compat/index.ts b/packages/sdk/browser/src/compat/index.ts index d960dd6c5..f913d7d01 100644 --- a/packages/sdk/browser/src/compat/index.ts +++ b/packages/sdk/browser/src/compat/index.ts @@ -5,13 +5,14 @@ * Some code changes may still be required, for example {@link LDOptions} removes * support for some previously available options. */ -import { LDContext, LDOptions } from '@launchdarkly/js-client-sdk-common'; +import { LDContext } from '@launchdarkly/js-client-sdk-common'; import { LDClient } from './LDClientCompat'; import LDClientCompatImpl from './LDClientCompatImpl'; +import { LDOptions } from './LDCompatOptions'; export * from '../common'; -export type { LDClient }; +export type { LDClient, LDOptions }; /** * Creates an instance of the LaunchDarkly client. This version of initialization is for diff --git a/packages/sdk/browser/src/index.ts b/packages/sdk/browser/src/index.ts index fb9fca306..ca350631d 100644 --- a/packages/sdk/browser/src/index.ts +++ b/packages/sdk/browser/src/index.ts @@ -13,10 +13,10 @@ import { AutoEnvAttributes } from '@launchdarkly/js-client-sdk-common'; import { BrowserClient, LDClient } from './BrowserClient'; -import { LDOptions } from './common'; +import { BrowserOptions as LDOptions } from './options'; export * from './common'; -export type { LDClient }; +export type { LDClient, LDOptions }; /** * Creates an instance of the LaunchDarkly client.