Skip to content

Commit

Permalink
feat(deps): Mobx > 5 support
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonardoGentile committed Dec 30, 2018
1 parent 5212e25 commit a396cf7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ This plugin can also be used standalone together with mobx.
## Requirements

- __router5 >= 6.1.2__
- __mobx >= 4.0.0__
- __mobx >= 5.0.0__ If you use Mobx < 5 install "^4.0.0" version


Notice Mobx@5 introduced breaking changes, please follow the [migration guide](https://github.com/mobxjs/mobx/blob/e17c47833d1812eee6d77914be890aa41e4b7908/CHANGELOG.md#500)


These are considered `peerDependencies` that means they should exist in your installation, you should install them yourself to make this plugin work. The package won't install them as dependencies.

Expand All @@ -30,7 +34,7 @@ Whenever you performs a router5's transition from one state to another and that
this plugin exposes all this info as [mobx observables references](https://mobx.js.org/refguide/observable.html) properties of the `RouterStore` class.
You can then use the mobx API to **observe** and react to these **observables**:

```javascript
```ecmascript 6
@observable.ref route; // Current Route - Object
@observable.ref previousRoute; // Object
@observable.ref transitionRoute; // Object
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
},
"peerDependencies": {
"router5": "^6.1.2",
"mobx": "^4.0.0"
"mobx": "^5.0.0"
},
"scripts": {
"commit": "git-cz",
Expand Down

0 comments on commit a396cf7

Please sign in to comment.