angular/packages/common/test
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): tree-shake PreloadLinkCreator for client bundles (#59431) 2025-01-24 17:17:58 +01:00
i18n feat(common): throw error for suspicious date patterns (#59798) 2025-02-24 17:15:03 -05:00
image_loaders feat(common): add optional rounded transform support in cloudinary image loader (#55364) 2024-10-23 07:59:13 -07:00
location refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
pipes fix(common): Handle errors in async pipe subscriptions (#60057) 2025-03-04 17:35:01 +00:00
BUILD.bazel refactor: update packages/common tests to work with ESM pipeline (#48521) 2022-12-19 19:50:42 +00:00
cookie_spec.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
viewport_scroller_spec.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00