Files
pnpm/network
Sharmila 60a1eeca28 fix(cli): avoid Windows crash after network requests (#12121)
* fix: avoid Windows crash after network requests

* fix: destroy dispatchers before Windows error exits

* test: cover destroyDispatchers and document its shutdown contract

Add a JSDoc to destroyDispatchers() explaining it is for process shutdown,
a unit test verifying it destroys the global and cached dispatchers, and bump
@pnpm/network.fetch to minor for the new public export.

* fix(network.fetch): destroy the active global dispatcher on shutdown

Include getGlobalDispatcher() so destroyDispatchers() also closes the
currently-active dispatcher if it was replaced via setGlobalDispatcher().

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2026-06-02 09:02:38 +02:00
..
2026-04-30 23:03:46 +02:00
2026-05-29 17:26:13 +02:00