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 initcockatiel 410 changes
Breaking changes 3
Policy errors are no longer cast via as Error; callback and result types now use unknown for thrown values.
cockatiel is now built as an ES module, which changes how it can be consumed.
The minimum supported Node version is now 22.
New APIs and options 1
Adds the halfOpenSampling option to the circuit breaker.
Behavior and default changes 1
The abort signal is now propagated into the circuit breaker’s half-open state.
Fixes and other changes 5
Fixes queue starvation when queued executions are aborted.
Getters and setters now deep-copy state via structuredClone.
Derived signals now propagate the abort reason.
Corrects the type predicates for errors.
Getters and setters now deep-copy state via structuredClone.