Skip to content

Releases: chaijs/chai-http

4.0.0 / 2018-03-22

22 Mar 13:20
d9a8d1f
Compare
Choose a tag to compare

This is a major update to the underlying dependencies and also introduces some breaking changes.

  • The biggest breaking change is that this library will _no longer throw based on the status code! This means a request that returns a 404, or 500 or any other status code cannot be asserted on in the catch block, instead must be asserted on in the then block. In other words this behaves more akin to fetch.
  • Another large breaking change is that the chai.request(server) object will automatically close the server connection after the first request. This means if you have code like this:
const request = chai.request(app)

request.get('/bar')
request.get('/bar')

you'll need to change it to:

const request = chai.request(app).keepOpen()

request.get('/bar')
request.get('/bar')

This is described further in the README

Community Contributions

Code Features & Fixes

Documentation fixes

3.0.0 / 2016-06-10

10 Jun 14:26
Compare
Choose a tag to compare

This is a major update to the underlying dependencies; qs and superagent

It should be noted that these updates may cause breakages on your code. Please check out the superagent release notes and the qs release notes for more.

Community Contributions

Code Features & Fixes

Documentation fixes

2.0.1 / 2016-02-02

01 Feb 23:53
Compare
Choose a tag to compare

Noting to see here, just a quick clerical release that adds npm keywords

Community Contributions

Code Features & Fixes

Documentation fixes

2.0.0 / 2016-02-01

01 Feb 23:25
Compare
Choose a tag to compare

This release adds browser support, and upgrades SuperAgent to 1.2.x

Community Contributions

Code Features & Fixes

Documentation fixes

  • #16 Fix documentation to show proper order of testing with HTTP Basic auth (by @GabeMedrash
  • #17 Document promise usage without native support (by @Guuz
  • #19 correct documentation for .attach() (by @GabeMedrash
  • #33 Clarify the usage of query parameters in README (by @pgrm)
  • #42 Fix typo in readme (by @studstill)