
Security News
Official Go SDK for MCP in Development, Stable Release Expected in August
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
(Work in progress)
Reactive state containers focused on DOM performance
import { getBox, on } from 'Boxes'
const origin = {
a: 1
}
const box = getBox(origin)
box // { a: 1 }
box === origin // false
on(box, 'a', (...change) => console.log(change))
box.a = 'hello'
// logs: [{ a: 'hello' }, 'a', 'set', 1, 'hello']
Adds handler
to box
const box = getBox({ a: 1 })
const handler = (...change) => console.log(change)
boxes.on(box, 'a', handler)
box.a = 'hello'
// logs: [{ a: 'hello' }, 'a', 'set', 1, 'hello']
It also works with dot notation:
const box = getBox({ o: { a: 1 } })
const handler = (...change) => console.log(change)
boxes.on(box, 'o.a', handler)
box.o.a = 'hello'
['set', 'a', 1, 'hello', { a: 'hello' }]
box.o = { a: 'bye' }
// logs: [{ a: 'bye' }, 'a', 'set', 'hello', 'bye']
Removes handler
from the box
boxes.off(box, 'propName', action)
Boxes will emit the changes made in the observed objects.
Generic signature: [box, property, changeType, oldValue, newValue]
Object:
[box, property, 'set', oldValue, newValue]
[box, property, 'delete', oldValue, undefined]
Array:
[box, property, 'set', oldValue, newValue]
[box, property, 'delete', oldValue, undefined]
[box, property, 'insert', undefined, newValue]
[box, property, 'remove', oldValue, undefined]
[box, property, 'swap', oldValue, newValue]
[box, firstIndexChanged || undefined, 'length', oldLength, newLength]
firstIndexChanged
will be passed only on shift, splice and unshift
because on pop and push no index will changeFAQs
Reactive state containers for js apps
The npm package boxes receives a total of 52 weekly downloads. As such, boxes popularity was classified as not popular.
We found that boxes 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
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
Security News
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.