angular/packages/common
Andrew Scott 739cadae62 fix(common): Handle errors in async pipe subscriptions (#60057)
`AsyncPipe` would previously promise rejections unhandled and
subscription errors uncaught. This is more or less fine in a Zone-based
application because errors inside the Angular Zone are caught be the
Zone's error trap and reported to `ErrorHandler`. However, in zoneless
applications, these errors are never caught or reported by the FW and
can reach the node process in SSR and cause it to shut down.

BREAKING CHANGE: `AsyncPipe` now directly catches unhandled errors in
subscriptions and promises and reports them to the application's
`ErrorHandler`. For Zone-based applications, these errors would have
been caught by ZoneJS and reported to `ErrorHandler` so the result is
generally the same. The change to the exact mechanism for reporting can
result in differences in test environments that will require test
updates.

PR Close #60057
2025-03-04 17:35:01 +00:00
..
http refactor(http): rename map to parse on HttpResourceOptions (#60112) 2025-02-26 11:52:43 -05:00
locales refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
src fix(common): Handle errors in async pipe subscriptions (#60057) 2025-03-04 17:35:01 +00:00
test fix(common): Handle errors in async pipe subscriptions (#60057) 2025-03-04 17:35:01 +00:00
testing refactor(core): Add fake navigation to primitives for code sharing (#59857) 2025-02-19 20:09:10 +00:00
upgrade fix(common): clean up onUrlChange listener when root scope is destroyed (#60004) 2025-03-03 17:14:33 +00:00
BUILD.bazel refactor(core): Add fake navigation to primitives for code sharing (#59857) 2025-02-19 20:09:10 +00:00
index.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
package.json build: update Node.js to match Angular CLI engines (#56187) 2024-06-03 18:00:46 +00:00
PACKAGE.md docs: add api doc to sub-packages (#33801) 2019-11-20 14:48:50 -08:00
public_api.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00