Releases: jeffbski/wait-on
v5.2.2
Updated [email protected]
Updated lodash dependency to close vulnerability
v5.2.1
v5.2.0
v5.1.0
Add proxy option which can override the http(s) proxy which might be configured in environment variables.
- opts.proxy: undefined, false, or object as defined in axios. Default is undefined. If not set (undefined) axios detects proxy from env vars http_proxy and https_proxy. https://github.com/axios/axios#config-defaults
// example proxy object
{
host: '127.0.0.1',
port: 9000,
auth: {
username: 'mikeymike',
password: 'rapunz3l'
}
}
v5.0.3
update to [email protected]
v5.0.2
[email protected] update which resolved some potential lodash vulnerabilities
v5.0.1
Force axios to use http adapter to keep logs clean if jest/jsdom are used with the wait-on API.
If jest/jsdom is used then a polyfill for xhr is created which will cause axios to default the adapter to it. Since jsdom logs all errors use of wait-on will have any failed attempts to connect logged which is rather noisy and misleading.
By forcing axios to use the node.js http adapter instead this problem is bypassed keeping logs clean.
v5.0.0 switch http client to axios, add validateStatus
Switch HTTP client from request to axios
Since the request
package is no longer receiving updates, wait-on switched to using axios
. Attempt to keep the same wait-on options as much as possible.
These breaking changes occurred in the switch:
- There is only one option for redirects
followRedirect: true|false
(defaults to true). httpSignature
is not implemented in axios and now not available. (If this feature is still desired, please help by providing a pull request to implement it.)auth
allows onlyusername
andpassword
but not the previous aliasesuser
andpass
add optional validateStatus fn property
If validateStatus
property is provided in the
config and set to a function, it will use this to
validate whether a status is valid.
The default validateStatus if not provided is
validateStatus: function (status) {
return status >= 200 && status < 300;
}
To also allow a 401 unauthorized as a valid status
validateStatus: function (status) {
return status === 401 || (status >= 200 && status < 300);
}
v5.0.0-rc.0 switch from request to axios
Since the request
package is no longer receiving updates, wait-on switched to using axios
. Attempt to keep the same wait-on options as much as possible.
These breaking changes occurred in the switch:
- There is only one option for redirects
followRedirect: true|false
(defaults to true). httpSignature
is not implemented in axios and now not available. (If this feature is still desired, please help by providing a pull request to implement it.)auth
allows onlyusername
andpassword
but not the previous aliasesuser
andpass