@newskit-render/feature-flags 1.10.0 → 1.11.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.
@@ -7,7 +7,7 @@ export interface ContextProviderProps {
7
7
  children: ReactNode;
8
8
  context: ContextOptions;
9
9
  }
10
- export type Flags = {
10
+ export type DetailedFlags = {
11
11
  [key: string]: {
12
12
  variationKey: string | null;
13
13
  enabled: boolean;
@@ -16,6 +16,10 @@ export type Flags = {
16
16
  };
17
17
  };
18
18
  };
19
+ export type BooleanFlags = {
20
+ [key: string]: boolean;
21
+ };
22
+ export type Flags = DetailedFlags | BooleanFlags;
19
23
  export type OptimizelyClient = Client | null;
20
24
  export type SDKConfig = {
21
25
  sdkConfig?: Config;
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAyCA;IAAiD,+CAAK;IACpD;eACE,kBACE,uGAAuG,CACxG;IACH,CAAC;IACH,kCAAC;AAAD,CAAC,AAND,CAAiD,KAAK,GAMrD;AANY,kEAA2B"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AA+CA;IAAiD,+CAAK;IACpD;eACE,kBACE,uGAAuG,CACxG;IACH,CAAC;IACH,kCAAC;AAAD,CAAC,AAND,CAAiD,KAAK,GAMrD;AANY,kEAA2B"}
@@ -7,7 +7,7 @@ export interface ContextProviderProps {
7
7
  children: ReactNode;
8
8
  context: ContextOptions;
9
9
  }
10
- export type Flags = {
10
+ export type DetailedFlags = {
11
11
  [key: string]: {
12
12
  variationKey: string | null;
13
13
  enabled: boolean;
@@ -16,6 +16,10 @@ export type Flags = {
16
16
  };
17
17
  };
18
18
  };
19
+ export type BooleanFlags = {
20
+ [key: string]: boolean;
21
+ };
22
+ export type Flags = DetailedFlags | BooleanFlags;
19
23
  export type OptimizelyClient = Client | null;
20
24
  export type SDKConfig = {
21
25
  sdkConfig?: Config;
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAyCA;IAAiD,+CAAK;IACpD;eACE,kBACE,uGAAuG,CACxG;IACH,CAAC;IACH,kCAAC;AAAD,CAAC,AAND,CAAiD,KAAK,GAMrD"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AA+CA;IAAiD,+CAAK;IACpD;eACE,kBACE,uGAAuG,CACxG;IACH,CAAC;IACH,kCAAC;AAAD,CAAC,AAND,CAAiD,KAAK,GAMrD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newskit-render/feature-flags",
3
- "version": "1.10.0",
3
+ "version": "1.11.0",
4
4
  "description": "A package for utilizing feature flags for newskit-render consumers, based on optimizely's capabilities.",
5
5
  "author": "",
6
6
  "license": "UNLICENSED",