You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated path-to-regexp from 6 to 8.1, to fix a security vulnerability.
Unfortunately the supported syntax for path-to-regexp has changed slightly for complex routes, so this is a breaking change. Most common simple routes will not be affected. For more information consult the path-to-regexp changelog:
CommonJS support has been dropped. The previous version of this library supported both CommonJS and ESM. The effort of this no longer feels worth it. ESM is the future, so we're dropping CommonJS.
This package now adds a router.matchedRoute property to Context. This property will contain the (last) used route and might be useful for logging purposes. (@mhum).
Every route can now supply multiple middlewares, which will run in order.
Instead of ctx.state.params, params are now set in ctx.params and have
stronger typing. The old ctx.state.params still work, but will be removed
in a future version.
Typescript target is now es2019 instead of esnext to ensure that older
Node.js versions are supported.