You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

express-http-context

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-http-context - npm Package Versions

23

2.0.1

Diff
s
skonves
published 2.0.1 •

Changelog

Source

2.0.1 (2025-04-19)

Fix:

  • All instances of express-http-context now share the same global AsyncLocalStorage instance
s
skonves
published 2.0.0 •

Changelog

Source

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:

  • Migrate internals to 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_asynclocalstorage

Security:

  • Removes all 3rd party production dependencies (all dependencies are now contained within NodeJS)
  • Update dev dependencies to address known CVEs

Fix:

  • Prevents context from being lost in popular middlewares such as body-parser and express-jwt.
s
skonves
published 2.0.0-rc.4 •
s
skonves
published 2.0.0-rc.3 •
s
skonves
published 2.0.0-rc.2 •
s
skonves
published 2.0.0-rc.1 •
s
skonves
published 2.0.0-rc.0 •
s
skonves
published 1.2.5 •

Changelog

Source

1.2.5 (2025-03-16)

Security:

  • Package is now published with provenance
  • Update dependencies to address known CVEs
s
skonves
published 1.2.5-rc.0 •
s
skonves
published 1.2.4 •

Changelog

Source

1.2.4 (2020-07-12)

Fix:

  • Assume an ES5 target in browser-facing code