@angular/core 19.0.0-next.6 → 19.0.0-next.7
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 +378 -130
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives/event-dispatch.mjs +1 -1
- package/fesm2022/primitives/event-dispatch.mjs.map +1 -1
- package/fesm2022/primitives/signals.mjs +1 -1
- package/fesm2022/primitives/signals.mjs.map +1 -1
- package/fesm2022/rxjs-interop.mjs +25 -4
- package/fesm2022/rxjs-interop.mjs.map +1 -1
- package/fesm2022/testing.mjs +12 -11
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +166 -97
- package/package.json +1 -1
- package/primitives/event-dispatch/index.d.ts +1 -1
- package/primitives/signals/index.d.ts +1 -1
- package/rxjs-interop/index.d.ts +3 -1
- package/schematics/bundles/{checker-dcf9a14e.js → checker-637eee78.js} +22 -11
- package/schematics/bundles/{compiler_host-6026cdf8.js → compiler_host-1e62b899.js} +2 -2
- package/schematics/bundles/control-flow-migration.js +3 -3
- package/schematics/bundles/explicit-standalone-flag.js +3 -3
- package/schematics/bundles/imports-44987700.js +1 -1
- package/schematics/bundles/inject-migration.js +8 -28
- package/schematics/bundles/leading_space-6e7a8ec6.js +30 -0
- package/schematics/bundles/nodes-b12e919a.js +1 -1
- package/schematics/bundles/pending-tasks.js +103 -0
- package/schematics/bundles/{program-4dc8c0fa.js → program-893e3fe7.js} +1810 -1476
- package/schematics/bundles/project_tsconfig_paths-6c9cde78.js +1 -1
- package/schematics/bundles/route-lazy-loading.js +3 -3
- package/schematics/bundles/signal-input-migration.js +516 -283
- package/schematics/bundles/standalone-migration.js +9 -9
- package/schematics/migrations.json +5 -0
- package/schematics/ng-generate/signal-input-migration/schema.json +5 -0
- package/testing/index.d.ts +3 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v19.0.0-next.
|
|
3
|
+
* @license Angular v19.0.0-next.7
|
|
4
4
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -11,11 +11,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
11
11
|
var schematics = require('@angular-devkit/schematics');
|
|
12
12
|
require('os');
|
|
13
13
|
var ts = require('typescript');
|
|
14
|
-
var checker = require('./checker-
|
|
14
|
+
var checker = require('./checker-637eee78.js');
|
|
15
15
|
var p = require('path');
|
|
16
|
-
var program = require('./program-
|
|
16
|
+
var program = require('./program-893e3fe7.js');
|
|
17
17
|
var fs = require('fs');
|
|
18
|
-
var compiler_host = require('./compiler_host-
|
|
18
|
+
var compiler_host = require('./compiler_host-1e62b899.js');
|
|
19
19
|
var project_tsconfig_paths = require('./project_tsconfig_paths-6c9cde78.js');
|
|
20
20
|
var nodes = require('./nodes-b12e919a.js');
|
|
21
21
|
var imports = require('./imports-44987700.js');
|
|
@@ -32,7 +32,7 @@ var ts__default = /*#__PURE__*/_interopDefaultLegacy(ts);
|
|
|
32
32
|
* @description
|
|
33
33
|
* Entry point for all public APIs of the compiler-cli package.
|
|
34
34
|
*/
|
|
35
|
-
new checker.Version('19.0.0-next.
|
|
35
|
+
new checker.Version('19.0.0-next.7');
|
|
36
36
|
|
|
37
37
|
function createProgram({ rootNames, options, host, oldProgram, }) {
|
|
38
38
|
return new program.NgtscProgram(rootNames, options, host, oldProgram);
|
|
@@ -53,7 +53,7 @@ checker.setFileSystem(new checker.NodeJSFileSystem());
|
|
|
53
53
|
* Copyright Google LLC All Rights Reserved.
|
|
54
54
|
*
|
|
55
55
|
* Use of this source code is governed by an MIT-style license that can be
|
|
56
|
-
* found in the LICENSE file at https://angular.
|
|
56
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
57
57
|
*/
|
|
58
58
|
/** Utility class used to track a one-to-many relationship where all the items are unique. */
|
|
59
59
|
class UniqueItemTracker {
|
|
@@ -314,7 +314,7 @@ function isReferenceToImport(typeChecker, node, importSpecifier) {
|
|
|
314
314
|
* Copyright Google LLC All Rights Reserved.
|
|
315
315
|
*
|
|
316
316
|
* Use of this source code is governed by an MIT-style license that can be
|
|
317
|
-
* found in the LICENSE file at https://angular.
|
|
317
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
318
318
|
*/
|
|
319
319
|
/**
|
|
320
320
|
* Converts all declarations in the specified files to standalone.
|
|
@@ -903,7 +903,7 @@ function isStandaloneDeclaration(node, declarationsInMigration, templateTypeChec
|
|
|
903
903
|
* Copyright Google LLC All Rights Reserved.
|
|
904
904
|
*
|
|
905
905
|
* Use of this source code is governed by an MIT-style license that can be
|
|
906
|
-
* found in the LICENSE file at https://angular.
|
|
906
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
907
907
|
*/
|
|
908
908
|
function pruneNgModules(program, host, basePath, rootFileNames, sourceFiles, printer, importRemapper, referenceLookupExcludedFiles, componentImportRemapper) {
|
|
909
909
|
const filesToRemove = new Set();
|
|
@@ -1325,7 +1325,7 @@ function isInImportsArray(closestAssignment, closestArray) {
|
|
|
1325
1325
|
* Copyright Google LLC All Rights Reserved.
|
|
1326
1326
|
*
|
|
1327
1327
|
* Use of this source code is governed by an MIT-style license that can be
|
|
1328
|
-
* found in the LICENSE file at https://angular.
|
|
1328
|
+
* found in the LICENSE file at https://angular.dev/license
|
|
1329
1329
|
*/
|
|
1330
1330
|
function toStandaloneBootstrap(program, host, basePath, rootFileNames, sourceFiles, printer, importRemapper, referenceLookupExcludedFiles, componentImportRemapper) {
|
|
1331
1331
|
const tracker = new compiler_host.ChangeTracker(printer, importRemapper);
|
|
@@ -4,6 +4,11 @@
|
|
|
4
4
|
"version": "19.0.0",
|
|
5
5
|
"description": "Updates non-standalone Directives, Component and Pipes to standalone:false",
|
|
6
6
|
"factory": "./bundles/explicit-standalone-flag#migrate"
|
|
7
|
+
},
|
|
8
|
+
"pending-tasks": {
|
|
9
|
+
"version": "19.0.0",
|
|
10
|
+
"description": "Updates ExperimentalPendingTasks to PendingTasks",
|
|
11
|
+
"factory": "./bundles/pending-tasks#migrate"
|
|
7
12
|
}
|
|
8
13
|
}
|
|
9
14
|
}
|
|
@@ -20,6 +20,11 @@
|
|
|
20
20
|
"description": "Whether to eagerly migrate as much as possible, ignoring problematic patterns that would otherwise prevent migration.",
|
|
21
21
|
"x-prompt": "Do you want to migrate as much as possible, even if it may break your build?",
|
|
22
22
|
"default": false
|
|
23
|
+
},
|
|
24
|
+
"insertTodos": {
|
|
25
|
+
"type": "boolean",
|
|
26
|
+
"description": "Whether the migration should add TODOs for inputs that could not be migrated",
|
|
27
|
+
"default": false
|
|
23
28
|
}
|
|
24
29
|
}
|
|
25
30
|
}
|
package/testing/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v19.0.0-next.
|
|
2
|
+
* @license Angular v19.0.0-next.7
|
|
3
3
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -69,6 +69,8 @@ export declare class ComponentFixture<T> {
|
|
|
69
69
|
private readonly appErrorHandler;
|
|
70
70
|
private readonly zonelessEnabled;
|
|
71
71
|
private readonly scheduler;
|
|
72
|
+
private readonly rootEffectScheduler;
|
|
73
|
+
private readonly microtaskEffectScheduler;
|
|
72
74
|
private readonly autoDetectDefault;
|
|
73
75
|
private autoDetect;
|
|
74
76
|
private subscriptions;
|