Releases: kriasoft/universal-router
Releases · kriasoft/universal-router
9.2.0 - 2023-06-23
9.1.0 - 2021-06-23
- Add
uniqueRouteNameSep
option togenerateUrls(router, options)
to allow non-unique route names among different branches of nested routes and access them by uniquely generated name (#194)
9.0.1 - 2020-03-11
- Fix typings:
router.resolve()
andcontext.next()
always return a promise now (#187)
9.0.0 - 2020-02-27
- Update path-to-regexp from v3 to v6, see changelog (BREAKING CHANGE)
- Remove
context.keys
(BREAKING CHANGE) - Migrate to TypeScript (#183)
8.3.0 - 2019-09-17
- Make
generateUrls
compatible withUniversalRouterSync
(#172)
8.2.1 - 2019-07-20
- Fix
context.next()
to throwRoute not found
instead ofTypeError
(#169)
8.2.0 - 2019-05-10
- Improve TypeScript typings (#167)
8.1.0 - 2019-02-20
- Add synchronous mode as an add-on (#164)
8.0.0 - 2019-01-15
- Update path-to-regexp from v2.4.0 to v3.0.0, see changelog (BREAKING CHANGE #161)
- Add TypeScript typings (#159)
7.0.0 - 2018-10-11
- The router no longer mutate errors to avoid issues with non-extensible objects. (BREAKING CHANGE #158).
Migration from v6 to v7:
- If your code relies on
error.context
orerror.code
you still can access them usingerrorHandler
option:errorHandler(error, context) { const code = error.status || 500 console.log(error, context, code) }