
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
redux-memory
Advanced tools
Redux Persistence made simple. Works with ImmutableJS through options.scope.
npm install --save redux-memory
# or
yarn add redux-memory
Before:
import { createStore } from 'redux'
import reducer from './reducers'
async function main() {
const store = createStore(reducer)
/// ... stuff
}
After:
import { getReduxMemory, EngineLocalStorage } from 'redux-memory'
// import { Set as ImmSet, Map as ImmMap } from 'immutable'
// ^ Uncommment for Immutable JS support
import { createStore } from 'redux'
import reducer from './reducers'
async function main() {
const store = getReduxMemory({
storage: new EngineLocalStorage('my-local-storage-key'),
reducer,
createStore,
// keysToPersist: ['session', 'user.id'],
// ^ Uncomment if you only want to persist session.* and user.id
// knownTypes: [ImmSet, ImmMap],
// ^ Uncomment for Immutable JS support
})
/// ... stuff
}
export async function getReduxMemory({
storage: Object,
reducer: Function,
createStore: Function,
saveDebounce?: number = 0,
keysToPersist?: Array<string> = [],
knownTypes?: Array<Function> = [],
serializeValue?: (value: any) => any,
})
export class EngineAsyncStorage {
constructor(key: string)
}
export class EngineLocalStorage {
constructor(key: string)
}
serializeValue will be dehydrated by the original constructor from knownTypes.This project is licensed under the terms of MIT License. See the LICENSE file for more info.
FAQs
Redux Persistence made simple
We found that redux-memory 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.