@angular/core 19.0.0-rc.0 → 19.0.0-rc.1
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 +201 -349
- 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 +1 -1
- package/fesm2022/rxjs-interop.mjs.map +1 -1
- package/fesm2022/testing.mjs +6 -6
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +16 -51
- 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 +1 -1
- package/schematics/bundles/{checker-2451e7c5.js → checker-9ca42e51.js} +163 -150
- package/schematics/bundles/combine_units-a16385aa.js +1634 -0
- package/schematics/bundles/{compiler_host-f54f8309.js → compiler_host-31afa4ed.js} +8 -5
- package/schematics/bundles/control-flow-migration.js +3 -3
- package/schematics/bundles/explicit-standalone-flag.js +5 -5
- package/schematics/bundles/{imports-44987700.js → imports-4ac08251.js} +1 -1
- package/schematics/bundles/inject-migration.js +131 -37
- package/schematics/bundles/{leading_space-6e7a8ec6.js → leading_space-d190b83b.js} +1 -1
- package/schematics/bundles/{migrate_ts_type_references-ab18a7c3.js → migrate_ts_type_references-b2a28742.js} +5 -5
- package/schematics/bundles/{ng_decorators-3ad437d2.js → nodes-0e7d45ca.js} +15 -2
- package/schematics/bundles/output-migration.js +20 -6895
- package/schematics/bundles/pending-tasks.js +5 -5
- package/schematics/bundles/{program-58424797.js → program-71beec0b.js} +109 -42
- package/schematics/bundles/{project_tsconfig_paths-6c9cde78.js → project_tsconfig_paths-e9ccccbf.js} +1 -1
- package/schematics/bundles/provide-initializer.js +17 -28
- package/schematics/bundles/route-lazy-loading.js +10 -5
- package/schematics/bundles/signal-input-migration.js +7 -7
- package/schematics/bundles/signal-queries-migration.js +12 -12
- package/schematics/bundles/signals.js +7 -7
- package/schematics/bundles/standalone-migration.js +13 -14
- package/schematics/migrations.json +1 -1
- package/testing/index.d.ts +1 -1
- package/schematics/bundles/combine_units-c52492ab.js +0 -31202
- package/schematics/bundles/nodes-ffdce442.js +0 -27
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v19.0.0-rc.
|
|
3
|
+
* @license Angular v19.0.0-rc.1
|
|
4
4
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -11,15 +11,14 @@ 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-
|
|
15
|
-
var program = require('./program-
|
|
14
|
+
var checker = require('./checker-9ca42e51.js');
|
|
15
|
+
var program = require('./program-71beec0b.js');
|
|
16
16
|
var p = require('path');
|
|
17
17
|
var fs = require('fs');
|
|
18
|
-
var compiler_host = require('./compiler_host-
|
|
19
|
-
var project_tsconfig_paths = require('./project_tsconfig_paths-
|
|
20
|
-
var
|
|
21
|
-
var
|
|
22
|
-
var imports = require('./imports-44987700.js');
|
|
18
|
+
var compiler_host = require('./compiler_host-31afa4ed.js');
|
|
19
|
+
var project_tsconfig_paths = require('./project_tsconfig_paths-e9ccccbf.js');
|
|
20
|
+
var nodes = require('./nodes-0e7d45ca.js');
|
|
21
|
+
var imports = require('./imports-4ac08251.js');
|
|
23
22
|
require('module');
|
|
24
23
|
require('url');
|
|
25
24
|
require('@angular-devkit/core');
|
|
@@ -33,7 +32,7 @@ var ts__default = /*#__PURE__*/_interopDefaultLegacy(ts);
|
|
|
33
32
|
* @description
|
|
34
33
|
* Entry point for all public APIs of the compiler-cli package.
|
|
35
34
|
*/
|
|
36
|
-
new checker.Version('19.0.0-rc.
|
|
35
|
+
new checker.Version('19.0.0-rc.1');
|
|
37
36
|
|
|
38
37
|
function createProgram({ rootNames, options, host, oldProgram, }) {
|
|
39
38
|
return new program.NgtscProgram(rootNames, options, host, oldProgram);
|
|
@@ -653,7 +652,7 @@ function findNgModuleClassesToMigrate(sourceFile, typeChecker) {
|
|
|
653
652
|
if (imports.getImportSpecifier(sourceFile, '@angular/core', 'NgModule')) {
|
|
654
653
|
sourceFile.forEachChild(function walk(node) {
|
|
655
654
|
if (ts__default["default"].isClassDeclaration(node)) {
|
|
656
|
-
const decorator =
|
|
655
|
+
const decorator = nodes.getAngularDecorators(typeChecker, ts__default["default"].getDecorators(node) || []).find((current) => current.name === 'NgModule');
|
|
657
656
|
const metadata = decorator ? extractMetadataLiteral(decorator.node) : null;
|
|
658
657
|
if (metadata) {
|
|
659
658
|
const declarations = findLiteralProperty(metadata, 'declarations');
|
|
@@ -850,7 +849,7 @@ function analyzeTestingModules(testObjects, typeChecker) {
|
|
|
850
849
|
if (seenDeclarations.has(decl)) {
|
|
851
850
|
continue;
|
|
852
851
|
}
|
|
853
|
-
const [decorator] =
|
|
852
|
+
const [decorator] = nodes.getAngularDecorators(typeChecker, ts__default["default"].getDecorators(decl) || []);
|
|
854
853
|
if (decorator) {
|
|
855
854
|
seenDeclarations.add(decl);
|
|
856
855
|
decorators.push(decorator);
|
|
@@ -1324,7 +1323,7 @@ function addRemovalTodos(nodes, tracker) {
|
|
|
1324
1323
|
}
|
|
1325
1324
|
/** Finds the `NgModule` decorator in a class, if it exists. */
|
|
1326
1325
|
function findNgModuleDecorator(node, typeChecker) {
|
|
1327
|
-
const decorators =
|
|
1326
|
+
const decorators = nodes.getAngularDecorators(typeChecker, ts__default["default"].getDecorators(node) || []);
|
|
1328
1327
|
return decorators.find((decorator) => decorator.name === 'NgModule') || null;
|
|
1329
1328
|
}
|
|
1330
1329
|
/**
|
|
@@ -1400,7 +1399,7 @@ function analyzeBootstrapCall(call, typeChecker, templateTypeChecker) {
|
|
|
1400
1399
|
if (!declaration) {
|
|
1401
1400
|
return null;
|
|
1402
1401
|
}
|
|
1403
|
-
const decorator =
|
|
1402
|
+
const decorator = nodes.getAngularDecorators(typeChecker, ts__default["default"].getDecorators(declaration) || []).find((decorator) => decorator.name === 'NgModule');
|
|
1404
1403
|
if (!decorator ||
|
|
1405
1404
|
decorator.node.expression.arguments.length === 0 ||
|
|
1406
1405
|
!ts__default["default"].isObjectLiteralExpression(decorator.node.expression.arguments[0])) {
|
|
@@ -1589,7 +1588,7 @@ function migrateImportsForBootstrapCall(sourceFile, imports, nodeLookup, imports
|
|
|
1589
1588
|
: element;
|
|
1590
1589
|
const classDeclaration = findClassDeclaration(target, typeChecker);
|
|
1591
1590
|
const decorators = classDeclaration
|
|
1592
|
-
?
|
|
1591
|
+
? nodes.getAngularDecorators(typeChecker, ts__default["default"].getDecorators(classDeclaration) || [])
|
|
1593
1592
|
: undefined;
|
|
1594
1593
|
if (!decorators ||
|
|
1595
1594
|
decorators.length === 0 ||
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"provide-initializer": {
|
|
14
14
|
"version": "19.0.0",
|
|
15
|
-
"description": "Replaces `APP_INITIALIZER`,
|
|
15
|
+
"description": "Replaces `APP_INITIALIZER`, `ENVIRONMENT_INITIALIZER` & `PLATFORM_INITIALIZER` respectively with `provideAppInitializer`, `provideEnvironmentInitializer` & `providePlatformInitializer`.",
|
|
16
16
|
"factory": "./bundles/provide-initializer#migrate",
|
|
17
17
|
"optional": true
|
|
18
18
|
}
|
package/testing/index.d.ts
CHANGED