Skip to content

v1.2.0

Compare
Choose a tag to compare
@charkour charkour released this 19 Oct 01:24
· 175 commits to main since this release

Breaking Change: New updates to the zundo middleware options. Options now is the structure { omited: string[], allowUnchanged: boolean }. It is used within this context. Thanks @funwithtriangles! πŸŽ‰

const useStore = create(
  undoMiddleware(
    set => ({ ... }),
    { omit: ['ignored'], allowUnchanged: true }
  )
);

This is breaking because in the past, unchanged states were tracked in history. Please let me know if this makes you upset. Sorry in advance. I figured it was okay since not many people use this package.

  • fix linting errors ca845ed
  • lint and autoformat 962631e
  • update lockfile cdbfefc
  • Merge pull request #16 from funwithtriangles/feature/ignore-no-change efa51f4
  • Moved helper function injection to top of function b634403
  • Injecting helper functions at very end of set 729fb15
  • Use lodash.isequal instead of lodash 71b0a31
  • Added "allow unchanged" story 90a2f95
  • Only storing changes if states aren't equal 8a86ed8
  • Updated bears story with "do nothing" 2d300d5

v1.1.2...v1.2.0