angular/goldens/public-api
Alex Rickabaugh 7bb3ffb77f fix(core): add rejectErrors option to toSignal (#52474)
By default, `toSignal` transforms an `Observable` into a `Signal`, including
the error channel of the Observable. When an error is received, the signal
begins throwing the error.

`toSignal` is intended to serve the same purpose as the `async` pipe, but
the async pipe has a different behavior with errors: it rejects them
outright, throwing them back into RxJS. Rx then propagates the error into
the browser's uncaught error handling logic. In the case of Angular, the
error is then caught by zone.js and reported via the application's
`ErrorHandler`.

This commit introduces a new option for `toSignal` called `rejectErrors`.
With that flag set, `toSignal` copies the async pipe's behavior, allowing
for easier migrations.

Fixes #51949

PR Close #52474
2023-10-31 14:59:26 -07:00
..
animations refactor: change public const enums to enums (#51670) 2023-10-25 10:39:18 -07:00
common fix(compiler-cli): use originally used module specifier for transform functions (#52437) 2023-10-31 13:42:50 -07:00
compiler-cli refactor(compiler-cli): add a compiler option to enable checking for orphan component (#52061) 2023-10-10 15:30:26 -07:00
core fix(core): add rejectErrors option to toSignal (#52474) 2023-10-31 14:59:26 -07:00
elements fix(elements): support input transform functions (#50713) 2023-06-22 09:47:16 -07:00
forms refactor: add readonly to public InjectionToken types (#51125) 2023-08-14 17:17:35 -07:00
localize refactor: update packages/localize to be strict ESM (#48521) 2022-12-19 19:50:43 +00:00
platform-browser refactor: fix a number of typos throughout the codebase (#52249) 2023-10-25 16:51:24 -07:00
platform-browser-dynamic test: update api goldens to reflect api-golden bazel rule change (#45461) 2022-03-29 09:26:00 -07:00
platform-server refactor: add readonly to public InjectionToken types (#51125) 2023-08-14 17:17:35 -07:00
router refactor: change public const enums to enums (#51670) 2023-10-25 10:39:18 -07:00
service-worker refactor(service-worker): Remove deprecated activated & available observables. (#49498) 2023-10-10 11:54:07 -07:00
upgrade fix(compiler-cli): libraries compiled with v16.1+ breaking with Angular framework v16.0.x (#50714) 2023-06-14 16:27:59 +02:00
manage.js refactor(dev-infra): remove dependency on minimist (#43644) 2021-10-04 17:31:03 -07:00