@angular/core 22.0.0-next.7 → 22.0.0-next.9

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 (70) hide show
  1. package/fesm2022/_attribute-chunk.mjs +1 -1
  2. package/fesm2022/_debug_node-chunk.mjs +967 -872
  3. package/fesm2022/_debug_node-chunk.mjs.map +1 -1
  4. package/fesm2022/_effect-chunk.mjs +1 -1
  5. package/fesm2022/_not_found-chunk.mjs +1 -1
  6. package/fesm2022/_pending_tasks-chunk.mjs +10 -8
  7. package/fesm2022/_pending_tasks-chunk.mjs.map +1 -1
  8. package/fesm2022/_resource-chunk.mjs +25 -11
  9. package/fesm2022/_resource-chunk.mjs.map +1 -1
  10. package/fesm2022/_untracked-chunk.mjs +1 -1
  11. package/fesm2022/_weak_ref-chunk.mjs +1 -1
  12. package/fesm2022/core.mjs +350 -6
  13. package/fesm2022/core.mjs.map +1 -1
  14. package/fesm2022/primitives-di.mjs +1 -1
  15. package/fesm2022/primitives-event-dispatch.mjs +1 -1
  16. package/fesm2022/primitives-signals.mjs +1 -1
  17. package/fesm2022/rxjs-interop.mjs +4 -1
  18. package/fesm2022/rxjs-interop.mjs.map +1 -1
  19. package/fesm2022/testing.mjs +2 -12
  20. package/fesm2022/testing.mjs.map +1 -1
  21. package/package.json +2 -2
  22. package/schematics/bundles/apply_import_manager-CxA_YYgB.cjs +1 -1
  23. package/schematics/bundles/can-match-snapshot-required.cjs +1 -1
  24. package/schematics/bundles/change-detection-eager.cjs +1 -1
  25. package/schematics/bundles/cleanup-unused-imports.cjs +1 -1
  26. package/schematics/bundles/common-to-standalone-migration.cjs +1 -1
  27. package/schematics/bundles/compiler_host-CY14HvaP.cjs +1 -1
  28. package/schematics/bundles/control-flow-migration.cjs +1 -1
  29. package/schematics/bundles/http-xhr-backend.cjs +1 -1
  30. package/schematics/bundles/imports-CKV-ITqD.cjs +1 -1
  31. package/schematics/bundles/incremental-hydration.cjs +91 -0
  32. package/schematics/bundles/index-DADA7AvC.cjs +1 -1
  33. package/schematics/bundles/inject-migration.cjs +1 -1
  34. package/schematics/bundles/json-file-Drblb4E1.cjs +1916 -0
  35. package/schematics/bundles/leading_space-BTPRV0wu.cjs +1 -1
  36. package/schematics/bundles/migrate_ts_type_references-B9LlDDUg.cjs +1 -1
  37. package/schematics/bundles/ng_component_template-DPAF1aEA.cjs +1 -1
  38. package/schematics/bundles/ng_decorators-IVztR9rk.cjs +1 -1
  39. package/schematics/bundles/ngclass-to-class-migration.cjs +14 -6
  40. package/schematics/bundles/ngstyle-to-style-migration.cjs +1 -1
  41. package/schematics/bundles/nodes-ZSQ7WZRB.cjs +1 -1
  42. package/schematics/bundles/output-migration.cjs +1 -1
  43. package/schematics/bundles/parse_html-C8eKA9px.cjs +1 -1
  44. package/schematics/bundles/project_paths-D2V-Uh2L.cjs +1 -1
  45. package/schematics/bundles/project_tsconfig_paths-DkkMibv-.cjs +1 -1
  46. package/schematics/bundles/property_name-BCpALNpZ.cjs +1 -1
  47. package/schematics/bundles/route-lazy-loading.cjs +1 -1
  48. package/schematics/bundles/router-testing-module-migration.cjs +1 -1
  49. package/schematics/bundles/self-closing-tags-migration.cjs +1 -1
  50. package/schematics/bundles/signal-input-migration.cjs +1 -1
  51. package/schematics/bundles/signal-queries-migration.cjs +1 -1
  52. package/schematics/bundles/signals.cjs +1 -1
  53. package/schematics/bundles/standalone-migration.cjs +1 -1
  54. package/schematics/bundles/strict-safe-navigation-narrow.cjs +32 -0
  55. package/schematics/bundles/strict-templates-default.cjs +63 -0
  56. package/schematics/migrations.json +13 -3
  57. package/types/_api-chunk.d.ts +9 -3
  58. package/types/_chrome_dev_tools_performance-chunk.d.ts +2 -2
  59. package/types/_debug_node-chunk.d.ts +132 -212
  60. package/types/_effect-chunk.d.ts +1 -1
  61. package/types/_event_dispatcher-chunk.d.ts +1 -1
  62. package/types/_formatter-chunk.d.ts +1 -1
  63. package/types/_weak_ref-chunk.d.ts +1 -1
  64. package/types/core.d.ts +876 -749
  65. package/types/primitives-di.d.ts +1 -1
  66. package/types/primitives-event-dispatch.d.ts +1 -1
  67. package/types/primitives-signals.d.ts +1 -1
  68. package/types/rxjs-interop.d.ts +1 -1
  69. package/types/testing.d.ts +2 -2
  70. package/schematics/bundles/strict-templates.cjs +0 -55
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "22.0.0-next.7",
3
+ "version": "22.0.0-next.9",
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": "22.0.0-next.7",
49
+ "@angular/compiler": "22.0.0-next.9",
50
50
  "rxjs": "^6.5.3 || ^7.4.0",
51
51
  "zone.js": "~0.15.0 || ~0.16.0"
52
52
  },
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v22.0.0-next.7
3
+ * @license Angular v22.0.0-next.9
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v22.0.0-next.7
3
+ * @license Angular v22.0.0-next.9
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v22.0.0-next.7
3
+ * @license Angular v22.0.0-next.9
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v22.0.0-next.7
3
+ * @license Angular v22.0.0-next.9
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v22.0.0-next.7
3
+ * @license Angular v22.0.0-next.9
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v22.0.0-next.7
3
+ * @license Angular v22.0.0-next.9
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v22.0.0-next.7
3
+ * @license Angular v22.0.0-next.9
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v22.0.0-next.7
3
+ * @license Angular v22.0.0-next.9
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v22.0.0-next.7
3
+ * @license Angular v22.0.0-next.9
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -0,0 +1,91 @@
1
+ 'use strict';
2
+ /**
3
+ * @license Angular v22.0.0-next.9
4
+ * (c) 2010-2026 Google LLC. https://angular.dev/
5
+ * License: MIT
6
+ */
7
+ 'use strict';
8
+
9
+ require('@angular-devkit/core');
10
+ require('node:path/posix');
11
+ var project_paths = require('./project_paths-D2V-Uh2L.cjs');
12
+ var migrations = require('@angular/compiler-cli/private/migrations');
13
+ var ts = require('typescript');
14
+ require('@angular/compiler-cli');
15
+ require('node:path');
16
+ var apply_import_manager = require('./apply_import_manager-CxA_YYgB.cjs');
17
+ require('@angular-devkit/schematics');
18
+ require('./project_tsconfig_paths-DkkMibv-.cjs');
19
+
20
+ class IncrementalHydrationMigration extends project_paths.TsurgeFunnelMigration {
21
+ async analyze(info) {
22
+ const { sourceFiles, program } = info;
23
+ program.getTypeChecker();
24
+ const replacements = [];
25
+ const importManager = new migrations.ImportManager();
26
+ const printer = ts.createPrinter();
27
+ for (const sf of sourceFiles) {
28
+ ts.forEachChild(sf, function visit(node) {
29
+ if (ts.isCallExpression(node) &&
30
+ ts.isIdentifier(node.expression) &&
31
+ node.expression.text === 'provideClientHydration') {
32
+ let hasIncremental = false;
33
+ for (const arg of node.arguments) {
34
+ if (ts.isCallExpression(arg) &&
35
+ ts.isIdentifier(arg.expression) &&
36
+ arg.expression.text === 'withIncrementalHydration') {
37
+ hasIncremental = true;
38
+ break;
39
+ }
40
+ }
41
+ if (!hasIncremental) {
42
+ // Add withNoIncrementalHydration()
43
+ const withNoIncrementalExpr = importManager.addImport({
44
+ exportModuleSpecifier: '@angular/platform-browser',
45
+ exportSymbolName: 'withNoIncrementalHydration',
46
+ requestedFile: sf,
47
+ });
48
+ const exprText = printer.printNode(ts.EmitHint.Unspecified, withNoIncrementalExpr, sf);
49
+ const insertPos = node.arguments.end;
50
+ const toInsert = node.arguments.length > 0 ? `, ${exprText}()` : `${exprText}()`;
51
+ replacements.push(new project_paths.Replacement(project_paths.projectFile(sf, info), new project_paths.TextUpdate({
52
+ position: insertPos,
53
+ end: insertPos,
54
+ toInsert: toInsert,
55
+ })));
56
+ }
57
+ }
58
+ ts.forEachChild(node, visit);
59
+ });
60
+ }
61
+ apply_import_manager.applyImportManagerChanges(importManager, replacements, sourceFiles, info);
62
+ return project_paths.confirmAsSerializable({
63
+ replacements,
64
+ });
65
+ }
66
+ async combine(unitA, unitB) {
67
+ return project_paths.confirmAsSerializable({
68
+ replacements: [...unitA.replacements, ...unitB.replacements],
69
+ });
70
+ }
71
+ async globalMeta(combinedData) {
72
+ return project_paths.confirmAsSerializable(combinedData);
73
+ }
74
+ async stats(globalMetadata) {
75
+ return project_paths.confirmAsSerializable({});
76
+ }
77
+ async migrate(globalData) {
78
+ return { replacements: globalData.replacements };
79
+ }
80
+ }
81
+
82
+ function migrate() {
83
+ return async (tree, context) => {
84
+ await project_paths.runMigrationInDevkit({
85
+ tree,
86
+ getMigration: (fs) => new IncrementalHydrationMigration(),
87
+ });
88
+ };
89
+ }
90
+
91
+ exports.migrate = migrate;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v22.0.0-next.7
3
+ * @license Angular v22.0.0-next.9
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v22.0.0-next.7
3
+ * @license Angular v22.0.0-next.9
4
4
  * (c) 2010-2026 Google LLC. https://angular.dev/
5
5
  * License: MIT
6
6
  */