Skip to content

Commit de648bc

Browse files
committed
BREAKING_CHANGE: use major version of mobx-location-history (new exports); BREAKING_CHANGE: rename MobxRouter -> Router, IMobxRouter -> IRouter
1 parent cef9c78 commit de648bc

File tree

6 files changed

+188
-196
lines changed

6 files changed

+188
-196
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,19 +67,18 @@ Same as [`withPageViewModel()`](src/page-view-model/with-page-view-model.tsx) bu
6767

6868
Router for client navigation
6969

70-
### [`MobxLocation`, `MobxHistory`, `QueryParams` and etc](https://github.com/js2me/mobx-location-history)
70+
### [`Location`, `History`, `QueryParams` and etc](https://github.com/js2me/mobx-location-history)
7171

7272
Exports from [mobx-location-history](https://github.com/js2me/mobx-location-history)
7373

7474

7575
### Usage
7676

7777
```ts
78-
import { MobxRouter, MobxLocation, MobxHistory, QueryParams } from "mobx-wouter";
78+
import { Router, Location, History, QueryParams } from "mobx-wouter";
7979

80-
const router = new MobxRouter({
81-
history: //, new MobxLocation()
82-
location: //, new MobxHistory()
80+
const router = new Router({
81+
history: //, new Location()
8382
queryParams: //, new QueryParams(),
8483
abortSignal: //
8584
})

package.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,17 @@
3939
},
4040
"type": "module",
4141
"dependencies": {
42-
"mobx-location-history": "^2.3.1",
43-
"yummies": "^3.2.2"
42+
"mobx-location-history": "^5.1.0",
43+
"yummies": "^3.2.6"
4444
},
4545
"peerDependencies": {
46-
"mobx-location-history": "^2.0.11",
4746
"mobx": "^6.12.4",
4847
"mobx-react-lite": "^4.0.7",
4948
"mobx-view-model": "^6.0.0",
5049
"react": "^18.3.1",
5150
"wouter": "^3.3.5"
5251
},
5352
"peerDependenciesMeta": {
54-
"mobx-location-history": {
55-
"optional": true
56-
},
5753
"mobx-view-model": {
5854
"optional": true
5955
}

pnpm-lock.yaml

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)