- 💥
71e18e1
Drop node 12 and 14, support node 18 and 20 - 💥
65e3d9b
Use Studio Fail - 💥
ddbd041
Destroy request instead of abort - 🍏
9ce212a
Add types - ✨
0d510aa
Upgrade Studio Changes - ✨
df96e6b
Update Studio Log and Studio Log X - ✨
4d1de86
Upgrade eslint-config and eslint and use URL - ✨
57bb923
Replace sinon spy and stub with fakes - ✨
f23a336
Replace assert and sinon with referee-sinon - ✨
2def327
Upgrade mocha to v10
Released by Maximilian Antoni on 2024-01-30.
- 🐛
f8e06d4
Log cause on request and response error - 🛡
11c3a34
Bump lodash from 4.17.10 to 4.17.19 (dependabot[bot]) - ✨
9eab585
Configure GitHub actions - ✨
0739619
Upgrade sinon - ✨
12ce96f
Upgrade mocha - ✨
07ba17a
Upgrade eslint - ✨
7c5ba13
Update Studio ESLint Config - ✨
9a1fbc0
Upgrade Studio Changes to v2 - ✨
a8e06e0
Add.gitignore
Released by Maximilian Antoni on 2021-05-25.
- 💥
685b9ab
BREAKING: Use Studio Log v2 - 📚
9d827ee
Change example code for Studio Log v2 changes - ✨
404184f
Use Studio Changes--commits
option
- 🍏 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_EXPECT
error
- ✨ 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_request
andhttps_request
and instead support an additionalprotocol
option.
- 🙈 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
console
logs 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
stream
option to yield the raw responseThis option is intended for stream processing or if the response is expected to contain non-JSON data.
-
Validate the
statusCode
before consuming the body -
Fix timeout edge cases
- Parse JSON if content-type includes charset
- Inception