@angular/compiler 16.1.4 → 16.1.6
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/esm2022/src/expression_parser/ast.mjs +1 -1
- package/esm2022/src/render3/partial/class_metadata.mjs +1 -1
- package/esm2022/src/render3/partial/directive.mjs +1 -1
- package/esm2022/src/render3/partial/factory.mjs +1 -1
- package/esm2022/src/render3/partial/injectable.mjs +1 -1
- package/esm2022/src/render3/partial/injector.mjs +1 -1
- package/esm2022/src/render3/partial/ng_module.mjs +1 -1
- package/esm2022/src/render3/partial/pipe.mjs +1 -1
- package/esm2022/src/template/pipeline/src/phases/naming.mjs +6 -6
- package/esm2022/src/version.mjs +1 -1
- package/fesm2022/compiler.mjs +13 -14
- package/fesm2022/compiler.mjs.map +1 -1
- package/fesm2022/testing.mjs +1 -1
- package/index.d.ts +4 -4
- package/package.json +2 -2
- package/testing/index.d.ts +1 -1
package/fesm2022/compiler.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v16.1.
|
|
2
|
+
* @license Angular v16.1.6
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -10296,7 +10296,7 @@ function phaseNaming(cpl) {
|
|
|
10296
10296
|
}
|
|
10297
10297
|
function addNamesToView(view, baseName, state) {
|
|
10298
10298
|
if (view.fnName === null) {
|
|
10299
|
-
view.fnName = `${baseName}_Template
|
|
10299
|
+
view.fnName = sanitizeIdentifier(`${baseName}_Template`);
|
|
10300
10300
|
}
|
|
10301
10301
|
// Keep track of the names we assign to variables in the view. We'll need to propagate these
|
|
10302
10302
|
// into reads of those variables afterwards.
|
|
@@ -10310,7 +10310,8 @@ function addNamesToView(view, baseName, state) {
|
|
|
10310
10310
|
if (op.slot === null) {
|
|
10311
10311
|
throw new Error(`Expected a slot to be assigned`);
|
|
10312
10312
|
}
|
|
10313
|
-
op.handlerFnName =
|
|
10313
|
+
op.handlerFnName =
|
|
10314
|
+
sanitizeIdentifier(`${view.fnName}_${op.tag}_${op.name}_${op.slot}_listener`);
|
|
10314
10315
|
}
|
|
10315
10316
|
break;
|
|
10316
10317
|
case OpKind.Variable:
|
|
@@ -10321,9 +10322,7 @@ function addNamesToView(view, baseName, state) {
|
|
|
10321
10322
|
if (op.slot === null) {
|
|
10322
10323
|
throw new Error(`Expected slot to be assigned`);
|
|
10323
10324
|
}
|
|
10324
|
-
|
|
10325
|
-
const safeTagName = op.tag.replace('-', '_');
|
|
10326
|
-
addNamesToView(childView, `${baseName}_${safeTagName}_${op.slot}`, state);
|
|
10325
|
+
addNamesToView(childView, `${baseName}_${op.tag}_${op.slot}`, state);
|
|
10327
10326
|
break;
|
|
10328
10327
|
}
|
|
10329
10328
|
}
|
|
@@ -23412,7 +23411,7 @@ function publishFacade(global) {
|
|
|
23412
23411
|
* @description
|
|
23413
23412
|
* Entry point for all public APIs of the compiler package.
|
|
23414
23413
|
*/
|
|
23415
|
-
const VERSION = new Version('16.1.
|
|
23414
|
+
const VERSION = new Version('16.1.6');
|
|
23416
23415
|
|
|
23417
23416
|
class CompilerConfig {
|
|
23418
23417
|
constructor({ defaultEncapsulation = ViewEncapsulation.Emulated, useJit = true, missingTranslation = null, preserveWhitespaces, strictInjectionParameters } = {}) {
|
|
@@ -25340,7 +25339,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$6 = '12.0.0';
|
|
|
25340
25339
|
function compileDeclareClassMetadata(metadata) {
|
|
25341
25340
|
const definitionMap = new DefinitionMap();
|
|
25342
25341
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$6));
|
|
25343
|
-
definitionMap.set('version', literal('16.1.
|
|
25342
|
+
definitionMap.set('version', literal('16.1.6'));
|
|
25344
25343
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
25345
25344
|
definitionMap.set('type', metadata.type);
|
|
25346
25345
|
definitionMap.set('decorators', metadata.decorators);
|
|
@@ -25443,7 +25442,7 @@ function compileDeclareDirectiveFromMetadata(meta) {
|
|
|
25443
25442
|
function createDirectiveDefinitionMap(meta) {
|
|
25444
25443
|
const definitionMap = new DefinitionMap();
|
|
25445
25444
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
25446
|
-
definitionMap.set('version', literal('16.1.
|
|
25445
|
+
definitionMap.set('version', literal('16.1.6'));
|
|
25447
25446
|
// e.g. `type: MyDirective`
|
|
25448
25447
|
definitionMap.set('type', meta.type.value);
|
|
25449
25448
|
if (meta.isStandalone) {
|
|
@@ -25671,7 +25670,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
|
|
|
25671
25670
|
function compileDeclareFactoryFunction(meta) {
|
|
25672
25671
|
const definitionMap = new DefinitionMap();
|
|
25673
25672
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
25674
|
-
definitionMap.set('version', literal('16.1.
|
|
25673
|
+
definitionMap.set('version', literal('16.1.6'));
|
|
25675
25674
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
25676
25675
|
definitionMap.set('type', meta.type.value);
|
|
25677
25676
|
definitionMap.set('deps', compileDependencies(meta.deps));
|
|
@@ -25706,7 +25705,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
25706
25705
|
function createInjectableDefinitionMap(meta) {
|
|
25707
25706
|
const definitionMap = new DefinitionMap();
|
|
25708
25707
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
25709
|
-
definitionMap.set('version', literal('16.1.
|
|
25708
|
+
definitionMap.set('version', literal('16.1.6'));
|
|
25710
25709
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
25711
25710
|
definitionMap.set('type', meta.type.value);
|
|
25712
25711
|
// Only generate providedIn property if it has a non-null value
|
|
@@ -25757,7 +25756,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
25757
25756
|
function createInjectorDefinitionMap(meta) {
|
|
25758
25757
|
const definitionMap = new DefinitionMap();
|
|
25759
25758
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
25760
|
-
definitionMap.set('version', literal('16.1.
|
|
25759
|
+
definitionMap.set('version', literal('16.1.6'));
|
|
25761
25760
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
25762
25761
|
definitionMap.set('type', meta.type.value);
|
|
25763
25762
|
definitionMap.set('providers', meta.providers);
|
|
@@ -25790,7 +25789,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
25790
25789
|
throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
|
|
25791
25790
|
}
|
|
25792
25791
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
25793
|
-
definitionMap.set('version', literal('16.1.
|
|
25792
|
+
definitionMap.set('version', literal('16.1.6'));
|
|
25794
25793
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
25795
25794
|
definitionMap.set('type', meta.type.value);
|
|
25796
25795
|
// We only generate the keys in the metadata if the arrays contain values.
|
|
@@ -25841,7 +25840,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
25841
25840
|
function createPipeDefinitionMap(meta) {
|
|
25842
25841
|
const definitionMap = new DefinitionMap();
|
|
25843
25842
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
25844
|
-
definitionMap.set('version', literal('16.1.
|
|
25843
|
+
definitionMap.set('version', literal('16.1.6'));
|
|
25845
25844
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
25846
25845
|
// e.g. `type: MyPipe`
|
|
25847
25846
|
definitionMap.set('type', meta.type.value);
|