![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
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
});
canUndo
return {Boolean}
True if the history has undoscanRedo
return {Boolean}
True if the history has redosprevious
return {State | Undefined}
The most recent state in the undo stacknext
return {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
The npm package immutable-undo receives a total of 0 weekly downloads. As such, immutable-undo popularity was classified as not popular.
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.