Skip to content

Releases: curveball/router

2.0.0

10 Sep 19:22
e35991d
Compare
Choose a tag to compare

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

v1.0.0

16 Jan 18:41
a498883
Compare
Choose a tag to compare
  • 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

04 Apr 21:09
e01f468
Compare
Choose a tag to compare
  • This package now supports ESM and CommonJS modules.
  • No longer supports Node 14. Please use Node 16 or higher.

v0.5.0

03 Sep 23:42
f41bc26
Compare
Choose a tag to compare
  • Upgraded from @curveball/core to @curveball/kernel.

v0.4.2

03 Sep 20:06
da9dc4d
Compare
Choose a tag to compare
  • 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).

v0.4.1

20 Jun 05:00
3ddbe5b
Compare
Choose a tag to compare
  • Require @curveball/core 0.19 in peerDependencies.

v0.4.0

20 Jun 04:56
e7d1666
Compare
Choose a tag to compare
  • Requires Node 14 and up, and curveball/core 0.19 and up.
  • Fixes a compatibility issue with @curveball/validator 0.9 / @curveball/core 0.19

v0.3.0

02 Feb 03:50
920b4f8
Compare
Choose a tag to compare
  • 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.

v0.2.4

06 Jan 01:13
9d972e7
Compare
Choose a tag to compare
  • Allow installation on Curveball 0.10.

v0.2.3

06 Jan 01:06
7a96a8f
Compare
Choose a tag to compare
  • @curveball/core is now a peerDependency, making it easier to upgrade.