Skip to content

Latest commit

 

History

History
143 lines (68 loc) · 4.52 KB

CHANGELOG.md

File metadata and controls

143 lines (68 loc) · 4.52 KB

Changelog

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)

⚠ BREAKING CHANGES

    • 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

Features

  • 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)

Bug Fixes

  • goBack: was missing mobx decoration as action (ebb3468)

2.0.0-beta.0 (2021-01-24)

⚠ BREAKING CHANGES

  • 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)

Bug Fixes

  • Router: runInterceptors was wrongly skipping some paths (a6ec32f)

1.0.0 (2019-05-14)

Code Refactoring

  • windowTitlePlugin: route configuration change (fbf7ce9)

Features

  • 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)

BREAKING CHANGES

  • 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)

Features

  • plugin: new windowTitlePlugin (ea7e111)
  • support for route not found redirect (add14bb)

BREAKING CHANGES

    1. Router instantiation Now the constructor has a single argument.

You should call it: new Router({routes: myRoutes, otherOptions...}) (before: new Router(routes, {options...}))

  1. For trying to unify plugins API: Now call html5HistoryPlugin.register(router) instead of html5HistoryPlugin.createHistory()

0.2.1 (2019-03-27)

Bug Fixes

  • methods: goTo and goBack are now bound to the instance (fc08bb8)

0.2.0 (2019-02-28)

Bug Fixes

  • html5 history: going forward (e5047d2)

Features

  • history: add generic history + html5 support (d0bb66b)
  • Link: improve links active behaviour (f91e2d2)
  • easier history plugin api (baf940b)

BREAKING CHANGES

  • 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) => {}))