@angular/core 20.2.0-rc.0 → 20.2.0-rc.1

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 (58) 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 +2 -8
  4. package/event_dispatcher.d.d.ts +1 -1
  5. package/fesm2022/attribute.mjs +1 -1
  6. package/fesm2022/core.mjs +7 -10
  7. package/fesm2022/core.mjs.map +1 -1
  8. package/fesm2022/debug_node.mjs +4 -13
  9. package/fesm2022/debug_node.mjs.map +1 -1
  10. package/fesm2022/not_found.mjs +1 -1
  11. package/fesm2022/primitives/di.mjs +1 -1
  12. package/fesm2022/primitives/event-dispatch.mjs +1 -1
  13. package/fesm2022/primitives/signals.mjs +1 -1
  14. package/fesm2022/resource.mjs +2 -11
  15. package/fesm2022/resource.mjs.map +1 -1
  16. package/fesm2022/root_effect_scheduler.mjs +1 -1
  17. package/fesm2022/rxjs-interop.mjs +1 -1
  18. package/fesm2022/signal.mjs +1 -1
  19. package/fesm2022/testing.mjs +1 -1
  20. package/fesm2022/untracked.mjs +1 -1
  21. package/fesm2022/weak_ref.mjs +1 -1
  22. package/graph.d.d.ts +1 -1
  23. package/index.d.ts +3 -11
  24. package/package.json +2 -2
  25. package/primitives/di/index.d.ts +1 -1
  26. package/primitives/event-dispatch/index.d.ts +1 -1
  27. package/primitives/signals/index.d.ts +1 -1
  28. package/rxjs-interop/index.d.ts +1 -1
  29. package/schematics/bundles/{apply_import_manager-BDpMzDvN.cjs → apply_import_manager-OJAv7nyR.cjs} +3 -3
  30. package/schematics/bundles/cleanup-unused-imports.cjs +5 -5
  31. package/schematics/bundles/{compiler_host-GNtX_RDe.cjs → compiler_host-GMENszSm.cjs} +2 -2
  32. package/schematics/bundles/control-flow-migration.cjs +3 -3
  33. package/schematics/bundles/document-core.cjs +5 -5
  34. package/schematics/bundles/imports-CIX-JgAN.cjs +1 -1
  35. package/schematics/bundles/{index-czXpbmcu.cjs → index-C0gVsyDQ.cjs} +4 -4
  36. package/schematics/bundles/{index-BrQFpkJq.cjs → index-CvCDOy8a.cjs} +17 -19
  37. package/schematics/bundles/inject-flags.cjs +5 -5
  38. package/schematics/bundles/inject-migration.cjs +3 -3
  39. package/schematics/bundles/leading_space-D9nQ8UQC.cjs +1 -1
  40. package/schematics/bundles/{migrate_ts_type_references-DLVVfu8Y.cjs → migrate_ts_type_references-ByPRdLHL.cjs} +5 -5
  41. package/schematics/bundles/ng_decorators-B5HCqr20.cjs +1 -1
  42. package/schematics/bundles/nodes-B16H9JUd.cjs +1 -1
  43. package/schematics/bundles/output-migration.cjs +6 -6
  44. package/schematics/bundles/{project_paths-pSh0WpBI.cjs → project_paths-BfWTWKz0.cjs} +3 -3
  45. package/schematics/bundles/{project_tsconfig_paths-Cy7U7awR.cjs → project_tsconfig_paths-Bhn4jDr1.cjs} +5 -7
  46. package/schematics/bundles/property_name-BBwFuqMe.cjs +1 -1
  47. package/schematics/bundles/route-lazy-loading.cjs +3 -3
  48. package/schematics/bundles/router-current-navigation.cjs +4 -4
  49. package/schematics/bundles/self-closing-tags-migration.cjs +4 -4
  50. package/schematics/bundles/signal-input-migration.cjs +7 -7
  51. package/schematics/bundles/signal-queries-migration.cjs +7 -7
  52. package/schematics/bundles/signals.cjs +7 -7
  53. package/schematics/bundles/standalone-migration.cjs +4 -4
  54. package/schematics/bundles/symbol-VPWguRxr.cjs +1 -1
  55. package/schematics/bundles/test-bed-get.cjs +4 -4
  56. package/signal.d.d.ts +1 -1
  57. package/testing/index.d.ts +1 -1
  58. package/weak_ref.d.d.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.2.0-rc.0
2
+ * @license Angular v20.2.0-rc.1
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -4896,12 +4896,6 @@ var ViewEncapsulation;
4896
4896
  * all the Component's styling.
4897
4897
  */
4898
4898
  ViewEncapsulation[ViewEncapsulation["ShadowDom"] = 3] = "ShadowDom";
4899
- /**
4900
- * Similar to `ShadowDom`, but prevents any external styles from leaking into the
4901
- * component's ShadowRoot. This is useful when you want to ensure that the component's
4902
- * styles are completely isolated from the rest of the application, including global styles.
4903
- */
4904
- ViewEncapsulation[ViewEncapsulation["IsolatedShadowDom"] = 4] = "IsolatedShadowDom";
4905
4899
  })(ViewEncapsulation || (ViewEncapsulation = {}));
4906
4900
 
4907
4901
  /**
@@ -7996,9 +7990,7 @@ function locateHostElement(renderer, elementOrSelector, encapsulation, injector)
7996
7990
  const preserveHostContent = injector.get(PRESERVE_HOST_CONTENT, PRESERVE_HOST_CONTENT_DEFAULT);
7997
7991
  // When using native Shadow DOM, do not clear host element to allow native slot
7998
7992
  // projection.
7999
- const preserveContent = preserveHostContent ||
8000
- encapsulation === ViewEncapsulation.ShadowDom ||
8001
- encapsulation === ViewEncapsulation.IsolatedShadowDom;
7993
+ const preserveContent = preserveHostContent || encapsulation === ViewEncapsulation.ShadowDom;
8002
7994
  const rootElement = renderer.selectRootElement(elementOrSelector, preserveContent);
8003
7995
  applyRootElementTransform(rootElement);
8004
7996
  return rootElement;
@@ -13523,7 +13515,7 @@ class ComponentFactory extends ComponentFactory$1 {
13523
13515
  }
13524
13516
  function createRootTView(rootSelectorOrNode, componentDef, componentBindings, directives) {
13525
13517
  const tAttributes = rootSelectorOrNode
13526
- ? ['ng-version', '20.2.0-rc.0']
13518
+ ? ['ng-version', '20.2.0-rc.1']
13527
13519
  : // Extract attributes and classes from the first selector only to match VE behavior.
13528
13520
  extractAttrsAndClassesFromSelector(componentDef.selectors[0]);
13529
13521
  let creationBindings = null;
@@ -29077,8 +29069,7 @@ function recreateLView(importMeta, id, newDef, oldDef, lView) {
29077
29069
  // shadow root. The browser will throw if we attempt to attach another one and there's no way
29078
29070
  // to detach it. Our only option is to make a clone only of the root node, replace the node
29079
29071
  // with the clone and use it for the newly-created LView.
29080
- if (oldDef.encapsulation === ViewEncapsulation.ShadowDom ||
29081
- oldDef.encapsulation === ViewEncapsulation.IsolatedShadowDom) {
29072
+ if (oldDef.encapsulation === ViewEncapsulation.ShadowDom) {
29082
29073
  const newHost = host.cloneNode(false);
29083
29074
  host.replaceWith(newHost);
29084
29075
  host = newHost;