npm zundo 1.2.0

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

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

Don't miss a new zundo release

NewReleases is sending notifications on new releases.