@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/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
|
*/
|
|
@@ -6089,10 +6089,13 @@ function compileNgModuleDeclarationExpression(meta) {
|
|
|
6089
6089
|
}
|
|
6090
6090
|
return importExpr(Identifiers.defineNgModule).callFn([definitionMap.toLiteralMap()]);
|
|
6091
6091
|
}
|
|
6092
|
-
function createNgModuleType({ type: moduleType, declarations, imports,
|
|
6092
|
+
function createNgModuleType({ type: moduleType, declarations, exports, imports, includeImportTypes, publicDeclarationTypes }) {
|
|
6093
6093
|
return new ExpressionType(importExpr(Identifiers.NgModuleDeclaration, [
|
|
6094
|
-
new ExpressionType(moduleType.type),
|
|
6095
|
-
tupleTypeOf(
|
|
6094
|
+
new ExpressionType(moduleType.type),
|
|
6095
|
+
publicDeclarationTypes === null ? tupleTypeOf(declarations) :
|
|
6096
|
+
tupleOfTypes(publicDeclarationTypes),
|
|
6097
|
+
includeImportTypes ? tupleTypeOf(imports) : NONE_TYPE,
|
|
6098
|
+
tupleTypeOf(exports),
|
|
6096
6099
|
]));
|
|
6097
6100
|
}
|
|
6098
6101
|
/**
|
|
@@ -6136,6 +6139,10 @@ function tupleTypeOf(exp) {
|
|
|
6136
6139
|
const types = exp.map(ref => typeofExpr(ref.type));
|
|
6137
6140
|
return exp.length > 0 ? expressionType(literalArr(types)) : NONE_TYPE;
|
|
6138
6141
|
}
|
|
6142
|
+
function tupleOfTypes(types) {
|
|
6143
|
+
const typeofTypes = types.map(type => typeofExpr(type));
|
|
6144
|
+
return types.length > 0 ? expressionType(literalArr(typeofTypes)) : NONE_TYPE;
|
|
6145
|
+
}
|
|
6139
6146
|
|
|
6140
6147
|
/**
|
|
6141
6148
|
* @license
|
|
@@ -19456,7 +19463,9 @@ class CompilerFacadeImpl {
|
|
|
19456
19463
|
adjacentType: new WrappedNodeExpr(facade.type),
|
|
19457
19464
|
bootstrap: facade.bootstrap.map(wrapReference),
|
|
19458
19465
|
declarations: facade.declarations.map(wrapReference),
|
|
19466
|
+
publicDeclarationTypes: null,
|
|
19459
19467
|
imports: facade.imports.map(wrapReference),
|
|
19468
|
+
includeImportTypes: true,
|
|
19460
19469
|
exports: facade.exports.map(wrapReference),
|
|
19461
19470
|
selectorScopeMode: R3SelectorScopeMode.Inline,
|
|
19462
19471
|
containsForwardDecls: false,
|
|
@@ -19849,7 +19858,7 @@ function publishFacade(global) {
|
|
|
19849
19858
|
* Use of this source code is governed by an MIT-style license that can be
|
|
19850
19859
|
* found in the LICENSE file at https://angular.io/license
|
|
19851
19860
|
*/
|
|
19852
|
-
const VERSION = new Version('14.0.
|
|
19861
|
+
const VERSION = new Version('14.1.0-next.2');
|
|
19853
19862
|
|
|
19854
19863
|
/**
|
|
19855
19864
|
* @license
|
|
@@ -21876,7 +21885,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$6 = '12.0.0';
|
|
|
21876
21885
|
function compileDeclareClassMetadata(metadata) {
|
|
21877
21886
|
const definitionMap = new DefinitionMap();
|
|
21878
21887
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$6));
|
|
21879
|
-
definitionMap.set('version', literal('14.0.
|
|
21888
|
+
definitionMap.set('version', literal('14.1.0-next.2'));
|
|
21880
21889
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
21881
21890
|
definitionMap.set('type', metadata.type);
|
|
21882
21891
|
definitionMap.set('decorators', metadata.decorators);
|
|
@@ -21993,7 +22002,7 @@ function compileDeclareDirectiveFromMetadata(meta) {
|
|
|
21993
22002
|
function createDirectiveDefinitionMap(meta) {
|
|
21994
22003
|
const definitionMap = new DefinitionMap();
|
|
21995
22004
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
21996
|
-
definitionMap.set('version', literal('14.0.
|
|
22005
|
+
definitionMap.set('version', literal('14.1.0-next.2'));
|
|
21997
22006
|
// e.g. `type: MyDirective`
|
|
21998
22007
|
definitionMap.set('type', meta.internalType);
|
|
21999
22008
|
if (meta.isStandalone) {
|
|
@@ -22207,7 +22216,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
|
|
|
22207
22216
|
function compileDeclareFactoryFunction(meta) {
|
|
22208
22217
|
const definitionMap = new DefinitionMap();
|
|
22209
22218
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
22210
|
-
definitionMap.set('version', literal('14.0.
|
|
22219
|
+
definitionMap.set('version', literal('14.1.0-next.2'));
|
|
22211
22220
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22212
22221
|
definitionMap.set('type', meta.internalType);
|
|
22213
22222
|
definitionMap.set('deps', compileDependencies(meta.deps));
|
|
@@ -22249,7 +22258,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
22249
22258
|
function createInjectableDefinitionMap(meta) {
|
|
22250
22259
|
const definitionMap = new DefinitionMap();
|
|
22251
22260
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
22252
|
-
definitionMap.set('version', literal('14.0.
|
|
22261
|
+
definitionMap.set('version', literal('14.1.0-next.2'));
|
|
22253
22262
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22254
22263
|
definitionMap.set('type', meta.internalType);
|
|
22255
22264
|
// Only generate providedIn property if it has a non-null value
|
|
@@ -22307,7 +22316,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
22307
22316
|
function createInjectorDefinitionMap(meta) {
|
|
22308
22317
|
const definitionMap = new DefinitionMap();
|
|
22309
22318
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
22310
|
-
definitionMap.set('version', literal('14.0.
|
|
22319
|
+
definitionMap.set('version', literal('14.1.0-next.2'));
|
|
22311
22320
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22312
22321
|
definitionMap.set('type', meta.internalType);
|
|
22313
22322
|
definitionMap.set('providers', meta.providers);
|
|
@@ -22344,7 +22353,7 @@ function compileDeclareNgModuleFromMetadata(meta) {
|
|
|
22344
22353
|
function createNgModuleDefinitionMap(meta) {
|
|
22345
22354
|
const definitionMap = new DefinitionMap();
|
|
22346
22355
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
22347
|
-
definitionMap.set('version', literal('14.0.
|
|
22356
|
+
definitionMap.set('version', literal('14.1.0-next.2'));
|
|
22348
22357
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22349
22358
|
definitionMap.set('type', meta.internalType);
|
|
22350
22359
|
// We only generate the keys in the metadata if the arrays contain values.
|
|
@@ -22402,7 +22411,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
22402
22411
|
function createPipeDefinitionMap(meta) {
|
|
22403
22412
|
const definitionMap = new DefinitionMap();
|
|
22404
22413
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
22405
|
-
definitionMap.set('version', literal('14.0.
|
|
22414
|
+
definitionMap.set('version', literal('14.1.0-next.2'));
|
|
22406
22415
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22407
22416
|
// e.g. `type: MyPipe`
|
|
22408
22417
|
definitionMap.set('type', meta.internalType);
|