Releases: tamb/substate
v9.0.0-alpha.2
Uses new deep clone library (#69)
v9.0.0 - Just Better
- Use a more popular deep clone library for better stability
- Use a newer version of
object-bystring
with a more modern implementation - Full Typescript support
- Adds
removeAll
andremoveAllOf
methods to handle attached listeners - Better documentation
- More tests
- update class name to be Capitalized
substate
is nowSubstate
Dependency Bump
Simply bumping dependency versions
Readme and Package Update
Clarified a few things in readme and updated the package to remove dev dependencies.
Bug fix and tests
emit
now passes an empty object as data by default.
Change that State
You can now emit('CHANGE_STATE', {requestedState: 2})
and change your state. This allows you to undo and redo!
8 is great
Version 7 was a bust. I wrote some unit tests which were poor and missed a huge bug. So I had to revert from my plans and push out a fixed version asap.
Sorry to anyone who got screwed with v7
Middleware
We now have middleware for updating the state. You can add an optional function to the config for beforeUpdate
and afterUpdate
to have access the the entire store/substate instance. This is great for making saves to local state, stopping state updates if you need to, etc.
Super small now!
I switched to a much smaller deep cloning dependency and now the project is half the size!