@angular/compiler 19.2.12 → 19.2.14

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.2.12
2
+ * @license Angular v19.2.14
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -17716,8 +17716,7 @@ class _Scanner {
17716
17716
  length;
17717
17717
  peek = 0;
17718
17718
  index = -1;
17719
- literalInterpolationDepth = 0;
17720
- braceDepth = 0;
17719
+ braceStack = [];
17721
17720
  constructor(input) {
17722
17721
  this.input = input;
17723
17722
  this.length = input.length;
@@ -17824,18 +17823,17 @@ class _Scanner {
17824
17823
  return newOperatorToken(start, this.index, str);
17825
17824
  }
17826
17825
  scanOpenBrace(start, code) {
17827
- this.braceDepth++;
17826
+ this.braceStack.push('expression');
17828
17827
  this.advance();
17829
17828
  return newCharacterToken(start, this.index, code);
17830
17829
  }
17831
17830
  scanCloseBrace(start, code) {
17832
17831
  this.advance();
17833
- if (this.braceDepth === 0 && this.literalInterpolationDepth > 0) {
17834
- this.literalInterpolationDepth--;
17832
+ const currentBrace = this.braceStack.pop();
17833
+ if (currentBrace === 'interpolation') {
17835
17834
  this.tokens.push(newOperatorToken(start, this.index, '}'));
17836
17835
  return this.scanTemplateLiteralPart(this.index);
17837
17836
  }
17838
- this.braceDepth--;
17839
17837
  return newCharacterToken(start, this.index, code);
17840
17838
  }
17841
17839
  /**
@@ -17978,7 +17976,7 @@ class _Scanner {
17978
17976
  this.advance();
17979
17977
  // @ts-expect-error
17980
17978
  if (this.peek === $LBRACE) {
17981
- this.literalInterpolationDepth++;
17979
+ this.braceStack.push('interpolation');
17982
17980
  this.tokens.push(new StringToken(start, dollar, buffer + this.input.substring(marker, dollar), StringTokenKind.TemplateLiteralPart));
17983
17981
  this.advance();
17984
17982
  return newOperatorToken(dollar, this.index, this.input.substring(dollar, this.index));
@@ -30949,7 +30947,7 @@ function publishFacade(global) {
30949
30947
  * @description
30950
30948
  * Entry point for all public APIs of the compiler package.
30951
30949
  */
30952
- const VERSION = new Version('19.2.12');
30950
+ const VERSION = new Version('19.2.14');
30953
30951
 
30954
30952
  class CompilerConfig {
30955
30953
  defaultEncapsulation;
@@ -32806,7 +32804,7 @@ const MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = '18.0.0';
32806
32804
  function compileDeclareClassMetadata(metadata) {
32807
32805
  const definitionMap = new DefinitionMap();
32808
32806
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
32809
- definitionMap.set('version', literal('19.2.12'));
32807
+ definitionMap.set('version', literal('19.2.14'));
32810
32808
  definitionMap.set('ngImport', importExpr(Identifiers.core));
32811
32809
  definitionMap.set('type', metadata.type);
32812
32810
  definitionMap.set('decorators', metadata.decorators);
@@ -32824,7 +32822,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
32824
32822
  callbackReturnDefinitionMap.set('ctorParameters', metadata.ctorParameters ?? literal(null));
32825
32823
  callbackReturnDefinitionMap.set('propDecorators', metadata.propDecorators ?? literal(null));
32826
32824
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
32827
- definitionMap.set('version', literal('19.2.12'));
32825
+ definitionMap.set('version', literal('19.2.14'));
32828
32826
  definitionMap.set('ngImport', importExpr(Identifiers.core));
32829
32827
  definitionMap.set('type', metadata.type);
32830
32828
  definitionMap.set('resolveDeferredDeps', compileComponentMetadataAsyncResolver(dependencies));
@@ -32919,7 +32917,7 @@ function createDirectiveDefinitionMap(meta) {
32919
32917
  const definitionMap = new DefinitionMap();
32920
32918
  const minVersion = getMinimumVersionForPartialOutput(meta);
32921
32919
  definitionMap.set('minVersion', literal(minVersion));
32922
- definitionMap.set('version', literal('19.2.12'));
32920
+ definitionMap.set('version', literal('19.2.14'));
32923
32921
  // e.g. `type: MyDirective`
32924
32922
  definitionMap.set('type', meta.type.value);
32925
32923
  if (meta.isStandalone !== undefined) {
@@ -33335,7 +33333,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
33335
33333
  function compileDeclareFactoryFunction(meta) {
33336
33334
  const definitionMap = new DefinitionMap();
33337
33335
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
33338
- definitionMap.set('version', literal('19.2.12'));
33336
+ definitionMap.set('version', literal('19.2.14'));
33339
33337
  definitionMap.set('ngImport', importExpr(Identifiers.core));
33340
33338
  definitionMap.set('type', meta.type.value);
33341
33339
  definitionMap.set('deps', compileDependencies(meta.deps));
@@ -33370,7 +33368,7 @@ function compileDeclareInjectableFromMetadata(meta) {
33370
33368
  function createInjectableDefinitionMap(meta) {
33371
33369
  const definitionMap = new DefinitionMap();
33372
33370
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
33373
- definitionMap.set('version', literal('19.2.12'));
33371
+ definitionMap.set('version', literal('19.2.14'));
33374
33372
  definitionMap.set('ngImport', importExpr(Identifiers.core));
33375
33373
  definitionMap.set('type', meta.type.value);
33376
33374
  // Only generate providedIn property if it has a non-null value
@@ -33421,7 +33419,7 @@ function compileDeclareInjectorFromMetadata(meta) {
33421
33419
  function createInjectorDefinitionMap(meta) {
33422
33420
  const definitionMap = new DefinitionMap();
33423
33421
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
33424
- definitionMap.set('version', literal('19.2.12'));
33422
+ definitionMap.set('version', literal('19.2.14'));
33425
33423
  definitionMap.set('ngImport', importExpr(Identifiers.core));
33426
33424
  definitionMap.set('type', meta.type.value);
33427
33425
  definitionMap.set('providers', meta.providers);
@@ -33454,7 +33452,7 @@ function createNgModuleDefinitionMap(meta) {
33454
33452
  throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
33455
33453
  }
33456
33454
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
33457
- definitionMap.set('version', literal('19.2.12'));
33455
+ definitionMap.set('version', literal('19.2.14'));
33458
33456
  definitionMap.set('ngImport', importExpr(Identifiers.core));
33459
33457
  definitionMap.set('type', meta.type.value);
33460
33458
  // We only generate the keys in the metadata if the arrays contain values.
@@ -33505,7 +33503,7 @@ function compileDeclarePipeFromMetadata(meta) {
33505
33503
  function createPipeDefinitionMap(meta) {
33506
33504
  const definitionMap = new DefinitionMap();
33507
33505
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
33508
- definitionMap.set('version', literal('19.2.12'));
33506
+ definitionMap.set('version', literal('19.2.14'));
33509
33507
  definitionMap.set('ngImport', importExpr(Identifiers.core));
33510
33508
  // e.g. `type: MyPipe`
33511
33509
  definitionMap.set('type', meta.type.value);