@angular/compiler 14.0.3 → 14.1.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/esm2020/src/jit_compiler_facade.mjs +3 -1
- package/esm2020/src/render3/partial/class_metadata.mjs +1 -1
- package/esm2020/src/render3/partial/directive.mjs +1 -1
- package/esm2020/src/render3/partial/factory.mjs +1 -1
- package/esm2020/src/render3/partial/injectable.mjs +1 -1
- package/esm2020/src/render3/partial/injector.mjs +1 -1
- package/esm2020/src/render3/partial/ng_module.mjs +1 -1
- package/esm2020/src/render3/partial/pipe.mjs +1 -1
- package/esm2020/src/render3/r3_module_compiler.mjs +11 -4
- package/esm2020/src/version.mjs +1 -1
- package/fesm2015/compiler.mjs +21 -12
- package/fesm2015/compiler.mjs.map +1 -1
- package/fesm2015/testing.mjs +1 -1
- package/fesm2020/compiler.mjs +21 -12
- package/fesm2020/compiler.mjs.map +1 -1
- package/fesm2020/testing.mjs +1 -1
- package/index.d.ts +10 -1
- package/package.json +2 -2
- package/testing/index.d.ts +1 -1
package/fesm2015/testing.mjs
CHANGED
package/fesm2020/compiler.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v14.0.
|
|
2
|
+
* @license Angular v14.1.0-next.2
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -6100,10 +6100,13 @@ function compileNgModuleDeclarationExpression(meta) {
|
|
|
6100
6100
|
}
|
|
6101
6101
|
return importExpr(Identifiers.defineNgModule).callFn([definitionMap.toLiteralMap()]);
|
|
6102
6102
|
}
|
|
6103
|
-
function createNgModuleType({ type: moduleType, declarations, imports,
|
|
6103
|
+
function createNgModuleType({ type: moduleType, declarations, exports, imports, includeImportTypes, publicDeclarationTypes }) {
|
|
6104
6104
|
return new ExpressionType(importExpr(Identifiers.NgModuleDeclaration, [
|
|
6105
|
-
new ExpressionType(moduleType.type),
|
|
6106
|
-
tupleTypeOf(
|
|
6105
|
+
new ExpressionType(moduleType.type),
|
|
6106
|
+
publicDeclarationTypes === null ? tupleTypeOf(declarations) :
|
|
6107
|
+
tupleOfTypes(publicDeclarationTypes),
|
|
6108
|
+
includeImportTypes ? tupleTypeOf(imports) : NONE_TYPE,
|
|
6109
|
+
tupleTypeOf(exports),
|
|
6107
6110
|
]));
|
|
6108
6111
|
}
|
|
6109
6112
|
/**
|
|
@@ -6147,6 +6150,10 @@ function tupleTypeOf(exp) {
|
|
|
6147
6150
|
const types = exp.map(ref => typeofExpr(ref.type));
|
|
6148
6151
|
return exp.length > 0 ? expressionType(literalArr(types)) : NONE_TYPE;
|
|
6149
6152
|
}
|
|
6153
|
+
function tupleOfTypes(types) {
|
|
6154
|
+
const typeofTypes = types.map(type => typeofExpr(type));
|
|
6155
|
+
return types.length > 0 ? expressionType(literalArr(typeofTypes)) : NONE_TYPE;
|
|
6156
|
+
}
|
|
6150
6157
|
|
|
6151
6158
|
/**
|
|
6152
6159
|
* @license
|
|
@@ -19454,7 +19461,9 @@ class CompilerFacadeImpl {
|
|
|
19454
19461
|
adjacentType: new WrappedNodeExpr(facade.type),
|
|
19455
19462
|
bootstrap: facade.bootstrap.map(wrapReference),
|
|
19456
19463
|
declarations: facade.declarations.map(wrapReference),
|
|
19464
|
+
publicDeclarationTypes: null,
|
|
19457
19465
|
imports: facade.imports.map(wrapReference),
|
|
19466
|
+
includeImportTypes: true,
|
|
19458
19467
|
exports: facade.exports.map(wrapReference),
|
|
19459
19468
|
selectorScopeMode: R3SelectorScopeMode.Inline,
|
|
19460
19469
|
containsForwardDecls: false,
|
|
@@ -19891,7 +19900,7 @@ function publishFacade(global) {
|
|
|
19891
19900
|
* Use of this source code is governed by an MIT-style license that can be
|
|
19892
19901
|
* found in the LICENSE file at https://angular.io/license
|
|
19893
19902
|
*/
|
|
19894
|
-
const VERSION = new Version('14.0.
|
|
19903
|
+
const VERSION = new Version('14.1.0-next.2');
|
|
19895
19904
|
|
|
19896
19905
|
/**
|
|
19897
19906
|
* @license
|
|
@@ -21924,7 +21933,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$6 = '12.0.0';
|
|
|
21924
21933
|
function compileDeclareClassMetadata(metadata) {
|
|
21925
21934
|
const definitionMap = new DefinitionMap();
|
|
21926
21935
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$6));
|
|
21927
|
-
definitionMap.set('version', literal('14.0.
|
|
21936
|
+
definitionMap.set('version', literal('14.1.0-next.2'));
|
|
21928
21937
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
21929
21938
|
definitionMap.set('type', metadata.type);
|
|
21930
21939
|
definitionMap.set('decorators', metadata.decorators);
|
|
@@ -22041,7 +22050,7 @@ function compileDeclareDirectiveFromMetadata(meta) {
|
|
|
22041
22050
|
function createDirectiveDefinitionMap(meta) {
|
|
22042
22051
|
const definitionMap = new DefinitionMap();
|
|
22043
22052
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
22044
|
-
definitionMap.set('version', literal('14.0.
|
|
22053
|
+
definitionMap.set('version', literal('14.1.0-next.2'));
|
|
22045
22054
|
// e.g. `type: MyDirective`
|
|
22046
22055
|
definitionMap.set('type', meta.internalType);
|
|
22047
22056
|
if (meta.isStandalone) {
|
|
@@ -22255,7 +22264,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
|
|
|
22255
22264
|
function compileDeclareFactoryFunction(meta) {
|
|
22256
22265
|
const definitionMap = new DefinitionMap();
|
|
22257
22266
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
22258
|
-
definitionMap.set('version', literal('14.0.
|
|
22267
|
+
definitionMap.set('version', literal('14.1.0-next.2'));
|
|
22259
22268
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22260
22269
|
definitionMap.set('type', meta.internalType);
|
|
22261
22270
|
definitionMap.set('deps', compileDependencies(meta.deps));
|
|
@@ -22297,7 +22306,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
22297
22306
|
function createInjectableDefinitionMap(meta) {
|
|
22298
22307
|
const definitionMap = new DefinitionMap();
|
|
22299
22308
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
22300
|
-
definitionMap.set('version', literal('14.0.
|
|
22309
|
+
definitionMap.set('version', literal('14.1.0-next.2'));
|
|
22301
22310
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22302
22311
|
definitionMap.set('type', meta.internalType);
|
|
22303
22312
|
// Only generate providedIn property if it has a non-null value
|
|
@@ -22355,7 +22364,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
22355
22364
|
function createInjectorDefinitionMap(meta) {
|
|
22356
22365
|
const definitionMap = new DefinitionMap();
|
|
22357
22366
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
22358
|
-
definitionMap.set('version', literal('14.0.
|
|
22367
|
+
definitionMap.set('version', literal('14.1.0-next.2'));
|
|
22359
22368
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22360
22369
|
definitionMap.set('type', meta.internalType);
|
|
22361
22370
|
definitionMap.set('providers', meta.providers);
|
|
@@ -22392,7 +22401,7 @@ function compileDeclareNgModuleFromMetadata(meta) {
|
|
|
22392
22401
|
function createNgModuleDefinitionMap(meta) {
|
|
22393
22402
|
const definitionMap = new DefinitionMap();
|
|
22394
22403
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
22395
|
-
definitionMap.set('version', literal('14.0.
|
|
22404
|
+
definitionMap.set('version', literal('14.1.0-next.2'));
|
|
22396
22405
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22397
22406
|
definitionMap.set('type', meta.internalType);
|
|
22398
22407
|
// We only generate the keys in the metadata if the arrays contain values.
|
|
@@ -22450,7 +22459,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
22450
22459
|
function createPipeDefinitionMap(meta) {
|
|
22451
22460
|
const definitionMap = new DefinitionMap();
|
|
22452
22461
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
22453
|
-
definitionMap.set('version', literal('14.0.
|
|
22462
|
+
definitionMap.set('version', literal('14.1.0-next.2'));
|
|
22454
22463
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22455
22464
|
// e.g. `type: MyPipe`
|
|
22456
22465
|
definitionMap.set('type', meta.internalType);
|