Comments (5)
The reason this was removed is because this kind of sugar was left to Express in the Connect/Express split.
If you want that sugar use Express. If you want zero sugar, use Connect.
from connect.
This just strikes me as being dogmatic to the detriment of the one main function of the project--being able to conveniently add multiple middleware (where middleware is itself a form of convenience).
To me, it is Java ugliness rather than JavaScript elegance, and forcing an unnecessary choice. But, hey, it's obviously your call...
from connect.
It's the entire team's call. The issue you referenced I didn't even comment in, so I am not the sole operator here.
from connect.
Sorry, I wasn't trying to make this personal or at all intemperate. I just mean "your" in the collective sense.
It was just my hope that some things could be open for revisiting. The browsers tend to act these days on the approach of yes, starting with a simple API, and seeing what libraries come up with on top of the APIs, but then later picking up some of the most useful ones to standardize on to add into core--even if while these features can be implemented with libraries (e.g., document.querySelector
).
from connect.
This project is the bare bones as it is designed. All the APIs that were picked up because they were useful to someone were added to the project known as "express". Your exact want of accepting array in .use is an express for example.
If what everyone wanted was added to connect, then connect would just be express. There are two projects so if someone wants the bare bones and only wants to add the sugar they want, they can start somewhere (connect) but they also have a module that had all the sugar people wanted added (express).
There is nothing to reconsider; the API was already added and that's why it is in express.
from connect.
Related Issues (20)
- Stream based middleware for response modification HOT 4
- cannot install connect using npm HOT 4
- use regexp to replace 'getProtohost' HOT 2
- finalhandler vulnerability HOT 6
- logo contribution HOT 3
- Settle on `res.locals` as mechanism for sharing config between middleware HOT 8
- TypeError: Cannot read property 'send' of undefined HOT 1
- Support route patterns HOT 1
- Documentation for "Node.js http request object" HOT 7
- Drop unsupported Node.js version HOT 1
- Not clear comment HOT 1
- whether can we give up nodejs that is less than version 7 ? HOT 5
- whether can we redesign connect code in ecmascript 2015+ syntax? HOT 3
- Error while using express-rate-limit HOT 1
- release HOT 2
- ConnectIkonic
- Content-Type: 'application/fhir+json' HOT 2
- route is not support params HOT 1
- bug: redirecting to external URLs HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from connect.