
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
hyperapp-unite
Advanced tools
A utility function for merging reducers, effects and routes with safe namespacing
A utility function for merging reducers, effects and routes with safe namespacing
import { uniteActions } from 'hyperapp-unite'
const x = {
inc: model => ({ x: model.x + 1 })
dec: model => ({ x: model.x - 1 })
}
const y = {
inc: model => ({ y: model.y + 1 })
dec: model => ({ y: model.y - 1 })
}
export default uniteActions({ x, y })
The above code will export an object with every reducer action namespaced using its parents key (x,y) as a camel case suffix:
{
incX: f(model)
decX: f(model)
incY: f(model)
decY: f(model)
}
This object can be passed in to hyperapp as the update or effects value..
import reducers from './reducers'
app({
update: reducers,
model: { x:0, y:0 }
view: (_, actions) =>
<button onClick={e => actions.incX()}>X+<button>
<button onClick={e => actions.incY()}>Y+<button>
})
FAQs
A utility function for merging reducers, effects and routes with safe namespacing
The npm package hyperapp-unite receives a total of 0 weekly downloads. As such, hyperapp-unite popularity was classified as not popular.
We found that hyperapp-unite 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
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.