flagmint-js-sdk 1.2.22 → 1.2.23

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.
@@ -2,6 +2,7 @@ import { CacheAdapter, FeatureFlags } from '../core/helpers/types';
2
2
  import type { Transport } from '../core/transports/Transport';
3
3
  import { FlagValue } from '../core/evaluation/types';
4
4
  type TransportMode = 'auto' | 'websocket' | 'long-polling';
5
+ type Environment = 'production' | 'staging' | 'development';
5
6
  export interface FlagClientOptions<C extends Record<string, any> = Record<string, any>> {
6
7
  apiKey: string;
7
8
  context?: C;
@@ -16,6 +17,7 @@ export interface FlagClientOptions<C extends Record<string, any> = Record<string
16
17
  cacheAdapter?: CacheAdapter<C>;
17
18
  restEndpoint?: string;
18
19
  wsEndpoint?: string;
20
+ env?: Environment;
19
21
  }
20
22
  type FlagUpdateCallback<T> = (flags: FeatureFlags<T>) => void;
21
23
  export declare class FlagClient<T = unknown, C extends Record<string, any> = Record<string, any>> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flagmint-js-sdk",
3
- "version": "1.2.22",
3
+ "version": "1.2.23",
4
4
  "description": "Framework-agnostic JavaScript SDK for managing feature flags in Flagmint applications.",
5
5
  "author": "Flagmint Team",
6
6
  "license": "MIT",