Skip to content

Conversation

atscott
Copy link
Contributor

@atscott atscott commented Aug 25, 2025

This change removes the internally provided ZoneJS-based change detection scheduler. This makes Angular Zoneless by default and allows tree-shaking of the Zone change detection providers.

BREAKING CHANGE: Angular no longer provides a change detection scheduler for ZoneJS-based change detection by default. Add
provideZoneChangeDetection to the providers of your bootstrapApplication function or your AppModule (if using bootstrapModule). This provider addition will be covered by an automated migration.

@atscott atscott added area: core Issues related to the framework runtime target: major This PR is targeted for the next major release labels Aug 25, 2025
@ngbot ngbot bot added this to the Backlog milestone Aug 25, 2025
@angular-robot angular-robot bot added the detected: breaking change PR contains a commit with a breaking change label Aug 25, 2025
@atscott atscott force-pushed the zonelessbydefault branch 17 times, most recently from 70b753b to 03a3260 Compare August 27, 2025 22:28
@atscott atscott force-pushed the zonelessbydefault branch from 03a3260 to 0537bcc Compare August 28, 2025 03:04
@atscott
Copy link
Contributor Author

atscott commented Aug 28, 2025

First commit is in #63404

Blocked by: #63042 (blocked by #63457)
Blocked by: running above migration in g3

@atscott atscott force-pushed the zonelessbydefault branch from 0537bcc to 4d87ee0 Compare August 28, 2025 03:11
…TestBed error handler

The internal error handler in TestBed rethrows errors to prevent them
from being silently ignored in tests. Prior to this commit, tests which
used `provideZoneChangeDetection` in the providers would override the
internal error handler of TestBed and prevent these errors from being
rethrown.
This change removes the internally provided `ZoneJS`-based change
detection scheduler. This makes Angular Zoneless by default and allows
tree-shaking of the Zone change detection providers.

BREAKING CHANGE: Angular no longer provides a change detection scheduler
for ZoneJS-based change detection by default. Add
`provideZoneChangeDetection` to the providers of your
`bootstrapApplication` function or your `AppModule` (if using
`bootstrapModule`). This provider addition will be covered by an
automated migration.
@atscott atscott force-pushed the zonelessbydefault branch from 4d87ee0 to 57c91ac Compare August 29, 2025 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: core Issues related to the framework runtime detected: breaking change PR contains a commit with a breaking change state: blocked target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant