@angular-eslint/bundled-angular-compiler 20.1.2-alpha.25 → 20.1.2-alpha.26

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.
Files changed (2) hide show
  1. package/dist/index.js +22 -11
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -279,7 +279,7 @@ __export(index_exports, {
279
279
  });
280
280
  module.exports = __toCommonJS(index_exports);
281
281
 
282
- // ../../node_modules/.pnpm/@angular+compiler@20.2.0/node_modules/@angular/compiler/fesm2022/compiler.mjs
282
+ // ../../node_modules/.pnpm/@angular+compiler@20.2.1/node_modules/@angular/compiler/fesm2022/compiler.mjs
283
283
  var _SELECTOR_REGEXP = new RegExp(
284
284
  `(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,
285
285
  // 8: ","
@@ -23255,6 +23255,11 @@ function stripNonrequiredParentheses(job) {
23255
23255
  case BinaryOperator.NullishCoalesce:
23256
23256
  checkNullishCoalescingParens(expr, requiredParens);
23257
23257
  break;
23258
+ // these 2 cases can be dropped if the regression introduced in 5.9.2 is fixed
23259
+ // see https://github.com/microsoft/TypeScript/issues/62307
23260
+ case BinaryOperator.And:
23261
+ case BinaryOperator.Or:
23262
+ checkAndOrParens(expr, requiredParens);
23258
23263
  }
23259
23264
  }
23260
23265
  });
@@ -23287,6 +23292,12 @@ function checkNullishCoalescingParens(expr, requiredParens) {
23287
23292
  }
23288
23293
  }
23289
23294
  __name(checkNullishCoalescingParens, "checkNullishCoalescingParens");
23295
+ function checkAndOrParens(expr, requiredParens) {
23296
+ if (expr.lhs instanceof ParenthesizedExpr && expr.lhs.expr instanceof BinaryOperatorExpr && expr.lhs.expr.operator === BinaryOperator.NullishCoalesce) {
23297
+ requiredParens.add(expr.lhs);
23298
+ }
23299
+ }
23300
+ __name(checkAndOrParens, "checkAndOrParens");
23290
23301
  function isLogicalAndOr(expr) {
23291
23302
  return expr instanceof BinaryOperatorExpr && (expr.operator === BinaryOperator.And || expr.operator === BinaryOperator.Or);
23292
23303
  }
@@ -30965,7 +30976,7 @@ var MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = "18.0.0";
30965
30976
  function compileDeclareClassMetadata(metadata) {
30966
30977
  const definitionMap = new DefinitionMap();
30967
30978
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
30968
- definitionMap.set("version", literal("20.2.0"));
30979
+ definitionMap.set("version", literal("20.2.1"));
30969
30980
  definitionMap.set("ngImport", importExpr(Identifiers.core));
30970
30981
  definitionMap.set("type", metadata.type);
30971
30982
  definitionMap.set("decorators", metadata.decorators);
@@ -30984,7 +30995,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
30984
30995
  callbackReturnDefinitionMap.set("ctorParameters", metadata.ctorParameters ?? literal(null));
30985
30996
  callbackReturnDefinitionMap.set("propDecorators", metadata.propDecorators ?? literal(null));
30986
30997
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
30987
- definitionMap.set("version", literal("20.2.0"));
30998
+ definitionMap.set("version", literal("20.2.1"));
30988
30999
  definitionMap.set("ngImport", importExpr(Identifiers.core));
30989
31000
  definitionMap.set("type", metadata.type);
30990
31001
  definitionMap.set("resolveDeferredDeps", compileComponentMetadataAsyncResolver(dependencies));
@@ -31053,7 +31064,7 @@ function createDirectiveDefinitionMap(meta) {
31053
31064
  const definitionMap = new DefinitionMap();
31054
31065
  const minVersion = getMinimumVersionForPartialOutput(meta);
31055
31066
  definitionMap.set("minVersion", literal(minVersion));
31056
- definitionMap.set("version", literal("20.2.0"));
31067
+ definitionMap.set("version", literal("20.2.1"));
31057
31068
  definitionMap.set("type", meta.type.value);
31058
31069
  if (meta.isStandalone !== void 0) {
31059
31070
  definitionMap.set("isStandalone", literal(meta.isStandalone));
@@ -31380,7 +31391,7 @@ var MINIMUM_PARTIAL_LINKER_VERSION$4 = "12.0.0";
31380
31391
  function compileDeclareFactoryFunction(meta) {
31381
31392
  const definitionMap = new DefinitionMap();
31382
31393
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
31383
- definitionMap.set("version", literal("20.2.0"));
31394
+ definitionMap.set("version", literal("20.2.1"));
31384
31395
  definitionMap.set("ngImport", importExpr(Identifiers.core));
31385
31396
  definitionMap.set("type", meta.type.value);
31386
31397
  definitionMap.set("deps", compileDependencies(meta.deps));
@@ -31403,7 +31414,7 @@ __name(compileDeclareInjectableFromMetadata, "compileDeclareInjectableFromMetada
31403
31414
  function createInjectableDefinitionMap(meta) {
31404
31415
  const definitionMap = new DefinitionMap();
31405
31416
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
31406
- definitionMap.set("version", literal("20.2.0"));
31417
+ definitionMap.set("version", literal("20.2.1"));
31407
31418
  definitionMap.set("ngImport", importExpr(Identifiers.core));
31408
31419
  definitionMap.set("type", meta.type.value);
31409
31420
  if (meta.providedIn !== void 0) {
@@ -31441,7 +31452,7 @@ __name(compileDeclareInjectorFromMetadata, "compileDeclareInjectorFromMetadata")
31441
31452
  function createInjectorDefinitionMap(meta) {
31442
31453
  const definitionMap = new DefinitionMap();
31443
31454
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
31444
- definitionMap.set("version", literal("20.2.0"));
31455
+ definitionMap.set("version", literal("20.2.1"));
31445
31456
  definitionMap.set("ngImport", importExpr(Identifiers.core));
31446
31457
  definitionMap.set("type", meta.type.value);
31447
31458
  definitionMap.set("providers", meta.providers);
@@ -31465,7 +31476,7 @@ function createNgModuleDefinitionMap(meta) {
31465
31476
  throw new Error("Invalid path! Local compilation mode should not get into the partial compilation path");
31466
31477
  }
31467
31478
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
31468
- definitionMap.set("version", literal("20.2.0"));
31479
+ definitionMap.set("version", literal("20.2.1"));
31469
31480
  definitionMap.set("ngImport", importExpr(Identifiers.core));
31470
31481
  definitionMap.set("type", meta.type.value);
31471
31482
  if (meta.bootstrap.length > 0) {
@@ -31500,7 +31511,7 @@ __name(compileDeclarePipeFromMetadata, "compileDeclarePipeFromMetadata");
31500
31511
  function createPipeDefinitionMap(meta) {
31501
31512
  const definitionMap = new DefinitionMap();
31502
31513
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
31503
- definitionMap.set("version", literal("20.2.0"));
31514
+ definitionMap.set("version", literal("20.2.1"));
31504
31515
  definitionMap.set("ngImport", importExpr(Identifiers.core));
31505
31516
  definitionMap.set("type", meta.type.value);
31506
31517
  if (meta.isStandalone !== void 0) {
@@ -31597,7 +31608,7 @@ function compileHmrUpdateCallback(definitions, constantStatements, meta) {
31597
31608
  return new DeclareFunctionStmt(`${meta.className}_UpdateMetadata`, params, body, null, StmtModifier.Final);
31598
31609
  }
31599
31610
  __name(compileHmrUpdateCallback, "compileHmrUpdateCallback");
31600
- var VERSION = new Version("20.2.0");
31611
+ var VERSION = new Version("20.2.1");
31601
31612
  publishFacade(_global);
31602
31613
  // Annotate the CommonJS export names for ESM import in node:
31603
31614
  0 && (module.exports = {
@@ -31861,7 +31872,7 @@ publishFacade(_global);
31861
31872
 
31862
31873
  @angular/compiler/fesm2022/compiler.mjs:
31863
31874
  (**
31864
- * @license Angular v20.2.0
31875
+ * @license Angular v20.2.1
31865
31876
  * (c) 2010-2025 Google LLC. https://angular.io/
31866
31877
  * License: MIT
31867
31878
  *)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-eslint/bundled-angular-compiler",
3
- "version": "20.1.2-alpha.25",
3
+ "version": "20.1.2-alpha.26",
4
4
  "description": "A CJS bundled version of @angular/compiler",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",