angular/packages/zone.js/lib/node
Alan Agius cb31dbc75c fix(zone.js): patch entire promise in node (#50552)
In https://github.com/angular/angular/pull/49144 we introduced a change to only path `Promise.prototype.then` due to Node.js `SafePromise` complaining about `Promise.prototype.then` called on incompatible receiver. This however introduced a number of regressions. This commit reverts this change and re-introduces the changes to patch the entire promise on Node.

The original `SafePromise` problem is no longer reproducible as of Node.js version 18.13+ as it was addressed as part of https://github.com/nodejs/node/pull/45175.

While the Angular CLI does not yet generate ESM server bundles, users using ESM with dynamic imports will require using Node.js 18.13 or later.

Closes #50513, closes #50457, closes #50414 and closes #49930

PR Close #50552
2023-06-02 14:07:18 -07:00
..
events.ts fix(zone.js): should continue to executue listeners when throw error (#41562) 2021-04-21 15:54:08 -07:00
fs.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
node.ts Revert "fix(zone.js): enable monkey patching of the queueMicrotask() API in node.js (#50467)" (#50529) 2023-05-31 09:57:42 -07:00
node_util.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
rollup-main.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
rollup-test-main.ts fix(zone.js): patch entire promise in node (#50552) 2023-06-02 14:07:18 -07:00