- Bump up Svelte version in peerDeps.
- Fix repository references.
- Fix bug with error if oldValue is an error.
- Improve typings.
- Improve typings.
- Fix
syncable
bug. - Improve typings.
- Improve typings.
- Minor fix in
package.json
.
- (breaking change):
asyncable
now is not default export. syncable
store added.- Add types.
- Add babel and prettier configs to
package.json
.
- Repository structure, code formating etc. improvements.
- Rollback a part of the previous commit. The regression test shows that we couldn't resolve a value to check it for
undefiend
. Ifgetter
wants to keep the current value, it should returnundefined
in an obvious way.
- Fix previous commit (forgot to resolve value before checking).
- Now bundles are also shipping.
- Now, if
getter
returnundefined
it means that store should keep current value.
- Added
svelte
as peerDependency - Used an optimistic UI approach and set new value instantly with rollback to previous value if
setter
failed. - Added simple check of new and old values before value update to prevent unnecessarily triggering for primitive values.
reducer
should receive a shallow copy of current value.
- Previous value should be resolved before passing to
setter
- Pass previous value as a second argument of
setter
- Perform
setter
before store update/set
- Demo example added (REPL)
- Make store read-only if
setter
is falsy
- Few optimizations
- First release