@angular/core 20.1.4 → 20.1.5

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 (69) 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/attribute.mjs.map +1 -1
  7. package/fesm2022/core.mjs +2 -2
  8. package/fesm2022/core.mjs.map +1 -1
  9. package/fesm2022/debug_node.mjs +14 -5
  10. package/fesm2022/debug_node.mjs.map +1 -1
  11. package/fesm2022/not_found.mjs +1 -1
  12. package/fesm2022/not_found.mjs.map +1 -1
  13. package/fesm2022/primitives/di.mjs +1 -1
  14. package/fesm2022/primitives/di.mjs.map +1 -1
  15. package/fesm2022/primitives/event-dispatch.mjs +1 -1
  16. package/fesm2022/primitives/event-dispatch.mjs.map +1 -1
  17. package/fesm2022/primitives/signals.mjs +1 -1
  18. package/fesm2022/primitives/signals.mjs.map +1 -1
  19. package/fesm2022/resource.mjs +1 -1
  20. package/fesm2022/resource.mjs.map +1 -1
  21. package/fesm2022/root_effect_scheduler.mjs +1 -1
  22. package/fesm2022/root_effect_scheduler.mjs.map +1 -1
  23. package/fesm2022/rxjs-interop.mjs +1 -1
  24. package/fesm2022/rxjs-interop.mjs.map +1 -1
  25. package/fesm2022/signal.mjs +1 -1
  26. package/fesm2022/signal.mjs.map +1 -1
  27. package/fesm2022/testing.mjs +1 -1
  28. package/fesm2022/testing.mjs.map +1 -1
  29. package/fesm2022/untracked.mjs +1 -1
  30. package/fesm2022/untracked.mjs.map +1 -1
  31. package/fesm2022/weak_ref.mjs +1 -1
  32. package/fesm2022/weak_ref.mjs.map +1 -1
  33. package/graph.d.d.ts +1 -1
  34. package/index.d.ts +3 -1
  35. package/package.json +2 -2
  36. package/primitives/di/index.d.ts +1 -1
  37. package/primitives/event-dispatch/index.d.ts +1 -1
  38. package/primitives/signals/index.d.ts +1 -1
  39. package/rxjs-interop/index.d.ts +1 -1
  40. package/schematics/bundles/{apply_import_manager-BwG_XNz3.cjs → apply_import_manager-BeiseOfz.cjs} +4 -4
  41. package/schematics/bundles/cleanup-unused-imports.cjs +7 -8
  42. package/schematics/bundles/{compiler_host-BouiutKy.cjs → compiler_host-CIkS8EIQ.cjs} +3 -3
  43. package/schematics/bundles/control-flow-migration.cjs +18 -19
  44. package/schematics/bundles/document-core.cjs +6 -7
  45. package/schematics/bundles/imports-CIX-JgAN.cjs +1 -1
  46. package/schematics/bundles/{index-C7alPIzS.cjs → index-CuCkSYir.cjs} +1254 -1246
  47. package/schematics/bundles/{index-C4RI5-xz.cjs → index-Dek52tJB.cjs} +49 -49
  48. package/schematics/bundles/inject-flags.cjs +6 -7
  49. package/schematics/bundles/inject-migration.cjs +6 -7
  50. package/schematics/bundles/leading_space-D9nQ8UQC.cjs +1 -1
  51. package/schematics/bundles/{migrate_ts_type_references-BXdun0jT.cjs → migrate_ts_type_references-MVe5vYII.cjs} +14 -14
  52. package/schematics/bundles/ng_decorators-B5HCqr20.cjs +1 -1
  53. package/schematics/bundles/nodes-B16H9JUd.cjs +1 -1
  54. package/schematics/bundles/output-migration.cjs +20 -21
  55. package/schematics/bundles/{project_paths-KZ5syi8v.cjs → project_paths-BKtwr3ir.cjs} +16 -17
  56. package/schematics/bundles/{checker-B1MkHERe.cjs → project_tsconfig_paths-DA1eve-D.cjs} +139 -24
  57. package/schematics/bundles/property_name-BBwFuqMe.cjs +1 -1
  58. package/schematics/bundles/route-lazy-loading.cjs +6 -7
  59. package/schematics/bundles/self-closing-tags-migration.cjs +10 -11
  60. package/schematics/bundles/signal-input-migration.cjs +21 -22
  61. package/schematics/bundles/signal-queries-migration.cjs +31 -32
  62. package/schematics/bundles/signals.cjs +8 -9
  63. package/schematics/bundles/standalone-migration.cjs +10 -11
  64. package/schematics/bundles/symbol-VPWguRxr.cjs +1 -1
  65. package/schematics/bundles/test-bed-get.cjs +4 -5
  66. package/signal.d.d.ts +1 -1
  67. package/testing/index.d.ts +1 -1
  68. package/weak_ref.d.d.ts +1 -1
  69. package/schematics/bundles/project_tsconfig_paths-CDVxT6Ov.cjs +0 -90
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.1.4
2
+ * @license Angular v20.1.5
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -13502,7 +13502,7 @@ class ComponentFactory extends ComponentFactory$1 {
13502
13502
  }
13503
13503
  function createRootTView(rootSelectorOrNode, componentDef, componentBindings, directives) {
13504
13504
  const tAttributes = rootSelectorOrNode
13505
- ? ['ng-version', '20.1.4']
13505
+ ? ['ng-version', '20.1.5']
13506
13506
  : // Extract attributes and classes from the first selector only to match VE behavior.
13507
13507
  extractAttrsAndClassesFromSelector(componentDef.selectors[0]);
13508
13508
  let creationBindings = null;
@@ -14645,7 +14645,7 @@ function resolveComponentResources(resourceResolver) {
14645
14645
  let promise = urlMap.get(url);
14646
14646
  if (!promise) {
14647
14647
  const resp = resourceResolver(url);
14648
- urlMap.set(url, (promise = resp.then(unwrapResponse)));
14648
+ urlMap.set(url, (promise = resp.then((res) => unwrapResponse(url, res))));
14649
14649
  }
14650
14650
  return promise;
14651
14651
  }
@@ -14718,8 +14718,14 @@ function restoreComponentResolutionQueue(queue) {
14718
14718
  function isComponentResourceResolutionQueueEmpty() {
14719
14719
  return componentResourceResolutionQueue.size === 0;
14720
14720
  }
14721
- function unwrapResponse(response) {
14722
- return typeof response == 'string' ? response : response.text();
14721
+ function unwrapResponse(url, response) {
14722
+ if (typeof response === 'string') {
14723
+ return response;
14724
+ }
14725
+ if (response.status !== undefined && response.status !== 200) {
14726
+ return Promise.reject(new RuntimeError(918 /* RuntimeErrorCode.EXTERNAL_RESOURCE_LOADING_FAILED */, ngDevMode && `Could not load resource: ${url}. Response status: ${response.status}`));
14727
+ }
14728
+ return response.text();
14723
14729
  }
14724
14730
  function componentDefResolved(type) {
14725
14731
  componentDefPendingResolution.delete(type);
@@ -19056,6 +19062,9 @@ function getNodesAndEdgesFromSignalMap(signalMap) {
19056
19062
  label: consumer.debugName ?? consumer.lView?.[HOST]?.tagName?.toLowerCase?.(),
19057
19063
  kind: consumer.kind,
19058
19064
  epoch: consumer.version,
19065
+ // The `lView[CONTEXT]` is a reference to an instance of the component's class.
19066
+ // We get the constructor so that `inspect(.constructor)` shows the component class.
19067
+ debuggableFn: consumer.lView?.[CONTEXT]?.constructor,
19059
19068
  id,
19060
19069
  });
19061
19070
  }