@angular/core 17.3.6 → 17.3.8
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/esm2022/src/change_detection/constants.mjs +2 -2
- package/esm2022/src/defer/instructions.mjs +20 -12
- package/esm2022/src/render3/component_ref.mjs +1 -1
- package/esm2022/src/render3/util/global_utils.mjs +5 -2
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/logger.mjs +3 -3
- package/fesm2022/core.mjs +27 -16
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives/signals.mjs +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/testing.mjs +1 -1
- package/index.d.ts +2 -2
- package/package.json +1 -1
- package/primitives/signals/index.d.ts +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/migrations/block-template-entities/bundle.js +32 -2
- package/schematics/migrations/block-template-entities/bundle.js.map +2 -2
- package/schematics/migrations/invalid-two-way-bindings/bundle.js +32 -2
- package/schematics/migrations/invalid-two-way-bindings/bundle.js.map +2 -2
- package/schematics/ng-generate/control-flow-migration/bundle.js +32 -2
- package/schematics/ng-generate/control-flow-migration/bundle.js.map +2 -2
- package/schematics/ng-generate/standalone-migration/bundle.js +53 -16
- package/schematics/ng-generate/standalone-migration/bundle.js.map +2 -2
- package/testing/index.d.ts +1 -1
package/fesm2022/core.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v17.3.
|
|
2
|
+
* @license Angular v17.3.8
|
|
3
3
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -1663,7 +1663,7 @@ class NullInjector {
|
|
|
1663
1663
|
* The strategy that the default change detector uses to detect changes.
|
|
1664
1664
|
* When set, takes effect the next time change detection is triggered.
|
|
1665
1665
|
*
|
|
1666
|
-
* @see
|
|
1666
|
+
* @see [Change detection usage](/api/core/ChangeDetectorRef?tab=usage-notes)
|
|
1667
1667
|
*
|
|
1668
1668
|
* @publicApi
|
|
1669
1669
|
*/
|
|
@@ -16022,7 +16022,7 @@ function createRootComponent(componentView, rootComponentDef, rootDirectives, ho
|
|
|
16022
16022
|
function setRootNodeAttributes(hostRenderer, componentDef, hostRNode, rootSelectorOrNode) {
|
|
16023
16023
|
if (rootSelectorOrNode) {
|
|
16024
16024
|
// The placeholder will be replaced with the actual version at build time.
|
|
16025
|
-
setUpAttributes(hostRenderer, hostRNode, ['ng-version', '17.3.
|
|
16025
|
+
setUpAttributes(hostRenderer, hostRNode, ['ng-version', '17.3.8']);
|
|
16026
16026
|
}
|
|
16027
16027
|
else {
|
|
16028
16028
|
// If host element is created as a part of this function call (i.e. `rootSelectorOrNode`
|
|
@@ -19620,9 +19620,13 @@ function scheduleDelayedTrigger(scheduleFn) {
|
|
|
19620
19620
|
const lView = getLView();
|
|
19621
19621
|
const tNode = getCurrentTNode();
|
|
19622
19622
|
renderPlaceholder(lView, tNode);
|
|
19623
|
-
|
|
19624
|
-
|
|
19625
|
-
|
|
19623
|
+
// Only trigger the scheduled trigger on the browser
|
|
19624
|
+
// since we don't want to delay the server response.
|
|
19625
|
+
if (isPlatformBrowser(lView[INJECTOR])) {
|
|
19626
|
+
const cleanupFn = scheduleFn(() => triggerDeferBlock(lView, tNode), lView);
|
|
19627
|
+
const lDetails = getLDeferBlockDetails(lView, tNode);
|
|
19628
|
+
storeTriggerCleanupFn(0 /* TriggerType.Regular */, lDetails, cleanupFn);
|
|
19629
|
+
}
|
|
19626
19630
|
}
|
|
19627
19631
|
/**
|
|
19628
19632
|
* Schedules prefetching for `on idle` and `on timer` triggers.
|
|
@@ -19631,14 +19635,18 @@ function scheduleDelayedTrigger(scheduleFn) {
|
|
|
19631
19635
|
*/
|
|
19632
19636
|
function scheduleDelayedPrefetching(scheduleFn) {
|
|
19633
19637
|
const lView = getLView();
|
|
19634
|
-
|
|
19635
|
-
|
|
19636
|
-
|
|
19637
|
-
|
|
19638
|
-
const
|
|
19639
|
-
const
|
|
19640
|
-
|
|
19641
|
-
|
|
19638
|
+
// Only trigger the scheduled trigger on the browser
|
|
19639
|
+
// since we don't want to delay the server response.
|
|
19640
|
+
if (isPlatformBrowser(lView[INJECTOR])) {
|
|
19641
|
+
const tNode = getCurrentTNode();
|
|
19642
|
+
const tView = lView[TVIEW];
|
|
19643
|
+
const tDetails = getTDeferBlockDetails(tView, tNode);
|
|
19644
|
+
if (tDetails.loadingState === DeferDependenciesLoadingState.NOT_STARTED) {
|
|
19645
|
+
const lDetails = getLDeferBlockDetails(lView, tNode);
|
|
19646
|
+
const prefetch = () => triggerPrefetching(tDetails, lView, tNode);
|
|
19647
|
+
const cleanupFn = scheduleFn(prefetch, lView);
|
|
19648
|
+
storeTriggerCleanupFn(1 /* TriggerType.Prefetch */, lDetails, cleanupFn);
|
|
19649
|
+
}
|
|
19642
19650
|
}
|
|
19643
19651
|
}
|
|
19644
19652
|
/**
|
|
@@ -29853,7 +29861,7 @@ class Version {
|
|
|
29853
29861
|
/**
|
|
29854
29862
|
* @publicApi
|
|
29855
29863
|
*/
|
|
29856
|
-
const VERSION = new Version('17.3.
|
|
29864
|
+
const VERSION = new Version('17.3.8');
|
|
29857
29865
|
|
|
29858
29866
|
class Console {
|
|
29859
29867
|
log(message) {
|
|
@@ -30714,7 +30722,10 @@ let _published = false;
|
|
|
30714
30722
|
function publishDefaultGlobalUtils$1() {
|
|
30715
30723
|
if (!_published) {
|
|
30716
30724
|
_published = true;
|
|
30717
|
-
|
|
30725
|
+
if (typeof window !== 'undefined') {
|
|
30726
|
+
// Only configure the injector profiler when running in the browser.
|
|
30727
|
+
setupFrameworkInjectorProfiler();
|
|
30728
|
+
}
|
|
30718
30729
|
for (const [methodName, method] of Object.entries(globalUtilsFunctions)) {
|
|
30719
30730
|
publishGlobalUtil(methodName, method);
|
|
30720
30731
|
}
|