@angular/core 20.0.0-rc.1 → 20.0.0-rc.2

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/{api.d-BcbEQ58q.d.ts → api.d-B0vztftH.d.ts} +15 -15
  2. package/{chrome_dev_tools_performance.d-CARNn07P.d.ts → chrome_dev_tools_performance.d-DvzAxqBc.d.ts} +5 -1
  3. package/{discovery.d-MmZhhuxb.d.ts → discovery.d-Cf_r2Ojk.d.ts} +6 -13
  4. package/event_dispatcher.d-BReQpZfC.d.ts +1 -1
  5. package/fesm2022/attribute-BWp59EjE.mjs +1 -1
  6. package/fesm2022/attribute-BWp59EjE.mjs.map +1 -1
  7. package/fesm2022/core.mjs +15 -9
  8. package/fesm2022/core.mjs.map +1 -1
  9. package/fesm2022/{debug_node-BTSSF0Vj.mjs → debug_node-Nc-zr65s.mjs} +12163 -12293
  10. package/fesm2022/debug_node-Nc-zr65s.mjs.map +1 -0
  11. package/fesm2022/primitives/di.mjs +1 -1
  12. package/fesm2022/primitives/di.mjs.map +1 -1
  13. package/fesm2022/primitives/event-dispatch.mjs +1 -1
  14. package/fesm2022/primitives/event-dispatch.mjs.map +1 -1
  15. package/fesm2022/primitives/signals.mjs +1 -1
  16. package/fesm2022/primitives/signals.mjs.map +1 -1
  17. package/fesm2022/{resource-DdxAP6ca.mjs → resource-DOwetGLU.mjs} +64 -14
  18. package/fesm2022/resource-DOwetGLU.mjs.map +1 -0
  19. package/fesm2022/{root_effect_scheduler-CX0Q-uCT.mjs → root_effect_scheduler-BgGHQ80j.mjs} +26 -16
  20. package/fesm2022/root_effect_scheduler-BgGHQ80j.mjs.map +1 -0
  21. package/fesm2022/rxjs-interop.mjs +27 -12
  22. package/fesm2022/rxjs-interop.mjs.map +1 -1
  23. package/fesm2022/signal-ePSl6jXn.mjs +1 -1
  24. package/fesm2022/signal-ePSl6jXn.mjs.map +1 -1
  25. package/fesm2022/testing.mjs +43 -26
  26. package/fesm2022/testing.mjs.map +1 -1
  27. package/fesm2022/untracked-2ouAFbCz.mjs +1 -1
  28. package/fesm2022/untracked-2ouAFbCz.mjs.map +1 -1
  29. package/fesm2022/weak_ref-BaIq-pgY.mjs +1 -1
  30. package/fesm2022/weak_ref-BaIq-pgY.mjs.map +1 -1
  31. package/graph.d-BcIOep_B.d.ts +1 -1
  32. package/index.d.ts +204 -313
  33. package/package.json +3 -3
  34. package/primitives/di/index.d.ts +1 -1
  35. package/primitives/event-dispatch/index.d.ts +1 -1
  36. package/primitives/signals/index.d.ts +1 -1
  37. package/rxjs-interop/index.d.ts +3 -3
  38. package/schematics/bundles/{apply_import_manager-BdH8vaIZ.js → apply_import_manager-BqwxKJiu.cjs} +3 -3
  39. package/schematics/bundles/{change_tracker-C_neAOvN.js → change_tracker-B1qegJFu.cjs} +3 -3
  40. package/schematics/bundles/{checker-DqG0JVTu.js → checker-DmucNdBi.cjs} +55 -45
  41. package/schematics/bundles/{cleanup-unused-imports.js → cleanup-unused-imports.cjs} +26 -55
  42. package/schematics/bundles/{compiler-CWuG67kz.js → compiler-DPq1iS19.cjs} +92 -86
  43. package/schematics/bundles/{compiler_host-CAfDJO3W.js → compiler_host-CAfDJO3W.cjs} +1 -1
  44. package/schematics/bundles/{control-flow-migration.js → control-flow-migration.cjs} +4 -4
  45. package/schematics/bundles/{document-core.js → document-core.cjs} +8 -8
  46. package/schematics/bundles/{imports-CIX-JgAN.js → imports-CIX-JgAN.cjs} +1 -1
  47. package/schematics/bundles/{index-CGYcUmPq.js → index-1H-qYSW6.cjs} +80 -34
  48. package/schematics/bundles/{index-DWcLBEg_.js → index-CFmTQ_wx.cjs} +29 -20
  49. package/schematics/bundles/{inject-flags.js → inject-flags.cjs} +8 -8
  50. package/schematics/bundles/{inject-migration.js → inject-migration.cjs} +9 -9
  51. package/schematics/bundles/{leading_space-D9nQ8UQC.js → leading_space-D9nQ8UQC.cjs} +1 -1
  52. package/schematics/bundles/{migrate_ts_type_references-DAudyiEk.js → migrate_ts_type_references-B2aJNuIK.cjs} +7 -7
  53. package/schematics/bundles/{ng_decorators-DznZ5jMl.js → ng_decorators-B5HCqr20.cjs} +2 -2
  54. package/schematics/bundles/{nodes-B16H9JUd.js → nodes-B16H9JUd.cjs} +1 -1
  55. package/schematics/bundles/{output-migration.js → output-migration.cjs} +8 -8
  56. package/schematics/bundles/{project_paths-B3YG5aUz.js → project_paths-DmvzlTQL.cjs} +71 -42
  57. package/schematics/bundles/{project_tsconfig_paths-CDVxT6Ov.js → project_tsconfig_paths-CDVxT6Ov.cjs} +1 -1
  58. package/schematics/bundles/{property_name-BBwFuqMe.js → property_name-BBwFuqMe.cjs} +1 -1
  59. package/schematics/bundles/{route-lazy-loading.js → route-lazy-loading.cjs} +7 -7
  60. package/schematics/bundles/{self-closing-tags-migration.js → self-closing-tags-migration.cjs} +12 -26
  61. package/schematics/bundles/{signal-input-migration.js → signal-input-migration.cjs} +20 -16
  62. package/schematics/bundles/{signal-queries-migration.js → signal-queries-migration.cjs} +10 -10
  63. package/schematics/bundles/{signals.js → signals.cjs} +13 -13
  64. package/schematics/bundles/{standalone-migration.js → standalone-migration.cjs} +11 -11
  65. package/schematics/bundles/{symbol-VPWguRxr.js → symbol-VPWguRxr.cjs} +1 -1
  66. package/schematics/bundles/{test-bed-get.js → test-bed-get.cjs} +8 -8
  67. package/schematics/collection.json +9 -9
  68. package/schematics/migrations.json +4 -4
  69. package/signal.d-D6VJ67xi.d.ts +1 -1
  70. package/testing/index.d.ts +18 -4
  71. package/weak_ref.d-eGOEP9S1.d.ts +1 -1
  72. package/fesm2022/debug_node-BTSSF0Vj.mjs.map +0 -1
  73. package/fesm2022/resource-DdxAP6ca.mjs.map +0 -1
  74. package/fesm2022/root_effect_scheduler-CX0Q-uCT.mjs.map +0 -1
  75. package/schematics/package.json +0 -3
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v20.0.0-rc.1
3
+ * @license Angular v20.0.0-rc.2
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -8,20 +8,20 @@
8
8
 
9
9
  var ts = require('typescript');
10
10
  require('os');
11
- require('./checker-DqG0JVTu.js');
12
- require('./compiler-CWuG67kz.js');
13
- require('./index-CGYcUmPq.js');
11
+ require('./checker-DmucNdBi.cjs');
12
+ require('./compiler-DPq1iS19.cjs');
13
+ require('./index-1H-qYSW6.cjs');
14
14
  require('path');
15
- var project_paths = require('./project_paths-B3YG5aUz.js');
16
- var imports = require('./imports-CIX-JgAN.js');
17
- var symbol = require('./symbol-VPWguRxr.js');
15
+ var project_paths = require('./project_paths-DmvzlTQL.cjs');
16
+ var imports = require('./imports-CIX-JgAN.cjs');
17
+ var symbol = require('./symbol-VPWguRxr.cjs');
18
18
  require('@angular-devkit/core');
19
19
  require('node:path/posix');
20
20
  require('fs');
21
21
  require('module');
22
22
  require('url');
23
23
  require('@angular-devkit/schematics');
24
- require('./project_tsconfig_paths-CDVxT6Ov.js');
24
+ require('./project_tsconfig_paths-CDVxT6Ov.cjs');
25
25
 
26
26
  /** Name of the method being replaced. */
27
27
  const METHOD_NAME = 'get';
@@ -2,53 +2,53 @@
2
2
  "schematics": {
3
3
  "standalone-migration": {
4
4
  "description": "Converts the entire application or a part of it to standalone",
5
- "factory": "./bundles/standalone-migration#migrate",
5
+ "factory": "./bundles/standalone-migration.cjs#migrate",
6
6
  "schema": "./ng-generate/standalone-migration/schema.json",
7
7
  "aliases": ["standalone"]
8
8
  },
9
9
  "inject-migration": {
10
10
  "description": "Converts usages of constructor-based injection to the inject() function",
11
- "factory": "./bundles/inject-migration#migrate",
11
+ "factory": "./bundles/inject-migration.cjs#migrate",
12
12
  "schema": "./ng-generate/inject-migration/schema.json",
13
13
  "aliases": ["inject"]
14
14
  },
15
15
  "route-lazy-loading-migration": {
16
16
  "description": "Updates route definitions to use lazy-loading of components instead of eagerly referencing them",
17
- "factory": "./bundles/route-lazy-loading#migrate",
17
+ "factory": "./bundles/route-lazy-loading.cjs#migrate",
18
18
  "schema": "./ng-generate/route-lazy-loading/schema.json",
19
19
  "aliases": ["route-lazy-loading"]
20
20
  },
21
21
  "signal-input-migration": {
22
22
  "description": "Updates `@Input` declarations to signal inputs, while also migrating all relevant references.",
23
- "factory": "./bundles/signal-input-migration#migrate",
23
+ "factory": "./bundles/signal-input-migration.cjs#migrate",
24
24
  "schema": "./ng-generate/signal-input-migration/schema.json",
25
25
  "aliases": ["signal-inputs", "signal-input"]
26
26
  },
27
27
  "signal-queries-migration": {
28
28
  "description": "Updates query declarations to signal queries, while also migrating all relevant references.",
29
- "factory": "./bundles/signal-queries-migration#migrate",
29
+ "factory": "./bundles/signal-queries-migration.cjs#migrate",
30
30
  "schema": "./ng-generate/signal-queries-migration/schema.json",
31
31
  "aliases": ["signal-queries", "signal-query", "signal-query-migration"]
32
32
  },
33
33
  "output-migration": {
34
34
  "description": "Updates @output declarations to the functional equivalent, while also migrating all relevant references.",
35
- "factory": "./bundles/output-migration#migrate",
35
+ "factory": "./bundles/output-migration.cjs#migrate",
36
36
  "schema": "./ng-generate/output-migration/schema.json",
37
37
  "aliases": ["outputs"]
38
38
  },
39
39
  "signals": {
40
40
  "description": "Combines all signals-related migrations into a single migration",
41
- "factory": "./bundles/signals#migrate",
41
+ "factory": "./bundles/signals.cjs#migrate",
42
42
  "schema": "./ng-generate/signals/schema.json"
43
43
  },
44
44
  "cleanup-unused-imports": {
45
45
  "description": "Removes unused imports from standalone components.",
46
- "factory": "./bundles/cleanup-unused-imports#migrate",
46
+ "factory": "./bundles/cleanup-unused-imports.cjs#migrate",
47
47
  "schema": "./ng-generate/cleanup-unused-imports/schema.json"
48
48
  },
49
49
  "self-closing-tags-migration": {
50
50
  "description": "Updates the components templates to use self-closing tags where possible",
51
- "factory": "./bundles/self-closing-tags-migration#migrate",
51
+ "factory": "./bundles/self-closing-tags-migration.cjs#migrate",
52
52
  "schema": "./ng-generate/self-closing-tags-migration/schema.json",
53
53
  "aliases": ["self-closing-tag"]
54
54
  }
@@ -3,23 +3,23 @@
3
3
  "inject-flags": {
4
4
  "version": "20.0.0",
5
5
  "description": "Replaces usages of the deprecated InjectFlags enum",
6
- "factory": "./bundles/inject-flags#migrate"
6
+ "factory": "./bundles/inject-flags.cjs#migrate"
7
7
  },
8
8
  "test-bed-get": {
9
9
  "version": "20.0.0",
10
10
  "description": "Replaces usages of the deprecated TestBed.get method with TestBed.inject",
11
- "factory": "./bundles/test-bed-get#migrate"
11
+ "factory": "./bundles/test-bed-get.cjs#migrate"
12
12
  },
13
13
  "control-flow-migration": {
14
14
  "version": "20.0.0",
15
15
  "description": "Converts the entire application to block control flow syntax",
16
- "factory": "./bundles/control-flow-migration#migrate",
16
+ "factory": "./bundles/control-flow-migration.cjs#migrate",
17
17
  "optional": true
18
18
  },
19
19
  "document-core": {
20
20
  "version": "20.0.0",
21
21
  "description": "Moves imports of `DOCUMENT` from `@angular/common` to `@angular/core`",
22
- "factory": "./bundles/document-core#migrate"
22
+ "factory": "./bundles/document-core.cjs#migrate"
23
23
  }
24
24
  }
25
25
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.0.0-rc.1
2
+ * @license Angular v20.0.0-rc.2
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,12 +1,12 @@
1
1
  /**
2
- * @license Angular v20.0.0-rc.1
2
+ * @license Angular v20.0.0-rc.2
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
7
7
  import '../event_dispatcher.d-BReQpZfC.js';
8
- import { InjectionToken, Type, ProviderToken, InjectOptions } from '../chrome_dev_tools_performance.d-CARNn07P.js';
9
- import { DeferBlockDetails, DeferBlockState, ComponentRef, DebugElement, ElementRef, ChangeDetectorRef, NgZone, SchemaMetadata, DeferBlockBehavior, PlatformRef, NgModule, Component, Directive, Pipe, Navigation, NavigationHistoryEntry, NavigationNavigateOptions, NavigationResult, NavigationOptions, NavigateEvent, NavigationCurrentEntryChangeEvent, NavigationTransition, NavigationUpdateCurrentEntryOptions, NavigationReloadOptions } from '../discovery.d-MmZhhuxb.js';
8
+ import { InjectionToken, Type, ProviderToken, InjectOptions } from '../chrome_dev_tools_performance.d-DvzAxqBc.js';
9
+ import { DeferBlockDetails, DeferBlockState, ComponentRef, DebugElement, ElementRef, ChangeDetectorRef, NgZone, SchemaMetadata, DeferBlockBehavior, PlatformRef, NgModule, Component, Directive, Pipe, Navigation, NavigationHistoryEntry, NavigationNavigateOptions, NavigationResult, NavigationOptions, NavigateEvent, NavigationCurrentEntryChangeEvent, NavigationTransition, NavigationUpdateCurrentEntryOptions, NavigationReloadOptions } from '../discovery.d-Cf_r2Ojk.js';
10
10
  import '../graph.d-BcIOep_B.js';
11
11
  import 'rxjs';
12
12
  import '../signal.d-D6VJ67xi.js';
@@ -107,8 +107,16 @@ declare class ComponentFixture<T> {
107
107
  * Also runs detectChanges once so that any existing change is detected.
108
108
  *
109
109
  * @param autoDetect Whether to autodetect changes. By default, `true`.
110
+ * @deprecated For `autoDetect: true`, use `autoDetectChanges()`.
111
+ * We have not seen a use-case for `autoDetect: false` but `changeDetectorRef.detach()` is a close equivalent.
110
112
  */
111
- autoDetectChanges(autoDetect?: boolean): void;
113
+ autoDetectChanges(autoDetect: boolean): void;
114
+ /**
115
+ * Enables automatically synchronizing the view, as it would in an application.
116
+ *
117
+ * Also runs detectChanges once so that any existing change is detected.
118
+ */
119
+ autoDetectChanges(): void;
112
120
  /**
113
121
  * Return whether the fixture is currently stable or has async tasks that have not been completed
114
122
  * yet.
@@ -446,6 +454,12 @@ interface TestBed {
446
454
  }): TestBed;
447
455
  overrideTemplateUsingTestingModule(component: Type<any>, template: string): TestBed;
448
456
  createComponent<T>(component: Type<T>): ComponentFixture<T>;
457
+ /**
458
+ * Execute any pending effects.
459
+ *
460
+ * @deprecated use `TestBed.tick()` instead
461
+ */
462
+ flushEffects(): void;
449
463
  /**
450
464
  * Execute any pending work required to synchronize model to the UI.
451
465
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.0.0-rc.1
2
+ * @license Angular v20.0.0-rc.2
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */