unstale

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 init

@unstale/cli on npm

wait-on 913 changes

Breaking changes 2

  • Malformed HTTP and TCP resources now fail fast.

    9.2.0release notes

  • Support is limited to active and maintained Node.js releases, currently 20, 22, and 24; older unsupported versions are no longer supported.

    9.0.0release notes

New APIs and options 4

  • Adds a CLI flag to accept non-2XX HTTP statuses.

    9.5.0release notes

  • A command resource is added, and command executions are serialized.

    9.4.0release notes

  • A per-attempt commandTimeout is added for command resources.

    9.4.0release notes

  • waitOn opts can now be a string or a string array, rather than only an options object.

    9.3.0release notes

Behavior and default changes 2

Tooling 1

  • TypeScript definitions are now available for wait-on.

    9.3.0release notes

Fixes and other changes 4

  • The headers type now accepts number and boolean values.

    9.4.1release notes

  • Restores compatibility with @types/wait-on, including the optional callback error parameter and aliases.

    9.4.1release notes

  • TCP resources now support IPv6.

    9.2.0release notes

  • TCP and Unix sockets are destroyed after checks.

    9.2.0release notes

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.

    8.0.0release notes

wait-on 71 changes

Breaking changes 1

  • Support for Node.js versions below 12 was removed.

    7.0.0release notes

wait-on 61 changes

Breaking changes 1

  • Support for Node.js v8 was dropped; Node.js v8 users should use v5.3.0.

    6.0.0release notes

wait-on 55 changes

Breaking changes 3

  • The auth option accepts username and password, but no longer accepts the user and pass aliases.

    5.0.0release notes

  • Redirect handling uses a single followRedirect option set to true or false, replacing the previous redirect options.

    5.0.0release notes

  • The httpSignature option is no longer available because axios does not implement it.

    5.0.0release notes

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.

    5.0.0release notes

Behavior and default changes 1

wait-on 45 changes

Breaking changes 2

  • The log option now indicates only which resources are still pending.

    4.0.0release notes

  • The stability window now applies only to file resources; other resources are complete as soon as they are available.

    4.0.0release notes

New APIs and options 1

  • Limits the number of simultaneous connections to an individual resource; it defaults to Infinity.

    4.0.0release notes

Behavior and default changes 2

  • Once a resource becomes available, it is no longer checked; checks continue only for pending resources.

    4.0.0release notes

  • Verbose output includes pending resources and debug information from checks.

    4.0.0release notes