All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
3.0.0 (2023-10-30)
3.0.0-alpha.0 (2023-10-30)
-
- Now requires history 5^
-
notFound option is removed
-
removed vmPlugin (was not useful in practice)
-
goTo signature changed, 1rst arg is route path, 2nd is params, 3rd are options goTo(route: string, params = {}, goToOptions: IGoToOptions = {})
-
intercept & route hooks signature changed, first argument is the request (request: IRequest, router: Router) => Partial
- bard router now works without a need for declaring route configs (002a2b1)
2.0.2 (2023-02-28)
2.0.1 (2021-07-04)
2.0.0 (2021-03-10)
- goBack: was missing mobx decoration as action (ebb3468)
2.0.0-beta.0 (2021-01-24)
-
Now needs mobx 6+
-
rewrite in typescript + update deps for mobx 6 + prettier (d2fd51f)
1.0.3 (2020-03-13)
1.0.2 (2019-07-12)
1.0.1 (2019-06-20)
- Router: runInterceptors was wrongly skipping some paths (a6ec32f)
1.0.0 (2019-05-14)
- windowTitlePlugin: route configuration change (fbf7ce9)
- added router beforeNav, afterNav events; route intercept hook (fbbfa7c)
- plugins: added scrollPlugin to easily restore window scroll on nav (2e63744)
- vmPlugin: added vmPlugin for simple app architecture (experimental) (1fa6917)
- windowTitlePlugin: Before: the plugin expected a property {data: title} Now: the plugin expects a property {windowTitlePlugin: title}
- 'nav' event has been removed and replaced by 'afterNav'
0.3.0 (2019-04-19)
-
- Router instantiation Now the constructor has a single argument.
You should call it: new Router({routes: myRoutes, otherOptions...}) (before: new Router(routes, {options...}))
- For trying to unify plugins API: Now call html5HistoryPlugin.register(router) instead of html5HistoryPlugin.createHistory()
0.2.1 (2019-03-27)
- methods: goTo and goBack are now bound to the instance (fc08bb8)
- html5 history: going forward (e5047d2)
- history: add generic history + html5 support (d0bb66b)
- Link: improve links active behaviour (f91e2d2)
- easier history plugin api (baf940b)
- history plugin now is passed in the options and the history can be accessed as router.history while the router internal history is at router.story.
- history: 'onNav' hook is now available as:
router.on('nav', (router, navOptions) => {}))