mirror of
https://github.com/zhigang1992/mobx-utils.git
synced 2026-04-28 20:25:00 +08:00
Published version 5.0.0
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
# 5.0.0
|
||||
|
||||
* Added MobX 5 compatibility. The package is also compatible with MobX 4.3.1+.
|
||||
* `createViewModel` now also copies computed properties to the view Model. Implements [#100].(https://github.com/mobxjs/mobx-utils/issues/100). Implemented through [#126](https://github.com/mobxjs/mobx-utils/pull/126) by [@RafalFilipek](https://github.com/RafalFilipek).
|
||||
|
||||
# 4.0.1
|
||||
|
||||
* passing a `fromPromise` based promise to `fromPromise` no longer throws an exception. Fixes [#119](https://github.com/mobxjs/mobx-utils/issues/119)
|
||||
|
||||
@@ -133,7 +133,7 @@ current value of the lazyObservable. It is allowed to call `sink` multiple times
|
||||
to keep the lazyObservable up to date with some external resource.
|
||||
|
||||
Note that it is the `current()` call itself which is being tracked by MobX,
|
||||
so make sure that you don't dereference too early.
|
||||
so make sure that you don't dereference to early.
|
||||
|
||||
**Parameters**
|
||||
|
||||
@@ -306,7 +306,7 @@ Note that if you read a non-dirty property, viewmodel only proxies the read to t
|
||||
|
||||
```javascript
|
||||
class Todo {
|
||||
@observable title = "Test"
|
||||
\@observable title = "Test"
|
||||
}
|
||||
|
||||
const model = new Todo()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "mobx-utils",
|
||||
"version": "4.0.1",
|
||||
"version": "5.0.0",
|
||||
"description": "Utility functions and common patterns for MobX",
|
||||
"main": "mobx-utils.umd.js",
|
||||
"module": "mobx-utils.module.js",
|
||||
@@ -44,18 +44,18 @@
|
||||
"jest": "^22.4.2",
|
||||
"lint-staged": "^4.2.3",
|
||||
"lodash.intersection": "^4.4.0",
|
||||
"mobx": "^4.0.0",
|
||||
"mobx": "^5.0.0-beta.5",
|
||||
"prettier": "^1.7.2",
|
||||
"rollup": "^0.50.0",
|
||||
"rxjs": "^5.0.2",
|
||||
"ts-jest": "^22.4.1",
|
||||
"tslint": "^3.15.1",
|
||||
"tslint-eslint-rules": "^2.1.0",
|
||||
"typescript": "^2.4.2"
|
||||
"typescript": "^2.9.0"
|
||||
},
|
||||
"dependencies": {},
|
||||
"peerDependencies": {
|
||||
"mobx": "^4.0.0"
|
||||
"mobx": "^4.3.1 || ^5.0.0"
|
||||
},
|
||||
"keywords": [
|
||||
"mobx",
|
||||
|
||||
Reference in New Issue
Block a user