angular/packages/common/test/pipes
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
..
async_pipe_spec.ts fix(common): Handle errors in async pipe subscriptions (#60057) 2025-03-04 17:35:01 +00:00
case_conversion_pipes_spec.ts refactor(common): remove standalone: true (#58949) 2024-12-04 12:41:51 +01:00
date_pipe_spec.ts refactor(common): remove standalone: true (#58949) 2024-12-04 12:41:51 +01:00
i18n_plural_pipe_spec.ts refactor(common): remove standalone: true (#58949) 2024-12-04 12:41:51 +01:00
i18n_select_pipe_spec.ts refactor(common): remove standalone: true (#58949) 2024-12-04 12:41:51 +01:00
json_pipe_spec.ts refactor(common): remove standalone: true (#58949) 2024-12-04 12:41:51 +01:00
keyvalue_pipe_spec.ts refactor(common): remove standalone: true (#58949) 2024-12-04 12:41:51 +01:00
number_pipe_spec.ts refactor(common): remove standalone: true (#58949) 2024-12-04 12:41:51 +01:00
slice_pipe_spec.ts refactor(common): remove standalone: true (#58949) 2024-12-04 12:41:51 +01:00