npm / wait-on
wait-on
What changed in wait-on 9, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.
1 breaking4 new APIs and options2 behavior and defaults1 tooling4 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initwait-on 912 changes
Breaking changes 1
Malformed HTTP and TCP resources now fail fast.
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.