Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
patched-undo-peasy
Advanced tools
Undo/Redo support for easy peasy.
patched-undo-peasy
depends on an easy peasy fork. (but modifying undo-peasy to depend on stock easy-peasy should be straightforward.)
undoRedoMiddleWare
in createStore
.
const store = createStore(appModel, {
middleware: [undoRedo()],
});
WithUndo
.
WithUndo
will add types for undo actions and undo history to your root model.
interface Model extends WithUndo {
count: number;
increment: Action<Model>;
}
undoable
.
undoable
will add types for undo actions and undo history to your root model.
const appModel: Model = undoable({
count: 0,
increment: action((state) => {
state.count++;
}),
});
const undoAction = useStoreActions((actions) => actions.undoUndo);
undoUndo
- restore state to the most recently saved version.undoRedo
- restore state to the most recently undone version.undoSave
- save current application state to undo history.
undoSave is generated automatically by the middleware, but in rare cases it's useful to save manually.undoReset
- erases saved undo/redo history and saves the current state.The undoRedo()
middleware function accepts an optional configuration object.
noSaveActions
- a function that tells undoRedo to not save certain actions to undo/redo history.noSaveKeys
- a function tthat tells undoRedo not to save certain keys inside the state model
to undo/redo history. e.g. view state in the model.FAQs
undo/redo for easy peasy
We found that patched-undo-peasy 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.