@angular/core 19.2.0 → 20.0.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/core.mjs +16 -24
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives/event-dispatch.mjs +1 -1
- package/fesm2022/primitives/signals.mjs +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/testing.mjs +15 -4
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +3 -4
- package/package.json +1 -1
- package/primitives/event-dispatch/index.d.ts +1 -1
- package/primitives/signals/index.d.ts +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/bundles/{apply_import_manager-a4e62ded.js → apply_import_manager-0959b78c.js} +3 -3
- package/schematics/bundles/{checker-2eecc677.js → checker-cf6f7980.js} +121 -16
- package/schematics/bundles/cleanup-unused-imports.js +6 -6
- package/schematics/bundles/{compiler_host-f313eac9.js → compiler_host-cc1379e9.js} +2 -2
- package/schematics/bundles/control-flow-migration.js +3 -3
- package/schematics/bundles/explicit-standalone-flag.js +3 -3
- package/schematics/bundles/imports-31a38653.js +1 -1
- package/schematics/bundles/{index-afc3f749.js → index-42d84d69.js} +4 -4
- package/schematics/bundles/{index-3891dd55.js → index-6675d6bc.js} +4 -4
- package/schematics/bundles/inject-migration.js +3 -3
- package/schematics/bundles/leading_space-6e7a8ec6.js +1 -1
- package/schematics/bundles/{migrate_ts_type_references-1abf1f5f.js → migrate_ts_type_references-5089e4ef.js} +9 -5
- package/schematics/bundles/ng_decorators-6878e227.js +1 -1
- package/schematics/bundles/nodes-ffdce442.js +1 -1
- package/schematics/bundles/output-migration.js +6 -6
- package/schematics/bundles/pending-tasks.js +3 -3
- package/schematics/bundles/{program-24da9092.js → program-362689f0.js} +148 -148
- package/schematics/bundles/{project_paths-64bc3947.js → project_paths-7d2daa1e.js} +3 -3
- package/schematics/bundles/project_tsconfig_paths-6c9cde78.js +1 -1
- package/schematics/bundles/property_name-42030525.js +1 -1
- package/schematics/bundles/provide-initializer.js +3 -3
- package/schematics/bundles/route-lazy-loading.js +3 -3
- package/schematics/bundles/self-closing-tags-migration.js +4 -4
- package/schematics/bundles/signal-input-migration.js +7 -7
- package/schematics/bundles/signal-queries-migration.js +7 -7
- package/schematics/bundles/signals.js +7 -7
- package/schematics/bundles/standalone-migration.js +5 -5
- package/testing/index.d.ts +1 -1
package/fesm2022/core.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular
|
|
2
|
+
* @license Angular v20.0.0-next.0
|
|
3
3
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -14167,7 +14167,7 @@ function runEffectsInView(view) {
|
|
|
14167
14167
|
* The maximum number of times the change detection traversal will rerun before throwing an error.
|
|
14168
14168
|
*/
|
|
14169
14169
|
const MAXIMUM_REFRESH_RERUNS$1 = 100;
|
|
14170
|
-
function detectChangesInternal(lView,
|
|
14170
|
+
function detectChangesInternal(lView, mode = 0 /* ChangeDetectionMode.Global */) {
|
|
14171
14171
|
const environment = lView[ENVIRONMENT];
|
|
14172
14172
|
const rendererFactory = environment.rendererFactory;
|
|
14173
14173
|
// Check no changes mode is a dev only mode used to verify that bindings have not changed
|
|
@@ -14180,12 +14180,6 @@ function detectChangesInternal(lView, notifyErrorHandler = true, mode = 0 /* Cha
|
|
|
14180
14180
|
try {
|
|
14181
14181
|
detectChangesInViewWhileDirty(lView, mode);
|
|
14182
14182
|
}
|
|
14183
|
-
catch (error) {
|
|
14184
|
-
if (notifyErrorHandler) {
|
|
14185
|
-
handleError(lView, error);
|
|
14186
|
-
}
|
|
14187
|
-
throw error;
|
|
14188
|
-
}
|
|
14189
14183
|
finally {
|
|
14190
14184
|
if (!checkNoChangesMode) {
|
|
14191
14185
|
rendererFactory.end?.();
|
|
@@ -14226,10 +14220,10 @@ function detectChangesInViewWhileDirty(lView, mode) {
|
|
|
14226
14220
|
setIsRefreshingViews(lastIsRefreshingViewsValue);
|
|
14227
14221
|
}
|
|
14228
14222
|
}
|
|
14229
|
-
function checkNoChangesInternal(lView, mode
|
|
14223
|
+
function checkNoChangesInternal(lView, mode) {
|
|
14230
14224
|
setIsInCheckNoChangesMode(mode);
|
|
14231
14225
|
try {
|
|
14232
|
-
detectChangesInternal(lView
|
|
14226
|
+
detectChangesInternal(lView);
|
|
14233
14227
|
}
|
|
14234
14228
|
finally {
|
|
14235
14229
|
setIsInCheckNoChangesMode(CheckNoChangesMode.Off);
|
|
@@ -14783,7 +14777,6 @@ function trackMovedView(declarationContainer, lView) {
|
|
|
14783
14777
|
class ViewRef$1 {
|
|
14784
14778
|
_lView;
|
|
14785
14779
|
_cdRefInjectingView;
|
|
14786
|
-
notifyErrorHandler;
|
|
14787
14780
|
_appRef = null;
|
|
14788
14781
|
_attachedToViewContainer = false;
|
|
14789
14782
|
get rootNodes() {
|
|
@@ -14810,10 +14803,9 @@ class ViewRef$1 {
|
|
|
14810
14803
|
*
|
|
14811
14804
|
* This may be different from `_lView` if the `_cdRefInjectingView` is an embedded view.
|
|
14812
14805
|
*/
|
|
14813
|
-
_cdRefInjectingView
|
|
14806
|
+
_cdRefInjectingView) {
|
|
14814
14807
|
this._lView = _lView;
|
|
14815
14808
|
this._cdRefInjectingView = _cdRefInjectingView;
|
|
14816
|
-
this.notifyErrorHandler = notifyErrorHandler;
|
|
14817
14809
|
}
|
|
14818
14810
|
get context() {
|
|
14819
14811
|
return this._lView[CONTEXT];
|
|
@@ -15045,7 +15037,7 @@ class ViewRef$1 {
|
|
|
15045
15037
|
// until the end of the refresh. Using `RefreshView` prevents creating a potential difference
|
|
15046
15038
|
// in the state of the LViewFlags during template execution.
|
|
15047
15039
|
this._lView[FLAGS] |= 1024 /* LViewFlags.RefreshView */;
|
|
15048
|
-
detectChangesInternal(this._lView
|
|
15040
|
+
detectChangesInternal(this._lView);
|
|
15049
15041
|
}
|
|
15050
15042
|
/**
|
|
15051
15043
|
* Checks the change detector and its children, and throws if any changes are detected.
|
|
@@ -15055,7 +15047,7 @@ class ViewRef$1 {
|
|
|
15055
15047
|
*/
|
|
15056
15048
|
checkNoChanges() {
|
|
15057
15049
|
if (ngDevMode) {
|
|
15058
|
-
checkNoChangesInternal(this._lView, CheckNoChangesMode.OnlyDirtyViews
|
|
15050
|
+
checkNoChangesInternal(this._lView, CheckNoChangesMode.OnlyDirtyViews);
|
|
15059
15051
|
}
|
|
15060
15052
|
}
|
|
15061
15053
|
attachToViewContainerRef() {
|
|
@@ -18127,7 +18119,7 @@ class ComponentFactory extends ComponentFactory$1 {
|
|
|
18127
18119
|
const cmpDef = this.componentDef;
|
|
18128
18120
|
ngDevMode && verifyNotAnOrphanComponent(cmpDef);
|
|
18129
18121
|
const tAttributes = rootSelectorOrNode
|
|
18130
|
-
? ['ng-version', '
|
|
18122
|
+
? ['ng-version', '20.0.0-next.0']
|
|
18131
18123
|
: // Extract attributes and classes from the first selector only to match VE behavior.
|
|
18132
18124
|
extractAttrsAndClassesFromSelector(this.componentDef.selectors[0]);
|
|
18133
18125
|
// Create the root view. Uses empty TView and ContentTemplate.
|
|
@@ -18212,7 +18204,7 @@ class ComponentRef extends ComponentRef$1 {
|
|
|
18212
18204
|
this._tNode = getTNode(_rootLView[TVIEW], HEADER_OFFSET);
|
|
18213
18205
|
this.location = createElementRef(this._tNode, _rootLView);
|
|
18214
18206
|
this.instance = getComponentLViewByIndex(this._tNode.index, _rootLView)[CONTEXT];
|
|
18215
|
-
this.hostView = this.changeDetectorRef = new ViewRef$1(_rootLView, undefined /* _cdRefInjectingView
|
|
18207
|
+
this.hostView = this.changeDetectorRef = new ViewRef$1(_rootLView, undefined /* _cdRefInjectingView */);
|
|
18216
18208
|
this.componentType = componentType;
|
|
18217
18209
|
}
|
|
18218
18210
|
setInput(name, value) {
|
|
@@ -23853,8 +23845,8 @@ class ApplicationRef {
|
|
|
23853
23845
|
// Set the AfterRender bit, as we're checking views and will need to run afterRender hooks.
|
|
23854
23846
|
this.dirtyFlags |= 8 /* ApplicationRefDirtyFlags.AfterRender */;
|
|
23855
23847
|
// Check all potentially dirty views.
|
|
23856
|
-
for (let { _lView
|
|
23857
|
-
detectChangesInViewIfRequired(_lView,
|
|
23848
|
+
for (let { _lView } of this.allViews) {
|
|
23849
|
+
detectChangesInViewIfRequired(_lView, useGlobalCheck, this.zonelessEnabled);
|
|
23858
23850
|
}
|
|
23859
23851
|
// If `markForCheck()` was called during view checking, it will have set the `ViewTreeCheck`
|
|
23860
23852
|
// flag. We clear the flag here because, for backwards compatibility, `markForCheck()`
|
|
@@ -24013,7 +24005,7 @@ function remove(list, el) {
|
|
|
24013
24005
|
list.splice(index, 1);
|
|
24014
24006
|
}
|
|
24015
24007
|
}
|
|
24016
|
-
function detectChangesInViewIfRequired(lView,
|
|
24008
|
+
function detectChangesInViewIfRequired(lView, isFirstPass, zonelessEnabled) {
|
|
24017
24009
|
// When re-checking, only check views which actually need it.
|
|
24018
24010
|
if (!isFirstPass && !requiresRefreshOrTraversal(lView)) {
|
|
24019
24011
|
return;
|
|
@@ -24023,7 +24015,7 @@ function detectChangesInViewIfRequired(lView, notifyErrorHandler, isFirstPass, z
|
|
|
24023
24015
|
0 /* ChangeDetectionMode.Global */
|
|
24024
24016
|
: // Only refresh views with the `RefreshView` flag or views is a changed signal
|
|
24025
24017
|
1 /* ChangeDetectionMode.Targeted */;
|
|
24026
|
-
detectChangesInternal(lView,
|
|
24018
|
+
detectChangesInternal(lView, mode);
|
|
24027
24019
|
}
|
|
24028
24020
|
|
|
24029
24021
|
/**
|
|
@@ -35175,7 +35167,7 @@ class Version {
|
|
|
35175
35167
|
/**
|
|
35176
35168
|
* @publicApi
|
|
35177
35169
|
*/
|
|
35178
|
-
const VERSION = new Version('
|
|
35170
|
+
const VERSION = new Version('20.0.0-next.0');
|
|
35179
35171
|
|
|
35180
35172
|
/**
|
|
35181
35173
|
* Combination of NgModuleFactory and ComponentFactories.
|
|
@@ -36685,7 +36677,7 @@ class DebugNgZoneForCheckNoChanges extends NgZone {
|
|
|
36685
36677
|
this.applicationRef ||= this.injector.get(ApplicationRef);
|
|
36686
36678
|
for (const view of this.applicationRef.allViews) {
|
|
36687
36679
|
try {
|
|
36688
|
-
checkNoChangesInternal(view._lView, this.checkNoChangesMode
|
|
36680
|
+
checkNoChangesInternal(view._lView, this.checkNoChangesMode);
|
|
36689
36681
|
}
|
|
36690
36682
|
catch (e) {
|
|
36691
36683
|
this.errorHandler ||= this.injector.get(ErrorHandler);
|
|
@@ -36716,7 +36708,7 @@ function exhaustiveCheckNoChangesInterval(interval, checkNoChangesMode) {
|
|
|
36716
36708
|
}
|
|
36717
36709
|
for (const view of applicationRef.allViews) {
|
|
36718
36710
|
try {
|
|
36719
|
-
checkNoChangesInternal(view._lView, checkNoChangesMode
|
|
36711
|
+
checkNoChangesInternal(view._lView, checkNoChangesMode);
|
|
36720
36712
|
}
|
|
36721
36713
|
catch (e) {
|
|
36722
36714
|
errorHandler.handleError(e);
|