Releases: roncli/hot-router
Releases · roncli/hot-router
v2.0.0 Beta 7
- Breaking change: Changed
getRoutermethod tosetRoutes. This method now also takes the Express or WebSocketExpress app as a parameter and sets up the routes on it, instead of returning a router that you have to plug into the app yourself. You can also now pass thewebRootandwebSocketRootoptions to this method, which will set the root path for the web and web socket routes, respectively. - Require node.js 18.14.0.
- Various bug fixes of edge cases.
- Near-complete unit tests.
- Package updates.
v2.0.0 Beta 6
- Fix bug with HEAD request not working correctly when there is no HEAD method defined in the route class.
v2.0.0 Beta 5
- Better fix for the HEAD request.
- Package updates.
v2.0.0 Beta 4
- Require node.js 18.
- Updated error messages to remove IP addresses and change the order of the path and URL to make more sense.
- Fix incorrect error when headers are already sent.
- Fix a crash due to Express calling GET when HEAD is requested.
- Package updates.
v2.0.0 Beta 3
- Add a
catchAlloption for routes that handles anything that doesn't match other routes.
v2.0.0 Beta 2
- Allow
RegExpobjects for aRoute'spath.
v2.0.0 Beta 1
- Upgrade to
expressv5. - Replace
express-wswithwebsocket-express, which supportsexpressv5. - Removed some internals of
RouterBasefrom the defaultrouteproperty. - Implement basic 404 (4404) and 500 (1011) websocket routes.