npm / piscina
piscina
What changed in piscina 4 to 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
2 breaking1 security7 new APIs and options2 behavior and defaults1 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initpiscina 59 changes
Breaking changes 1
Node.js 18 support is dropped.
Security 1
piscina: Prototype-pollution gadget in ThreadPool.options allows RCE via execArgv / loadBalancer / env
New APIs and options 4
Adds the stricterFIFO option for queue fairness.
Piscina adds support for Atomics.waitAsync.
Custom Balancer support is added.
A new PiscinaHistogram abstraction is exposed.
Behavior and default changes 2
Long-running threads are now allowed.
This package is used to support Windows.
Fixes and other changes 1
Standardizes the normalization calculation for standard deviation.
piscina 44 changes
Breaking changes 1
Support for Node.js versions 14 and earlier was dropped.
New APIs and options 3
The maxThreads value is exposed on the Piscina instance.
The minThreads value is exposed on the Piscina instance.
Communication from a worker to the main thread was added.