6.14.0
What's Changed
- Added support for callback on the
Server.listen()
method for improved Express.js compatibility. - Implemented
Router.route(pattern)
method which returns a chainableRouter
instance for binding multiple method routes on the same pattern easier.- Example:
Router.route('/api/v1').get(apiV1GetHandler).post(apiV1PostHandler)
- Example:
- Fixed bug with binding an
any
orall
wildcard route on the*
pattern which would lead to an incorrect duplicate route exception thrown when a not found handler was also defined. - Improved JSDoc and TypeScript Types.
Full Changelog: 6.13.0...6.14.0