Comments (10)
Can you elaborate on "incompatible with connect master" ? There are a _lot_ of ways union could be incompatible.
from union.
All the following connect
middlewares do not work with union v0.3.2 (they work with union v0.3.0)
- bodyParser
- json
- multipart
- urlencoded
from union.
Does union have tests for these? That would certainly help ensure a lack of breakage in the future.
from union.
http://github.com/pksunkara/connect-union, which is a fork of connect
, replaces the connect
server in their test suite with union
, thus testing union
compatibility with each and every connect
middleware
from union.
So why isn't this part of our test suite?
from union.
Because maintaining it becomes a very difficult task, as it constantly needs to be updated from connect and union shim needs to be applied. me and @dscape discussed over it and decided to leave it in a seperate repository.
from union.
Okay, that makes sense, but what about running those tests as part of the test suite?
from union.
@pksunkara Can you provide empirical evidence for your claims? I'm seeing test/body-parser-test.js
pass:
$ vows test/body-parser-test.js --spec
♢ union/body-parser
When using union with connect bodyParser() a request to /
✓ should respond with a body-decoded object
✓ OK » 1 honored (0.016s)
Tested with [email protected]
from union.
After extensive testing by me, I finally found what the problem was. In my http://github.com/pksunkara/connect-union tests, I didn't provide buffer: false
to the server. I assume some logic for that has changed between v0.3.0 and v0.3.2.
It should be documented that for union to be compatible with connect, we need to set buffer
to false
from union.
But, if we are going to use connect
with flatiron
and [email protected]
, we will get errors because buffer
is not set to false in http://github.com/flatiron/flatiron/blob/master/lib/flatiron/plugins/http.js#L74
from union.
Related Issues (20)
- Where to put app.use() configurations? HOT 9
- Connect 2.0.3 bodyParser middleware issue HOT 12
- SPDY support HOT 2
- Simple case from Readme.md HOT 2
- Add redirect method to http response stream HOT 3
- connect.session doesn't work for connect > 2.3.5 HOT 6
- Most basic Union server takes 200ms to respond, compared to 2ms for Express? HOT 3
- .
- Connect compatibility issue (bodyParser) HOT 1
- 0.10 compatibility only HOT 2
- GitHub repo description link mentions http://http// HOT 1
- Stream overwhelmed by `ResponseStream` causing memory leak HOT 2
- Not compatible with connect-static-file middleware
- Does this library support private key passphrase?
- Prototype Override Protection Bypass Vulnerability HOT 1
- Header test hangs
- DeprecationWarning: OutgoingMessage.prototype._headers is deprecated HOT 1
- Don't overshare
- [email protected] cannot be installed without package-lock.json
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 union.