@splitsoftware/splitio-redux
Advanced tools
Comparing version 1.9.1-rc.0 to 1.9.1-rc.1
@@ -1,2 +0,2 @@ | ||
1.10.0 (December 19, 2023) | ||
1.10.0 (December 18, 2023) | ||
- 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,0 +3,0 @@ - Added a new optional `flagSets` property to the param object of the `getTreatments` action creator, to support evaluating flags in given flag set/s. Either `splitNames` or `flagSets` must be provided to the function. If both are provided, `splitNames` will be used. |
// Default value for the key where the Split piece of state is expected to be mounted. | ||
export var DEFAULT_SPLIT_STATE_SLICE = 'splitio'; | ||
export var VERSION = 'redux-' + '1.9.1-rc.0'; | ||
export var VERSION = 'redux-' + '1.9.1-rc.1'; | ||
// Treatments | ||
@@ -34,3 +34,3 @@ export var ON = 'on'; | ||
export var ERROR_SELECTOR_NO_SPLITSTATE = '[ERROR] When using selectors, "splitState" value must be a proper splitio piece of state'; | ||
export var ERROR_GETT_NO_PARAM_OBJECT = '[ERROR] "getTreatments" must be called with a param object containing either splitNames or flagSets properties'; | ||
export var ERROR_GETT_NO_PARAM_OBJECT = '[ERROR] "getTreatments" must be called with a param object containing a valid splitNames or flagSets properties'; | ||
export var WARN_FEATUREFLAGS_AND_FLAGSETS = '[WARN] Both splitNames and flagSets properties were provided. flagSets will be ignored'; |
@@ -42,4 +42,6 @@ var __assign = (this && this.__assign) || function () { | ||
splitNames = validateFeatureFlags(typeof splitNames === 'string' ? [splitNames] : splitNames); | ||
if (!splitNames) | ||
if (!splitNames) { | ||
console.log(ERROR_GETT_NO_PARAM_OBJECT); | ||
return false; | ||
} | ||
// Ignore flagSets if splitNames are provided | ||
@@ -53,4 +55,6 @@ if (flagSets) | ||
flagSets = typeof flagSets === 'string' ? [flagSets] : flagSets; | ||
if (!Array.isArray(flagSets)) | ||
if (!Array.isArray(flagSets)) { | ||
console.log(ERROR_GETT_NO_PARAM_OBJECT); | ||
return false; | ||
} | ||
} | ||
@@ -57,0 +61,0 @@ return __assign(__assign({}, params), { splitNames: splitNames, flagSets: flagSets }); |
@@ -6,3 +6,3 @@ "use strict"; | ||
exports.DEFAULT_SPLIT_STATE_SLICE = 'splitio'; | ||
exports.VERSION = 'redux-' + '1.9.1-rc.0'; | ||
exports.VERSION = 'redux-' + '1.9.1-rc.1'; | ||
// Treatments | ||
@@ -39,3 +39,3 @@ exports.ON = 'on'; | ||
exports.ERROR_SELECTOR_NO_SPLITSTATE = '[ERROR] When using selectors, "splitState" value must be a proper splitio piece of state'; | ||
exports.ERROR_GETT_NO_PARAM_OBJECT = '[ERROR] "getTreatments" must be called with a param object containing either splitNames or flagSets properties'; | ||
exports.ERROR_GETT_NO_PARAM_OBJECT = '[ERROR] "getTreatments" must be called with a param object containing a valid splitNames or flagSets properties'; | ||
exports.WARN_FEATUREFLAGS_AND_FLAGSETS = '[WARN] Both splitNames and flagSets properties were provided. flagSets will be ignored'; |
@@ -48,4 +48,6 @@ "use strict"; | ||
splitNames = validateFeatureFlags(typeof splitNames === 'string' ? [splitNames] : splitNames); | ||
if (!splitNames) | ||
if (!splitNames) { | ||
console.log(constants_1.ERROR_GETT_NO_PARAM_OBJECT); | ||
return false; | ||
} | ||
// Ignore flagSets if splitNames are provided | ||
@@ -59,4 +61,6 @@ if (flagSets) | ||
flagSets = typeof flagSets === 'string' ? [flagSets] : flagSets; | ||
if (!Array.isArray(flagSets)) | ||
if (!Array.isArray(flagSets)) { | ||
console.log(constants_1.ERROR_GETT_NO_PARAM_OBJECT); | ||
return false; | ||
} | ||
} | ||
@@ -63,0 +67,0 @@ return __assign(__assign({}, params), { splitNames: splitNames, flagSets: flagSets }); |
{ | ||
"name": "@splitsoftware/splitio-redux", | ||
"version": "1.9.1-rc.0", | ||
"version": "1.9.1-rc.1", | ||
"description": "A library to easily use Split JS SDK with Redux and React Redux", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -17,3 +17,3 @@ import { | ||
mapIsFeatureOnToProps as exportedMapIsFeatureOnToProps, | ||
// Checks that types are exported. Otherwise, the test would fail with a TS error. | ||
/* eslint-disable @typescript-eslint/no-unused-vars */ // Checks that types are exported. Otherwise, the test would fail with a TS error. | ||
ISplitState, | ||
@@ -20,0 +20,0 @@ } from '../index'; |
@@ -55,4 +55,4 @@ // Default value for the key where the Split piece of state is expected to be mounted. | ||
export const ERROR_GETT_NO_PARAM_OBJECT = '[ERROR] "getTreatments" must be called with a param object containing either splitNames or flagSets properties'; | ||
export const ERROR_GETT_NO_PARAM_OBJECT = '[ERROR] "getTreatments" must be called with a param object containing a valid splitNames or flagSets properties'; | ||
export const WARN_FEATUREFLAGS_AND_FLAGSETS = '[WARN] Both splitNames and flagSets properties were provided. flagSets will be ignored'; |
@@ -51,3 +51,6 @@ import { ERROR_GETT_NO_PARAM_OBJECT, WARN_FEATUREFLAGS_AND_FLAGSETS } from './constants'; | ||
splitNames = validateFeatureFlags(typeof splitNames === 'string' ? [splitNames] : splitNames); | ||
if (!splitNames) return false; | ||
if (!splitNames) { | ||
console.log(ERROR_GETT_NO_PARAM_OBJECT); | ||
return false; | ||
} | ||
@@ -60,3 +63,6 @@ // Ignore flagSets if splitNames are provided | ||
flagSets = typeof flagSets === 'string' ? [flagSets] : flagSets; | ||
if (!Array.isArray(flagSets)) return false; | ||
if (!Array.isArray(flagSets)) { | ||
console.log(ERROR_GETT_NO_PARAM_OBJECT); | ||
return false; | ||
} | ||
} | ||
@@ -63,0 +69,0 @@ |
@@ -22,3 +22,3 @@ export declare const DEFAULT_SPLIT_STATE_SLICE = "splitio"; | ||
export declare const ERROR_SELECTOR_NO_SPLITSTATE = "[ERROR] When using selectors, \"splitState\" value must be a proper splitio piece of state"; | ||
export declare const ERROR_GETT_NO_PARAM_OBJECT = "[ERROR] \"getTreatments\" must be called with a param object containing either splitNames or flagSets properties"; | ||
export declare const ERROR_GETT_NO_PARAM_OBJECT = "[ERROR] \"getTreatments\" must be called with a param object containing a valid splitNames or flagSets properties"; | ||
export declare const WARN_FEATUREFLAGS_AND_FLAGSETS = "[WARN] Both splitNames and flagSets properties were provided. flagSets will be ignored"; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
253760
4921