
Product
Rust Support in Socket Is Now Generally Available
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.
Embeddable DOM diffing algorithm. Currently a fork of morphdom with hooks and IE7 support removed, and event copying added, but will probably change in the future.
const nanodiff = require('nanodiff')
const bel = require('bel')
var tree = null
var el1 = bel`<div>hello people</div>`
var el2 = bel`<div>nanananana-na-no</div>`
var el2 = bel`<div>teeny, tiny, tin bottle</div>`
update(el1)
update(el2)
update(el3)
function update (el) {
if (!tree) {
tree = el
document.body.appendChild(tree)
} else {
tree = nanodiff(el, tree)
}
}
Diff a tree of HTML elements against another tree of HTML elements and create a patched result that can be applied on the DOM.
Experimentin' is fun - all this is is a take on seeing how small we can get with real DOM node diffing. And if we can make some good heuristics happen for efficient tree updates (Merkle trees, anyone?) that'd be nice.
$ npm install nanodiff
FAQs
Embeddable DOM diffing algorithm
We found that nanodiff 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.

Product
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.

Security News
Chrome 144 introduces the Temporal API, a modern approach to date and time handling designed to fix long-standing issues with JavaScript’s Date object.

Research
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.