typera

Type-safe routes for Express and Koa

MIT License

Downloads
19.8K
Stars
175
Committers
8

Bot releases are hidden (Show)

typera -

Published by akheron almost 4 years ago

BREAKING CHANGES

  • Requires TypeScript 4.1 or newer
  • Remove the deprecated routeHandler(), run(), Parser.routeParams() and Parser.routeParamsP() functions.
  • Remvove the deprecated function chaining syntax for defining routes
  • Remove URL.int() and URL.str() in favor of path patterns and conversions

New features

  • Type-safe support for path patterns like '/user/:id(num)/foo/:bar(custom)'
  • Support for registering custom route parameter conversions with route.useParamConversions()
typera -

Published by akheron about 5 years ago

  • New features

    • Add support for middleware
    • Add router() and route()
  • Deprecations

    • Deprecate routeHandler() and run() in favor of router() and
      route().
typera -

Published by akheron about 5 years ago

  • Breaking Change
    • Upgrade fp-ts to ^2.0.0