@flopflip/launchdarkly-adapter 12.5.6 → 13.0.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.
@@ -1,7 +1,6 @@
1
1
  /// <reference types="launchdarkly-js-sdk-common" />
2
- import { AdapterConfigurationStatus, adapterIdentifiers, AdapterInitializationStatus, type TAdapterEventHandlers, type TFlagName, type TFlags, type TFlagVariation, type TLaunchDarklyAdapterArgs, type TLaunchDarklyAdapterInterface, type TUpdateFlagsOptions, type TUser } from '@flopflip/types';
3
- import { type LDClient, type LDUser } from 'launchdarkly-js-client-sdk';
4
- type TLaunchDarklyUser = TUser<LDUser>;
2
+ import { AdapterConfigurationStatus, adapterIdentifiers, AdapterInitializationStatus, type TAdapterEventHandlers, type TFlagName, type TFlags, type TFlagVariation, type TLaunchDarklyAdapterArgs, type TLaunchDarklyAdapterInterface, type TUpdateFlagsOptions } from '@flopflip/types';
3
+ import { type LDClient } from 'launchdarkly-js-client-sdk';
5
4
  declare class LaunchDarklyAdapter implements TLaunchDarklyAdapterInterface {
6
5
  #private;
7
6
  id: typeof adapterIdentifiers.launchdarkly;
@@ -17,7 +16,7 @@ declare class LaunchDarklyAdapter implements TLaunchDarklyAdapterInterface {
17
16
  setConfigurationStatus(nextConfigurationStatus: AdapterConfigurationStatus): void;
18
17
  getClient(): LDClient | undefined;
19
18
  getFlag(flagName: TFlagName): TFlagVariation;
20
- updateUserContext(updatedUserProps: TLaunchDarklyUser): Promise<import("launchdarkly-js-sdk-common").LDFlagSet>;
19
+ updateClientContext(updatedContextProps: TLaunchDarklyAdapterArgs['context']): Promise<import("launchdarkly-js-sdk-common").LDFlagSet>;
21
20
  unsubscribe: () => void;
22
21
  subscribe: () => void;
23
22
  }