@angular/core 21.0.3 → 21.0.4

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.
Files changed (75) hide show
  1. package/fesm2022/_attribute-chunk.mjs +1 -1
  2. package/fesm2022/_attribute-chunk.mjs.map +1 -1
  3. package/fesm2022/_debug_node-chunk.mjs +29 -22
  4. package/fesm2022/_debug_node-chunk.mjs.map +1 -1
  5. package/fesm2022/_effect-chunk.mjs +1 -1
  6. package/fesm2022/_effect-chunk.mjs.map +1 -1
  7. package/fesm2022/_linked_signal-chunk.mjs +1 -1
  8. package/fesm2022/_linked_signal-chunk.mjs.map +1 -1
  9. package/fesm2022/_not_found-chunk.mjs +1 -1
  10. package/fesm2022/_not_found-chunk.mjs.map +1 -1
  11. package/fesm2022/_resource-chunk.mjs +5 -2
  12. package/fesm2022/_resource-chunk.mjs.map +1 -1
  13. package/fesm2022/_untracked-chunk.mjs +40 -40
  14. package/fesm2022/_untracked-chunk.mjs.map +1 -1
  15. package/fesm2022/_weak_ref-chunk.mjs +1 -1
  16. package/fesm2022/_weak_ref-chunk.mjs.map +1 -1
  17. package/fesm2022/core.mjs +4 -4
  18. package/fesm2022/core.mjs.map +1 -1
  19. package/fesm2022/primitives-di.mjs +1 -1
  20. package/fesm2022/primitives-di.mjs.map +1 -1
  21. package/fesm2022/primitives-event-dispatch.mjs +1 -1
  22. package/fesm2022/primitives-event-dispatch.mjs.map +1 -1
  23. package/fesm2022/primitives-signals.mjs +1 -1
  24. package/fesm2022/primitives-signals.mjs.map +1 -1
  25. package/fesm2022/rxjs-interop.mjs +1 -1
  26. package/fesm2022/rxjs-interop.mjs.map +1 -1
  27. package/fesm2022/testing.mjs +6 -6
  28. package/fesm2022/testing.mjs.map +1 -1
  29. package/package.json +2 -2
  30. package/schematics/bundles/add-bootstrap-context-to-server-main.cjs +1 -1
  31. package/schematics/bundles/application-config-core.cjs +1 -1
  32. package/schematics/bundles/apply_import_manager-1Zs_gpB6.cjs +1 -1
  33. package/schematics/bundles/bootstrap-options-migration.cjs +1 -1
  34. package/schematics/bundles/cleanup-unused-imports.cjs +1 -1
  35. package/schematics/bundles/common-to-standalone-migration.cjs +1 -1
  36. package/schematics/bundles/compiler_host-DBwYMlTo.cjs +1 -1
  37. package/schematics/bundles/control-flow-migration.cjs +1 -1
  38. package/schematics/bundles/imports-DP72APSx.cjs +1 -1
  39. package/schematics/bundles/index-B7I9sIUx.cjs +1 -1
  40. package/schematics/bundles/inject-migration.cjs +1 -1
  41. package/schematics/bundles/leading_space-D9nQ8UQC.cjs +1 -1
  42. package/schematics/bundles/migrate_ts_type_references-UGIUl7En.cjs +1 -1
  43. package/schematics/bundles/ng_component_template-Dsuq1Lw7.cjs +1 -1
  44. package/schematics/bundles/ng_decorators-DSFlWYQY.cjs +1 -1
  45. package/schematics/bundles/ngclass-to-class-migration.cjs +1 -1
  46. package/schematics/bundles/ngstyle-to-style-migration.cjs +1 -1
  47. package/schematics/bundles/nodes-B16H9JUd.cjs +1 -1
  48. package/schematics/bundles/output-migration.cjs +1 -1
  49. package/schematics/bundles/parse_html-8VLCL37B.cjs +1 -1
  50. package/schematics/bundles/project_paths-DvD50ouC.cjs +1 -1
  51. package/schematics/bundles/project_tsconfig_paths-CDVxT6Ov.cjs +1 -1
  52. package/schematics/bundles/property_name-BBwFuqMe.cjs +1 -1
  53. package/schematics/bundles/route-lazy-loading.cjs +1 -1
  54. package/schematics/bundles/router-current-navigation.cjs +1 -1
  55. package/schematics/bundles/router-last-successful-navigation.cjs +1 -1
  56. package/schematics/bundles/router-testing-module-migration.cjs +1 -1
  57. package/schematics/bundles/self-closing-tags-migration.cjs +1 -1
  58. package/schematics/bundles/signal-input-migration.cjs +1 -1
  59. package/schematics/bundles/signal-queries-migration.cjs +1 -1
  60. package/schematics/bundles/signals.cjs +1 -1
  61. package/schematics/bundles/standalone-migration.cjs +1 -1
  62. package/schematics/bundles/symbol-BObKoqes.cjs +1 -1
  63. package/types/_api-chunk.d.ts +1 -1
  64. package/types/_chrome_dev_tools_performance-chunk.d.ts +9 -2
  65. package/types/_discovery-chunk.d.ts +11 -5
  66. package/types/_effect-chunk.d.ts +1 -1
  67. package/types/_event_dispatcher-chunk.d.ts +1 -1
  68. package/types/_formatter-chunk.d.ts +1 -1
  69. package/types/_weak_ref-chunk.d.ts +1 -1
  70. package/types/core.d.ts +37 -16
  71. package/types/primitives-di.d.ts +1 -1
  72. package/types/primitives-event-dispatch.d.ts +1 -1
  73. package/types/primitives-signals.d.ts +1 -1
  74. package/types/rxjs-interop.d.ts +1 -1
  75. package/types/testing.d.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.0.3
2
+ * @license Angular v21.0.4
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.3');
26
+ const VERSION = /* @__PURE__ */new Version('21.0.4');
27
27
 
28
28
  const ERROR_DETAILS_PAGE_BASE_URL = (() => {
29
29
  const versionSubDomain = VERSION.major !== '0' ? `v${VERSION.major}.` : '';
@@ -466,6 +466,37 @@ const NG_ENV_ID = getClosureSafeProperty({
466
466
  __NG_ENV_ID__: getClosureSafeProperty
467
467
  });
468
468
 
469
+ function getNgModuleDef(type) {
470
+ return type[NG_MOD_DEF] || null;
471
+ }
472
+ function getNgModuleDefOrThrow(type) {
473
+ const ngModuleDef = getNgModuleDef(type);
474
+ if (!ngModuleDef) {
475
+ throw new RuntimeError(915, (typeof ngDevMode === 'undefined' || ngDevMode) && `Type ${stringify(type)} does not have 'ɵmod' property.`);
476
+ }
477
+ return ngModuleDef;
478
+ }
479
+ function getComponentDef(type) {
480
+ return type[NG_COMP_DEF] || null;
481
+ }
482
+ function getDirectiveDefOrThrow(type) {
483
+ const def = getDirectiveDef(type);
484
+ if (!def) {
485
+ throw new RuntimeError(916, (typeof ngDevMode === 'undefined' || ngDevMode) && `Type ${stringify(type)} does not have 'ɵdir' property.`);
486
+ }
487
+ return def;
488
+ }
489
+ function getDirectiveDef(type) {
490
+ return type[NG_DIR_DEF] || null;
491
+ }
492
+ function getPipeDef(type) {
493
+ return type[NG_PIPE_DEF] || null;
494
+ }
495
+ function isStandalone(type) {
496
+ const def = getComponentDef(type) || getDirectiveDef(type) || getPipeDef(type);
497
+ return def !== null && def.standalone;
498
+ }
499
+
469
500
  function renderStringify(value) {
470
501
  if (typeof value === 'string') return value;
471
502
  if (value == null) return '';
@@ -479,7 +510,7 @@ function stringifyForError(value) {
479
510
  return renderStringify(value);
480
511
  }
481
512
  function debugStringifyTypeForError(type) {
482
- let componentDef = type[NG_COMP_DEF] || null;
513
+ const componentDef = getComponentDef(type);
483
514
  if (componentDef !== null && componentDef.debugInfo) {
484
515
  return stringifyTypeFromDebugInfo(componentDef.debugInfo);
485
516
  }
@@ -823,11 +854,11 @@ if ((typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode()) {
823
854
  Object.freeze(EMPTY_ARRAY);
824
855
  }
825
856
 
826
- const ENVIRONMENT_INITIALIZER = new InjectionToken(typeof ngDevMode !== undefined && ngDevMode ? 'ENVIRONMENT_INITIALIZER' : '');
857
+ const ENVIRONMENT_INITIALIZER = new InjectionToken(typeof ngDevMode !== 'undefined' && ngDevMode ? 'ENVIRONMENT_INITIALIZER' : '');
827
858
 
828
- const INJECTOR$1 = new InjectionToken(typeof ngDevMode !== undefined && ngDevMode ? 'INJECTOR' : '', -1);
859
+ const INJECTOR$1 = new InjectionToken(typeof ngDevMode !== 'undefined' && ngDevMode ? 'INJECTOR' : '', -1);
829
860
 
830
- const INJECTOR_DEF_TYPES = new InjectionToken(typeof ngDevMode !== undefined && ngDevMode ? 'INJECTOR_DEF_TYPES' : '');
861
+ const INJECTOR_DEF_TYPES = new InjectionToken(typeof ngDevMode !== 'undefined' && ngDevMode ? 'INJECTOR_DEF_TYPES' : '');
831
862
 
832
863
  class NullInjector {
833
864
  get(token, notFoundValue = THROW_IF_NOT_FOUND) {
@@ -841,37 +872,6 @@ class NullInjector {
841
872
  }
842
873
  }
843
874
 
844
- function getNgModuleDef(type) {
845
- return type[NG_MOD_DEF] || null;
846
- }
847
- function getNgModuleDefOrThrow(type) {
848
- const ngModuleDef = getNgModuleDef(type);
849
- if (!ngModuleDef) {
850
- throw new RuntimeError(915, (typeof ngDevMode === 'undefined' || ngDevMode) && `Type ${stringify(type)} does not have 'ɵmod' property.`);
851
- }
852
- return ngModuleDef;
853
- }
854
- function getComponentDef(type) {
855
- return type[NG_COMP_DEF] || null;
856
- }
857
- function getDirectiveDefOrThrow(type) {
858
- const def = getDirectiveDef(type);
859
- if (!def) {
860
- throw new RuntimeError(916, (typeof ngDevMode === 'undefined' || ngDevMode) && `Type ${stringify(type)} does not have 'ɵdir' property.`);
861
- }
862
- return def;
863
- }
864
- function getDirectiveDef(type) {
865
- return type[NG_DIR_DEF] || null;
866
- }
867
- function getPipeDef(type) {
868
- return type[NG_PIPE_DEF] || null;
869
- }
870
- function isStandalone(type) {
871
- const def = getComponentDef(type) || getDirectiveDef(type) || getPipeDef(type);
872
- return def !== null && def.standalone;
873
- }
874
-
875
875
  function makeEnvironmentProviders(providers) {
876
876
  return {
877
877
  ɵproviders: providers
@@ -1054,7 +1054,7 @@ function isClassProvider(value) {
1054
1054
  return !!value.useClass;
1055
1055
  }
1056
1056
 
1057
- const INJECTOR_SCOPE = new InjectionToken(typeof ngDevMode !== undefined && ngDevMode ? 'Set Injector scope.' : '');
1057
+ const INJECTOR_SCOPE = new InjectionToken(typeof ngDevMode !== 'undefined' && ngDevMode ? 'Set Injector scope.' : '');
1058
1058
 
1059
1059
  const NOT_YET = {};
1060
1060
  const CIRCULAR = {};
@@ -2135,7 +2135,7 @@ class Injector {
2135
2135
  static __NG_ELEMENT_ID__ = -1;
2136
2136
  }
2137
2137
 
2138
- const DOCUMENT = new InjectionToken(typeof ngDevMode !== undefined && ngDevMode ? 'DocumentToken' : '');
2138
+ const DOCUMENT = new InjectionToken(typeof ngDevMode !== 'undefined' && ngDevMode ? 'DocumentToken' : '');
2139
2139
 
2140
2140
  class DestroyRef {
2141
2141
  static __NG_ELEMENT_ID__ = injectDestroyRef;
@@ -2603,7 +2603,7 @@ const errorHandlerEnvironmentInitializer = {
2603
2603
  },
2604
2604
  multi: true
2605
2605
  };
2606
- const globalErrorListeners = new InjectionToken(typeof ngDevMode !== undefined && ngDevMode ? 'GlobalErrorListeners' : '', {
2606
+ const globalErrorListeners = new InjectionToken(typeof ngDevMode !== 'undefined' && ngDevMode ? 'GlobalErrorListeners' : '', {
2607
2607
  factory: () => {
2608
2608
  if (typeof ngServerMode !== 'undefined' && ngServerMode) {
2609
2609
  return;