@angular/core 21.0.0-next.6 → 21.0.0-next.8

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 (77) hide show
  1. package/fesm2022/_attribute-chunk.mjs +2 -2
  2. package/fesm2022/_attribute-chunk.mjs.map +1 -1
  3. package/fesm2022/_debug_node-chunk.mjs +755 -141
  4. package/fesm2022/_debug_node-chunk.mjs.map +1 -1
  5. package/fesm2022/_effect-chunk.mjs +2 -2
  6. package/fesm2022/_effect-chunk.mjs.map +1 -1
  7. package/fesm2022/_not_found-chunk.mjs +2 -2
  8. package/fesm2022/_not_found-chunk.mjs.map +1 -1
  9. package/fesm2022/_resource-chunk.mjs +2 -2
  10. package/fesm2022/_resource-chunk.mjs.map +1 -1
  11. package/fesm2022/_root_effect_scheduler-chunk.mjs +8 -3
  12. package/fesm2022/_root_effect_scheduler-chunk.mjs.map +1 -1
  13. package/fesm2022/_signal-chunk.mjs +2 -2
  14. package/fesm2022/_signal-chunk.mjs.map +1 -1
  15. package/fesm2022/_weak_ref-chunk.mjs +2 -2
  16. package/fesm2022/_weak_ref-chunk.mjs.map +1 -1
  17. package/fesm2022/core.mjs +9 -13
  18. package/fesm2022/core.mjs.map +1 -1
  19. package/fesm2022/primitives-di.mjs +2 -2
  20. package/fesm2022/primitives-di.mjs.map +1 -1
  21. package/fesm2022/primitives-event-dispatch.mjs +2 -2
  22. package/fesm2022/primitives-event-dispatch.mjs.map +1 -1
  23. package/fesm2022/primitives-signals.mjs +2 -2
  24. package/fesm2022/primitives-signals.mjs.map +1 -1
  25. package/fesm2022/rxjs-interop.mjs +2 -2
  26. package/fesm2022/rxjs-interop.mjs.map +1 -1
  27. package/fesm2022/testing.mjs +2 -2
  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 +5 -5
  31. package/schematics/bundles/application-config-core.cjs +5 -5
  32. package/schematics/bundles/{apply_import_manager-pLtndDki.cjs → apply_import_manager-CBLmogDD.cjs} +3 -3
  33. package/schematics/bundles/bootstrap-options-migration.cjs +5 -5
  34. package/schematics/bundles/cleanup-unused-imports.cjs +5 -5
  35. package/schematics/bundles/{compiler_host-BJEh7-L1.cjs → compiler_host-T6xncpiw.cjs} +2 -2
  36. package/schematics/bundles/control-flow-migration.cjs +22 -21
  37. package/schematics/bundles/imports-DwPXlGFl.cjs +1 -1
  38. package/schematics/bundles/{index-DCfgOEYE.cjs → index-BnmACOsq.cjs} +237 -98
  39. package/schematics/bundles/{index-bqpULzLD.cjs → index-DWSaRJdz.cjs} +4 -4
  40. package/schematics/bundles/inject-migration.cjs +3 -3
  41. package/schematics/bundles/leading_space-D9nQ8UQC.cjs +1 -1
  42. package/schematics/bundles/{migrate_ts_type_references-COE6BA7E.cjs → migrate_ts_type_references-Cu-FR4L5.cjs} +47 -5
  43. package/schematics/bundles/{ng_component_template-pDoKlgPP.cjs → ng_component_template-BkWiUuGG.cjs} +2 -2
  44. package/schematics/bundles/ng_decorators-BI0uV7KI.cjs +1 -1
  45. package/schematics/bundles/ngclass-to-class-migration.cjs +7 -7
  46. package/schematics/bundles/ngstyle-to-style-migration.cjs +7 -7
  47. package/schematics/bundles/nodes-B16H9JUd.cjs +1 -1
  48. package/schematics/bundles/output-migration.cjs +6 -6
  49. package/schematics/bundles/{parse_html-B6fblY_V.cjs → parse_html-C97tKKp3.cjs} +2 -2
  50. package/schematics/bundles/{project_paths-i0Wjiiq1.cjs → project_paths-C6g3lqjX.cjs} +3 -3
  51. package/schematics/bundles/{project_tsconfig_paths-sFatqIE5.cjs → project_tsconfig_paths-CdhVNYMk.cjs} +401 -41
  52. package/schematics/bundles/property_name-BBwFuqMe.cjs +1 -1
  53. package/schematics/bundles/route-lazy-loading.cjs +3 -3
  54. package/schematics/bundles/router-current-navigation.cjs +4 -4
  55. package/schematics/bundles/router-last-successful-navigation.cjs +4 -4
  56. package/schematics/bundles/router-testing-module-migration.cjs +513 -0
  57. package/schematics/bundles/self-closing-tags-migration.cjs +6 -6
  58. package/schematics/bundles/signal-input-migration.cjs +7 -7
  59. package/schematics/bundles/signal-queries-migration.cjs +7 -7
  60. package/schematics/bundles/signals.cjs +7 -7
  61. package/schematics/bundles/standalone-migration.cjs +50 -10
  62. package/schematics/bundles/symbol-BObKoqes.cjs +1 -1
  63. package/schematics/collection.json +5 -0
  64. package/schematics/migrations/router-testing-module-migration/schema.json +14 -0
  65. package/types/_api-chunk.d.ts +2 -2
  66. package/types/_chrome_dev_tools_performance-chunk.d.ts +4 -2
  67. package/types/_discovery-chunk.d.ts +61 -12
  68. package/types/_effect-chunk.d.ts +2 -2
  69. package/types/_event_dispatcher-chunk.d.ts +2 -2
  70. package/types/_formatter-chunk.d.ts +2 -2
  71. package/types/_weak_ref-chunk.d.ts +2 -2
  72. package/types/core.d.ts +135 -11
  73. package/types/primitives-di.d.ts +2 -2
  74. package/types/primitives-event-dispatch.d.ts +2 -2
  75. package/types/primitives-signals.d.ts +2 -2
  76. package/types/rxjs-interop.d.ts +2 -2
  77. package/types/testing.d.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "21.0.0-next.6",
3
+ "version": "21.0.0-next.8",
4
4
  "description": "Angular - the core framework",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -46,7 +46,7 @@
46
46
  "tslib": "^2.3.0"
47
47
  },
48
48
  "peerDependencies": {
49
- "@angular/compiler": "21.0.0-next.6",
49
+ "@angular/compiler": "21.0.0-next.8",
50
50
  "rxjs": "^6.5.3 || ^7.4.0",
51
51
  "zone.js": "~0.15.0"
52
52
  },
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.0.0-next.6
3
+ * @license Angular v21.0.0-next.8
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -8,12 +8,12 @@
8
8
 
9
9
  require('@angular-devkit/core');
10
10
  require('node:path/posix');
11
- var project_paths = require('./project_paths-i0Wjiiq1.cjs');
12
- var project_tsconfig_paths = require('./project_tsconfig_paths-sFatqIE5.cjs');
11
+ var project_paths = require('./project_paths-C6g3lqjX.cjs');
12
+ var project_tsconfig_paths = require('./project_tsconfig_paths-CdhVNYMk.cjs');
13
13
  var ts = require('typescript');
14
14
  require('os');
15
- var apply_import_manager = require('./apply_import_manager-pLtndDki.cjs');
16
- require('./index-DCfgOEYE.cjs');
15
+ var apply_import_manager = require('./apply_import_manager-CBLmogDD.cjs');
16
+ require('./index-BnmACOsq.cjs');
17
17
  require('path');
18
18
  require('node:path');
19
19
  require('@angular-devkit/schematics');
@@ -1,19 +1,19 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.0.0-next.6
3
+ * @license Angular v21.0.0-next.8
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
7
7
  'use strict';
8
8
 
9
- var project_tsconfig_paths = require('./project_tsconfig_paths-sFatqIE5.cjs');
9
+ var project_tsconfig_paths = require('./project_tsconfig_paths-CdhVNYMk.cjs');
10
10
  require('typescript');
11
11
  require('os');
12
- var apply_import_manager = require('./apply_import_manager-pLtndDki.cjs');
13
- require('./index-DCfgOEYE.cjs');
12
+ var apply_import_manager = require('./apply_import_manager-CBLmogDD.cjs');
13
+ require('./index-BnmACOsq.cjs');
14
14
  require('path');
15
15
  require('node:path');
16
- var project_paths = require('./project_paths-i0Wjiiq1.cjs');
16
+ var project_paths = require('./project_paths-C6g3lqjX.cjs');
17
17
  var imports = require('./imports-DwPXlGFl.cjs');
18
18
  require('@angular-devkit/core');
19
19
  require('node:path/posix');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.0.0-next.6
3
+ * @license Angular v21.0.0-next.8
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -8,8 +8,8 @@
8
8
 
9
9
  var ts = require('typescript');
10
10
  require('os');
11
- var project_tsconfig_paths = require('./project_tsconfig_paths-sFatqIE5.cjs');
12
- var project_paths = require('./project_paths-i0Wjiiq1.cjs');
11
+ var project_tsconfig_paths = require('./project_tsconfig_paths-CdhVNYMk.cjs');
12
+ var project_paths = require('./project_paths-C6g3lqjX.cjs');
13
13
 
14
14
  /**
15
15
  * Applies import manager changes, and writes them as replacements the
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.0.0-next.6
3
+ * @license Angular v21.0.0-next.8
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -8,14 +8,14 @@
8
8
 
9
9
  require('@angular-devkit/core');
10
10
  require('node:path/posix');
11
- var project_paths = require('./project_paths-i0Wjiiq1.cjs');
11
+ var project_paths = require('./project_paths-C6g3lqjX.cjs');
12
12
  require('os');
13
13
  var ts = require('typescript');
14
- var project_tsconfig_paths = require('./project_tsconfig_paths-sFatqIE5.cjs');
15
- var index = require('./index-DCfgOEYE.cjs');
14
+ var project_tsconfig_paths = require('./project_tsconfig_paths-CdhVNYMk.cjs');
15
+ var index = require('./index-BnmACOsq.cjs');
16
16
  require('path');
17
17
  require('node:path');
18
- var apply_import_manager = require('./apply_import_manager-pLtndDki.cjs');
18
+ var apply_import_manager = require('./apply_import_manager-CBLmogDD.cjs');
19
19
  var property_name = require('./property_name-BBwFuqMe.cjs');
20
20
  var imports = require('./imports-DwPXlGFl.cjs');
21
21
  var symbol = require('./symbol-BObKoqes.cjs');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.0.0-next.6
3
+ * @license Angular v21.0.0-next.8
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -8,14 +8,14 @@
8
8
 
9
9
  require('@angular-devkit/core');
10
10
  require('node:path/posix');
11
- var project_paths = require('./project_paths-i0Wjiiq1.cjs');
11
+ var project_paths = require('./project_paths-C6g3lqjX.cjs');
12
12
  var ts = require('typescript');
13
13
  require('os');
14
- var project_tsconfig_paths = require('./project_tsconfig_paths-sFatqIE5.cjs');
15
- var index = require('./index-DCfgOEYE.cjs');
14
+ var project_tsconfig_paths = require('./project_tsconfig_paths-CdhVNYMk.cjs');
15
+ var index = require('./index-BnmACOsq.cjs');
16
16
  require('path');
17
17
  require('node:path');
18
- var apply_import_manager = require('./apply_import_manager-pLtndDki.cjs');
18
+ var apply_import_manager = require('./apply_import_manager-CBLmogDD.cjs');
19
19
  require('@angular-devkit/schematics');
20
20
  require('fs');
21
21
  require('module');
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.0.0-next.6
3
+ * @license Angular v21.0.0-next.8
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
7
7
  'use strict';
8
8
 
9
9
  var ts = require('typescript');
10
- var project_tsconfig_paths = require('./project_tsconfig_paths-sFatqIE5.cjs');
10
+ var project_tsconfig_paths = require('./project_tsconfig_paths-CdhVNYMk.cjs');
11
11
  require('os');
12
12
  var p = require('path');
13
13
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.0.0-next.6
3
+ * @license Angular v21.0.0-next.8
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -8,10 +8,10 @@
8
8
 
9
9
  var schematics = require('@angular-devkit/schematics');
10
10
  var p = require('path');
11
- var compiler_host = require('./compiler_host-BJEh7-L1.cjs');
12
- var project_tsconfig_paths = require('./project_tsconfig_paths-sFatqIE5.cjs');
11
+ var compiler_host = require('./compiler_host-T6xncpiw.cjs');
12
+ var project_tsconfig_paths = require('./project_tsconfig_paths-CdhVNYMk.cjs');
13
13
  var ts = require('typescript');
14
- var parse_html = require('./parse_html-B6fblY_V.cjs');
14
+ var parse_html = require('./parse_html-C97tKKp3.cjs');
15
15
  require('os');
16
16
  require('fs');
17
17
  require('module');
@@ -1847,6 +1847,9 @@ function migrate(options) {
1847
1847
  const basePath = process.cwd();
1848
1848
  let pathToMigrate;
1849
1849
  if (options.path) {
1850
+ if (options.path.startsWith('..')) {
1851
+ throw new schematics.SchematicsException('Cannot run control flow migration outside of the current project.');
1852
+ }
1850
1853
  pathToMigrate = compiler_host.normalizePath(p.join(basePath, options.path));
1851
1854
  if (pathToMigrate.trim() !== '') {
1852
1855
  allPaths.push(pathToMigrate);
@@ -1857,33 +1860,31 @@ function migrate(options) {
1857
1860
  allPaths = [...buildPaths, ...testPaths];
1858
1861
  }
1859
1862
  if (!allPaths.length) {
1860
- throw new schematics.SchematicsException('Could not find any tsconfig file. Cannot run the http providers migration.');
1863
+ context.logger.warn('Could not find any tsconfig file. Cannot run the control flow migration.');
1864
+ return;
1861
1865
  }
1862
1866
  let errors = [];
1867
+ let sourceFilesCount = 0;
1863
1868
  for (const tsconfigPath of allPaths) {
1864
- const migrateErrors = runControlFlowMigration(tree, tsconfigPath, basePath, pathToMigrate, options);
1869
+ const program = compiler_host.createMigrationProgram(tree, tsconfigPath, basePath);
1870
+ const sourceFiles = program
1871
+ .getSourceFiles()
1872
+ .filter((sourceFile) => (pathToMigrate ? sourceFile.fileName.startsWith(pathToMigrate) : true) &&
1873
+ compiler_host.canMigrateFile(basePath, sourceFile, program));
1874
+ const migrateErrors = runControlFlowMigration(tree, sourceFiles, basePath, options);
1865
1875
  errors = [...errors, ...migrateErrors];
1876
+ sourceFilesCount += sourceFiles.length;
1866
1877
  }
1867
1878
  if (errors.length > 0) {
1868
1879
  context.logger.warn(`WARNING: ${errors.length} errors occurred during your migration:\n`);
1869
- errors.forEach((err) => {
1870
- context.logger.warn(err);
1871
- });
1880
+ errors.forEach((err) => context.logger.warn(err));
1881
+ }
1882
+ else if (sourceFilesCount === 0) {
1883
+ context.logger.warn('Control flow migration did not find any files to migrate');
1872
1884
  }
1873
1885
  };
1874
1886
  }
1875
- function runControlFlowMigration(tree, tsconfigPath, basePath, pathToMigrate, schematicOptions) {
1876
- if (schematicOptions?.path?.startsWith('..')) {
1877
- throw new schematics.SchematicsException('Cannot run control flow migration outside of the current project.');
1878
- }
1879
- const program = compiler_host.createMigrationProgram(tree, tsconfigPath, basePath);
1880
- const sourceFiles = program
1881
- .getSourceFiles()
1882
- .filter((sourceFile) => (pathToMigrate ? sourceFile.fileName.startsWith(pathToMigrate) : true) &&
1883
- compiler_host.canMigrateFile(basePath, sourceFile, program));
1884
- if (sourceFiles.length === 0) {
1885
- throw new schematics.SchematicsException(`Could not find any files to migrate under the path ${pathToMigrate}. Cannot run the control flow migration.`);
1886
- }
1887
+ function runControlFlowMigration(tree, sourceFiles, basePath, schematicOptions) {
1887
1888
  const analysis = new Map();
1888
1889
  const migrateErrors = new Map();
1889
1890
  for (const sourceFile of sourceFiles) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.0.0-next.6
3
+ * @license Angular v21.0.0-next.8
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */