Releases: BackendStack21/restana
Releases · BackendStack21/restana
Increase compatibility with Node.js http.Server.listen method
Added:
- Fully support all
http.Server.listen
method arguments onrestana.start
method. - AWS SAM serverless example application is now referenced in readme.
Update TypeScript definitions
Adding req.body
types definitions.
Enable strict mode
Adding 'use strict' to all .js files.
Update dependencies
- Updates dependencies.
- Removes package-lock.json from module level.
Improve TypeScript support
Adding typings for nested routers registration API.
Thanks to @kelvinfloresta for his contribution here.
Update dependencies
Update 0http to v2.2.2
Improve documentation
Adding the following topics to readme:
- Nested Routers
- Cloud Functions for Firebase integration (thanks to @adrianjost)
Bump 0http to latest version
Update dependencies.
Fixes method chaining
Fixes method chaining for .use
and routes registration shortcuts like .get, .post, ...
app
.use(...)
.use(...)
.get(...)
.start(3000)
v4
Added
- Node.js v10.x+ is required.
0http
sequential router is now the default and only HTTP router.- Overall middlewares support was improved.
- Nested routers are now supported.
- Improved error handler through async middlewares.
- New
getRouter
andnewRouter
methods are added for accesing default and nested routers.
Removed
- The
response
event was removed. find-my-way
router is replaced by0http
sequential router.- Returning result inside async handler is not allowed anymore. Use
res.send...