unstale

npm / cockatiel

cockatiel

What changed in cockatiel 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-29.

3 breaking1 new APIs and options1 behavior and defaults5 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.9 on npm

cockatiel 410 changes

Breaking changes 3

  • Policy errors are no longer cast via as Error; callback and result types now use unknown for thrown values.

    4.0.0release notes

  • cockatiel is now built as an ES module, which changes how it can be consumed.

    4.0.0release notes

  • The minimum supported Node version is now 22.

    4.0.0release notes

New APIs and options 1

  • Adds the halfOpenSampling option to the circuit breaker.

    4.0.0release notes

Behavior and default changes 1

  • The abort signal is now propagated into the circuit breaker’s half-open state.

    4.0.0release notes

Fixes and other changes 5

  • Fixes queue starvation when queued executions are aborted.

    4.0.0release notes

  • Getters and setters now deep-copy state via structuredClone.

    4.0.0release notes

  • Derived signals now propagate the abort reason.

    4.0.0release notes

  • Corrects the type predicates for errors.

    4.0.0release notes

  • Getters and setters now deep-copy state via structuredClone.

    4.0.0release notes