Universal Router Versions Save

A simple middleware-style router for isomorphic JavaScript web apps

v9.2.0

10 months ago
  • Bump TypeScript to 4.9.5 and fix types (#215)

v9.1.0

2 years ago
  • Add uniqueRouteNameSep option to generateUrls(router, options) to allow non-unique route names among different branches of nested routes and access them by uniquely generated name (#194)

v9.0.1

4 years ago
  • Fix typings: router.resolve() and context.next() always return a promise now (#187)

v9.0.0

4 years ago

v8.3.0

4 years ago
  • Make generateUrls compatible with UniversalRouterSync (#172)

v8.2.1

4 years ago
  • Fix context.next() to throw Route not found instead of TypeError (#169)

v8.2.0

5 years ago
  • Improve TypeScript typings (#167)

v8.1.0

5 years ago

v8.0.0

5 years ago

v7.0.0

5 years ago
  • 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 or error.code you still can access them using errorHandler option:
    errorHandler(error, context) {
      const code = error.status || 500
      console.log(error, context, code)
    }