@angular/core 20.0.0-next.4 → 20.0.0-next.6
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.
- package/api.d-DQLNOR5l.d.ts +297 -0
- package/discovery.d-CFs2MaLO.d.ts +7383 -0
- package/{event_dispatcher.d-pVP0-wST.d.ts → event_dispatcher.d-DlbccpYq.d.ts} +3 -2
- package/fesm2022/attribute-BWp59EjE.mjs +24 -0
- package/fesm2022/attribute-BWp59EjE.mjs.map +1 -0
- package/fesm2022/core.mjs +586 -36873
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/debug_node-z_3NG8qT.mjs +32079 -0
- package/fesm2022/debug_node-z_3NG8qT.mjs.map +1 -0
- package/fesm2022/primitives/di.mjs +18 -4
- package/fesm2022/primitives/di.mjs.map +1 -1
- package/fesm2022/primitives/event-dispatch.mjs +2 -16
- package/fesm2022/primitives/event-dispatch.mjs.map +1 -1
- package/fesm2022/primitives/signals.mjs +5 -3
- package/fesm2022/primitives/signals.mjs.map +1 -1
- package/fesm2022/resource-CPPwEcg7.mjs +619 -0
- package/fesm2022/resource-CPPwEcg7.mjs.map +1 -0
- package/fesm2022/root_effect_scheduler-VSXfCzDX.mjs +3847 -0
- package/fesm2022/root_effect_scheduler-VSXfCzDX.mjs.map +1 -0
- package/fesm2022/rxjs-interop.mjs +16 -9
- package/fesm2022/rxjs-interop.mjs.map +1 -1
- package/fesm2022/{untracked-DkcXpNb_.mjs → signal-B6pMq7KS.mjs} +16 -114
- package/fesm2022/signal-B6pMq7KS.mjs.map +1 -0
- package/fesm2022/testing.mjs +265 -201
- package/fesm2022/testing.mjs.map +1 -1
- package/fesm2022/untracked-Bz5WMeU1.mjs +117 -0
- package/fesm2022/untracked-Bz5WMeU1.mjs.map +1 -0
- package/fesm2022/weak_ref-BaIq-pgY.mjs +12 -0
- package/fesm2022/weak_ref-BaIq-pgY.mjs.map +1 -0
- package/{weak_ref.d-BZ7gyRag.d.ts → graph.d-BcIOep_B.d.ts} +3 -24
- package/index.d.ts +2624 -10909
- package/ng_i18n_closure_mode.d-C9d2CaSt.d.ts +832 -0
- package/package.json +3 -3
- package/primitives/di/index.d.ts +3 -2
- package/primitives/event-dispatch/index.d.ts +3 -3
- package/primitives/signals/index.d.ts +8 -4
- package/rxjs-interop/index.d.ts +10 -7
- package/schematics/bundles/{apply_import_manager-CeNv8GIG.js → apply_import_manager-DnMqg1pY.js} +6 -6
- package/schematics/bundles/{compiler_host-DwM3ugW3.js → change_tracker-UMPkv-eH.js} +3 -121
- package/schematics/bundles/checker-BFBQyesT.js +17719 -0
- package/schematics/bundles/cleanup-unused-imports.js +25 -19
- package/schematics/bundles/{checker-k591b6WQ.js → compiler-BQ7R7w2v.js} +1325 -18286
- package/schematics/bundles/compiler_host-CAfDJO3W.js +129 -0
- package/schematics/bundles/control-flow-migration.js +28 -40
- package/schematics/bundles/document-core.js +96 -0
- package/schematics/bundles/imports-CIX-JgAN.js +1 -1
- package/schematics/bundles/{index-B4OAlHh8.js → index-Cv4Q415G.js} +641 -547
- package/schematics/bundles/{index-BhELUmYx.js → index-D8tMJPKa.js} +35 -34
- package/schematics/bundles/inject-flags.js +14 -13
- package/schematics/bundles/inject-migration.js +29 -10
- package/schematics/bundles/leading_space-D9nQ8UQC.js +1 -1
- package/schematics/bundles/{migrate_ts_type_references-Be0TNYen.js → migrate_ts_type_references-Cq_ZBuT4.js} +21 -20
- package/schematics/bundles/ng_decorators-DznZ5jMl.js +1 -1
- package/schematics/bundles/nodes-B16H9JUd.js +1 -1
- package/schematics/bundles/output-migration.js +88 -25
- package/schematics/bundles/{run_in_devkit-CkvEksWP.js → project_paths-ql6qcf_c.js} +254 -243
- package/schematics/bundles/project_tsconfig_paths-CDVxT6Ov.js +1 -1
- package/schematics/bundles/property_name-BBwFuqMe.js +1 -1
- package/schematics/bundles/route-lazy-loading.js +7 -5
- package/schematics/bundles/self-closing-tags-migration.js +25 -19
- package/schematics/bundles/signal-input-migration.js +26 -20
- package/schematics/bundles/signal-queries-migration.js +51 -33
- package/schematics/bundles/signals.js +8 -7
- package/schematics/bundles/standalone-migration.js +11 -9
- package/schematics/bundles/symbol-VPWguRxr.js +1 -1
- package/schematics/bundles/test-bed-get.js +13 -12
- package/schematics/collection.json +0 -6
- package/schematics/migrations.json +11 -0
- package/signal.d-E0e5nW1p.d.ts +31 -0
- package/testing/index.d.ts +16 -28
- package/weak_ref.d-eGOEP9S1.d.ts +9 -0
- package/fesm2022/injector-BlLwZ2sr.mjs +0 -24
- package/fesm2022/injector-BlLwZ2sr.mjs.map +0 -1
- package/fesm2022/untracked-DkcXpNb_.mjs.map +0 -1
- package/navigation_types.d-DgDrF5rp.d.ts +0 -121
- package/schematics/ng-generate/control-flow-migration/schema.json +0 -20
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v20.0.0-next.
|
|
3
|
+
* @license Angular v20.0.0-next.6
|
|
4
4
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
|
+
require('@angular-devkit/core');
|
|
10
|
+
require('node:path/posix');
|
|
11
|
+
var project_paths = require('./project_paths-ql6qcf_c.js');
|
|
9
12
|
var ts = require('typescript');
|
|
10
13
|
require('os');
|
|
11
|
-
var checker = require('./checker-
|
|
12
|
-
|
|
14
|
+
var checker = require('./checker-BFBQyesT.js');
|
|
15
|
+
require('./compiler-BQ7R7w2v.js');
|
|
16
|
+
var index = require('./index-Cv4Q415G.js');
|
|
13
17
|
require('path');
|
|
14
|
-
var
|
|
15
|
-
|
|
16
|
-
require('
|
|
17
|
-
require('node:path/posix');
|
|
18
|
+
var apply_import_manager = require('./apply_import_manager-DnMqg1pY.js');
|
|
19
|
+
require('@angular-devkit/schematics');
|
|
20
|
+
require('./project_tsconfig_paths-CDVxT6Ov.js');
|
|
18
21
|
require('fs');
|
|
19
22
|
require('module');
|
|
20
23
|
require('url');
|
|
21
|
-
require('@angular-devkit/schematics');
|
|
22
|
-
require('./project_tsconfig_paths-CDVxT6Ov.js');
|
|
23
24
|
|
|
24
25
|
/** Migration that cleans up unused imports from a project. */
|
|
25
|
-
class UnusedImportsMigration extends
|
|
26
|
+
class UnusedImportsMigration extends project_paths.TsurgeFunnelMigration {
|
|
26
27
|
printer = ts.createPrinter();
|
|
27
28
|
createProgram(tsconfigAbsPath, fs) {
|
|
28
29
|
return super.createProgram(tsconfigAbsPath, fs, {
|
|
@@ -61,10 +62,10 @@ class UnusedImportsMigration extends run_in_devkit.TsurgeFunnelMigration {
|
|
|
61
62
|
}
|
|
62
63
|
this.generateReplacements(sourceFile, resolvedLocations, usageAnalysis, info, replacements);
|
|
63
64
|
});
|
|
64
|
-
return
|
|
65
|
+
return project_paths.confirmAsSerializable({ replacements, removedIdentifiers, changedFiles });
|
|
65
66
|
}
|
|
66
67
|
async migrate(globalData) {
|
|
67
|
-
return
|
|
68
|
+
return project_paths.confirmAsSerializable(globalData);
|
|
68
69
|
}
|
|
69
70
|
async combine(unitA, unitB) {
|
|
70
71
|
const combinedReplacements = [];
|
|
@@ -88,14 +89,14 @@ class UnusedImportsMigration extends run_in_devkit.TsurgeFunnelMigration {
|
|
|
88
89
|
}
|
|
89
90
|
}
|
|
90
91
|
});
|
|
91
|
-
return
|
|
92
|
+
return project_paths.confirmAsSerializable({
|
|
92
93
|
replacements: combinedReplacements,
|
|
93
94
|
removedIdentifiers: combinedRemovedIdentifiers,
|
|
94
95
|
changedFiles: changedFileIds.size,
|
|
95
96
|
});
|
|
96
97
|
}
|
|
97
98
|
async globalMeta(combinedData) {
|
|
98
|
-
return
|
|
99
|
+
return project_paths.confirmAsSerializable(combinedData);
|
|
99
100
|
}
|
|
100
101
|
async stats(globalMetadata) {
|
|
101
102
|
return {
|
|
@@ -222,7 +223,7 @@ class UnusedImportsMigration extends run_in_devkit.TsurgeFunnelMigration {
|
|
|
222
223
|
const importManager = new checker.ImportManager();
|
|
223
224
|
// Replace full arrays with empty ones. This allows preserves more of the user's formatting.
|
|
224
225
|
fullRemovals.forEach((node) => {
|
|
225
|
-
replacements.push(new
|
|
226
|
+
replacements.push(new project_paths.Replacement(project_paths.projectFile(sourceFile, info), new project_paths.TextUpdate({
|
|
226
227
|
position: node.getStart(),
|
|
227
228
|
end: node.getEnd(),
|
|
228
229
|
toInsert: '[]',
|
|
@@ -231,7 +232,7 @@ class UnusedImportsMigration extends run_in_devkit.TsurgeFunnelMigration {
|
|
|
231
232
|
// Filter out the unused identifiers from an array.
|
|
232
233
|
partialRemovals.forEach((toRemove, node) => {
|
|
233
234
|
const newNode = ts.factory.updateArrayLiteralExpression(node, node.elements.filter((el) => !toRemove.has(el)));
|
|
234
|
-
replacements.push(new
|
|
235
|
+
replacements.push(new project_paths.Replacement(project_paths.projectFile(sourceFile, info), new project_paths.TextUpdate({
|
|
235
236
|
position: node.getStart(),
|
|
236
237
|
end: node.getEnd(),
|
|
237
238
|
toInsert: this.printer.printNode(ts.EmitHint.Unspecified, newNode, sourceFile),
|
|
@@ -263,11 +264,16 @@ class UnusedImportsMigration extends run_in_devkit.TsurgeFunnelMigration {
|
|
|
263
264
|
|
|
264
265
|
function migrate() {
|
|
265
266
|
return async (tree, context) => {
|
|
266
|
-
await
|
|
267
|
+
await project_paths.runMigrationInDevkit({
|
|
267
268
|
getMigration: () => new UnusedImportsMigration(),
|
|
268
269
|
tree,
|
|
269
|
-
beforeProgramCreation: (tsconfigPath) => {
|
|
270
|
-
|
|
270
|
+
beforeProgramCreation: (tsconfigPath, stage) => {
|
|
271
|
+
if (stage === project_paths.MigrationStage.Analysis) {
|
|
272
|
+
context.logger.info(`Preparing analysis for: ${tsconfigPath}...`);
|
|
273
|
+
}
|
|
274
|
+
else {
|
|
275
|
+
context.logger.info(`Running migration for: ${tsconfigPath}...`);
|
|
276
|
+
}
|
|
271
277
|
},
|
|
272
278
|
beforeUnitAnalysis: (tsconfigPath) => {
|
|
273
279
|
context.logger.info(`Scanning for unused imports using ${tsconfigPath}`);
|