npm / wait-on
wait-on
What changed in wait-on 4 to 9, from its official release notes, upgrade guides and advisories. Also covers @types/wait-on. Sources checked 2026-11-30.
10 breaking6 new APIs and options5 behavior and defaults1 tooling4 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initwait-on 913 changes
Breaking changes 2
Malformed HTTP and TCP resources now fail fast.
Support is limited to active and maintained Node.js releases, currently 20, 22, and 24; older unsupported versions are no longer supported.
New APIs and options 4
Adds a CLI flag to accept non-2XX HTTP statuses.
A command resource is added, and command executions are serialized.
A per-attempt commandTimeout is added for command resources.
waitOn opts can now be a string or a string array, rather than only an options object.
Behavior and default changes 2
Non-strict argument parsing now matches minimist parity.
The header CLI flag can be repeated.
Tooling 1
TypeScript definitions are now available for wait-on.
Fixes and other changes 4
The headers type now accepts number and boolean values.
Restores compatibility with @types/wait-on, including the optional callback error parameter and aliases.
TCP resources now support IPv6.
TCP and Unix sockets are destroyed after checks.
wait-on 81 changes
Breaking changes 1
Unix socket URLs now require specifying the protocol and server, for example http://unix:SOCKETPATH:http://server/foo/bar.
wait-on 71 changes
Breaking changes 1
Support for Node.js versions below 12 was removed.
wait-on 61 changes
Breaking changes 1
Support for Node.js v8 was dropped; Node.js v8 users should use v5.3.0.
wait-on 55 changes
Breaking changes 3
The auth option accepts username and password, but no longer accepts the user and pass aliases.
Redirect handling uses a single followRedirect option set to true or false, replacing the previous redirect options.
The httpSignature option is no longer available because axios does not implement it.
New APIs and options 1
An optional validateStatus function in the config determines whether a status is valid; without it, valid statuses are 200–299.
Behavior and default changes 1
Redirects are followed by default.
wait-on 45 changes
Breaking changes 2
The log option now indicates only which resources are still pending.
The stability window now applies only to file resources; other resources are complete as soon as they are available.
New APIs and options 1
Limits the number of simultaneous connections to an individual resource; it defaults to Infinity.
Behavior and default changes 2
Once a resource becomes available, it is no longer checked; checks continue only for pending resources.
Verbose output includes pending resources and debug information from checks.