- 💥
71e18e1Drop node 12 and 14, support node 18 and 20 - 💥
65e3d9bUse Studio Fail - 💥
ddbd041Destroy request instead of abort - 🍏
9ce212aAdd types - ✨
0d510aaUpgrade Studio Changes - ✨
df96e6bUpdate Studio Log and Studio Log X - ✨
4d1de86Upgrade eslint-config and eslint and use URL - ✨
57bb923Replace sinon spy and stub with fakes - ✨
f23a336Replace assert and sinon with referee-sinon - ✨
2def327Upgrade mocha to v10
Released by Maximilian Antoni on 2024-01-30.
- 🐛
f8e06d4Log cause on request and response error - 🛡
11c3a34Bump lodash from 4.17.10 to 4.17.19 (dependabot[bot]) - ✨
9eab585Configure GitHub actions - ✨
0739619Upgrade sinon - ✨
12ce96fUpgrade mocha - ✨
07ba17aUpgrade eslint - ✨
7c5ba13Update Studio ESLint Config - ✨
9a1fbc0Upgrade Studio Changes to v2 - ✨
a8e06e0Add.gitignore
Released by Maximilian Antoni on 2021-05-25.
- 💥
685b9abBREAKING: Use Studio Log v2 - 📚
9d827eeChange example code for Studio Log v2 changes - ✨
404184fUse Studio Changes--commitsoption
- 🍏 Add child logger support and document logging
- 📚 Add feature list
- 📚 Document how to x-out confidential information
- ✨ Improve error handing and logging
- 🍏 Expose response status code on
E_EXPECTerror
- ✨ Log parsed JSON response body
- 📚 Improve documentation
- 📚 Add related modules section
- ✨ Add keywords, description, homepage and repository
- ✨ Add MIT license
- ✨ Add
package-lock.json
-
✨ Breaking: Reduce API to single function
Removed
http_requestandhttps_requestand instead support an additionalprotocoloption.
- 🙈 Support Node 4
- 🐛 Fix
log.finished->log.finish
- Use @studio/log
- Include body in error log if parse failed
- Always log body on unexpected response
- Support sending streams
- Print text response for unexpected response
- Missing colon in logs if protocol is
http
- Log request / response header and body in error cases
- Add
consolelogs until we have a real logger
Follow redirects if the expect array contains 302 and a location header
is in the response. A second redirect will not be followed and result in an
E_EXPECT error.
-
Add
streamoption to yield the raw responseThis option is intended for stream processing or if the response is expected to contain non-JSON data.
-
Validate the
statusCodebefore consuming the body -
Fix timeout edge cases
- Parse JSON if content-type includes charset
- Inception