
Security News
pnpm 10.16 Adds New Setting for Delayed Dependency Updates
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.
@beardedtim/common-reducers
Advanced tools
Because I got tired of re-writing these every reducer
import {add, updateByKey, removeByKey} from '@beardedtim/common-reducers'
const reducer = {
[ADD_USER]: add,
[UPDATE_USER]: updateByKey('_id'),
[REMOVE_USER]: removeByKey('_id')
}
which is dependent on the action looking like this:
addUser(user) // {type: ADD_USER, payload: user}
updateUser({_id: _id, update}) // {type: UPDATE_USER, payload: {_id,update}}
removeUser(_id) // {type: REMOVE_USER, payload: _id}
If you want to remove more than one item at a time, you can use unique=false when creating removeByKey:
[REMOVE_MATCHING_NAME]: removeByKey('name',false)
this will now filter out all objects inside of state who have a property called name that is set to whatever is passed in by removeUser
FAQs
> Because I got tired of re-writing these every reducer
The npm package @beardedtim/common-reducers receives a total of 1 weekly downloads. As such, @beardedtim/common-reducers popularity was classified as not popular.
We found that @beardedtim/common-reducers 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
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.

Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.

Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.