CLS Bluebird

JSON →
library 2.1.0 ·javascript maintenance
verified Jun 7, 2026

Patches Bluebird promises to work with continuation-local-storage (CLS), enabling automatic propagation of CLS context across promise chains. Version 2.1.0 is a complete rewrite aiming for full reliability with over 100,000 tests. Compatible with Bluebird v2.x and v3.x. The patching follows the convention of binding .then() callbacks to the context in which .then() is called. Supports coroutines, Promise.map, Promise.reduce, and other Bluebird methods. Maintained but limited to legacy CLS module (not async_hooks). For async_hooks-based CLS (e.g., cls-hooked), use alternative patches.