@angular/core 20.0.0-next.0 → 20.0.0-next.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.
- package/fesm2022/core.mjs +3307 -4479
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives/di.mjs +45 -0
- package/fesm2022/primitives/di.mjs.map +1 -0
- package/fesm2022/primitives/event-dispatch.mjs +3 -590
- package/fesm2022/primitives/event-dispatch.mjs.map +1 -1
- package/fesm2022/primitives/signals.mjs +19 -9
- package/fesm2022/primitives/signals.mjs.map +1 -1
- package/fesm2022/rxjs-interop.mjs +8 -33
- package/fesm2022/rxjs-interop.mjs.map +1 -1
- package/fesm2022/testing.mjs +392 -250
- package/fesm2022/testing.mjs.map +1 -1
- package/fesm2022/weak_ref-DrMdAIDh.mjs +12 -0
- package/fesm2022/weak_ref-DrMdAIDh.mjs.map +1 -0
- package/index.d.ts +14339 -15134
- package/navigation_types.d-u4EOrrdZ.d.ts +121 -0
- package/package.json +11 -1
- package/primitives/di/index.d.ts +91 -0
- package/primitives/event-dispatch/index.d.ts +206 -310
- package/primitives/signals/index.d.ts +159 -196
- package/rxjs-interop/index.d.ts +72 -92
- package/schematics/bundles/{apply_import_manager-0959b78c.js → apply_import_manager-CyRT0UvU.js} +13 -17
- package/schematics/bundles/{checker-cf6f7980.js → checker-DF8ZaFW5.js} +3363 -1289
- package/schematics/bundles/cleanup-unused-imports.js +22 -28
- package/schematics/bundles/{compiler_host-cc1379e9.js → compiler_host-Da636uJ8.js} +20 -24
- package/schematics/bundles/control-flow-migration.js +82 -39
- package/schematics/bundles/{imports-31a38653.js → imports-CIX-JgAN.js} +10 -15
- package/schematics/bundles/{index-42d84d69.js → index-DnkWgagp.js} +56 -60
- package/schematics/bundles/{index-6675d6bc.js → index-vGJcp5M7.js} +5 -5
- package/schematics/bundles/inject-flags.js +181 -0
- package/schematics/bundles/inject-migration.js +122 -128
- package/schematics/bundles/{leading_space-6e7a8ec6.js → leading_space-D9nQ8UQC.js} +2 -2
- package/schematics/bundles/{migrate_ts_type_references-5089e4ef.js → migrate_ts_type_references-DtkOnnv0.js} +113 -120
- package/schematics/bundles/{ng_decorators-6878e227.js → ng_decorators-DznZ5jMl.js} +5 -9
- package/schematics/bundles/{nodes-ffdce442.js → nodes-B16H9JUd.js} +3 -7
- package/schematics/bundles/output-migration.js +40 -46
- package/schematics/bundles/{program-362689f0.js → program-BZk27Ndu.js} +846 -2653
- package/schematics/bundles/{project_paths-7d2daa1e.js → project_paths-Jtbi76Bs.js} +26 -24
- package/schematics/bundles/{project_tsconfig_paths-6c9cde78.js → project_tsconfig_paths-CDVxT6Ov.js} +2 -2
- package/schematics/bundles/{property_name-42030525.js → property_name-BBwFuqMe.js} +4 -8
- package/schematics/bundles/route-lazy-loading.js +36 -42
- package/schematics/bundles/self-closing-tags-migration.js +55 -45
- package/schematics/bundles/signal-input-migration.js +61 -68
- package/schematics/bundles/signal-queries-migration.js +48 -55
- package/schematics/bundles/signals.js +10 -12
- package/schematics/bundles/standalone-migration.js +179 -185
- package/schematics/migrations.json +4 -15
- package/testing/index.d.ts +309 -478
- package/weak_ref.d-ttyj86RV.d.ts +9 -0
- package/schematics/bundles/explicit-standalone-flag.js +0 -184
- package/schematics/bundles/pending-tasks.js +0 -103
- package/schematics/bundles/provide-initializer.js +0 -186
package/schematics/bundles/{apply_import_manager-0959b78c.js → apply_import_manager-CyRT0UvU.js}
RENAMED
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v20.0.0-next.
|
|
4
|
-
* (c) 2010-
|
|
3
|
+
* @license Angular v20.0.0-next.2
|
|
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
10
|
require('os');
|
|
11
|
-
var checker = require('./checker-
|
|
12
|
-
var project_paths = require('./project_paths-
|
|
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-DF8ZaFW5.js');
|
|
12
|
+
var project_paths = require('./project_paths-Jtbi76Bs.js');
|
|
17
13
|
|
|
18
14
|
/**
|
|
19
15
|
* Applies import manager changes, and writes them as replacements the
|
|
@@ -21,12 +17,12 @@ 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 =
|
|
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(
|
|
25
|
+
const printedImport = printer.printNode(ts.EmitHint.Unspecified, newImport, pathToFile.get(fileName));
|
|
30
26
|
replacements.push(new project_paths.Replacement(project_paths.projectFile(checker.absoluteFrom(fileName), info), new project_paths.TextUpdate({ position: 0, end: 0, toInsert: `${printedImport}\n` })));
|
|
31
27
|
});
|
|
32
28
|
});
|
|
@@ -38,16 +34,16 @@ 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 =
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
(isMultiline ?
|
|
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 |=
|
|
43
|
+
formatFlags |= ts.ListFormat.SpaceBetweenBraces;
|
|
48
44
|
}
|
|
49
45
|
else {
|
|
50
|
-
formatFlags &= ~
|
|
46
|
+
formatFlags &= ~ts.ListFormat.SpaceBetweenBraces;
|
|
51
47
|
}
|
|
52
48
|
const printedBindings = printer.printList(formatFlags, newBindings.elements, oldBindings.getSourceFile());
|
|
53
49
|
replacements.push(new project_paths.Replacement(project_paths.projectFile(oldBindings.getSourceFile(), info), new project_paths.TextUpdate({
|