Releases: alexhisen/mobx-form-store
Releases · alexhisen/mobx-form-store
v3.0.0
dev: Upgrade Babel, Mocha, set up mocharc.json to enable running individual tests in WebStorm easily. Remove webpack compiling, just babel. feat: deep-merge objects and arrays (plain or observable) when storing data coming from server and in the updates object sent to server
feat: support detecting if whole-object replaces actually have changed in their content
v2.3.0
- feat: If data object is provided to reset(), dataServer will be set to it and store.isReady will be set to true, same as when providing data object to the constructor.
v2.2.1
- feat: ignoreMinRefreshInterval option for refresh() to allow refresh() to proceed even it was refreshed less than minRefreshInterval ago.
v2.2.0
- feat: allowIfMustCreate option for refresh() to allow refresh() to proceed even after store with idProperty isReady.
v2.1.1
- feat: deactivate saveNotification prior to save unless keepServerError is true.
v2.1.0
- feat: new constructor option - saveNotificationStatusOnError - if set and server.set/create throw an error in save(), the saveNotification will be activated with this string in status.
v2.0.0
- feat: status.mustCreate returns true if idProperty is defined and it's falsy in dataServer (not data!)
- fix: BREAKING CHANGE. Previously, server.create() was called (instead of server.set()) only when the property defined as the idProperty in store.data was falsy. This worked well if the idProperty was only returned by the server and was not user-enterable. Now whether server.create() is called is driven by status.mustCreate.
v1.4.2
- fix: Convert mobx observable arrays to plain arrays in the updates object passed to server.set/create (cleaner this way)
v1.4.1
- fix: Properly support mobx observable arrays in the isSame determination.
v1.4.0
feat: Support array-type properties in the isSame determination.
feat: reset() now clears lastSync to re-enable load().