-
Notifications
You must be signed in to change notification settings - Fork 26.6k
fix(core): Remove Zone-based change provider from internals by default #63382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
atscott
wants to merge
1
commit into
angular:main
Choose a base branch
from
atscott:zonelessbydefault
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70b753b
to
03a3260
Compare
03a3260
to
0537bcc
Compare
4d87ee0
to
57c91ac
Compare
57c91ac
to
150c085
Compare
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.
150c085
to
4928f73
Compare
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.
4928f73
to
cc38c82
Compare
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 yourbootstrapApplication
function or yourAppModule
(if usingbootstrapModule
). This provider addition will be covered by an automated migration.