- 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: https://github.com/pillarjs/path-to-regexp/releases
- 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.
- This package now supports ESM and CommonJS modules.
- No longer supports Node 14. Please use Node 16 or higher.
- Upgraded from
@curveball/core
to@curveball/kernel
.
- This package now adds a
router.matchedRoute
property toContext
. This property will contain the (last) used route and might be useful for logging purposes. (@mhum).
- Require @curveball/core 0.19 in peerDependencies.
- Requires Node 14 and up, and curveball/core 0.19 and up.
- 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.
- Allow installation on Curveball 0.10.
@curveball/core
is now a peerDependency, making it easier to upgrade.
- Updated to Curveball 0.9.0 API.
- Updated to work with controller-style middlewares.
- Updated dependencies.
- Updated to latest curveball API.
- Updated to latest curveball API.
- First version