@angular/core 20.0.0-next.1 → 20.0.0-next.3

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 (54) hide show
  1. package/fesm2022/core.mjs +770 -2144
  2. package/fesm2022/core.mjs.map +1 -1
  3. package/fesm2022/primitives/di.mjs +3 -2
  4. package/fesm2022/primitives/di.mjs.map +1 -1
  5. package/fesm2022/primitives/event-dispatch.mjs +2 -589
  6. package/fesm2022/primitives/event-dispatch.mjs.map +1 -1
  7. package/fesm2022/primitives/signals.mjs +44 -13
  8. package/fesm2022/primitives/signals.mjs.map +1 -1
  9. package/fesm2022/rxjs-interop.mjs +7 -39
  10. package/fesm2022/rxjs-interop.mjs.map +1 -1
  11. package/fesm2022/testing.mjs +116 -143
  12. package/fesm2022/testing.mjs.map +1 -1
  13. package/fesm2022/weak_ref-DrMdAIDh.mjs +12 -0
  14. package/fesm2022/weak_ref-DrMdAIDh.mjs.map +1 -0
  15. package/index.d.ts +14366 -15214
  16. package/navigation_types.d-u4EOrrdZ.d.ts +121 -0
  17. package/package.json +2 -2
  18. package/primitives/di/index.d.ts +66 -59
  19. package/primitives/event-dispatch/index.d.ts +205 -309
  20. package/primitives/signals/index.d.ts +161 -195
  21. package/rxjs-interop/index.d.ts +71 -100
  22. package/schematics/bundles/{apply_import_manager-e2a7fe5b.js → apply_import_manager-BXQEjo09.js} +15 -19
  23. package/schematics/bundles/{checker-af521da6.js → checker-BHb19MHt.js} +3695 -1175
  24. package/schematics/bundles/cleanup-unused-imports.js +56 -89
  25. package/schematics/bundles/{compiler_host-5a29293c.js → compiler_host-Bk3repE2.js} +19 -23
  26. package/schematics/bundles/control-flow-migration.js +81 -38
  27. package/schematics/bundles/{imports-047fbbc8.js → imports-CIX-JgAN.js} +9 -14
  28. package/schematics/bundles/{index-1bef3025.js → index-BL9kAIe5.js} +62 -66
  29. package/schematics/bundles/{program-a449f9bf.js → index-I8VbxQcO.js} +1508 -3178
  30. package/schematics/bundles/inject-flags.js +147 -0
  31. package/schematics/bundles/inject-migration.js +121 -127
  32. package/schematics/bundles/{leading_space-f8944434.js → leading_space-D9nQ8UQC.js} +1 -1
  33. package/schematics/bundles/{migrate_ts_type_references-2a3e9e6b.js → migrate_ts_type_references-KlOTWeDl.js} +121 -126
  34. package/schematics/bundles/{ng_decorators-b0d8b324.js → ng_decorators-DznZ5jMl.js} +4 -8
  35. package/schematics/bundles/{nodes-7758dbf6.js → nodes-B16H9JUd.js} +2 -6
  36. package/schematics/bundles/output-migration.js +94 -128
  37. package/schematics/bundles/{project_tsconfig_paths-b558633b.js → project_tsconfig_paths-CDVxT6Ov.js} +1 -1
  38. package/schematics/bundles/{property_name-ac18447e.js → property_name-BBwFuqMe.js} +3 -7
  39. package/schematics/bundles/route-lazy-loading.js +35 -41
  40. package/schematics/bundles/{project_paths-17dc204d.js → run_in_devkit-C0JPtK2u.js} +283 -216
  41. package/schematics/bundles/self-closing-tags-migration.js +55 -91
  42. package/schematics/bundles/signal-input-migration.js +121 -156
  43. package/schematics/bundles/signal-queries-migration.js +119 -154
  44. package/schematics/bundles/signals.js +12 -14
  45. package/schematics/bundles/standalone-migration.js +180 -200
  46. package/schematics/bundles/symbol-VPWguRxr.js +25 -0
  47. package/schematics/bundles/test-bed-get.js +98 -0
  48. package/schematics/migrations.json +8 -14
  49. package/testing/index.d.ts +289 -471
  50. package/weak_ref.d-ttyj86RV.d.ts +9 -0
  51. package/schematics/bundles/explicit-standalone-flag.js +0 -184
  52. package/schematics/bundles/index-ef1bffbb.js +0 -30
  53. package/schematics/bundles/pending-tasks.js +0 -103
  54. package/schematics/bundles/provide-initializer.js +0 -186
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v20.0.0-next.1
3
+ * @license Angular v20.0.0-next.3
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -8,12 +8,8 @@
8
8
 
9
9
  var ts = require('typescript');
10
10
  require('os');
11
- var checker = require('./checker-af521da6.js');
12
- var project_paths = require('./project_paths-17dc204d.js');
13
-
14
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
15
-
16
- var ts__default = /*#__PURE__*/_interopDefaultLegacy(ts);
11
+ var checker = require('./checker-BHb19MHt.js');
12
+ var run_in_devkit = require('./run_in_devkit-C0JPtK2u.js');
17
13
 
18
14
  /**
19
15
  * Applies import manager changes, and writes them as replacements the
@@ -21,13 +17,13 @@ var ts__default = /*#__PURE__*/_interopDefaultLegacy(ts);
21
17
  */
22
18
  function applyImportManagerChanges(importManager, replacements, sourceFiles, info) {
23
19
  const { newImports, updatedImports, deletedImports } = importManager.finalize();
24
- const printer = ts__default["default"].createPrinter({});
20
+ const printer = ts.createPrinter({});
25
21
  const pathToFile = new Map(sourceFiles.map((s) => [s.fileName, s]));
26
22
  // Capture new imports
27
23
  newImports.forEach((newImports, fileName) => {
28
24
  newImports.forEach((newImport) => {
29
- const printedImport = printer.printNode(ts__default["default"].EmitHint.Unspecified, newImport, pathToFile.get(fileName));
30
- replacements.push(new project_paths.Replacement(project_paths.projectFile(checker.absoluteFrom(fileName), info), new project_paths.TextUpdate({ position: 0, end: 0, toInsert: `${printedImport}\n` })));
25
+ const printedImport = printer.printNode(ts.EmitHint.Unspecified, newImport, pathToFile.get(fileName));
26
+ replacements.push(new run_in_devkit.Replacement(run_in_devkit.projectFile(checker.absoluteFrom(fileName), info), new run_in_devkit.TextUpdate({ position: 0, end: 0, toInsert: `${printedImport}\n` })));
31
27
  });
32
28
  });
33
29
  // Capture updated imports
@@ -38,19 +34,19 @@ function applyImportManagerChanges(importManager, replacements, sourceFiles, inf
38
34
  const isMultiline = oldBindings.getText().includes('\n') ||
39
35
  (newBindings.elements.length >= 6 && oldBindings.elements.length <= 3);
40
36
  const hasSpaceBetweenBraces = oldBindings.getText().startsWith('{ ');
41
- let formatFlags = ts__default["default"].ListFormat.NamedImportsOrExportsElements |
42
- ts__default["default"].ListFormat.Indented |
43
- ts__default["default"].ListFormat.Braces |
44
- ts__default["default"].ListFormat.PreserveLines |
45
- (isMultiline ? ts__default["default"].ListFormat.MultiLine : ts__default["default"].ListFormat.SingleLine);
37
+ let formatFlags = ts.ListFormat.NamedImportsOrExportsElements |
38
+ ts.ListFormat.Indented |
39
+ ts.ListFormat.Braces |
40
+ ts.ListFormat.PreserveLines |
41
+ (isMultiline ? ts.ListFormat.MultiLine : ts.ListFormat.SingleLine);
46
42
  if (hasSpaceBetweenBraces) {
47
- formatFlags |= ts__default["default"].ListFormat.SpaceBetweenBraces;
43
+ formatFlags |= ts.ListFormat.SpaceBetweenBraces;
48
44
  }
49
45
  else {
50
- formatFlags &= ~ts__default["default"].ListFormat.SpaceBetweenBraces;
46
+ formatFlags &= ~ts.ListFormat.SpaceBetweenBraces;
51
47
  }
52
48
  const printedBindings = printer.printList(formatFlags, newBindings.elements, oldBindings.getSourceFile());
53
- replacements.push(new project_paths.Replacement(project_paths.projectFile(oldBindings.getSourceFile(), info), new project_paths.TextUpdate({
49
+ replacements.push(new run_in_devkit.Replacement(run_in_devkit.projectFile(oldBindings.getSourceFile(), info), new run_in_devkit.TextUpdate({
54
50
  position: oldBindings.getStart(),
55
51
  end: oldBindings.getEnd(),
56
52
  // TS uses four spaces as indent. We migrate to two spaces as we
@@ -60,7 +56,7 @@ function applyImportManagerChanges(importManager, replacements, sourceFiles, inf
60
56
  }
61
57
  // Update removed imports
62
58
  for (const removedImport of deletedImports) {
63
- replacements.push(new project_paths.Replacement(project_paths.projectFile(removedImport.getSourceFile(), info), new project_paths.TextUpdate({
59
+ replacements.push(new run_in_devkit.Replacement(run_in_devkit.projectFile(removedImport.getSourceFile(), info), new run_in_devkit.TextUpdate({
64
60
  position: removedImport.getStart(),
65
61
  end: removedImport.getEnd(),
66
62
  toInsert: '',