
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
immutable-undo
Advanced tools
Simple data structure for and undo/redo stack, using ImmutableJS. The structure holds a stack of undo states, and a stack of redo states. It does not keep a reference to the current state to avoid duplicating data if your state is already stored in another structure.
npm install --save immutable-undo
History.create{Object} [opts] Option object{Number} [opts.maxUndos=500] Maximum number of undos stored. Beyond that, the oldest undo is dropped.return {History} An empty historyvar history = History.create({
maxUndos: 100
});
canUndoreturn {Boolean} True if the history has undoscanRedoreturn {Boolean} True if the history has redospreviousreturn {State | Undefined} The most recent state in the undo stacknextreturn {State | Undefined} The most recent state in the redo stackpush{State} newState The state to push on top of the undo stackreturn {History}Pushes a new state on the undo stack, and clears the redo stack
undo{State} current The current state, that will be pushed on the redo stackreturn {History} The history with the undo stack popped once, and the current state added to redos.redo{State} current The current state, that will be pushed on the undo stackreturn {History} The history with the redo stack popped once, and the current state added to redosFAQs
Data structure for and Undo/Redo stack, using ImmutableJS
We found that immutable-undo 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
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.