express-http-context
Advanced tools
Changelog
2.0.1 (2025-04-19)
Fix:
AsyncLocalStorage
instanceChangelog
2.0.0 (2025-04-02)
Migration notes:
🎉 The get
, set
, and middleware
methods are unchanged. Applications consuming only these method can upgrade to v2 without any issue.
⚠️ Consumers of ns
(namespace) will need to also migrate to AsyncLocalStorage
(from cls-hooked
). The ns
instance is no longer exported. Instead, developers have access to asyncLocalStorage
which exposes the internal instance of AsyncLocalStorage
.
Before:
import { ns } from "express-http-context";
After:
import { asyncLocalStorage } from "express-http-context";
Features:
AsyncLocalStorage
(from cls-hooked
). AsyncLocalStorage
is a production-ready, first-class feature of Node and provides predicable and stable access to the continuation context. See: https://nodejs.org/api/async_context.html#async_context_class_asynclocalstorageSecurity:
Fix:
body-parser
and express-jwt
.Changelog
1.2.5 (2025-03-16)
Security: