@angular/compiler 14.0.1 → 14.1.0-next.0
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.0
|
|
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
|
|
@@ -19452,7 +19459,9 @@ class CompilerFacadeImpl {
|
|
|
19452
19459
|
adjacentType: new WrappedNodeExpr(facade.type),
|
|
19453
19460
|
bootstrap: facade.bootstrap.map(wrapReference),
|
|
19454
19461
|
declarations: facade.declarations.map(wrapReference),
|
|
19462
|
+
publicDeclarationTypes: null,
|
|
19455
19463
|
imports: facade.imports.map(wrapReference),
|
|
19464
|
+
includeImportTypes: true,
|
|
19456
19465
|
exports: facade.exports.map(wrapReference),
|
|
19457
19466
|
selectorScopeMode: R3SelectorScopeMode.Inline,
|
|
19458
19467
|
containsForwardDecls: false,
|
|
@@ -19888,7 +19897,7 @@ function publishFacade(global) {
|
|
|
19888
19897
|
* Use of this source code is governed by an MIT-style license that can be
|
|
19889
19898
|
* found in the LICENSE file at https://angular.io/license
|
|
19890
19899
|
*/
|
|
19891
|
-
const VERSION = new Version('14.0.
|
|
19900
|
+
const VERSION = new Version('14.1.0-next.0');
|
|
19892
19901
|
|
|
19893
19902
|
/**
|
|
19894
19903
|
* @license
|
|
@@ -21921,7 +21930,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$6 = '12.0.0';
|
|
|
21921
21930
|
function compileDeclareClassMetadata(metadata) {
|
|
21922
21931
|
const definitionMap = new DefinitionMap();
|
|
21923
21932
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$6));
|
|
21924
|
-
definitionMap.set('version', literal('14.0.
|
|
21933
|
+
definitionMap.set('version', literal('14.1.0-next.0'));
|
|
21925
21934
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
21926
21935
|
definitionMap.set('type', metadata.type);
|
|
21927
21936
|
definitionMap.set('decorators', metadata.decorators);
|
|
@@ -22038,7 +22047,7 @@ function compileDeclareDirectiveFromMetadata(meta) {
|
|
|
22038
22047
|
function createDirectiveDefinitionMap(meta) {
|
|
22039
22048
|
const definitionMap = new DefinitionMap();
|
|
22040
22049
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
22041
|
-
definitionMap.set('version', literal('14.0.
|
|
22050
|
+
definitionMap.set('version', literal('14.1.0-next.0'));
|
|
22042
22051
|
// e.g. `type: MyDirective`
|
|
22043
22052
|
definitionMap.set('type', meta.internalType);
|
|
22044
22053
|
if (meta.isStandalone) {
|
|
@@ -22252,7 +22261,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
|
|
|
22252
22261
|
function compileDeclareFactoryFunction(meta) {
|
|
22253
22262
|
const definitionMap = new DefinitionMap();
|
|
22254
22263
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
22255
|
-
definitionMap.set('version', literal('14.0.
|
|
22264
|
+
definitionMap.set('version', literal('14.1.0-next.0'));
|
|
22256
22265
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22257
22266
|
definitionMap.set('type', meta.internalType);
|
|
22258
22267
|
definitionMap.set('deps', compileDependencies(meta.deps));
|
|
@@ -22294,7 +22303,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
22294
22303
|
function createInjectableDefinitionMap(meta) {
|
|
22295
22304
|
const definitionMap = new DefinitionMap();
|
|
22296
22305
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
22297
|
-
definitionMap.set('version', literal('14.0.
|
|
22306
|
+
definitionMap.set('version', literal('14.1.0-next.0'));
|
|
22298
22307
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22299
22308
|
definitionMap.set('type', meta.internalType);
|
|
22300
22309
|
// Only generate providedIn property if it has a non-null value
|
|
@@ -22352,7 +22361,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
22352
22361
|
function createInjectorDefinitionMap(meta) {
|
|
22353
22362
|
const definitionMap = new DefinitionMap();
|
|
22354
22363
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
22355
|
-
definitionMap.set('version', literal('14.0.
|
|
22364
|
+
definitionMap.set('version', literal('14.1.0-next.0'));
|
|
22356
22365
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22357
22366
|
definitionMap.set('type', meta.internalType);
|
|
22358
22367
|
definitionMap.set('providers', meta.providers);
|
|
@@ -22389,7 +22398,7 @@ function compileDeclareNgModuleFromMetadata(meta) {
|
|
|
22389
22398
|
function createNgModuleDefinitionMap(meta) {
|
|
22390
22399
|
const definitionMap = new DefinitionMap();
|
|
22391
22400
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
22392
|
-
definitionMap.set('version', literal('14.0.
|
|
22401
|
+
definitionMap.set('version', literal('14.1.0-next.0'));
|
|
22393
22402
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22394
22403
|
definitionMap.set('type', meta.internalType);
|
|
22395
22404
|
// We only generate the keys in the metadata if the arrays contain values.
|
|
@@ -22447,7 +22456,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
22447
22456
|
function createPipeDefinitionMap(meta) {
|
|
22448
22457
|
const definitionMap = new DefinitionMap();
|
|
22449
22458
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
22450
|
-
definitionMap.set('version', literal('14.0.
|
|
22459
|
+
definitionMap.set('version', literal('14.1.0-next.0'));
|
|
22451
22460
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22452
22461
|
// e.g. `type: MyPipe`
|
|
22453
22462
|
definitionMap.set('type', meta.internalType);
|