Skip to content

Releases: chaijs/chai-http

5.0.0-alpha2

24 May 16:02
3d1c5d1
Compare
Choose a tag to compare
5.0.0-alpha2 Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: 5.0.0-alpha1...5.0.0-alpha2

5.0.0-alpha1

19 Jun 13:39
4cb31ee
Compare
Choose a tag to compare
5.0.0-alpha1 Pre-release
Pre-release

Breaking Changes

The minimum supported version of Node goes from >= 0.10 to >= v16.20

What's Changed

Full Changelog: 4.4.0...5.0.0-alpha1

4.4.0

09 Jun 09:13
a3715c4
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 4.3.0...4.4.0

4.3.0 / 2019-04-26

26 Apr 14:27
799f668
Compare
Choose a tag to compare

This feature release allows you to pass a Regular Expression to the redirectTo function.

expect(res).to.redirectTo(/^\/search\/results\?orderBy=desc$/);

Community Contributions

Code Features & Fixes

4.2.1 / 2019-01-02

02 Jan 10:08
24ef17b
Compare
Choose a tag to compare

This patch fixes usability issues for TypeScript definitions.

Community Contributions

Code Features & Fixes

4.2.0 / 2018-08-29

29 Aug 11:05
0cbcd3a
Compare
Choose a tag to compare

This is a minor update that adds TypeScript definitions.

Community Contributions

Code Features & Fixes

4.1.0 / 2018-08-03

17 Aug 11:02
2c342c8
Compare
Choose a tag to compare

This is a minor update to fix a bug with keepOpen() now allowing close() to be called, and also some additional support for other http libraries - namely the http-errors library.

Community Contributions

Code Features & Fixes

  • #219 Allow for status / statusCode to exist on the prototype (by @austince)
  • #217 Enable closing after keepOpen() has been called (by @martypdx)

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