Skip to content

v2.0.0-beta.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@charkour charkour released this 17 Jan 12:59
· 134 commits to main since this release
48c873c

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 [email protected]

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