- replace lodash with rambda
- React Native async storage from community repo
- revert warn for mobx >4
- up deps
- warn for mobx >4
- esm: remove
esmodules
from babel env config (fix the problem with webpack uglify) - add TS typings to npm build
- (internal) using decorating lib for more clean code
- fix babel runtime import; lock @babel rc version
- new babel transform fixes
- interpret null value from storage as non-existent (localStorage returns null
for non-existent keys)
Bump major version because it can be back incompatible. - .native postfix for React Native
- separate esm build
- MobX4
- major version is the same as MobX
- TypeScript support. Yippee!
@interceptReads
renamed to@_interceptReads
(as in MobX4)@setter
and@toggle
auto bound to store@save
:transform
replaced withserializer
@save
:storeName
option can be function- all internal mobx kitchen depends removed
- prevent webpack to use non-transpiled source by default
- fix missed files in
lib
@interceptReads
- add missed
allObservable
export to react-native
- all callbacks called in store context now
- fix
@observe
,@intercept
and@save
may not work with extending
@allObservable
: fix getter and setter for observable was not defined
@allObservable
@save
,@observe
and@intercept
can be defined after@observable
now- decorators return configurable properties now
- transpiling with es2015 preset now
@setter
: you can provide transform function now
class User {
@setter(value => value && value.toUpperCase())
@observable
name;
}
const user = new User();
user.setName('Alice'); // user.name = 'ALICE'
@save
,@createSaveDecorator
- transpiled version
- Adopting to mobx3
@observe
callback receive change argument now (
more info
)