Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@splitsoftware/splitio-redux

Package Overview
Dependencies
Maintainers
8
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@splitsoftware/splitio-redux - npm Package Compare versions

Comparing version 1.7.4-rc.1 to 1.7.4-rc.2

2

CHANGES.txt

@@ -1,2 +0,2 @@

1.8.0 (June 26, 2023)
1.8.0 (June 27, 2023)
- Added `ISplitState` TypeScript interface to the library exports, which is the type for the Split reducer's slice of state.

@@ -3,0 +3,0 @@

// 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.7.4-rc.1';
export var VERSION = 'redux-' + '1.7.4-rc.2';
// Treatments

@@ -5,0 +5,0 @@ export var ON = 'on';

@@ -6,3 +6,3 @@ "use strict";

exports.DEFAULT_SPLIT_STATE_SLICE = 'splitio';
exports.VERSION = 'redux-' + '1.7.4-rc.1';
exports.VERSION = 'redux-' + '1.7.4-rc.2';
// Treatments

@@ -9,0 +9,0 @@ exports.ON = 'on';

{
"name": "@splitsoftware/splitio-redux",
"version": "1.7.4-rc.1",
"version": "1.7.4-rc.2",
"description": "A library to easily use Split JS SDK with Redux and React Redux",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -11,2 +11,2 @@ // For Redux

export { ISplitState, ISplitTreatments, IKeyTreatments } from './types';
export { ISplitState } from './types';

@@ -44,25 +44,13 @@ /** Type for Split reducer's slice of state */

/**
* This property contains the evaluations of feature flags.
* Each evaluation is associated with an feature flag name and a key (e.g., user id or organization name).
* Thus the property has 3 levels: feature flag name, user key, and finally the treatment that was evaluated for that split and key.
* `treatments` is a nested object property that contains the evaluations of feature flags.
* Each evaluation (treatment) is associated with a feature flag name and a key (e.g., unique user identifier, such as a user id).
* Thus the property has 3 levels: feature flag name, key, and finally the treatment that was evaluated for that specific feature flag and key.
*/
treatments: ISplitTreatments;
treatments: {
[featureFlagName: string]: {
[key: string]: SplitIO.TreatmentWithConfig;
};
};
}
/**
* First level of the `treatments` property in the Split reducer's slice of state.
* It consists of the list of evaluated feature flags.
*/
export interface ISplitTreatments {
[featureFlagName: string]: IKeyTreatments;
}
/**
* Second level of the `treatments` property in the Split reducer's slice of state.
* It consists of the list of evaluated keys for the container split.
*/
export interface IKeyTreatments {
[key: string]: SplitIO.TreatmentWithConfig;
}
export type IGetSplitState = (state: any) => ISplitState;

@@ -69,0 +57,0 @@

@@ -7,2 +7,2 @@ export { splitReducer } from './reducer';

export { connectToggler, mapTreatmentToProps, mapIsFeatureOnToProps } from './react-redux/connectToggler';
export { ISplitState, ISplitTreatments, IKeyTreatments } from './types';
export { ISplitState } from './types';

@@ -37,22 +37,12 @@ /** Type for Split reducer's slice of state */

/**
* This property contains the evaluations of feature flags.
* Each evaluation is associated with an feature flag name and a key (e.g., user id or organization name).
* Thus the property has 3 levels: feature flag name, user key, and finally the treatment that was evaluated for that split and key.
* `treatments` is a nested object property that contains the evaluations of feature flags.
* Each evaluation (treatment) is associated with a feature flag name and a key (e.g., unique user identifier, such as a user id).
* Thus the property has 3 levels: feature flag name, key, and finally the treatment that was evaluated for that specific feature flag and key.
*/
treatments: ISplitTreatments;
treatments: {
[featureFlagName: string]: {
[key: string]: SplitIO.TreatmentWithConfig;
};
};
}
/**
* First level of the `treatments` property in the Split reducer's slice of state.
* It consists of the list of evaluated feature flags.
*/
export interface ISplitTreatments {
[featureFlagName: string]: IKeyTreatments;
}
/**
* Second level of the `treatments` property in the Split reducer's slice of state.
* It consists of the list of evaluated keys for the container split.
*/
export interface IKeyTreatments {
[key: string]: SplitIO.TreatmentWithConfig;
}
export declare type IGetSplitState = (state: any) => ISplitState;

@@ -59,0 +49,0 @@ /**

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc