@angular/core 21.2.6 → 21.2.8
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/_attribute-chunk.mjs +1 -1
- package/fesm2022/_debug_node-chunk.mjs +89 -15
- package/fesm2022/_debug_node-chunk.mjs.map +1 -1
- package/fesm2022/_effect-chunk.mjs +1 -1
- package/fesm2022/_effect-chunk2.mjs +2 -2
- package/fesm2022/_effect-chunk2.mjs.map +1 -1
- package/fesm2022/_not_found-chunk.mjs +1 -1
- package/fesm2022/_resource-chunk.mjs +1 -1
- package/fesm2022/_untracked-chunk.mjs +1 -1
- package/fesm2022/_weak_ref-chunk.mjs +1 -1
- package/fesm2022/core.mjs +1 -1
- package/fesm2022/primitives-di.mjs +1 -1
- package/fesm2022/primitives-event-dispatch.mjs +1 -5
- package/fesm2022/primitives-event-dispatch.mjs.map +1 -1
- package/fesm2022/primitives-signals.mjs +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/testing.mjs +1 -1
- package/package.json +2 -2
- package/schematics/bundles/add-bootstrap-context-to-server-main.cjs +1 -1
- package/schematics/bundles/application-config-core.cjs +1 -1
- package/schematics/bundles/apply_import_manager-CxA_YYgB.cjs +1 -1
- package/schematics/bundles/bootstrap-options-migration.cjs +1 -1
- package/schematics/bundles/cleanup-unused-imports.cjs +1 -1
- package/schematics/bundles/common-to-standalone-migration.cjs +1 -1
- package/schematics/bundles/compiler_host-CY14HvaP.cjs +1 -1
- package/schematics/bundles/control-flow-migration.cjs +1 -1
- package/schematics/bundles/imports-CVmcbVA9.cjs +1 -1
- package/schematics/bundles/{index-BtLcQH8g.cjs → index-DADA7AvC.cjs} +7 -3
- package/schematics/bundles/inject-migration.cjs +1 -1
- package/schematics/bundles/leading_space-BTPRV0wu.cjs +1 -1
- package/schematics/bundles/{migrate_ts_type_references-MWoZx-Cb.cjs → migrate_ts_type_references-CJvpTtkh.cjs} +2 -2
- package/schematics/bundles/ng_component_template-BOuKAnQd.cjs +1 -1
- package/schematics/bundles/ng_decorators-DYy6II6x.cjs +1 -1
- package/schematics/bundles/ngclass-to-class-migration.cjs +1 -1
- package/schematics/bundles/ngstyle-to-style-migration.cjs +1 -1
- package/schematics/bundles/nodes-ZSQ7WZRB.cjs +1 -1
- package/schematics/bundles/output-migration.cjs +2 -2
- package/schematics/bundles/parse_html-C8eKA9px.cjs +1 -1
- package/schematics/bundles/project_paths-D2V-Uh2L.cjs +1 -1
- package/schematics/bundles/project_tsconfig_paths-DkkMibv-.cjs +1 -1
- package/schematics/bundles/property_name-BCpALNpZ.cjs +1 -1
- package/schematics/bundles/route-lazy-loading.cjs +22 -2
- package/schematics/bundles/router-current-navigation.cjs +1 -1
- package/schematics/bundles/router-last-successful-navigation.cjs +1 -1
- package/schematics/bundles/router-testing-module-migration.cjs +1 -1
- package/schematics/bundles/self-closing-tags-migration.cjs +1 -1
- package/schematics/bundles/signal-input-migration.cjs +3 -3
- package/schematics/bundles/signal-queries-migration.cjs +3 -3
- package/schematics/bundles/signals.cjs +3 -3
- package/schematics/bundles/standalone-migration.cjs +29 -17
- package/schematics/bundles/symbol-DZeHSR-V.cjs +1 -1
- package/types/_api-chunk.d.ts +1 -1
- package/types/_chrome_dev_tools_performance-chunk.d.ts +1 -1
- package/types/_discovery-chunk.d.ts +1 -1
- package/types/_effect-chunk.d.ts +1 -1
- package/types/_event_dispatcher-chunk.d.ts +1 -1
- package/types/_formatter-chunk.d.ts +1 -1
- package/types/_weak_ref-chunk.d.ts +1 -1
- package/types/core.d.ts +1 -1
- package/types/primitives-di.d.ts +1 -1
- package/types/primitives-event-dispatch.d.ts +1 -1
- package/types/primitives-signals.d.ts +1 -1
- package/types/rxjs-interop.d.ts +1 -1
- package/types/testing.d.ts +1 -1
package/fesm2022/testing.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/core",
|
|
3
|
-
"version": "21.2.
|
|
3
|
+
"version": "21.2.8",
|
|
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": "21.2.
|
|
49
|
+
"@angular/compiler": "21.2.8",
|
|
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 v21.2.
|
|
3
|
+
* @license Angular v21.2.8
|
|
4
4
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -402,13 +402,17 @@ class TemplateExpressionReferenceVisitor extends compiler.RecursiveAstVisitor {
|
|
|
402
402
|
return false;
|
|
403
403
|
}
|
|
404
404
|
const symbol = this.templateTypeChecker.getSymbolOfNode(ast, this.componentClass);
|
|
405
|
-
if (symbol?.kind !== migrations.SymbolKind.Expression
|
|
405
|
+
if (symbol?.kind !== migrations.SymbolKind.Expression) {
|
|
406
|
+
return false;
|
|
407
|
+
}
|
|
408
|
+
const tsSymbol = this.templateTypeChecker.getTsSymbolOfSymbol(symbol);
|
|
409
|
+
if (tsSymbol === null) {
|
|
406
410
|
return false;
|
|
407
411
|
}
|
|
408
412
|
// Dangerous: Type checking symbol retrieval is a totally different `ts.Program`,
|
|
409
413
|
// than the one where we analyzed `knownInputs`.
|
|
410
414
|
// --> Find the input via its input id.
|
|
411
|
-
const targetInput = this.knownFields.attemptRetrieveDescriptorFromSymbol(
|
|
415
|
+
const targetInput = this.knownFields.attemptRetrieveDescriptorFromSymbol(tsSymbol);
|
|
412
416
|
if (targetInput === null) {
|
|
413
417
|
return false;
|
|
414
418
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v21.2.
|
|
3
|
+
* @license Angular v21.2.8
|
|
4
4
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
var assert = require('assert');
|
|
10
10
|
var ts = require('typescript');
|
|
11
11
|
var migrations = require('@angular/compiler-cli/private/migrations');
|
|
12
|
-
var index = require('./index-
|
|
12
|
+
var index = require('./index-DADA7AvC.cjs');
|
|
13
13
|
var project_paths = require('./project_paths-D2V-Uh2L.cjs');
|
|
14
14
|
var leading_space = require('./leading_space-BTPRV0wu.cjs');
|
|
15
15
|
require('@angular/compiler-cli');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v21.2.
|
|
3
|
+
* @license Angular v21.2.8
|
|
4
4
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -13,7 +13,7 @@ require('node:path');
|
|
|
13
13
|
var project_paths = require('./project_paths-D2V-Uh2L.cjs');
|
|
14
14
|
var compiler = require('@angular/compiler');
|
|
15
15
|
var apply_import_manager = require('./apply_import_manager-CxA_YYgB.cjs');
|
|
16
|
-
var index = require('./index-
|
|
16
|
+
var index = require('./index-DADA7AvC.cjs');
|
|
17
17
|
require('@angular-devkit/core');
|
|
18
18
|
require('node:path/posix');
|
|
19
19
|
require('@angular-devkit/schematics');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v21.2.
|
|
3
|
+
* @license Angular v21.2.8
|
|
4
4
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -308,7 +308,27 @@ function migrateRoute(element, route, typeChecker, reflector, tracker) {
|
|
|
308
308
|
if (componentDeclaration.getSourceFile().fileName === route.routeFilePath) {
|
|
309
309
|
return routeMigrationResults;
|
|
310
310
|
}
|
|
311
|
-
|
|
311
|
+
// Resolve the import that provides this component by exact specifier match
|
|
312
|
+
// Handles default imports, named imports, and aliases (e.g., `import { Foo as Bar }`).
|
|
313
|
+
const componentImport = route.routeFileImports.find((importDecl) => {
|
|
314
|
+
const clause = importDecl.importClause;
|
|
315
|
+
if (!clause)
|
|
316
|
+
return false;
|
|
317
|
+
// Default import: import FooComponent from '...'
|
|
318
|
+
if (clause.name && ts.isIdentifier(clause.name) && clause.name.text === componentClassName) {
|
|
319
|
+
return true;
|
|
320
|
+
}
|
|
321
|
+
// Named imports: import { FooComponent } from '...'
|
|
322
|
+
const named = clause.namedBindings;
|
|
323
|
+
if (named && ts.isNamedImports(named)) {
|
|
324
|
+
return named.elements.some((el) => {
|
|
325
|
+
// Support alias: import { Foo as Bar }
|
|
326
|
+
const importedName = el.propertyName ? el.propertyName.text : el.name.text;
|
|
327
|
+
return importedName === componentClassName;
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
return false;
|
|
331
|
+
});
|
|
312
332
|
// remove single and double quotes from the import path
|
|
313
333
|
let componentImportPath = ts.isStringLiteral(componentImport?.moduleSpecifier)
|
|
314
334
|
? componentImport.moduleSpecifier.text
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v21.2.
|
|
3
|
+
* @license Angular v21.2.8
|
|
4
4
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
|
-
var migrate_ts_type_references = require('./migrate_ts_type_references-
|
|
9
|
+
var migrate_ts_type_references = require('./migrate_ts_type_references-CJvpTtkh.cjs');
|
|
10
10
|
var ts = require('typescript');
|
|
11
11
|
require('@angular/compiler-cli');
|
|
12
12
|
var migrations = require('@angular/compiler-cli/private/migrations');
|
|
13
13
|
require('node:path');
|
|
14
14
|
var project_paths = require('./project_paths-D2V-Uh2L.cjs');
|
|
15
|
-
var index = require('./index-
|
|
15
|
+
var index = require('./index-DADA7AvC.cjs');
|
|
16
16
|
var assert = require('assert');
|
|
17
17
|
var apply_import_manager = require('./apply_import_manager-CxA_YYgB.cjs');
|
|
18
18
|
require('@angular-devkit/core');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v21.2.
|
|
3
|
+
* @license Angular v21.2.8
|
|
4
4
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -12,9 +12,9 @@ require('@angular/compiler-cli');
|
|
|
12
12
|
require('node:path');
|
|
13
13
|
var project_paths = require('./project_paths-D2V-Uh2L.cjs');
|
|
14
14
|
var apply_import_manager = require('./apply_import_manager-CxA_YYgB.cjs');
|
|
15
|
-
var migrate_ts_type_references = require('./migrate_ts_type_references-
|
|
15
|
+
var migrate_ts_type_references = require('./migrate_ts_type_references-CJvpTtkh.cjs');
|
|
16
16
|
var assert = require('assert');
|
|
17
|
-
var index = require('./index-
|
|
17
|
+
var index = require('./index-DADA7AvC.cjs');
|
|
18
18
|
var compiler = require('@angular/compiler');
|
|
19
19
|
require('@angular-devkit/core');
|
|
20
20
|
require('node:path/posix');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v21.2.
|
|
3
|
+
* @license Angular v21.2.8
|
|
4
4
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -19,9 +19,9 @@ require('@angular-devkit/core');
|
|
|
19
19
|
require('node:path/posix');
|
|
20
20
|
require('./project_tsconfig_paths-DkkMibv-.cjs');
|
|
21
21
|
require('./apply_import_manager-CxA_YYgB.cjs');
|
|
22
|
-
require('./migrate_ts_type_references-
|
|
22
|
+
require('./migrate_ts_type_references-CJvpTtkh.cjs');
|
|
23
23
|
require('assert');
|
|
24
|
-
require('./index-
|
|
24
|
+
require('./index-DADA7AvC.cjs');
|
|
25
25
|
require('@angular/compiler');
|
|
26
26
|
require('./leading_space-BTPRV0wu.cjs');
|
|
27
27
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v21.2.
|
|
3
|
+
* @license Angular v21.2.8
|
|
4
4
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -325,7 +325,7 @@ function toStandalone(sourceFiles, program, printer, fileImportRemapper, declara
|
|
|
325
325
|
testObjects.forEach((obj) => testObjectsToMigrate.add(obj));
|
|
326
326
|
}
|
|
327
327
|
for (const declaration of declarations) {
|
|
328
|
-
convertNgModuleDeclarationToStandalone(declaration, declarations, tracker, templateTypeChecker, declarationImportRemapper);
|
|
328
|
+
convertNgModuleDeclarationToStandalone(declaration, declarations, tracker, templateTypeChecker, program.getTsProgram(), declarationImportRemapper);
|
|
329
329
|
}
|
|
330
330
|
for (const node of modulesToMigrate) {
|
|
331
331
|
migrateNgModuleClass(node, declarations, tracker, typeChecker, templateTypeChecker);
|
|
@@ -341,12 +341,12 @@ function toStandalone(sourceFiles, program, printer, fileImportRemapper, declara
|
|
|
341
341
|
* @param typeChecker
|
|
342
342
|
* @param importRemapper
|
|
343
343
|
*/
|
|
344
|
-
function convertNgModuleDeclarationToStandalone(decl, allDeclarations, tracker, typeChecker, importRemapper) {
|
|
344
|
+
function convertNgModuleDeclarationToStandalone(decl, allDeclarations, tracker, typeChecker, program, importRemapper) {
|
|
345
345
|
const directiveMeta = typeChecker.getDirectiveMetadata(decl);
|
|
346
346
|
if (directiveMeta && directiveMeta.decorator && !directiveMeta.isStandalone) {
|
|
347
347
|
let decorator = markDecoratorAsStandalone(directiveMeta.decorator);
|
|
348
348
|
if (directiveMeta.isComponent) {
|
|
349
|
-
const importsToAdd = getComponentImportExpressions(decl, allDeclarations, tracker, typeChecker, importRemapper);
|
|
349
|
+
const importsToAdd = getComponentImportExpressions(decl, allDeclarations, tracker, typeChecker, program, importRemapper);
|
|
350
350
|
if (importsToAdd.length > 0) {
|
|
351
351
|
const hasTrailingComma = importsToAdd.length > 2 &&
|
|
352
352
|
!!extractMetadataLiteral(directiveMeta.decorator)?.properties.hasTrailingComma;
|
|
@@ -373,8 +373,8 @@ function convertNgModuleDeclarationToStandalone(decl, allDeclarations, tracker,
|
|
|
373
373
|
* @param typeChecker
|
|
374
374
|
* @param importRemapper
|
|
375
375
|
*/
|
|
376
|
-
function getComponentImportExpressions(decl, allDeclarations, tracker, typeChecker, importRemapper) {
|
|
377
|
-
const templateDependencies = findTemplateDependencies(decl, typeChecker);
|
|
376
|
+
function getComponentImportExpressions(decl, allDeclarations, tracker, typeChecker, program, importRemapper) {
|
|
377
|
+
const templateDependencies = findTemplateDependencies(decl, typeChecker, program);
|
|
378
378
|
const usedDependenciesInMigration = new Set(templateDependencies.filter((dep) => allDeclarations.has(dep.node)));
|
|
379
379
|
const seenImports = new Set();
|
|
380
380
|
const resolvedDependencies = [];
|
|
@@ -696,23 +696,29 @@ function findTestObjectsToMigrate(sourceFile, typeChecker) {
|
|
|
696
696
|
* @param decl Component in whose template we're looking for dependencies.
|
|
697
697
|
* @param typeChecker
|
|
698
698
|
*/
|
|
699
|
-
function findTemplateDependencies(decl, typeChecker) {
|
|
699
|
+
function findTemplateDependencies(decl, typeChecker, program) {
|
|
700
700
|
const results = [];
|
|
701
701
|
const usedDirectives = typeChecker.getUsedDirectives(decl);
|
|
702
702
|
const usedPipes = typeChecker.getUsedPipes(decl);
|
|
703
703
|
if (usedDirectives !== null) {
|
|
704
704
|
for (const dir of usedDirectives) {
|
|
705
|
-
|
|
706
|
-
results.push(dir.ref);
|
|
707
|
-
}
|
|
705
|
+
results.push(dir.ref);
|
|
708
706
|
}
|
|
709
707
|
}
|
|
710
708
|
if (usedPipes !== null) {
|
|
711
709
|
const potentialPipes = typeChecker.getPotentialPipes(decl);
|
|
712
710
|
for (const pipe of potentialPipes) {
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
711
|
+
const sourceFile = program.getSourceFile(pipe.ref.filePath);
|
|
712
|
+
const node = sourceFile ? findTightestNode(sourceFile, pipe.ref.position) : null;
|
|
713
|
+
const classDecl = node ? nodes.closestNode(node, ts.isClassDeclaration) : null;
|
|
714
|
+
if (classDecl && usedPipes.some((current) => pipe.name === current)) {
|
|
715
|
+
const owningModule = pipe.ref.moduleSpecifier
|
|
716
|
+
? {
|
|
717
|
+
specifier: pipe.ref.moduleSpecifier,
|
|
718
|
+
resolutionContext: decl.getSourceFile().fileName,
|
|
719
|
+
}
|
|
720
|
+
: null;
|
|
721
|
+
results.push(new migrations.Reference(classDecl, owningModule));
|
|
716
722
|
}
|
|
717
723
|
}
|
|
718
724
|
}
|
|
@@ -906,6 +912,12 @@ function isStandaloneDeclaration(node, declarationsInMigration, templateTypeChec
|
|
|
906
912
|
const metadata = templateTypeChecker.getDirectiveMetadata(node) || templateTypeChecker.getPipeMetadata(node);
|
|
907
913
|
return metadata != null && metadata.isStandalone;
|
|
908
914
|
}
|
|
915
|
+
function findTightestNode(node, position) {
|
|
916
|
+
if (position < node.getStart() || position > node.getEnd()) {
|
|
917
|
+
return undefined;
|
|
918
|
+
}
|
|
919
|
+
return node.forEachChild((c) => findTightestNode(c, position)) ?? node;
|
|
920
|
+
}
|
|
909
921
|
|
|
910
922
|
function pruneNgModules(program, host, basePath, rootFileNames, sourceFiles, printer, importRemapper, referenceLookupExcludedFiles, declarationImportRemapper) {
|
|
911
923
|
const filesToRemove = new Set();
|
|
@@ -944,7 +956,7 @@ function pruneNgModules(program, host, basePath, rootFileNames, sourceFiles, pri
|
|
|
944
956
|
}
|
|
945
957
|
node.forEachChild(walk);
|
|
946
958
|
});
|
|
947
|
-
replaceInComponentImportsArray(componentImportArrays, classesToRemove, removalLocations, tracker, typeChecker, templateTypeChecker, declarationImportRemapper);
|
|
959
|
+
replaceInComponentImportsArray(componentImportArrays, classesToRemove, removalLocations, tracker, typeChecker, templateTypeChecker, tsProgram, declarationImportRemapper);
|
|
948
960
|
replaceInTestImportsArray(testArrays, removalLocations, classesToRemove, tracker, typeChecker, templateTypeChecker, declarationImportRemapper);
|
|
949
961
|
// We collect all the places where we need to remove references first before generating the
|
|
950
962
|
// removal instructions since we may have to remove multiple references from one node.
|
|
@@ -1056,14 +1068,14 @@ function collectChangeLocations(ngModule, removalLocations, componentImportArray
|
|
|
1056
1068
|
* @param templateTypeChecker
|
|
1057
1069
|
* @param importRemapper
|
|
1058
1070
|
*/
|
|
1059
|
-
function replaceInComponentImportsArray(componentImportArrays, classesToRemove, removalLocations, tracker, typeChecker, templateTypeChecker, importRemapper) {
|
|
1071
|
+
function replaceInComponentImportsArray(componentImportArrays, classesToRemove, removalLocations, tracker, typeChecker, templateTypeChecker, program, importRemapper) {
|
|
1060
1072
|
for (const [array, toReplace] of componentImportArrays.getEntries()) {
|
|
1061
1073
|
const closestClass = nodes.closestNode(array, ts.isClassDeclaration);
|
|
1062
1074
|
if (!closestClass) {
|
|
1063
1075
|
continue;
|
|
1064
1076
|
}
|
|
1065
1077
|
const replacements = new UniqueItemTracker();
|
|
1066
|
-
const usedImports = new Set(findTemplateDependencies(closestClass, templateTypeChecker).map((ref) => ref.node));
|
|
1078
|
+
const usedImports = new Set(findTemplateDependencies(closestClass, templateTypeChecker, program).map((ref) => ref.node));
|
|
1067
1079
|
const nodesToRemove = new Set();
|
|
1068
1080
|
for (const node of toReplace) {
|
|
1069
1081
|
const moduleDecl = findClassDeclaration(node, typeChecker);
|
|
@@ -1460,7 +1472,7 @@ function toStandaloneBootstrap(program, host, basePath, rootFileNames, sourceFil
|
|
|
1460
1472
|
// The previous migrations explicitly skip over bootstrapped
|
|
1461
1473
|
// declarations so we have to migrate them now.
|
|
1462
1474
|
for (const declaration of allDeclarations) {
|
|
1463
|
-
convertNgModuleDeclarationToStandalone(declaration, allDeclarations, tracker, templateTypeChecker, declarationImportRemapper);
|
|
1475
|
+
convertNgModuleDeclarationToStandalone(declaration, allDeclarations, tracker, templateTypeChecker, program.getTsProgram(), declarationImportRemapper);
|
|
1464
1476
|
}
|
|
1465
1477
|
migrateTestDeclarations(testObjects, allDeclarations, tracker, templateTypeChecker, typeChecker);
|
|
1466
1478
|
return tracker.recordChanges();
|
package/types/_api-chunk.d.ts
CHANGED
package/types/_effect-chunk.d.ts
CHANGED
package/types/core.d.ts
CHANGED
package/types/primitives-di.d.ts
CHANGED