angular/packages/zone.js/lib/common
Alan Agius 982f1b1251 fix(zone.js): support Timeout.refresh in Node.js (#56852)
The `Timeout` object in Node.js has a `refresh` method, used to restart `setTimeout`/`setInterval` timers. Before this commit, `Timeout.refresh` was not handled, leading to memory leaks when using `fetch` in Node.js. This issue arose because `undici` (the Node.js fetch implementation) uses a refreshed `setTimeout` for cleanup operations.

For reference, see: 1dff4fd9b1/lib/util/timers.js (L45)

Fixes: #56586

PR Close #56852
2024-07-16 12:46:51 -07:00
..
error-rewrite.ts refactor: migrate zone.js to prettier formatting (#55427) 2024-04-29 09:52:05 -07:00
events.ts fix(zone.js): store remove abort listener on the scheduled task (#56160) 2024-06-04 17:29:05 +00:00
fetch.ts refactor: migrate zone.js to prettier formatting (#55427) 2024-04-29 09:52:05 -07:00
promise.ts refactor: migrate zone.js to prettier formatting (#55427) 2024-04-29 09:52:05 -07:00
queue-microtask.ts refactor: migrate zone.js to prettier formatting (#55427) 2024-04-29 09:52:05 -07:00
rollup-error-rewrite.ts refactor(zone.js): update Zone bundles to call patch* functions (#53443) 2024-03-15 18:11:33 -07:00
rollup-fetch.ts refactor(zone.js): update Zone bundles to call patch* functions (#53443) 2024-03-15 18:11:33 -07:00
timers.ts fix(zone.js): support Timeout.refresh in Node.js (#56852) 2024-07-16 12:46:51 -07:00
to-string.ts refactor: migrate zone.js to prettier formatting (#55427) 2024-04-29 09:52:05 -07:00
utils.ts fix(zone.js): support Timeout.refresh in Node.js (#56852) 2024-07-16 12:46:51 -07:00