@angular/core 20.1.0-next.3 → 20.1.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/api.d.d.ts +1 -1
- package/chrome_dev_tools_performance.d.d.ts +1 -1
- package/discovery.d.d.ts +1 -1
- package/event_dispatcher.d.d.ts +1 -1
- package/fesm2022/attribute.mjs +1 -1
- package/fesm2022/core.mjs +14 -6
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/debug_node.mjs +8 -6
- package/fesm2022/debug_node.mjs.map +1 -1
- package/fesm2022/{injector.mjs → not_found.mjs} +28 -25
- package/fesm2022/not_found.mjs.map +1 -0
- package/fesm2022/primitives/di.mjs +11 -3
- package/fesm2022/primitives/di.mjs.map +1 -1
- package/fesm2022/primitives/event-dispatch.mjs +1 -1
- package/fesm2022/primitives/signals.mjs +1 -1
- package/fesm2022/resource.mjs +1 -1
- package/fesm2022/root_effect_scheduler.mjs +3 -3
- package/fesm2022/root_effect_scheduler.mjs.map +1 -1
- package/fesm2022/rxjs-interop.mjs +2 -2
- package/fesm2022/signal.mjs +1 -1
- package/fesm2022/testing.mjs +2 -2
- package/fesm2022/untracked.mjs +1 -1
- package/fesm2022/weak_ref.mjs +1 -1
- package/graph.d.d.ts +1 -1
- package/index.d.ts +7 -8
- package/package.json +2 -2
- package/primitives/di/index.d.ts +11 -3
- 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-C11Q8021.cjs → apply_import_manager-B0fYYMpr.cjs} +3 -3
- package/schematics/bundles/{checker-BVnpy__J.cjs → checker-DLInMAS3.cjs} +533 -1264
- package/schematics/bundles/cleanup-unused-imports.cjs +6 -5
- package/schematics/bundles/{compiler_host-j95cyBKm.cjs → compiler_host-Doj9KVJf.cjs} +2 -2
- package/schematics/bundles/control-flow-migration.cjs +3 -3
- package/schematics/bundles/document-core.cjs +6 -5
- package/schematics/bundles/imports-CIX-JgAN.cjs +1 -1
- package/schematics/bundles/{index-BkA2Tb_u.cjs → index-BmuUS1AB.cjs} +947 -71
- package/schematics/bundles/{index-DYpSE68_.cjs → index-Bp8sCiq1.cjs} +5 -4
- package/schematics/bundles/inject-flags.cjs +6 -5
- package/schematics/bundles/inject-migration.cjs +3 -3
- package/schematics/bundles/leading_space-D9nQ8UQC.cjs +1 -1
- package/schematics/bundles/{migrate_ts_type_references-Covsxz7y.cjs → migrate_ts_type_references-CmZ0155c.cjs} +6 -5
- package/schematics/bundles/ng_decorators-B5HCqr20.cjs +1 -1
- package/schematics/bundles/nodes-B16H9JUd.cjs +1 -1
- package/schematics/bundles/output-migration.cjs +7 -6
- package/schematics/bundles/{project_paths-3GwjSb-R.cjs → project_paths-D2SJWT7x.cjs} +39 -3
- package/schematics/bundles/project_tsconfig_paths-CDVxT6Ov.cjs +1 -1
- package/schematics/bundles/property_name-BBwFuqMe.cjs +1 -1
- package/schematics/bundles/route-lazy-loading.cjs +3 -3
- package/schematics/bundles/self-closing-tags-migration.cjs +5 -4
- package/schematics/bundles/signal-input-migration.cjs +8 -7
- package/schematics/bundles/signal-queries-migration.cjs +8 -7
- package/schematics/bundles/signals.cjs +8 -7
- package/schematics/bundles/standalone-migration.cjs +4 -4
- package/schematics/bundles/symbol-VPWguRxr.cjs +1 -1
- package/schematics/bundles/test-bed-get.cjs +5 -4
- package/signal.d.d.ts +1 -1
- package/testing/index.d.ts +1 -1
- package/weak_ref.d.d.ts +1 -1
- package/fesm2022/injector.mjs.map +0 -1
package/api.d.d.ts
CHANGED
package/discovery.d.d.ts
CHANGED
package/event_dispatcher.d.d.ts
CHANGED
package/fesm2022/attribute.mjs
CHANGED
package/fesm2022/core.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.1.0
|
|
2
|
+
* @license Angular v20.1.0
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -12,7 +12,7 @@ export { ANIMATION_MODULE_TYPE, APP_INITIALIZER, Attribute, CSP_NONCE, CUSTOM_EL
|
|
|
12
12
|
import { OutputEmitterRef } from './resource.mjs';
|
|
13
13
|
export { computed, effect, linkedSignal, resource, untracked, ResourceImpl as ɵResourceImpl, encapsulateResourceError as ɵencapsulateResourceError, getOutputDestroyRef as ɵgetOutputDestroyRef } from './resource.mjs';
|
|
14
14
|
export { setAlternateWeakRefImpl as ɵsetAlternateWeakRefImpl } from './weak_ref.mjs';
|
|
15
|
-
export { setCurrentInjector as ɵsetCurrentInjector } from './
|
|
15
|
+
export { setCurrentInjector as ɵsetCurrentInjector } from './not_found.mjs';
|
|
16
16
|
import { clearAppScopedEarlyEventContract, EventContract, EventContractContainer, EventDispatcher, registerDispatcher, EventPhase, getAppScopedQueuedEventInfos, isEarlyEventType, isCaptureEventType } from './primitives/event-dispatch.mjs';
|
|
17
17
|
import 'rxjs';
|
|
18
18
|
import '@angular/core/primitives/di';
|
|
@@ -626,7 +626,7 @@ class Version {
|
|
|
626
626
|
/**
|
|
627
627
|
* @publicApi
|
|
628
628
|
*/
|
|
629
|
-
const VERSION = new Version('20.1.0
|
|
629
|
+
const VERSION = new Version('20.1.0');
|
|
630
630
|
|
|
631
631
|
function compileNgModuleFactory(injector, options, moduleType) {
|
|
632
632
|
ngDevMode && assertNgModuleType(moduleType);
|
|
@@ -755,7 +755,15 @@ class ImagePerformanceWarning {
|
|
|
755
755
|
scanImages() {
|
|
756
756
|
const images = getDocument().querySelectorAll('img');
|
|
757
757
|
let lcpElementFound, lcpElementLoadedCorrectly = false;
|
|
758
|
-
images.forEach
|
|
758
|
+
// Important: do not refactor this to use `images.forEach` or
|
|
759
|
+
// `for (const ... of ...)`, because images might be a custom internal
|
|
760
|
+
// data structure — such as a lazily evaluated query result in Domino.
|
|
761
|
+
// (This naturally would never be a case in any browser).
|
|
762
|
+
for (let index = 0; index < images.length; index++) {
|
|
763
|
+
const image = images[index];
|
|
764
|
+
if (!image) {
|
|
765
|
+
continue;
|
|
766
|
+
}
|
|
759
767
|
if (!this.options?.disableImageSizeWarning) {
|
|
760
768
|
// Image elements using the NgOptimizedImage directive are excluded,
|
|
761
769
|
// as that directive has its own version of this check.
|
|
@@ -775,7 +783,7 @@ class ImagePerformanceWarning {
|
|
|
775
783
|
}
|
|
776
784
|
}
|
|
777
785
|
}
|
|
778
|
-
}
|
|
786
|
+
}
|
|
779
787
|
if (lcpElementFound &&
|
|
780
788
|
!lcpElementLoadedCorrectly &&
|
|
781
789
|
this.lcpImageUrl &&
|
|
@@ -3900,7 +3908,7 @@ function startMeasuring(label) {
|
|
|
3900
3908
|
}
|
|
3901
3909
|
/**
|
|
3902
3910
|
* Function that will stop measuring against the performance API
|
|
3903
|
-
* Should be used in pair with
|
|
3911
|
+
* Should be used in pair with startMeasuring
|
|
3904
3912
|
*/
|
|
3905
3913
|
function stopMeasuring(label) {
|
|
3906
3914
|
if (!enablePerfLogging) {
|