Releases: curveball/router
Releases · curveball/router
2.0.0
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:
v1.0.0
- Finally! Curveball v1. Only took 6 years.
- 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.
- Now requires Node 18.
- Upgraded to Typescript 5.3.
v0.6.0
v0.5.0
v0.4.2
v0.4.1
v0.4.0
v0.3.0
- Every route can now supply multiple middlewares, which will run in order.
- Instead of
ctx.state.params
, params are now set inctx.params
and have
stronger typing. The oldctx.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.