typera

Type-safe routes for Express and Koa

MIT License

Downloads
19.8K
Stars
175
Committers
8

Bot releases are visible (Hide)

typera - Latest Release

Published by github-actions[bot] over 2 years ago

What’s Changed

🐛 Bug Fixes

  • Enhance default response encoding and Content-Type (#418) @akheron
typera -

Published by github-actions[bot] over 2 years ago

What’s Changed

🐛 Bug Fixes

  • Allow all codecs again with Parser.headers (#407) @akheron
typera -

Published by github-actions[bot] over 2 years ago

What’s Changed

🐛 Bug Fixes

  • Prevent using exact codecs with Parser.headers + improve headers Proxy (#392) @rjoonas

🧰 Maintenance

  • docs: add example about how to use chainedMiddleware (#350) @ajmnz
  • docs: add typera-openapi url in README (#351) @GabeAtWork
typera -

Published by github-actions[bot] over 3 years ago

What’s Changed

🐛 Bug Fixes

  • Export the Router type (#167) @akheron
typera -

Published by github-actions[bot] over 3 years ago

What’s Changed

🚀 Features

  • Allow middleware to access captured route params (#114) @akheron
typera -

Published by github-actions[bot] over 3 years ago

What’s Changed

🚀 Features

  • Case insesitive request header parsing (#110) @akheron
typera -

Published by github-actions[bot] over 3 years ago

What’s Changed

🐛 Bug Fixes

  • wrapNative: Add support for middleware that replace res.end (#102) @akheron
typera -

Published by github-actions[bot] over 3 years ago

What’s Changed

🚀 Features

  • Add experimental support for Express middleware: Middleware.wrapNative() (#75) @akheron

🐛 Bug Fixes

  • Allow ChainedMiddleware to access the request base (#76) @akheron
typera -

Published by github-actions[bot] over 3 years ago

What’s Changed

🚀 Features

  • Add Parser.cookies and Parser.cookiesP (#69) @akheron
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