@angular/core 21.0.4 → 21.0.6
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/_attribute-chunk.mjs +1 -1
- package/fesm2022/_attribute-chunk.mjs.map +1 -1
- package/fesm2022/_debug_node-chunk.mjs +3 -3
- package/fesm2022/_debug_node-chunk.mjs.map +1 -1
- package/fesm2022/_effect-chunk.mjs +1 -1
- package/fesm2022/_effect-chunk.mjs.map +1 -1
- package/fesm2022/_linked_signal-chunk.mjs +1 -1
- package/fesm2022/_linked_signal-chunk.mjs.map +1 -1
- package/fesm2022/_not_found-chunk.mjs +1 -1
- package/fesm2022/_not_found-chunk.mjs.map +1 -1
- package/fesm2022/_resource-chunk.mjs +1 -1
- package/fesm2022/_resource-chunk.mjs.map +1 -1
- package/fesm2022/_untracked-chunk.mjs +12 -3
- package/fesm2022/_untracked-chunk.mjs.map +1 -1
- package/fesm2022/_weak_ref-chunk.mjs +1 -1
- package/fesm2022/_weak_ref-chunk.mjs.map +1 -1
- package/fesm2022/core.mjs +2 -2
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives-di.mjs +1 -1
- package/fesm2022/primitives-di.mjs.map +1 -1
- package/fesm2022/primitives-event-dispatch.mjs +1 -1
- package/fesm2022/primitives-event-dispatch.mjs.map +1 -1
- package/fesm2022/primitives-signals.mjs +1 -1
- package/fesm2022/primitives-signals.mjs.map +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/rxjs-interop.mjs.map +1 -1
- package/fesm2022/testing.mjs +1 -1
- package/fesm2022/testing.mjs.map +1 -1
- package/package.json +2 -2
- package/schematics/bundles/add-bootstrap-context-to-server-main.cjs +1 -1
- package/schematics/bundles/application-config-core.cjs +1 -1
- package/schematics/bundles/apply_import_manager-1Zs_gpB6.cjs +1 -1
- package/schematics/bundles/bootstrap-options-migration.cjs +1 -1
- package/schematics/bundles/cleanup-unused-imports.cjs +1 -1
- package/schematics/bundles/common-to-standalone-migration.cjs +1 -1
- package/schematics/bundles/compiler_host-DBwYMlTo.cjs +1 -1
- package/schematics/bundles/control-flow-migration.cjs +1 -1
- package/schematics/bundles/imports-DP72APSx.cjs +1 -1
- package/schematics/bundles/index-B7I9sIUx.cjs +1 -1
- package/schematics/bundles/inject-migration.cjs +1 -1
- package/schematics/bundles/leading_space-D9nQ8UQC.cjs +1 -1
- package/schematics/bundles/migrate_ts_type_references-UGIUl7En.cjs +1 -1
- package/schematics/bundles/ng_component_template-Dsuq1Lw7.cjs +1 -1
- package/schematics/bundles/ng_decorators-DSFlWYQY.cjs +1 -1
- package/schematics/bundles/ngclass-to-class-migration.cjs +1 -1
- package/schematics/bundles/ngstyle-to-style-migration.cjs +1 -1
- package/schematics/bundles/nodes-B16H9JUd.cjs +1 -1
- package/schematics/bundles/output-migration.cjs +1 -1
- package/schematics/bundles/parse_html-8VLCL37B.cjs +1 -1
- package/schematics/bundles/project_paths-DvD50ouC.cjs +1 -1
- 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 +1 -1
- package/schematics/bundles/router-current-navigation.cjs +1 -1
- package/schematics/bundles/router-last-successful-navigation.cjs +1 -1
- package/schematics/bundles/router-testing-module-migration.cjs +1 -1
- package/schematics/bundles/self-closing-tags-migration.cjs +1 -1
- package/schematics/bundles/signal-input-migration.cjs +1 -1
- package/schematics/bundles/signal-queries-migration.cjs +1 -1
- package/schematics/bundles/signals.cjs +1 -1
- package/schematics/bundles/standalone-migration.cjs +1 -1
- package/schematics/bundles/symbol-BObKoqes.cjs +1 -1
- package/types/_api-chunk.d.ts +1 -1
- package/types/_chrome_dev_tools_performance-chunk.d.ts +2 -2
- package/types/_discovery-chunk.d.ts +1 -1
- package/types/_effect-chunk.d.ts +1 -1
- package/types/_event_dispatcher-chunk.d.ts +1 -1
- package/types/_formatter-chunk.d.ts +1 -1
- package/types/_weak_ref-chunk.d.ts +1 -1
- package/types/core.d.ts +12 -2
- package/types/primitives-di.d.ts +1 -1
- package/types/primitives-event-dispatch.d.ts +1 -1
- package/types/primitives-signals.d.ts +1 -1
- package/types/rxjs-interop.d.ts +1 -1
- package/types/testing.d.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.0.
|
|
2
|
+
* @license Angular v21.0.6
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -23,7 +23,7 @@ class Version {
|
|
|
23
23
|
this.patch = parts.slice(2).join('.');
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
const VERSION = /* @__PURE__ */new Version('21.0.
|
|
26
|
+
const VERSION = /* @__PURE__ */new Version('21.0.6');
|
|
27
27
|
|
|
28
28
|
const ERROR_DETAILS_PAGE_BASE_URL = (() => {
|
|
29
29
|
const versionSubDomain = VERSION.major !== '0' ? `v${VERSION.major}.` : '';
|
|
@@ -467,6 +467,7 @@ const NG_ENV_ID = getClosureSafeProperty({
|
|
|
467
467
|
});
|
|
468
468
|
|
|
469
469
|
function getNgModuleDef(type) {
|
|
470
|
+
assertTypeDefined(type, '@NgModule');
|
|
470
471
|
return type[NG_MOD_DEF] || null;
|
|
471
472
|
}
|
|
472
473
|
function getNgModuleDefOrThrow(type) {
|
|
@@ -477,6 +478,7 @@ function getNgModuleDefOrThrow(type) {
|
|
|
477
478
|
return ngModuleDef;
|
|
478
479
|
}
|
|
479
480
|
function getComponentDef(type) {
|
|
481
|
+
assertTypeDefined(type, '@Component');
|
|
480
482
|
return type[NG_COMP_DEF] || null;
|
|
481
483
|
}
|
|
482
484
|
function getDirectiveDefOrThrow(type) {
|
|
@@ -487,11 +489,18 @@ function getDirectiveDefOrThrow(type) {
|
|
|
487
489
|
return def;
|
|
488
490
|
}
|
|
489
491
|
function getDirectiveDef(type) {
|
|
492
|
+
assertTypeDefined(type, '@Directive');
|
|
490
493
|
return type[NG_DIR_DEF] || null;
|
|
491
494
|
}
|
|
492
495
|
function getPipeDef(type) {
|
|
496
|
+
assertTypeDefined(type, '@Pipe');
|
|
493
497
|
return type[NG_PIPE_DEF] || null;
|
|
494
498
|
}
|
|
499
|
+
function assertTypeDefined(type, symbolType) {
|
|
500
|
+
if (type == null) {
|
|
501
|
+
throw new RuntimeError(-919, (typeof ngDevMode === 'undefined' || ngDevMode) && `Cannot read ${symbolType} metadata. This can indicate a runtime ` + `circular dependency in your app that needs to be resolved.`);
|
|
502
|
+
}
|
|
503
|
+
}
|
|
495
504
|
function isStandalone(type) {
|
|
496
505
|
const def = getComponentDef(type) || getDirectiveDef(type) || getPipeDef(type);
|
|
497
506
|
return def !== null && def.standalone;
|
|
@@ -619,7 +628,7 @@ function injectRootLimpMode(token, notFoundValue, flags) {
|
|
|
619
628
|
}
|
|
620
629
|
if (flags & 8) return null;
|
|
621
630
|
if (notFoundValue !== undefined) return notFoundValue;
|
|
622
|
-
throwProviderNotFoundError(token, 'Injector');
|
|
631
|
+
throwProviderNotFoundError(token, typeof ngDevMode !== 'undefined' && ngDevMode ? 'Injector' : '');
|
|
623
632
|
}
|
|
624
633
|
function assertInjectImplementationNotEqual(fn) {
|
|
625
634
|
ngDevMode && assertNotEqual(_injectImplementation, fn, 'Calling ɵɵinject would cause infinite recursion');
|