Files
node/doc/api
Matteo Collina 2c4356cedf domain: port to AsyncLocalStorage
Port the domain module from createHook (async_hooks) to
AsyncLocalStorage using the AsyncContextFrame-based implementation.

Key changes:
- Use AsyncLocalStorage for domain context propagation instead of
  async_hooks.createHook()
- Lazy initialization that triggers AsyncContextFrame prototype swap
  on first domain use
- Use enterWith instead of ALS.run() so domain context is NOT
  automatically restored on exception - this matches the original
  domain.run() behavior where exit() only runs on success
- Add ERR_ASYNC_RESOURCE_DOMAIN_REMOVED error for AsyncResource.domain
- Update DEP0097 to End-of-Life status
- Remove tests that relied on the removed MakeCallback domain property

The domain module now uses the AsyncContextFrame version of
AsyncLocalStorage directly for proper context propagation across
async boundaries.

Signed-off-by: Matteo Collina <hello@matteocollina.com>
PR-URL: https://github.com/nodejs/node/pull/61095
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
2026-06-21 19:42:03 +00:00
..
2026-06-01 15:01:03 +02:00
2026-06-15 09:42:39 +00:00
2026-06-21 11:18:48 +00:00
2026-05-21 14:13:05 -07:00
2024-11-01 03:43:53 +00:00
2026-06-21 19:42:03 +00:00
2026-06-12 16:02:01 +00:00
2026-05-23 18:43:31 +00:00
2025-12-16 20:31:28 +00:00
2026-06-12 16:02:01 +00:00
2026-06-12 21:08:07 +00:00
2025-07-15 17:18:42 +00:00
2026-05-07 12:01:50 +02:00
2025-06-09 23:45:29 +02:00
2026-06-20 16:14:30 +09:00
2026-05-23 18:43:31 +00:00
2026-06-12 21:45:48 +00:00