Skip to content

v1.0.0

Compare
Choose a tag to compare
@charkour charkour released this 15 May 01:26
· 206 commits to main since this release

Version 1.0.0 release! This has some Breaking Changes and also new features!

  • undo has been renamed to undoMiddleware
    - import { undo } from 'zundo';
    + import { undoMiddleware, UndoState } from 'zundo';
  • useUndo() is no longer a hook, the object returned from useUndo() is now part of the store you create
    use like this
  const {
    bears,
    increasePopulation,
    removeAllBears,
    decreasePopulation,
    undo,
    clear,
    redo,
    getState,
  } = store;

New features include:

  • a simplified API

  • the ability to have multiple undoable stores in a single app

  • a create function from zundo to create your undoable stores

  • Update README.md 113f31e

  • Merge pull request #7 from charkour/multiple-undo-stores eaca784

  • update documentation 3861aa5

  • multiple undo stores c65a8ca

  • separate files 15e78f3

  • update zustand dependency 4f6dc47

  • Update README.md 5f772fe

  • inject useUndo into the undo middleware 524478a

  • create undoStore factory 147c08d

v0.4.0...v1.0.0