npm zundo 2.0.0-beta.0
v2.0.0-beta.0

latest releases: 2.3.0, 2.2.0, 2.1.0...
3 years ago

What's Changed

  • Updated undo and redo to accept a number of steps by @ivoilic in #32
    • This includes an awesome mascot image made by @ivoilic 🎉

Breaking Changes

  • Changes to undo/redo callbacks By default the event is passed which throws a type error since the functions are now expecting a number as the first parameter.
- <button onClick={undo} />
+ <button onClick={() => undo?.() />
  • clear now becomes cleaUndoHistory
- const { clear } = useUndoStore();
+ const { clearUndoHistory } = useUndoStore();

To use the beta: npm i zundo@2.0.0-beta.0

Full Changelog: v1.5.9...v2.0.0-beta.0

Don't miss a new zundo release

NewReleases is sending notifications on new releases.