@angular/compiler 19.2.8 → 19.2.10

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.8
2
+ * @license Angular v19.2.10
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -3151,28 +3151,26 @@ function stringify(token) {
3151
3151
  return token;
3152
3152
  }
3153
3153
  if (Array.isArray(token)) {
3154
- return '[' + token.map(stringify).join(', ') + ']';
3154
+ return `[${token.map(stringify).join(', ')}]`;
3155
3155
  }
3156
3156
  if (token == null) {
3157
3157
  return '' + token;
3158
3158
  }
3159
- if (token.overriddenName) {
3160
- return `${token.overriddenName}`;
3161
- }
3162
- if (token.name) {
3163
- return `${token.name}`;
3159
+ const name = token.overriddenName || token.name;
3160
+ if (name) {
3161
+ return `${name}`;
3164
3162
  }
3165
3163
  if (!token.toString) {
3166
3164
  return 'object';
3167
3165
  }
3168
3166
  // WARNING: do not try to `JSON.stringify(token)` here
3169
3167
  // see https://github.com/angular/angular/issues/23440
3170
- const res = token.toString();
3171
- if (res == null) {
3172
- return '' + res;
3168
+ const result = token.toString();
3169
+ if (result == null) {
3170
+ return '' + result;
3173
3171
  }
3174
- const newLineIndex = res.indexOf('\n');
3175
- return newLineIndex === -1 ? res : res.substring(0, newLineIndex);
3172
+ const newLineIndex = result.indexOf('\n');
3173
+ return newLineIndex >= 0 ? result.slice(0, newLineIndex) : result;
3176
3174
  }
3177
3175
  class Version {
3178
3176
  full;
@@ -30923,7 +30921,7 @@ function publishFacade(global) {
30923
30921
  * @description
30924
30922
  * Entry point for all public APIs of the compiler package.
30925
30923
  */
30926
- const VERSION = new Version('19.2.8');
30924
+ const VERSION = new Version('19.2.10');
30927
30925
 
30928
30926
  class CompilerConfig {
30929
30927
  defaultEncapsulation;
@@ -32791,7 +32789,7 @@ const MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = '18.0.0';
32791
32789
  function compileDeclareClassMetadata(metadata) {
32792
32790
  const definitionMap = new DefinitionMap();
32793
32791
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
32794
- definitionMap.set('version', literal('19.2.8'));
32792
+ definitionMap.set('version', literal('19.2.10'));
32795
32793
  definitionMap.set('ngImport', importExpr(Identifiers.core));
32796
32794
  definitionMap.set('type', metadata.type);
32797
32795
  definitionMap.set('decorators', metadata.decorators);
@@ -32809,7 +32807,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
32809
32807
  callbackReturnDefinitionMap.set('ctorParameters', metadata.ctorParameters ?? literal(null));
32810
32808
  callbackReturnDefinitionMap.set('propDecorators', metadata.propDecorators ?? literal(null));
32811
32809
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
32812
- definitionMap.set('version', literal('19.2.8'));
32810
+ definitionMap.set('version', literal('19.2.10'));
32813
32811
  definitionMap.set('ngImport', importExpr(Identifiers.core));
32814
32812
  definitionMap.set('type', metadata.type);
32815
32813
  definitionMap.set('resolveDeferredDeps', compileComponentMetadataAsyncResolver(dependencies));
@@ -32904,7 +32902,7 @@ function createDirectiveDefinitionMap(meta) {
32904
32902
  const definitionMap = new DefinitionMap();
32905
32903
  const minVersion = getMinimumVersionForPartialOutput(meta);
32906
32904
  definitionMap.set('minVersion', literal(minVersion));
32907
- definitionMap.set('version', literal('19.2.8'));
32905
+ definitionMap.set('version', literal('19.2.10'));
32908
32906
  // e.g. `type: MyDirective`
32909
32907
  definitionMap.set('type', meta.type.value);
32910
32908
  if (meta.isStandalone !== undefined) {
@@ -33320,7 +33318,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
33320
33318
  function compileDeclareFactoryFunction(meta) {
33321
33319
  const definitionMap = new DefinitionMap();
33322
33320
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
33323
- definitionMap.set('version', literal('19.2.8'));
33321
+ definitionMap.set('version', literal('19.2.10'));
33324
33322
  definitionMap.set('ngImport', importExpr(Identifiers.core));
33325
33323
  definitionMap.set('type', meta.type.value);
33326
33324
  definitionMap.set('deps', compileDependencies(meta.deps));
@@ -33355,7 +33353,7 @@ function compileDeclareInjectableFromMetadata(meta) {
33355
33353
  function createInjectableDefinitionMap(meta) {
33356
33354
  const definitionMap = new DefinitionMap();
33357
33355
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
33358
- definitionMap.set('version', literal('19.2.8'));
33356
+ definitionMap.set('version', literal('19.2.10'));
33359
33357
  definitionMap.set('ngImport', importExpr(Identifiers.core));
33360
33358
  definitionMap.set('type', meta.type.value);
33361
33359
  // Only generate providedIn property if it has a non-null value
@@ -33406,7 +33404,7 @@ function compileDeclareInjectorFromMetadata(meta) {
33406
33404
  function createInjectorDefinitionMap(meta) {
33407
33405
  const definitionMap = new DefinitionMap();
33408
33406
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
33409
- definitionMap.set('version', literal('19.2.8'));
33407
+ definitionMap.set('version', literal('19.2.10'));
33410
33408
  definitionMap.set('ngImport', importExpr(Identifiers.core));
33411
33409
  definitionMap.set('type', meta.type.value);
33412
33410
  definitionMap.set('providers', meta.providers);
@@ -33439,7 +33437,7 @@ function createNgModuleDefinitionMap(meta) {
33439
33437
  throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
33440
33438
  }
33441
33439
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
33442
- definitionMap.set('version', literal('19.2.8'));
33440
+ definitionMap.set('version', literal('19.2.10'));
33443
33441
  definitionMap.set('ngImport', importExpr(Identifiers.core));
33444
33442
  definitionMap.set('type', meta.type.value);
33445
33443
  // We only generate the keys in the metadata if the arrays contain values.
@@ -33490,7 +33488,7 @@ function compileDeclarePipeFromMetadata(meta) {
33490
33488
  function createPipeDefinitionMap(meta) {
33491
33489
  const definitionMap = new DefinitionMap();
33492
33490
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
33493
- definitionMap.set('version', literal('19.2.8'));
33491
+ definitionMap.set('version', literal('19.2.10'));
33494
33492
  definitionMap.set('ngImport', importExpr(Identifiers.core));
33495
33493
  // e.g. `type: MyPipe`
33496
33494
  definitionMap.set('type', meta.type.value);