Skip to content

Update superagent dependecy to avoid deprecation warnings #262

@johnkrzywanek

Description

@johnkrzywanek

Hi, I am experiencing the following deprecation warning:

DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated

on chai-http requests.

After a quick investigation that is an issue that was resolved in the latest version of superagent (5.1.2) forwardemail/superagent#1502

Is there a reason for locking the superagent to version 3.x?

  "dependencies": {
...
    "@types/superagent": "^3.8.3",
...
    "superagent": "^3.7.0"
  },

from https://github.com/chaijs/chai-http/blob/master/package.json

If not, I am happy to add a PR to remove this lock

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions