Thanks to visit codestin.com
Credit goes to github.com

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 2 times, most recently from 4d87ee0 to 57c91ac Compare August 29, 2025 19:15
atscott added a commit to atscott/angular that referenced this pull request Sep 9, 2025
This updates tests and examples only to prepare for zoneless by default.

These changes were identified and made as part of angular#63382. Anything that
failed gets `provideZoneChangeDetection` unless the fixes were easily
and quickly determined.
atscott added a commit to atscott/angular that referenced this pull request Sep 9, 2025
This updates tests and examples only to prepare for zoneless by default.

These changes were identified and made as part of angular#63382. Anything that
failed gets `provideZoneChangeDetection` unless the fixes were easily
and quickly determined.

It also adds the zoneless provider to the `initTestEnvironment` calls
for tests in this repo to prevent regressions before angular#63382 is merged.
atscott added a commit to atscott/angular that referenced this pull request Sep 9, 2025
This updates tests and examples only to prepare for zoneless by default.

These changes were identified and made as part of angular#63382. Anything that
failed gets `provideZoneChangeDetection` unless the fixes were easily
and quickly determined.

It also adds the zoneless provider to the `initTestEnvironment` calls
for tests in this repo to prevent regressions before angular#63382 is merged.
atscott added a commit to atscott/angular that referenced this pull request Sep 9, 2025
This updates tests and examples only to prepare for zoneless by default.

These changes were identified and made as part of angular#63382. Anything that
failed gets `provideZoneChangeDetection` unless the fixes were easily
and quickly determined.

It also adds the zoneless provider to the `initTestEnvironment` calls
for tests in this repo to prevent regressions before angular#63382 is merged.
atscott added a commit to atscott/angular that referenced this pull request Sep 9, 2025
This updates tests and examples only to prepare for zoneless by default.

These changes were identified and made as part of angular#63382. Anything that
failed gets `provideZoneChangeDetection` unless the fixes were easily
and quickly determined.

It also adds the zoneless provider to the `initTestEnvironment` calls
for tests in this repo to prevent regressions before angular#63382 is merged.
atscott added a commit that referenced this pull request Sep 9, 2025
This updates tests and examples only to prepare for zoneless by default.

These changes were identified and made as part of #63382. Anything that
failed gets `provideZoneChangeDetection` unless the fixes were easily
and quickly determined.

It also adds the zoneless provider to the `initTestEnvironment` calls
for tests in this repo to prevent regressions before #63382 is merged.

PR Close #63668
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 marked this pull request as ready for review September 9, 2025 22:09
atscott added a commit to atscott/angular-cli that referenced this pull request Sep 9, 2025
This change updates applications to omit the ZoneJS dependency by
default. It depends on angular/angular#63382,
which allows us to also exclude the `provideZonelessChangeDetection`
provider.

This change also includes the addition of `provideZoneChangeDetection`
in the `initTestEnvironment` when ZoneJS is detected in the
configuration (either on window or in the polyfills).
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