-
Notifications
You must be signed in to change notification settings - Fork 0
4.x roadmap
This roadmap is a WIP and does not represent any final decisions.
Connect 3.x may serve as a collection of high-quality, fully tested modules, and not provide any concept of "middleware", aka .use() etc. The middleware system would then become the responsibility of Express. For example when used with a regular node http server:
var send = connect.static(root);
http.createServer(function(req, res){
send(req.url, function(err){
// handle errors
});
});Express could then implement .use() to retain the original APIs.
Effectively all of the express.response and express.request prototype methods could be separated into npm modules for use within the community. To do so we'll need to also create npm modules out of many of Connect's utilities.
The view system in many respects could also be abstracted into a separate module, which would use consolidate for template engine support. This system
would have to extend the response prototype if it were to provide the same res.locals / res.render() features.
The router may also be abstracted out, and Express would become the aggregate of these components, but still allow non-express users to use them separately.