
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
A couple of redux utils I wrote to make my life easier and reduce boilerplate.
yarn add reddeck
Takes a string as parameter, returns an "action creator". An action creator is a function that returns a { type, payload } object when called.
import { actionCreator } from 'reddeck';
const setName = actionCreator('SET_NAME');
console.log(setName('Foo')); // { type: 'SET_NAME', payload: 'Foo' }
Similar to the actionCreator() function, but instead of returning an action creator, it returns an object with 3 action creators: pending(), success() and error().
import { asyncActionCreator } from 'reddeck';
const getData = asyncActionCreator(
'GET_DATA_PENDING',
'GET_DATA_SUCCESS',
'GET_DATA_ERROR'
);
It's useful when you want to handle an asynchronous control flow
const get = async () => {
try {
dispatch(getData.pending()); // { type: 'GET_DATA_PENDING', payload: {} }
const data = await getDataFromAPI();
dispatch(getData.success(data)); // { type: 'GET_DATA_SUCCESS', payload: data }
} catch (err) {
dispatch(getData.error(err)); // { type: 'GET_DATA_ERROR', payload: err }
}
};
First param is a string containing all the types. Spaces are ignored.
The second parameter specifies the options and it's optional.
import { typeCreator } from 'reddeck';
const options = {
prefix: 'app/'
};
const types = typeCreator(
`
SET_NAME
GET_DATA_PENDING
GET_DATA_SUCCESS
GET_DATA_ERROR
`,
options
);
console.log(types);
/*
{
SET_NAME: 'app/SET_NAME',
GET_DATA_PENDING: 'app/GET_DATA_PENDING',
GET_DATA_SUCCESS: 'app/GET_DATA_SUCCESS',
GET_DATA_ERROR: 'app/GET_DATA_ERROR'
}
*/
import { apiStateCreator } from 'reddeck';
const api = apiStateCreator();
console.log(api);
/*
{
pending: false,
success: false,
error: false
}
*/
const apiPending = apiStateCreator({ pending: true });
console.log(apiPending);
/*
{
pending: true,
success: false,
error: false
}
*/
FAQs
A couple of Redux utils that make life easier and less boilerplaty
We found that reddeck demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.