Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
immutable-redux
Advanced tools
Provides utilities for dealing with Immutable.js data structures in Redux.
Provides utilities for dealing with Immutable data structures in Redux.
To install the stable version along with Immutable and Redux, run the following:
$ npm install --save immutable-redux immutable redux
This assumes that you're using the npm package manager with a module bundler like Webpack or Browserify.
If you don't yet use npm or a modern module bundler, and would rather prefer a single-file UMD build that makes ImmutableRedux
available as a global object, you can build it yourself by running the following:
$ npm run build
You'll find the development (immutable-redux.js
) and production (immutable-redux.min.js
) versions of the library in the dist
folder. I don't recommend this approach for any serious application.
import {List} from 'immutable'
import {createStore} from 'redux'
import {combineImmutableReducers} from 'immutable-redux'
const reducer = combineImmutableReducers({
counter: (state = 0, action) =>
action.type === 'INCREMENT' ? state + 1 : state,
stack: (state = List(), action) =>
action.type === 'PUSH' ? state.push(action.payload) : state
})
let store = createStore(reducer)
store.subscribe(() =>
console.log(store.getState())
)
store.dispatch({type: 'INCREMENT'})
// => Map { "counter": 1, "stack": List [] }
store.dispatch({type: 'PUSH', payload: 'a'})
// => Map { "counter": 1, "stack": List [ "a" ] }
git clone git://github.com/unindented/immutable-redux.git
Copyright (c) 2015 Daniel Perez Alvarez (unindented.org). This is free software, and may be redistributed under the terms specified in the LICENSE file.
FAQs
Provides utilities for dealing with Immutable.js data structures in Redux.
The npm package immutable-redux receives a total of 15 weekly downloads. As such, immutable-redux popularity was classified as not popular.
We found that immutable-redux 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.