connect-gzip
connect-gzip copied to clipboard
connect-gzip doesn't work with connect >= 2.3.7
In connect 2.3.7 the send
function was split into a separate module (senchalabs/connect@3ea7fa2f74930a7f924c4c8eba0a4c292090dd03), which breaks connect-gzip
. This is unfortunate because connect-gzip
specifies a very liberal version range in package.json
, so all fresh installs of connect-gzip
are broken right now.
My recommendation is to pin the connect
dependency at a specific version:
"dependencies": {
- "connect": ">=1 <2",
+ "connect": "=2.3.6",
"mime": ">=0.0.1"
},
... then release a new version of connect-gzip
asap.
Then later when we're ready to use the new connect API, we can pin it at whatever is the latest version at that point. It's a little more housekeeping, but much safer.
And yes, this just bit me upon upgrading a production server :/