angular/packages/common/src
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
..
directives refactor(common): drop platform check in PreconnectLinkChecker (#59714) 2025-01-27 17:22:43 +01:00
i18n feat(common): throw error for suspicious date patterns (#59798) 2025-02-24 17:15:03 -05:00
location refactor(common): simplify stripTrailingSlash (#59746) 2025-02-19 15:20:53 +00:00
navigation refactor(core): Add fake navigation to primitives for code sharing (#59857) 2025-02-19 20:09:10 +00:00
pipes fix(common): Handle errors in async pipe subscriptions (#60057) 2025-03-04 17:35:01 +00:00
common.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
common_module.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
cookie.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
dom_adapter.ts refactor: remove unnecessary TSLint rule flags (#59365) 2025-01-07 16:06:21 +00:00
dom_tokens.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
errors.ts feat(common): throw error for suspicious date patterns (#59798) 2025-02-24 17:15:03 -05:00
platform_id.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
private_export.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
version.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
viewport_scroller.ts refactor(common): drop NullViewportScroller for client bundles (#59440) 2025-01-09 12:33:04 -05:00
xhr.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00