@angular/core 19.1.0-next.1 → 19.1.0-next.3
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 +274 -96
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives/event-dispatch.mjs +1 -1
- package/fesm2022/primitives/signals.mjs +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/testing.mjs +10 -10
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +174 -122
- 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-a00b735e.js → checker-228cb8a8.js} +143 -40
- package/schematics/bundles/{combine_units-4983dfd3.js → combine_units-5d6a7099.js} +3 -3
- package/schematics/bundles/{compiler_host-3e96c3f7.js → compiler_host-fc806dbe.js} +2 -2
- 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-abe29092.js} +2 -2
- package/schematics/bundles/inject-migration.js +10 -10
- package/schematics/bundles/{leading_space-6e7a8ec6.js → leading_space-d190b83b.js} +1 -1
- package/schematics/bundles/{migrate_ts_type_references-58326be5.js → migrate_ts_type_references-d02c6750.js} +9 -9
- package/schematics/bundles/{nodes-b12e919a.js → nodes-a9f0b985.js} +2 -2
- package/schematics/bundles/output-migration.js +5 -5
- package/schematics/bundles/pending-tasks.js +5 -5
- package/schematics/bundles/{program-37562cc3.js → program-1591ec8f.js} +31 -24
- package/schematics/bundles/{project_tsconfig_paths-6c9cde78.js → project_tsconfig_paths-e9ccccbf.js} +1 -1
- package/schematics/bundles/provide-initializer.js +5 -5
- package/schematics/bundles/route-lazy-loading.js +4 -4
- package/schematics/bundles/signal-input-migration.js +8 -8
- package/schematics/bundles/signal-queries-migration.js +7 -7
- package/schematics/bundles/signals.js +7 -7
- package/schematics/bundles/standalone-migration.js +8 -8
- package/testing/index.d.ts +5 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v19.1.0-next.
|
|
3
|
+
* @license Angular v19.1.0-next.3
|
|
4
4
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -10,12 +10,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
10
10
|
|
|
11
11
|
var schematics = require('@angular-devkit/schematics');
|
|
12
12
|
var p = require('path');
|
|
13
|
-
var compiler_host = require('./compiler_host-
|
|
13
|
+
var compiler_host = require('./compiler_host-fc806dbe.js');
|
|
14
14
|
var ts = require('typescript');
|
|
15
|
-
var nodes = require('./nodes-
|
|
16
|
-
var imports = require('./imports-
|
|
17
|
-
var leading_space = require('./leading_space-
|
|
18
|
-
require('./checker-
|
|
15
|
+
var nodes = require('./nodes-a9f0b985.js');
|
|
16
|
+
var imports = require('./imports-abe29092.js');
|
|
17
|
+
var leading_space = require('./leading_space-d190b83b.js');
|
|
18
|
+
require('./checker-228cb8a8.js');
|
|
19
19
|
require('os');
|
|
20
20
|
require('fs');
|
|
21
21
|
require('module');
|
|
@@ -346,7 +346,7 @@ function findSuperCall(root) {
|
|
|
346
346
|
* Finds class property declarations without initializers whose constructor-based initialization
|
|
347
347
|
* can be inlined into the declaration spot after migrating to `inject`. For example:
|
|
348
348
|
*
|
|
349
|
-
* ```
|
|
349
|
+
* ```ts
|
|
350
350
|
* private foo: number;
|
|
351
351
|
*
|
|
352
352
|
* constructor(private service: MyService) {
|
|
@@ -413,7 +413,7 @@ function findUninitializedPropertiesToCombine(node, constructor, localTypeChecke
|
|
|
413
413
|
* The internal-specific migration will combine such properties which will result in a compilation
|
|
414
414
|
* error, for example:
|
|
415
415
|
*
|
|
416
|
-
* ```
|
|
416
|
+
* ```ts
|
|
417
417
|
* class MyClass {
|
|
418
418
|
* foo: Foo;
|
|
419
419
|
* bar: Bar;
|
|
@@ -427,7 +427,7 @@ function findUninitializedPropertiesToCombine(node, constructor, localTypeChecke
|
|
|
427
427
|
*
|
|
428
428
|
* Will become:
|
|
429
429
|
*
|
|
430
|
-
* ```
|
|
430
|
+
* ```ts
|
|
431
431
|
* class MyClass {
|
|
432
432
|
* foo: Foo = this.bar.getFoo();
|
|
433
433
|
* bar: Bar = inject(Bar);
|
|
@@ -481,7 +481,7 @@ function shouldCombineInInitializationOrder(toCombine, constructor) {
|
|
|
481
481
|
/**
|
|
482
482
|
* Finds the expressions from the constructor that initialize class members, for example:
|
|
483
483
|
*
|
|
484
|
-
* ```
|
|
484
|
+
* ```ts
|
|
485
485
|
* private foo: number;
|
|
486
486
|
*
|
|
487
487
|
* constructor() {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v19.1.0-next.
|
|
3
|
+
* @license Angular v19.1.0-next.3
|
|
4
4
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
|
-
var checker = require('./checker-
|
|
9
|
+
var checker = require('./checker-228cb8a8.js');
|
|
10
10
|
var ts = require('typescript');
|
|
11
11
|
require('os');
|
|
12
12
|
var assert = require('assert');
|
|
13
|
-
var combine_units = require('./combine_units-
|
|
14
|
-
var leading_space = require('./leading_space-
|
|
15
|
-
require('./program-
|
|
13
|
+
var combine_units = require('./combine_units-5d6a7099.js');
|
|
14
|
+
var leading_space = require('./leading_space-d190b83b.js');
|
|
15
|
+
require('./program-1591ec8f.js');
|
|
16
16
|
require('path');
|
|
17
17
|
|
|
18
18
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -816,7 +816,7 @@ class GroupedTsAstVisitor {
|
|
|
816
816
|
* Phase that propagates incompatibilities to derived classes or
|
|
817
817
|
* base classes. For example, consider:
|
|
818
818
|
*
|
|
819
|
-
* ```
|
|
819
|
+
* ```ts
|
|
820
820
|
* class Base {
|
|
821
821
|
* bla = true;
|
|
822
822
|
* }
|
|
@@ -1556,7 +1556,7 @@ function getFlowNode(node) {
|
|
|
1556
1556
|
*
|
|
1557
1557
|
* E.g. consider the following snippet:
|
|
1558
1558
|
*
|
|
1559
|
-
* ```
|
|
1559
|
+
* ```ts
|
|
1560
1560
|
* someMethod() {
|
|
1561
1561
|
* if (this.bla) {
|
|
1562
1562
|
* this.bla.charAt(0);
|
|
@@ -1837,7 +1837,7 @@ function migrateStandardTsReference(tsReferencesWithNarrowing, checker, info, re
|
|
|
1837
1837
|
* The phase takes care of control flow analysis and generates temporary variables
|
|
1838
1838
|
* where needed to ensure narrowing continues to work. E.g.
|
|
1839
1839
|
*
|
|
1840
|
-
* ```
|
|
1840
|
+
* ```ts
|
|
1841
1841
|
* someMethod() {
|
|
1842
1842
|
* if (this.input) {
|
|
1843
1843
|
* this.input.charAt(0);
|
|
@@ -1847,7 +1847,7 @@ function migrateStandardTsReference(tsReferencesWithNarrowing, checker, info, re
|
|
|
1847
1847
|
*
|
|
1848
1848
|
* will be transformed into:
|
|
1849
1849
|
*
|
|
1850
|
-
* ```
|
|
1850
|
+
* ```ts
|
|
1851
1851
|
* someMethod() {
|
|
1852
1852
|
* const input_1 = this.input();
|
|
1853
1853
|
* if (input_1) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v19.1.0-next.
|
|
3
|
+
* @license Angular v19.1.0-next.3
|
|
4
4
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
9
|
var ts = require('typescript');
|
|
10
|
-
var imports = require('./imports-
|
|
10
|
+
var imports = require('./imports-abe29092.js');
|
|
11
11
|
|
|
12
12
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
13
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v19.1.0-next.
|
|
3
|
+
* @license Angular v19.1.0-next.3
|
|
4
4
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
10
10
|
|
|
11
11
|
var schematics = require('@angular-devkit/schematics');
|
|
12
|
-
var project_tsconfig_paths = require('./project_tsconfig_paths-
|
|
13
|
-
var combine_units = require('./combine_units-
|
|
12
|
+
var project_tsconfig_paths = require('./project_tsconfig_paths-e9ccccbf.js');
|
|
13
|
+
var combine_units = require('./combine_units-5d6a7099.js');
|
|
14
14
|
require('os');
|
|
15
15
|
var ts = require('typescript');
|
|
16
|
-
var checker = require('./checker-
|
|
17
|
-
var program = require('./program-
|
|
16
|
+
var checker = require('./checker-228cb8a8.js');
|
|
17
|
+
var program = require('./program-1591ec8f.js');
|
|
18
18
|
require('path');
|
|
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 v19.1.0-next.
|
|
3
|
+
* @license Angular v19.1.0-next.3
|
|
4
4
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -10,12 +10,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
10
10
|
|
|
11
11
|
var schematics = require('@angular-devkit/schematics');
|
|
12
12
|
var p = require('path');
|
|
13
|
-
var project_tsconfig_paths = require('./project_tsconfig_paths-
|
|
14
|
-
var compiler_host = require('./compiler_host-
|
|
13
|
+
var project_tsconfig_paths = require('./project_tsconfig_paths-e9ccccbf.js');
|
|
14
|
+
var compiler_host = require('./compiler_host-fc806dbe.js');
|
|
15
15
|
var ts = require('typescript');
|
|
16
|
-
var imports = require('./imports-
|
|
16
|
+
var imports = require('./imports-abe29092.js');
|
|
17
17
|
require('@angular-devkit/core');
|
|
18
|
-
require('./checker-
|
|
18
|
+
require('./checker-228cb8a8.js');
|
|
19
19
|
require('os');
|
|
20
20
|
require('fs');
|
|
21
21
|
require('module');
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v19.1.0-next.
|
|
3
|
+
* @license Angular v19.1.0-next.3
|
|
4
4
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
|
-
var checker = require('./checker-
|
|
9
|
+
var checker = require('./checker-228cb8a8.js');
|
|
10
10
|
var ts = require('typescript');
|
|
11
11
|
var p = require('path');
|
|
12
12
|
require('os');
|
|
@@ -809,7 +809,7 @@ function internalCompileClassMetadata(metadata) {
|
|
|
809
809
|
* loads dependencies from `@defer` blocks.
|
|
810
810
|
*
|
|
811
811
|
* Generates a call like this:
|
|
812
|
-
* ```
|
|
812
|
+
* ```ts
|
|
813
813
|
* setClassMetadataAsync(type, () => [
|
|
814
814
|
* import('./cmp-a').then(m => m.CmpA);
|
|
815
815
|
* import('./cmp-b').then(m => m.CmpB);
|
|
@@ -995,7 +995,7 @@ const MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = '18.0.0';
|
|
|
995
995
|
function compileDeclareClassMetadata(metadata) {
|
|
996
996
|
const definitionMap = new checker.DefinitionMap();
|
|
997
997
|
definitionMap.set('minVersion', checker.literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
998
|
-
definitionMap.set('version', checker.literal('19.1.0-next.
|
|
998
|
+
definitionMap.set('version', checker.literal('19.1.0-next.3'));
|
|
999
999
|
definitionMap.set('ngImport', checker.importExpr(checker.Identifiers.core));
|
|
1000
1000
|
definitionMap.set('type', metadata.type);
|
|
1001
1001
|
definitionMap.set('decorators', metadata.decorators);
|
|
@@ -1013,7 +1013,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
|
|
|
1013
1013
|
callbackReturnDefinitionMap.set('ctorParameters', metadata.ctorParameters ?? checker.literal(null));
|
|
1014
1014
|
callbackReturnDefinitionMap.set('propDecorators', metadata.propDecorators ?? checker.literal(null));
|
|
1015
1015
|
definitionMap.set('minVersion', checker.literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
|
|
1016
|
-
definitionMap.set('version', checker.literal('19.1.0-next.
|
|
1016
|
+
definitionMap.set('version', checker.literal('19.1.0-next.3'));
|
|
1017
1017
|
definitionMap.set('ngImport', checker.importExpr(checker.Identifiers.core));
|
|
1018
1018
|
definitionMap.set('type', metadata.type);
|
|
1019
1019
|
definitionMap.set('resolveDeferredDeps', compileComponentMetadataAsyncResolver(dependencies));
|
|
@@ -1108,7 +1108,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
1108
1108
|
const definitionMap = new checker.DefinitionMap();
|
|
1109
1109
|
const minVersion = getMinimumVersionForPartialOutput(meta);
|
|
1110
1110
|
definitionMap.set('minVersion', checker.literal(minVersion));
|
|
1111
|
-
definitionMap.set('version', checker.literal('19.1.0-next.
|
|
1111
|
+
definitionMap.set('version', checker.literal('19.1.0-next.3'));
|
|
1112
1112
|
// e.g. `type: MyDirective`
|
|
1113
1113
|
definitionMap.set('type', meta.type.value);
|
|
1114
1114
|
if (meta.isStandalone !== undefined) {
|
|
@@ -1524,7 +1524,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
|
|
|
1524
1524
|
function compileDeclareFactoryFunction(meta) {
|
|
1525
1525
|
const definitionMap = new checker.DefinitionMap();
|
|
1526
1526
|
definitionMap.set('minVersion', checker.literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
1527
|
-
definitionMap.set('version', checker.literal('19.1.0-next.
|
|
1527
|
+
definitionMap.set('version', checker.literal('19.1.0-next.3'));
|
|
1528
1528
|
definitionMap.set('ngImport', checker.importExpr(checker.Identifiers.core));
|
|
1529
1529
|
definitionMap.set('type', meta.type.value);
|
|
1530
1530
|
definitionMap.set('deps', compileDependencies(meta.deps));
|
|
@@ -1559,7 +1559,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
1559
1559
|
function createInjectableDefinitionMap(meta) {
|
|
1560
1560
|
const definitionMap = new checker.DefinitionMap();
|
|
1561
1561
|
definitionMap.set('minVersion', checker.literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
1562
|
-
definitionMap.set('version', checker.literal('19.1.0-next.
|
|
1562
|
+
definitionMap.set('version', checker.literal('19.1.0-next.3'));
|
|
1563
1563
|
definitionMap.set('ngImport', checker.importExpr(checker.Identifiers.core));
|
|
1564
1564
|
definitionMap.set('type', meta.type.value);
|
|
1565
1565
|
// Only generate providedIn property if it has a non-null value
|
|
@@ -1610,7 +1610,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
1610
1610
|
function createInjectorDefinitionMap(meta) {
|
|
1611
1611
|
const definitionMap = new checker.DefinitionMap();
|
|
1612
1612
|
definitionMap.set('minVersion', checker.literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
1613
|
-
definitionMap.set('version', checker.literal('19.1.0-next.
|
|
1613
|
+
definitionMap.set('version', checker.literal('19.1.0-next.3'));
|
|
1614
1614
|
definitionMap.set('ngImport', checker.importExpr(checker.Identifiers.core));
|
|
1615
1615
|
definitionMap.set('type', meta.type.value);
|
|
1616
1616
|
definitionMap.set('providers', meta.providers);
|
|
@@ -1643,7 +1643,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
1643
1643
|
throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
|
|
1644
1644
|
}
|
|
1645
1645
|
definitionMap.set('minVersion', checker.literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
1646
|
-
definitionMap.set('version', checker.literal('19.1.0-next.
|
|
1646
|
+
definitionMap.set('version', checker.literal('19.1.0-next.3'));
|
|
1647
1647
|
definitionMap.set('ngImport', checker.importExpr(checker.Identifiers.core));
|
|
1648
1648
|
definitionMap.set('type', meta.type.value);
|
|
1649
1649
|
// We only generate the keys in the metadata if the arrays contain values.
|
|
@@ -1694,7 +1694,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
1694
1694
|
function createPipeDefinitionMap(meta) {
|
|
1695
1695
|
const definitionMap = new checker.DefinitionMap();
|
|
1696
1696
|
definitionMap.set('minVersion', checker.literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
1697
|
-
definitionMap.set('version', checker.literal('19.1.0-next.
|
|
1697
|
+
definitionMap.set('version', checker.literal('19.1.0-next.3'));
|
|
1698
1698
|
definitionMap.set('ngImport', checker.importExpr(checker.Identifiers.core));
|
|
1699
1699
|
// e.g. `type: MyPipe`
|
|
1700
1700
|
definitionMap.set('type', meta.type.value);
|
|
@@ -1862,18 +1862,18 @@ function normalizeSeparators(path) {
|
|
|
1862
1862
|
return path.replace(/\\/g, '/');
|
|
1863
1863
|
}
|
|
1864
1864
|
/**
|
|
1865
|
-
* Attempts to generate a project-relative path
|
|
1866
|
-
* @param
|
|
1867
|
-
* @param rootDirs
|
|
1868
|
-
* @param compilerHost
|
|
1865
|
+
* Attempts to generate a project-relative path for a file.
|
|
1866
|
+
* @param fileName Absolute path to the file.
|
|
1867
|
+
* @param rootDirs Root directories of the project.
|
|
1868
|
+
* @param compilerHost Host used to resolve file names.
|
|
1869
1869
|
* @returns
|
|
1870
1870
|
*/
|
|
1871
|
-
function getProjectRelativePath(
|
|
1871
|
+
function getProjectRelativePath(fileName, rootDirs, compilerHost) {
|
|
1872
1872
|
// Note: we need to pass both the file name and the root directories through getCanonicalFileName,
|
|
1873
1873
|
// because the root directories might've been passed through it already while the source files
|
|
1874
1874
|
// definitely have not. This can break the relative return value, because in some platforms
|
|
1875
1875
|
// getCanonicalFileName lowercases the path.
|
|
1876
|
-
const filePath = compilerHost.getCanonicalFileName(
|
|
1876
|
+
const filePath = compilerHost.getCanonicalFileName(fileName);
|
|
1877
1877
|
for (const rootDir of rootDirs) {
|
|
1878
1878
|
const rel = checker.relative(compilerHost.getCanonicalFileName(rootDir), filePath);
|
|
1879
1879
|
if (!rel.startsWith('..')) {
|
|
@@ -5451,7 +5451,7 @@ function extractClassDebugInfo(clazz, reflection, compilerHost, rootDirs, forbid
|
|
|
5451
5451
|
return null;
|
|
5452
5452
|
}
|
|
5453
5453
|
const srcFile = clazz.getSourceFile();
|
|
5454
|
-
const srcFileMaybeRelativePath = getProjectRelativePath(srcFile, rootDirs, compilerHost);
|
|
5454
|
+
const srcFileMaybeRelativePath = getProjectRelativePath(srcFile.fileName, rootDirs, compilerHost);
|
|
5455
5455
|
return {
|
|
5456
5456
|
type: new checker.WrappedNodeExpr(clazz.name),
|
|
5457
5457
|
className: checker.literal(clazz.name.getText()),
|
|
@@ -10344,7 +10344,7 @@ function extractHmrMetatadata(clazz, reflection, compilerHost, rootDirs, definit
|
|
|
10344
10344
|
return null;
|
|
10345
10345
|
}
|
|
10346
10346
|
const sourceFile = clazz.getSourceFile();
|
|
10347
|
-
const filePath = getProjectRelativePath(sourceFile, rootDirs, compilerHost) ||
|
|
10347
|
+
const filePath = getProjectRelativePath(sourceFile.fileName, rootDirs, compilerHost) ||
|
|
10348
10348
|
compilerHost.getCanonicalFileName(sourceFile.fileName);
|
|
10349
10349
|
const dependencies = extractHmrDependencies(clazz, definition, factory, classMetadata, debugInfo);
|
|
10350
10350
|
const meta = {
|
|
@@ -10791,6 +10791,7 @@ class ComponentDecoratorHandler {
|
|
|
10791
10791
|
path: checker.absoluteFrom(template.declaration.resolvedTemplateUrl),
|
|
10792
10792
|
expression: template.sourceMapping.node,
|
|
10793
10793
|
};
|
|
10794
|
+
const relativeTemplatePath = getProjectRelativePath(templateResource.path ?? ts__default["default"].getOriginalNode(node).getSourceFile().fileName, this.rootDirs, this.compilerHost);
|
|
10794
10795
|
// Figure out the set of styles. The ordering here is important: external resources (styleUrls)
|
|
10795
10796
|
// precede inline styles, and styles defined in the template override styles defined in the
|
|
10796
10797
|
// component.
|
|
@@ -10922,6 +10923,7 @@ class ComponentDecoratorHandler {
|
|
|
10922
10923
|
i18nUseExternalIds: this.i18nUseExternalIds,
|
|
10923
10924
|
relativeContextFilePath,
|
|
10924
10925
|
rawImports: rawImports !== null ? new checker.WrappedNodeExpr(rawImports) : undefined,
|
|
10926
|
+
relativeTemplatePath,
|
|
10925
10927
|
},
|
|
10926
10928
|
typeCheckMeta: checker.extractDirectiveTypeCheckMeta(node, inputs, this.reflector),
|
|
10927
10929
|
classMetadata: this.includeClassMetadata
|
|
@@ -17398,7 +17400,9 @@ class UnusedStandaloneImportsRule {
|
|
|
17398
17400
|
if (ts__default["default"].isVariableStatement(current)) {
|
|
17399
17401
|
return !!current.modifiers?.some((m) => m.kind === ts__default["default"].SyntaxKind.ExportKeyword);
|
|
17400
17402
|
}
|
|
17401
|
-
|
|
17403
|
+
// `Node.parent` can be undefined, but the TS types don't reflect it.
|
|
17404
|
+
// Coerce to null so the value is consitent with the type.
|
|
17405
|
+
current = current.parent ?? null;
|
|
17402
17406
|
}
|
|
17403
17407
|
// Otherwise the reference likely comes from an imported
|
|
17404
17408
|
// symbol like an array of shared common components.
|
|
@@ -20162,13 +20166,13 @@ var semver = /*@__PURE__*/getDefaultExportFromCjs(semverExports);
|
|
|
20162
20166
|
* @param minVersion Minimum required version for the feature.
|
|
20163
20167
|
*/
|
|
20164
20168
|
function coreVersionSupportsFeature(coreVersion, minVersion) {
|
|
20165
|
-
// A version of `19.1.0-next.
|
|
20169
|
+
// A version of `19.1.0-next.3` usually means that core is at head so it supports
|
|
20166
20170
|
// all features. Use string interpolation prevent the placeholder from being replaced
|
|
20167
20171
|
// with the current version during build time.
|
|
20168
20172
|
if (coreVersion === `0.0.0-${'PLACEHOLDER'}`) {
|
|
20169
20173
|
return true;
|
|
20170
20174
|
}
|
|
20171
|
-
return semver.satisfies(coreVersion, minVersion);
|
|
20175
|
+
return semver.satisfies(coreVersion, minVersion, { includePrerelease: true });
|
|
20172
20176
|
}
|
|
20173
20177
|
|
|
20174
20178
|
/**
|
|
@@ -20326,7 +20330,7 @@ class NgCompiler {
|
|
|
20326
20330
|
// version of the compiler against an older version of Angular.
|
|
20327
20331
|
this.implicitStandaloneValue =
|
|
20328
20332
|
this.angularCoreVersion === null ||
|
|
20329
|
-
coreVersionSupportsFeature(this.angularCoreVersion, '>= 19.0.0
|
|
20333
|
+
coreVersionSupportsFeature(this.angularCoreVersion, '>= 19.0.0');
|
|
20330
20334
|
this.enableHmr = !!options['_enableHmr'];
|
|
20331
20335
|
this.constructionDiagnostics.push(...this.adapter.constructionDiagnostics, ...verifyCompatibleTypeCheckOptions(this.options));
|
|
20332
20336
|
this.currentProgram = inputProgram;
|
|
@@ -20760,6 +20764,7 @@ class NgCompiler {
|
|
|
20760
20764
|
// is not disabled when `strictTemplates` is enabled.
|
|
20761
20765
|
const strictTemplates = !!this.options.strictTemplates;
|
|
20762
20766
|
const useInlineTypeConstructors = this.programDriver.supportsInlineOperations;
|
|
20767
|
+
const checkTwoWayBoundEvents = this.options['_checkTwoWayBoundEvents'] ?? false;
|
|
20763
20768
|
// Check whether the loaded version of `@angular/core` in the `ts.Program` supports unwrapping
|
|
20764
20769
|
// writable signals for type-checking. If this check fails to find a suitable .d.ts file, fall
|
|
20765
20770
|
// back to version detection. Only Angular versions greater than 17.2 have the necessary symbols
|
|
@@ -20767,7 +20772,7 @@ class NgCompiler {
|
|
|
20767
20772
|
// using Angular at head.
|
|
20768
20773
|
let allowSignalsInTwoWayBindings = coreHasSymbol(this.inputProgram, checker.Identifiers.unwrapWritableSignal) ??
|
|
20769
20774
|
(this.angularCoreVersion === null ||
|
|
20770
|
-
coreVersionSupportsFeature(this.angularCoreVersion, '>= 17.2.0
|
|
20775
|
+
coreVersionSupportsFeature(this.angularCoreVersion, '>= 17.2.0'));
|
|
20771
20776
|
// First select a type-checking configuration, based on whether full template type-checking is
|
|
20772
20777
|
// requested.
|
|
20773
20778
|
let typeCheckingConfig;
|
|
@@ -20808,6 +20813,7 @@ class NgCompiler {
|
|
|
20808
20813
|
controlFlowPreventingContentProjection: this.options.extendedDiagnostics?.defaultCategory || DiagnosticCategoryLabel.Warning,
|
|
20809
20814
|
unusedStandaloneImports: this.options.extendedDiagnostics?.defaultCategory || DiagnosticCategoryLabel.Warning,
|
|
20810
20815
|
allowSignalsInTwoWayBindings,
|
|
20816
|
+
checkTwoWayBoundEvents,
|
|
20811
20817
|
};
|
|
20812
20818
|
}
|
|
20813
20819
|
else {
|
|
@@ -20841,6 +20847,7 @@ class NgCompiler {
|
|
|
20841
20847
|
controlFlowPreventingContentProjection: this.options.extendedDiagnostics?.defaultCategory || DiagnosticCategoryLabel.Warning,
|
|
20842
20848
|
unusedStandaloneImports: this.options.extendedDiagnostics?.defaultCategory || DiagnosticCategoryLabel.Warning,
|
|
20843
20849
|
allowSignalsInTwoWayBindings,
|
|
20850
|
+
checkTwoWayBoundEvents,
|
|
20844
20851
|
};
|
|
20845
20852
|
}
|
|
20846
20853
|
// Apply explicitly configured strictness flags on top of the default configuration
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v19.1.0-next.
|
|
3
|
+
* @license Angular v19.1.0-next.3
|
|
4
4
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -10,12 +10,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
10
10
|
|
|
11
11
|
var schematics = require('@angular-devkit/schematics');
|
|
12
12
|
var p = require('path');
|
|
13
|
-
var project_tsconfig_paths = require('./project_tsconfig_paths-
|
|
14
|
-
var compiler_host = require('./compiler_host-
|
|
13
|
+
var project_tsconfig_paths = require('./project_tsconfig_paths-e9ccccbf.js');
|
|
14
|
+
var compiler_host = require('./compiler_host-fc806dbe.js');
|
|
15
15
|
var ts = require('typescript');
|
|
16
|
-
var imports = require('./imports-
|
|
16
|
+
var imports = require('./imports-abe29092.js');
|
|
17
17
|
require('@angular-devkit/core');
|
|
18
|
-
require('./checker-
|
|
18
|
+
require('./checker-228cb8a8.js');
|
|
19
19
|
require('os');
|
|
20
20
|
require('fs');
|
|
21
21
|
require('module');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v19.1.0-next.
|
|
3
|
+
* @license Angular v19.1.0-next.3
|
|
4
4
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -11,10 +11,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
11
11
|
var schematics = require('@angular-devkit/schematics');
|
|
12
12
|
var fs = require('fs');
|
|
13
13
|
var p = require('path');
|
|
14
|
-
var compiler_host = require('./compiler_host-
|
|
15
|
-
var project_tsconfig_paths = require('./project_tsconfig_paths-
|
|
14
|
+
var compiler_host = require('./compiler_host-fc806dbe.js');
|
|
15
|
+
var project_tsconfig_paths = require('./project_tsconfig_paths-e9ccccbf.js');
|
|
16
16
|
var ts = require('typescript');
|
|
17
|
-
var checker = require('./checker-
|
|
17
|
+
var checker = require('./checker-228cb8a8.js');
|
|
18
18
|
require('os');
|
|
19
19
|
require('@angular-devkit/core');
|
|
20
20
|
require('module');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v19.1.0-next.
|
|
3
|
+
* @license Angular v19.1.0-next.3
|
|
4
4
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -9,16 +9,16 @@
|
|
|
9
9
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
10
10
|
|
|
11
11
|
var schematics = require('@angular-devkit/schematics');
|
|
12
|
-
var migrate_ts_type_references = require('./migrate_ts_type_references-
|
|
12
|
+
var migrate_ts_type_references = require('./migrate_ts_type_references-d02c6750.js');
|
|
13
13
|
var ts = require('typescript');
|
|
14
14
|
require('os');
|
|
15
|
-
var checker = require('./checker-
|
|
16
|
-
var program = require('./program-
|
|
15
|
+
var checker = require('./checker-228cb8a8.js');
|
|
16
|
+
var program = require('./program-1591ec8f.js');
|
|
17
17
|
require('path');
|
|
18
|
-
var combine_units = require('./combine_units-
|
|
18
|
+
var combine_units = require('./combine_units-5d6a7099.js');
|
|
19
19
|
var assert = require('assert');
|
|
20
|
-
var project_tsconfig_paths = require('./project_tsconfig_paths-
|
|
21
|
-
require('./leading_space-
|
|
20
|
+
var project_tsconfig_paths = require('./project_tsconfig_paths-e9ccccbf.js');
|
|
21
|
+
require('./leading_space-d190b83b.js');
|
|
22
22
|
require('fs');
|
|
23
23
|
require('module');
|
|
24
24
|
require('url');
|
|
@@ -744,7 +744,7 @@ function executeAnalysisPhase(host, knownInputs, result, { sourceFiles, fullProg
|
|
|
744
744
|
* Phase that propagates incompatibilities to derived classes or
|
|
745
745
|
* base classes. For example, consider:
|
|
746
746
|
*
|
|
747
|
-
* ```
|
|
747
|
+
* ```ts
|
|
748
748
|
* class Base {
|
|
749
749
|
* bla = true;
|
|
750
750
|
* }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v19.1.0-next.
|
|
3
|
+
* @license Angular v19.1.0-next.3
|
|
4
4
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -9,21 +9,21 @@
|
|
|
9
9
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
10
10
|
|
|
11
11
|
var schematics = require('@angular-devkit/schematics');
|
|
12
|
-
var project_tsconfig_paths = require('./project_tsconfig_paths-
|
|
13
|
-
var combine_units = require('./combine_units-
|
|
12
|
+
var project_tsconfig_paths = require('./project_tsconfig_paths-e9ccccbf.js');
|
|
13
|
+
var combine_units = require('./combine_units-5d6a7099.js');
|
|
14
14
|
require('os');
|
|
15
15
|
var ts = require('typescript');
|
|
16
|
-
var checker = require('./checker-
|
|
17
|
-
var program = require('./program-
|
|
16
|
+
var checker = require('./checker-228cb8a8.js');
|
|
17
|
+
var program = require('./program-1591ec8f.js');
|
|
18
18
|
require('path');
|
|
19
|
-
var migrate_ts_type_references = require('./migrate_ts_type_references-
|
|
19
|
+
var migrate_ts_type_references = require('./migrate_ts_type_references-d02c6750.js');
|
|
20
20
|
var assert = require('assert');
|
|
21
21
|
require('@angular-devkit/core');
|
|
22
22
|
require('node:path/posix');
|
|
23
23
|
require('fs');
|
|
24
24
|
require('module');
|
|
25
25
|
require('url');
|
|
26
|
-
require('./leading_space-
|
|
26
|
+
require('./leading_space-d190b83b.js');
|
|
27
27
|
|
|
28
28
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
29
29
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v19.1.0-next.
|
|
3
|
+
* @license Angular v19.1.0-next.3
|
|
4
4
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -12,21 +12,21 @@ var schematics = require('@angular-devkit/schematics');
|
|
|
12
12
|
var signalQueriesMigration = require('./signal-queries-migration.js');
|
|
13
13
|
var signalInputMigration = require('./signal-input-migration.js');
|
|
14
14
|
var outputMigration = require('./output-migration.js');
|
|
15
|
-
require('./project_tsconfig_paths-
|
|
15
|
+
require('./project_tsconfig_paths-e9ccccbf.js');
|
|
16
16
|
require('@angular-devkit/core');
|
|
17
|
-
require('./combine_units-
|
|
17
|
+
require('./combine_units-5d6a7099.js');
|
|
18
18
|
require('node:path/posix');
|
|
19
19
|
require('os');
|
|
20
20
|
require('typescript');
|
|
21
|
-
require('./checker-
|
|
21
|
+
require('./checker-228cb8a8.js');
|
|
22
22
|
require('fs');
|
|
23
23
|
require('module');
|
|
24
24
|
require('path');
|
|
25
25
|
require('url');
|
|
26
|
-
require('./program-
|
|
27
|
-
require('./migrate_ts_type_references-
|
|
26
|
+
require('./program-1591ec8f.js');
|
|
27
|
+
require('./migrate_ts_type_references-d02c6750.js');
|
|
28
28
|
require('assert');
|
|
29
|
-
require('./leading_space-
|
|
29
|
+
require('./leading_space-d190b83b.js');
|
|
30
30
|
|
|
31
31
|
function migrate(options) {
|
|
32
32
|
// The migrations are independent so we can run them in any order, but we sort them here
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v19.1.0-next.
|
|
3
|
+
* @license Angular v19.1.0-next.3
|
|
4
4
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -11,14 +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-228cb8a8.js');
|
|
15
|
+
var program = require('./program-1591ec8f.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 nodes = require('./nodes-
|
|
21
|
-
var imports = require('./imports-
|
|
18
|
+
var compiler_host = require('./compiler_host-fc806dbe.js');
|
|
19
|
+
var project_tsconfig_paths = require('./project_tsconfig_paths-e9ccccbf.js');
|
|
20
|
+
var nodes = require('./nodes-a9f0b985.js');
|
|
21
|
+
var imports = require('./imports-abe29092.js');
|
|
22
22
|
require('module');
|
|
23
23
|
require('url');
|
|
24
24
|
require('@angular-devkit/core');
|
|
@@ -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.1.0-next.
|
|
35
|
+
new checker.Version('19.1.0-next.3');
|
|
36
36
|
|
|
37
37
|
function createProgram({ rootNames, options, host, oldProgram, }) {
|
|
38
38
|
return new program.NgtscProgram(rootNames, options, host, oldProgram);
|