Releases: chaijs/chai-http
5.0.0-alpha2
What's Changed
- [TASK] Update to superagent^9 by @thomashohn in #317
- [TASK] Update low-hanging dependencies by @thomashohn in #321
- Fix: Pipeline push not working by @Olrar in #319
- [TASK] Updated npm-packages for releasing at raised node version to l… by @thomashohn in #323
- [TASK] Update build pipeline to use v4 of actions by @thomashohn in #325
- Fix #326 - readme: add how to import chai 5 and use chaiHttp 4 by @boly38 in #327
- move to ESM (Chai 5) by @Trickfilm400 in #310
- feat: add prettier and eslint by @Trickfilm400 in #328
- feat: add publish workflows by @43081j in #329
New Contributors
- @thomashohn made their first contribution in #317
- @Olrar made their first contribution in #319
- @boly38 made their first contribution in #327
- @43081j made their first contribution in #329
Full Changelog: 5.0.0-alpha1...5.0.0-alpha2
5.0.0-alpha1
Breaking Changes
The minimum supported version of Node goes from >= 0.10 to >= v16.20
What's Changed
- Readme Link Updates by @Trickfilm400 in #307
- Dependency Updates by @Trickfilm400 in #308
- Breaking: Set Node-Version to >=v16.20 by @Trickfilm400 in #309
Full Changelog: 4.4.0...5.0.0-alpha1
4.4.0
What's Changed
- ci: add semantic-release by @austince in #248
- ci: add secure variables to release stage by @austince in #250
- ci: build before release, commit assets, remove .npmrc by @austince in #252
- Fix for issue #254, add extended request method explanations to the README by @theodorewahle in #256
- Add matcher to check for charset. by @kierans in #253
- Build: Use GitHub Actions for CI/CD by @keithamus in #255
- Update superagent to ^6.1.0 by @Exotrom in #281
- ci: correctly template github event in
if
condition for release by @austince in #283 - ci: use correct
event_name
property by @austince in #284 - ci: install node deps before release by @austince in #285
- Added auth example with Bearer Token by @keyuls in #282
- Update CI release token by @keithamus in #287
- feat: drop support for node < 10 by @austince in #288
- docs: add badges to the README by @austince in #286
- ci: update npm token by @austince in #289
- Dependency updates to fix security vulnerabilities by @Trickfilm400 in #306
New Contributors
- @theodorewahle made their first contribution in #256
- @kierans made their first contribution in #253
- @Exotrom made their first contribution in #281
- @keyuls made their first contribution in #282
- @Trickfilm400 made their first contribution in #306
Full Changelog: 4.3.0...4.4.0
4.3.0 / 2019-04-26
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
- #243 configures redirectTo to accept regex (by @mikemfleming)
4.2.1 / 2019-01-02
This patch fixes usability issues for TypeScript definitions.
Community Contributions
Code Features & Fixes
4.2.0 / 2018-08-29
This is a minor update that adds TypeScript definitions.
Community Contributions
Code Features & Fixes
4.1.0 / 2018-08-03
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
4.0.0 / 2018-03-22
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
, or500
or any other status code cannot be asserted on in thecatch
block, instead must be asserted on in thethen
block. In other words this behaves more akin tofetch
. - 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
- #123 Support responses that have
statusCode
when asserting .status (by @atom-morgan) - #128 Support asserting on cross-domain cookies (by @leggsimon)
- #136 Improve Karma support (by @bartw)
- #149 Drop node 4 support (by @vieiralucas)
- #133 Support cookies within
agent
(by @yashsriv) - #154 Support 307, 308 redirects in
.redirect()
assertion (by @tonymet)
Documentation fixes
- #102 Fix docs regarding Promises (by @keithamus)
- #127 Fix docs formatting for chaijs.com (by @Limess)
- #137 Improve docs around form data (by @ZackWard)
- #138 Add MIT license to package.json (by @noderat)
- #142 Fix semicolons in readme (by @vieiralucas)
- #160 Add examples for
.not.redirect
in readme (by @mcky) - #166 Fix docs for form tests (by @barraponto)
- #167 Add readme docs to make it easier to find out how to login during tests (by @barraponto)
- #173 Clarify using chai expect in Readme (by @cornelius-k)
- #190 Add readme note about agent not closing (by @gswalden)
- #199 Fix license typo in package.json (by @zewa666)
3.0.0 / 2016-06-10
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
- #73 Create minified and sourcemapped dist files (by @BigstickCarpet)
- #99 Update all dependencies (by @keithamus)
Documentation fixes
- #80 Document asynchronous cavet (by @sambostock)
- #90 Fix documentation typos (by @cjbrambo)
2.0.1 / 2016-02-02
Noting to see here, just a quick clerical release that adds npm keywords
Community Contributions
Code Features & Fixes
Documentation fixes
- #72 Update package.json keywords (by @keithamus)