NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #3238 most downloaded on npm
Fake HTTP injection library
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 5 months
Nearly every release is documented
notes for 57 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
78 releases · first in 2017
fix regression introduced in v3.6.0 with string urls
📚 PR:
Update TypeScript typings (#57) - #58
Features:
Fixes:
chore(package): update standard to version 13.0.1
One column per quarter.
📚 PR:
* Add Node 12 to Travis #46 * Fix dep0066 #45
- Use path as alias of url - #43
Nothing published for this version
Nothing published for this version
Added body->payload aliases #28
Updated readable-stream@3 #25 #26
Nothing published for this version
- Allow onyl http.METHODS - #20
Nothing published for this version
*v1* ```js // callback inject(dispatch, { method: 'get', url: '/' }, (res) => { console.log(res.payload) })
v1
// callback
inject(dispatch, { method: 'get', url: '/' }, (res) => {
console.log(res.payload)
})
// promises
inject(dispatch, { method: 'get', url: '/' })
.then(res => console.log(res.payload))
// async-await
const res = await inject(dispatch, { method: 'get', url: '/' })
console.log(res.payload)
v2
// callback
inject(dispatch, { method: 'get', url: '/' }, (err, res) => {
console.log(res.payload)
})
// promises
inject(dispatch, { method: 'get', url: '/' })
.then(res => console.log(res.payload))
.catch(console.log)
// async-await
try {
const res = await inject(dispatch, { method: 'get', url: '/' })
console.log(res.payload)
} catch (err) {
console.log(err)
}
Use safe-buffer for Node 4 compatibility (fix #8) - #9
Set content length to string - #5
Bind a server instance to dispatchFunc - #4
dispatchFunc - #4Initial release. - API - Acknowledgements
Initial release.
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →