You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGES.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
1.10.0 (November XX, 2023)
1
+
1.10.0 (November 16, 2023)
2
2
- Added support for Flag Sets on the SDK, which enables grouping feature flags and interacting with the group rather than individually (more details in our documentation):
3
3
- Added a new `flagSets` prop to the `SplitTreatments` component and `flagSets` option to the `useSplitTreatments` hook options object, to support evaluating flags in given flag set/s. Either `names` or `flagSets` must be provided to the component and hook. If both are provided, `names` will be used.
4
4
- Added a new optional Split Filter configuration option. This allows the SDK and Split services to only synchronize the flags in the specified flag sets, avoiding unused or unwanted flags from being synced on the SDK instance, bringing all the benefits from a reduced payload.
Copy file name to clipboardExpand all lines: src/constants.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -40,4 +40,4 @@ export const WARN_ST_NO_CLIENT: string = '[WARN] SplitTreatments does not have
40
40
41
41
exportconstEXCEPTION_NO_REACT_OR_CREATECONTEXT: string='React library is not available or its version is not supported. Check that it is properly installed or imported. Split SDK requires version 16.3.0+ of React.';
42
42
43
-
exportconstWARN_NAMES_AND_FLAGSETS: string='[WARN] Both names and flagSets props were provided. flagSets will be ignored.';
43
+
exportconstWARN_NAMES_AND_FLAGSETS: string='[WARN] Both names and flagSets properties were provided. flagSets will be ignored.';
* List of feature flag names to evaluate. Either this or the `flagSets` property must be provided. If both are provided, the `flagSets` option is ignored.
177
177
*/
178
-
names?: string[];
178
+
names: string[];
179
+
flagSets?: undefined;
180
+
}|{
179
181
180
182
/**
181
183
* List of feature flag sets to evaluate. Either this or the `names` property must be provided. If both are provided, the `flagSets` option is ignored.
182
184
*/
183
-
flagSets?: string[];
185
+
flagSets: string[];
186
+
names?: undefined;
187
+
})&{
184
188
185
189
/**
186
190
* An object of type Attributes used to evaluate the feature flags.
@@ -192,7 +196,7 @@ export type GetTreatmentsOptions = {
192
196
* useSplitTreatments options interface. This is the options object accepted by useSplitTreatments hook,
193
197
* used to call 'client.getTreatmentsWithConfig()', or 'client.getTreatmentsWithConfigByFlagSets()', and retrieve the result together with the Split context.
0 commit comments