Skip to content
This repository has been archived by the owner on Apr 1, 2019. It is now read-only.

Update chai-http to the latest version 🚀 #268

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

greenkeeper[bot]
Copy link

@greenkeeper greenkeeper bot commented Mar 22, 2018

☝️ Greenkeeper’s updated Terms of Service will come into effect on April 6th, 2018.

Version 4.0.0 of chai-http was just published.

Dependency chai-http
Current Version 3.0.0
Type devDependency

The version 4.0.0 is not covered by your current version range.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.

It might be worth looking into these changes and trying to get this project onto the latest version of chai-http.

If you have a solid test suite and good coverage, a passing build is a strong indicator that you can take advantage of these changes directly by merging the proposed change into your project. If the build fails or you don’t have such unconditional trust in your tests, this branch is a great starting point for you to work on the update.


Release Notes 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, 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

Commits

The new version differs by 54 commits.

  • d9a8d1f 4.0.0 (#202)
  • a315dd0 chore(package): fixed license typo (#199)
  • 832f6c2 docs: add note about agent server not closing (close #188) (#190)
  • cee5dbd Merge pull request #184 from chaijs/fix-178
  • 3d7ab70 feat(node-request): close connections after request
  • d3d9ec6 chore(package): update devdependencies
  • e2e80ce chore(package): update all package versions
  • 80c880c chore(package): update superagent to 3.7 (#183)
  • 80b4efb docs: add chai.expect usage to readme (#173)
  • 2604c3b mention login in the persistent session guide (#167)
  • 77a7a93 docs: fix form test example in README (#166)
  • 6e88c38 Merge pull request #131 from meeber/chai-v4
  • 7426715 Update for Chai v4.0
  • cf52191 Merge pull request #160 from mcky/patch-1
  • dfffa63 Add to.not.redirect example to README

There are 54 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper bot 🌴

greenkeeper bot added a commit that referenced this pull request Aug 29, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented Aug 29, 2018

Version 4.1.0 just got published.

Update to this version instead 🚀

Release Notes 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

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

The new version differs by 6 commits.

  • 2c342c8 Merge pull request #220 from austince/release/4.1.0
  • 6efbd83 4.1.0
  • d515691 Merge pull request #219 from austince/fix/inherited-properties
  • 5de4b03 fix: Allow checking properties of prototype and update tests
  • 1af976d Merge pull request #217 from martypdx/master
  • 25600aa fix: test and change for closing "keepOpen()" server, fixes #189

See the full diff

greenkeeper bot added a commit that referenced this pull request Aug 29, 2018
@greenkeeper
Copy link
Author

greenkeeper bot commented Aug 29, 2018

Version 4.2.0 just got published.

Update to this version instead 🚀

Release Notes 4.2.0 / 2018-08-29

This is a minor update that adds TypeScript definitions.

Community Contributions

Code Features & Fixes

Commits

The new version differs by commits.

See the full diff

greenkeeper bot added a commit that referenced this pull request Jan 2, 2019
@greenkeeper
Copy link
Author

greenkeeper bot commented Jan 2, 2019

  • The devDependency chai-http was updated from 3.0.0 to 4.2.1.

Update to this version instead 🚀

Release Notes for 4.2.1 / 2019-01-02

This patch fixes usability issues for TypeScript definitions.

Community Contributions

Code Features & Fixes

Commits

The new version differs by 5 commits.

  • 24ef17b Merge pull request #233 from austince/release/4.2.1
  • a84c598 4.2.1
  • 30b0f73 fix: add typings to package.json files (#230)
  • d0aa54a Merge pull request #224 from chaijs/build-travis-update-npm-token
  • 3d2544e build(travis): update npm token

See the full diff

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant