@angular/compiler 14.1.0-next.0 → 14.1.0-next.1
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 +6 -3
- 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/version.mjs +1 -1
- package/fesm2015/compiler.mjs +14 -11
- package/fesm2015/compiler.mjs.map +1 -1
- package/fesm2015/testing.mjs +1 -1
- package/fesm2020/compiler.mjs +14 -11
- package/fesm2020/compiler.mjs.map +1 -1
- package/fesm2020/testing.mjs +1 -1
- package/index.d.ts +1 -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.1.0-next.
|
|
2
|
+
* @license Angular v14.1.0-next.1
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -19441,7 +19441,9 @@ class CompilerFacadeImpl {
|
|
|
19441
19441
|
name: facade.name,
|
|
19442
19442
|
type: wrapReference(facade.type),
|
|
19443
19443
|
internalType: new WrappedNodeExpr(facade.type),
|
|
19444
|
-
providers:
|
|
19444
|
+
providers: facade.providers && facade.providers.length > 0 ?
|
|
19445
|
+
new WrappedNodeExpr(facade.providers) :
|
|
19446
|
+
null,
|
|
19445
19447
|
imports: facade.imports.map(i => new WrappedNodeExpr(i)),
|
|
19446
19448
|
};
|
|
19447
19449
|
const res = compileInjector(meta);
|
|
@@ -19878,7 +19880,8 @@ function convertDeclareInjectorFacadeToMetadata(declaration) {
|
|
|
19878
19880
|
name: declaration.type.name,
|
|
19879
19881
|
type: wrapReference(declaration.type),
|
|
19880
19882
|
internalType: new WrappedNodeExpr(declaration.type),
|
|
19881
|
-
providers: declaration.providers !== undefined
|
|
19883
|
+
providers: declaration.providers !== undefined && declaration.providers.length > 0 ?
|
|
19884
|
+
new WrappedNodeExpr(declaration.providers) :
|
|
19882
19885
|
null,
|
|
19883
19886
|
imports: declaration.imports !== undefined ?
|
|
19884
19887
|
declaration.imports.map(i => new WrappedNodeExpr(i)) :
|
|
@@ -19897,7 +19900,7 @@ function publishFacade(global) {
|
|
|
19897
19900
|
* Use of this source code is governed by an MIT-style license that can be
|
|
19898
19901
|
* found in the LICENSE file at https://angular.io/license
|
|
19899
19902
|
*/
|
|
19900
|
-
const VERSION = new Version('14.1.0-next.
|
|
19903
|
+
const VERSION = new Version('14.1.0-next.1');
|
|
19901
19904
|
|
|
19902
19905
|
/**
|
|
19903
19906
|
* @license
|
|
@@ -21930,7 +21933,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$6 = '12.0.0';
|
|
|
21930
21933
|
function compileDeclareClassMetadata(metadata) {
|
|
21931
21934
|
const definitionMap = new DefinitionMap();
|
|
21932
21935
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$6));
|
|
21933
|
-
definitionMap.set('version', literal('14.1.0-next.
|
|
21936
|
+
definitionMap.set('version', literal('14.1.0-next.1'));
|
|
21934
21937
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
21935
21938
|
definitionMap.set('type', metadata.type);
|
|
21936
21939
|
definitionMap.set('decorators', metadata.decorators);
|
|
@@ -22047,7 +22050,7 @@ function compileDeclareDirectiveFromMetadata(meta) {
|
|
|
22047
22050
|
function createDirectiveDefinitionMap(meta) {
|
|
22048
22051
|
const definitionMap = new DefinitionMap();
|
|
22049
22052
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
22050
|
-
definitionMap.set('version', literal('14.1.0-next.
|
|
22053
|
+
definitionMap.set('version', literal('14.1.0-next.1'));
|
|
22051
22054
|
// e.g. `type: MyDirective`
|
|
22052
22055
|
definitionMap.set('type', meta.internalType);
|
|
22053
22056
|
if (meta.isStandalone) {
|
|
@@ -22261,7 +22264,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
|
|
|
22261
22264
|
function compileDeclareFactoryFunction(meta) {
|
|
22262
22265
|
const definitionMap = new DefinitionMap();
|
|
22263
22266
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
22264
|
-
definitionMap.set('version', literal('14.1.0-next.
|
|
22267
|
+
definitionMap.set('version', literal('14.1.0-next.1'));
|
|
22265
22268
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22266
22269
|
definitionMap.set('type', meta.internalType);
|
|
22267
22270
|
definitionMap.set('deps', compileDependencies(meta.deps));
|
|
@@ -22303,7 +22306,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
22303
22306
|
function createInjectableDefinitionMap(meta) {
|
|
22304
22307
|
const definitionMap = new DefinitionMap();
|
|
22305
22308
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
22306
|
-
definitionMap.set('version', literal('14.1.0-next.
|
|
22309
|
+
definitionMap.set('version', literal('14.1.0-next.1'));
|
|
22307
22310
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22308
22311
|
definitionMap.set('type', meta.internalType);
|
|
22309
22312
|
// Only generate providedIn property if it has a non-null value
|
|
@@ -22361,7 +22364,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
22361
22364
|
function createInjectorDefinitionMap(meta) {
|
|
22362
22365
|
const definitionMap = new DefinitionMap();
|
|
22363
22366
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
22364
|
-
definitionMap.set('version', literal('14.1.0-next.
|
|
22367
|
+
definitionMap.set('version', literal('14.1.0-next.1'));
|
|
22365
22368
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22366
22369
|
definitionMap.set('type', meta.internalType);
|
|
22367
22370
|
definitionMap.set('providers', meta.providers);
|
|
@@ -22398,7 +22401,7 @@ function compileDeclareNgModuleFromMetadata(meta) {
|
|
|
22398
22401
|
function createNgModuleDefinitionMap(meta) {
|
|
22399
22402
|
const definitionMap = new DefinitionMap();
|
|
22400
22403
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
22401
|
-
definitionMap.set('version', literal('14.1.0-next.
|
|
22404
|
+
definitionMap.set('version', literal('14.1.0-next.1'));
|
|
22402
22405
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22403
22406
|
definitionMap.set('type', meta.internalType);
|
|
22404
22407
|
// We only generate the keys in the metadata if the arrays contain values.
|
|
@@ -22456,7 +22459,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
22456
22459
|
function createPipeDefinitionMap(meta) {
|
|
22457
22460
|
const definitionMap = new DefinitionMap();
|
|
22458
22461
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
22459
|
-
definitionMap.set('version', literal('14.1.0-next.
|
|
22462
|
+
definitionMap.set('version', literal('14.1.0-next.1'));
|
|
22460
22463
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22461
22464
|
// e.g. `type: MyPipe`
|
|
22462
22465
|
definitionMap.set('type', meta.internalType);
|