@angular/compiler-cli 13.0.0-rc.0 → 13.0.0-rc.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.
@@ -1086,7 +1086,7 @@ var \u0275\u0275ngDeclareNgModule = "\u0275\u0275ngDeclareNgModule";
1086
1086
  var \u0275\u0275ngDeclarePipe = "\u0275\u0275ngDeclarePipe";
1087
1087
  function createLinkerMap(environment, sourceUrl, code) {
1088
1088
  const linkers = new Map();
1089
- const LATEST_VERSION_RANGE = getRange("<=", "13.0.0-rc.0");
1089
+ const LATEST_VERSION_RANGE = getRange("<=", "13.0.0-rc.1");
1090
1090
  linkers.set(\u0275\u0275ngDeclareDirective, [
1091
1091
  { range: LATEST_VERSION_RANGE, linker: new PartialDirectiveLinkerVersion1(sourceUrl, code) }
1092
1092
  ]);
@@ -1133,7 +1133,7 @@ var PartialLinkerSelector = class {
1133
1133
  throw new Error(`Unknown partial declaration function ${functionName}.`);
1134
1134
  }
1135
1135
  const linkerRanges = this.linkers.get(functionName);
1136
- if (version === "13.0.0-rc.0") {
1136
+ if (version === "13.0.0-rc.1") {
1137
1137
  return linkerRanges[linkerRanges.length - 1].linker;
1138
1138
  }
1139
1139
  const declarationRange = getRange(">=", minVersion);
@@ -795,7 +795,7 @@ var declarationFunctions = [
795
795
  ];
796
796
  function createLinkerMap(environment, sourceUrl, code) {
797
797
  const linkers = new Map();
798
- const LATEST_VERSION_RANGE = getRange("<=", "13.0.0-rc.0");
798
+ const LATEST_VERSION_RANGE = getRange("<=", "13.0.0-rc.1");
799
799
  linkers.set(\u0275\u0275ngDeclareDirective, [
800
800
  { range: LATEST_VERSION_RANGE, linker: new PartialDirectiveLinkerVersion1(sourceUrl, code) }
801
801
  ]);
@@ -842,7 +842,7 @@ var PartialLinkerSelector = class {
842
842
  throw new Error(`Unknown partial declaration function ${functionName}.`);
843
843
  }
844
844
  const linkerRanges = this.linkers.get(functionName);
845
- if (version === "13.0.0-rc.0") {
845
+ if (version === "13.0.0-rc.1") {
846
846
  return linkerRanges[linkerRanges.length - 1].linker;
847
847
  }
848
848
  const declarationRange = getRange(">=", minVersion);
@@ -3482,25 +3482,31 @@ var UmdReflectionHost = class extends Esm5ReflectionHost {
3482
3482
  }
3483
3483
  };
3484
3484
  function parseStatementForUmdModule(statement) {
3485
- const wrapperCall = getUmdWrapperCall(statement);
3486
- if (!wrapperCall)
3485
+ const wrapper = getUmdWrapper(statement);
3486
+ if (wrapper === null)
3487
3487
  return null;
3488
- const wrapperFn = wrapperCall.expression;
3489
- if (!ts14.isFunctionExpression(wrapperFn))
3490
- return null;
3491
- const factoryFnParamIndex = wrapperFn.parameters.findIndex((parameter) => ts14.isIdentifier(parameter.name) && parameter.name.text === "factory");
3488
+ const factoryFnParamIndex = wrapper.fn.parameters.findIndex((parameter) => ts14.isIdentifier(parameter.name) && parameter.name.text === "factory");
3492
3489
  if (factoryFnParamIndex === -1)
3493
3490
  return null;
3494
- const factoryFn = stripParentheses(wrapperCall.arguments[factoryFnParamIndex]);
3491
+ const factoryFn = stripParentheses(wrapper.call.arguments[factoryFnParamIndex]);
3495
3492
  if (!factoryFn || !ts14.isFunctionExpression(factoryFn))
3496
3493
  return null;
3497
- return { wrapperFn, factoryFn };
3494
+ return { wrapperFn: wrapper.fn, factoryFn };
3498
3495
  }
3499
- function getUmdWrapperCall(statement) {
3500
- if (!ts14.isExpressionStatement(statement) || !ts14.isParenthesizedExpression(statement.expression) || !ts14.isCallExpression(statement.expression.expression) || !ts14.isFunctionExpression(statement.expression.expression.expression)) {
3496
+ function getUmdWrapper(statement) {
3497
+ if (!ts14.isExpressionStatement(statement))
3501
3498
  return null;
3499
+ if (ts14.isParenthesizedExpression(statement.expression) && ts14.isCallExpression(statement.expression.expression) && ts14.isFunctionExpression(statement.expression.expression.expression)) {
3500
+ const call = statement.expression.expression;
3501
+ const fn = statement.expression.expression.expression;
3502
+ return { call, fn };
3503
+ }
3504
+ if (ts14.isCallExpression(statement.expression) && ts14.isParenthesizedExpression(statement.expression.expression) && ts14.isFunctionExpression(statement.expression.expression.expression)) {
3505
+ const call = statement.expression;
3506
+ const fn = statement.expression.expression.expression;
3507
+ return { call, fn };
3502
3508
  }
3503
- return statement.expression.expression;
3509
+ return null;
3504
3510
  }
3505
3511
  function getImportsOfUmdModule(umdModule) {
3506
3512
  const imports = [];
@@ -4452,7 +4458,7 @@ var ProgramBasedEntryPointFinder = class extends TracingEntryPointFinder {
4452
4458
  };
4453
4459
 
4454
4460
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/build_marker.mjs
4455
- var NGCC_VERSION = "13.0.0-rc.0";
4461
+ var NGCC_VERSION = "13.0.0-rc.1";
4456
4462
  function needsCleaning(packageJson) {
4457
4463
  return Object.values(packageJson.__processed_by_ivy_ngcc__ || {}).some((value) => value !== NGCC_VERSION);
4458
4464
  }
@@ -15364,6 +15370,11 @@ import { ClassStmt as ClassStmt2, StmtModifier as StmtModifier3 } from "@angular
15364
15370
  import ts110 from "typescript";
15365
15371
 
15366
15372
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
15373
+ var VE_DISABLED_MESSAGE = `
15374
+ This compilation is using the View Engine compiler which is no longer supported by the Angular team
15375
+ and is being removed. Please upgrade to the Ivy compiler by switching to \`NgtscProgram\`. See
15376
+ https://angular.io/guide/ivy for more information.
15377
+ `.trim().split("\n").join(" ");
15367
15378
  var LOWER_FIELDS = ["useValue", "useFactory", "data", "id", "loadChildren"];
15368
15379
  var R3_LOWER_FIELDS = [...LOWER_FIELDS, "providers", "imports", "exports"];
15369
15380
  var emptyModules = {