Skip to content

connect-gzip doesn't work with connect >= 2.3.7 #17

Open
@papandreou

Description

@papandreou

In connect 2.3.7 the send function was split into a separate module (senchalabs/connect@3ea7fa2), 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 :/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions