@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.
Files changed (61) hide show
  1. package/api.d.d.ts +1 -1
  2. package/chrome_dev_tools_performance.d.d.ts +1 -1
  3. package/discovery.d.d.ts +1 -1
  4. package/event_dispatcher.d.d.ts +1 -1
  5. package/fesm2022/attribute.mjs +1 -1
  6. package/fesm2022/core.mjs +14 -6
  7. package/fesm2022/core.mjs.map +1 -1
  8. package/fesm2022/debug_node.mjs +8 -6
  9. package/fesm2022/debug_node.mjs.map +1 -1
  10. package/fesm2022/{injector.mjs → not_found.mjs} +28 -25
  11. package/fesm2022/not_found.mjs.map +1 -0
  12. package/fesm2022/primitives/di.mjs +11 -3
  13. package/fesm2022/primitives/di.mjs.map +1 -1
  14. package/fesm2022/primitives/event-dispatch.mjs +1 -1
  15. package/fesm2022/primitives/signals.mjs +1 -1
  16. package/fesm2022/resource.mjs +1 -1
  17. package/fesm2022/root_effect_scheduler.mjs +3 -3
  18. package/fesm2022/root_effect_scheduler.mjs.map +1 -1
  19. package/fesm2022/rxjs-interop.mjs +2 -2
  20. package/fesm2022/signal.mjs +1 -1
  21. package/fesm2022/testing.mjs +2 -2
  22. package/fesm2022/untracked.mjs +1 -1
  23. package/fesm2022/weak_ref.mjs +1 -1
  24. package/graph.d.d.ts +1 -1
  25. package/index.d.ts +7 -8
  26. package/package.json +2 -2
  27. package/primitives/di/index.d.ts +11 -3
  28. package/primitives/event-dispatch/index.d.ts +1 -1
  29. package/primitives/signals/index.d.ts +1 -1
  30. package/rxjs-interop/index.d.ts +1 -1
  31. package/schematics/bundles/{apply_import_manager-C11Q8021.cjs → apply_import_manager-B0fYYMpr.cjs} +3 -3
  32. package/schematics/bundles/{checker-BVnpy__J.cjs → checker-DLInMAS3.cjs} +533 -1264
  33. package/schematics/bundles/cleanup-unused-imports.cjs +6 -5
  34. package/schematics/bundles/{compiler_host-j95cyBKm.cjs → compiler_host-Doj9KVJf.cjs} +2 -2
  35. package/schematics/bundles/control-flow-migration.cjs +3 -3
  36. package/schematics/bundles/document-core.cjs +6 -5
  37. package/schematics/bundles/imports-CIX-JgAN.cjs +1 -1
  38. package/schematics/bundles/{index-BkA2Tb_u.cjs → index-BmuUS1AB.cjs} +947 -71
  39. package/schematics/bundles/{index-DYpSE68_.cjs → index-Bp8sCiq1.cjs} +5 -4
  40. package/schematics/bundles/inject-flags.cjs +6 -5
  41. package/schematics/bundles/inject-migration.cjs +3 -3
  42. package/schematics/bundles/leading_space-D9nQ8UQC.cjs +1 -1
  43. package/schematics/bundles/{migrate_ts_type_references-Covsxz7y.cjs → migrate_ts_type_references-CmZ0155c.cjs} +6 -5
  44. package/schematics/bundles/ng_decorators-B5HCqr20.cjs +1 -1
  45. package/schematics/bundles/nodes-B16H9JUd.cjs +1 -1
  46. package/schematics/bundles/output-migration.cjs +7 -6
  47. package/schematics/bundles/{project_paths-3GwjSb-R.cjs → project_paths-D2SJWT7x.cjs} +39 -3
  48. package/schematics/bundles/project_tsconfig_paths-CDVxT6Ov.cjs +1 -1
  49. package/schematics/bundles/property_name-BBwFuqMe.cjs +1 -1
  50. package/schematics/bundles/route-lazy-loading.cjs +3 -3
  51. package/schematics/bundles/self-closing-tags-migration.cjs +5 -4
  52. package/schematics/bundles/signal-input-migration.cjs +8 -7
  53. package/schematics/bundles/signal-queries-migration.cjs +8 -7
  54. package/schematics/bundles/signals.cjs +8 -7
  55. package/schematics/bundles/standalone-migration.cjs +4 -4
  56. package/schematics/bundles/symbol-VPWguRxr.cjs +1 -1
  57. package/schematics/bundles/test-bed-get.cjs +5 -4
  58. package/signal.d.d.ts +1 -1
  59. package/testing/index.d.ts +1 -1
  60. package/weak_ref.d.d.ts +1 -1
  61. package/fesm2022/injector.mjs.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.1.0-next.3
2
+ * @license Angular v20.1.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -8017,8 +8017,7 @@ function enableApplyRootElementTransformImpl() {
8017
8017
  * object lookup) for performance reasons - the series of `if` checks seems to be the fastest way of
8018
8018
  * mapping property names. Do NOT change without benchmarking.
8019
8019
  *
8020
- * Note: this mapping has to be kept in sync with the equally named mapping in the template
8021
- * type-checking machinery of ngtsc.
8020
+ * Note: this mapping has to be kept in sync with the equivalent mappings in the compiler.
8022
8021
  */
8023
8022
  function mapPropName(name) {
8024
8023
  if (name === 'class')
@@ -8044,6 +8043,10 @@ function setPropertyAndInputs(tNode, lView, propName, value, renderer, sanitizer
8044
8043
  ngDevMode && setNgReflectProperties(lView, tView, tNode, propName, value);
8045
8044
  return; // Stop propcessing if we've matched at least one input.
8046
8045
  }
8046
+ // If the property is going to a DOM node, we have to remap it.
8047
+ if (tNode.type & 3 /* TNodeType.AnyRNode */) {
8048
+ propName = mapPropName(propName);
8049
+ }
8047
8050
  setDomProperty(tNode, lView, propName, value, renderer, sanitizer);
8048
8051
  }
8049
8052
  /**
@@ -8058,7 +8061,6 @@ function setPropertyAndInputs(tNode, lView, propName, value, renderer, sanitizer
8058
8061
  function setDomProperty(tNode, lView, propName, value, renderer, sanitizer) {
8059
8062
  if (tNode.type & 3 /* TNodeType.AnyRNode */) {
8060
8063
  const element = getNativeByTNode(tNode, lView);
8061
- propName = mapPropName(propName);
8062
8064
  if (ngDevMode) {
8063
8065
  validateAgainstEventProperties(propName);
8064
8066
  if (!isPropertyValid(element, propName, tNode.value, lView[TVIEW].schemas)) {
@@ -13476,7 +13478,7 @@ class ComponentFactory extends ComponentFactory$1 {
13476
13478
  }
13477
13479
  function createRootTView(rootSelectorOrNode, componentDef, componentBindings, directives) {
13478
13480
  const tAttributes = rootSelectorOrNode
13479
- ? ['ng-version', '20.1.0-next.3']
13481
+ ? ['ng-version', '20.1.0']
13480
13482
  : // Extract attributes and classes from the first selector only to match VE behavior.
13481
13483
  extractAttrsAndClassesFromSelector(componentDef.selectors[0]);
13482
13484
  let creationBindings = null;
@@ -13600,7 +13602,7 @@ class ComponentRef extends ComponentRef$1 {
13600
13602
  if (ngDevMode && !hasSetInput) {
13601
13603
  const cmpNameForError = stringifyForError(this.componentType);
13602
13604
  let message = `Can't set value of the '${name}' input on the '${cmpNameForError}' component. `;
13603
- message += `Make sure that the '${name}' property is annotated with @Input() or a mapped @Input('${name}') exists.`;
13605
+ message += `Make sure that the '${name}' property is declared as an input using the @Input() decorator or the input() function.`;
13604
13606
  reportUnknownPropertyError(message);
13605
13607
  }
13606
13608
  }