@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.
package/bundles/index.js CHANGED
@@ -446,7 +446,7 @@ import { StaticReflector, StaticSymbol } from "@angular/compiler";
446
446
 
447
447
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/version.mjs
448
448
  import { Version } from "@angular/compiler";
449
- var VERSION = new Version("13.0.0-rc.0");
449
+ var VERSION = new Version("13.0.0-rc.1");
450
450
 
451
451
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/metadata/collector.mjs
452
452
  import ts4 from "typescript";
@@ -19255,6 +19255,11 @@ function getAngularClassTransformerFactory(modules, annotateForClosureCompiler)
19255
19255
 
19256
19256
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/program.mjs
19257
19257
  var MAX_FILE_COUNT_FOR_SINGLE_FILE_EMIT = 20;
19258
+ var VE_DISABLED_MESSAGE = `
19259
+ This compilation is using the View Engine compiler which is no longer supported by the Angular team
19260
+ and is being removed. Please upgrade to the Ivy compiler by switching to \`NgtscProgram\`. See
19261
+ https://angular.io/guide/ivy for more information.
19262
+ `.trim().split("\n").join(" ");
19258
19263
  var LOWER_FIELDS = ["useValue", "useFactory", "data", "id", "loadChildren"];
19259
19264
  var R3_LOWER_FIELDS = [...LOWER_FIELDS, "providers", "imports", "exports"];
19260
19265
  var tempProgramHandlerForTest = null;
@@ -19271,6 +19276,9 @@ var AngularCompilerProgram = class {
19271
19276
  this._optionsDiagnostics = [];
19272
19277
  this._transformTsDiagnostics = [];
19273
19278
  this._isCompilingAngularCore = null;
19279
+ if (true) {
19280
+ throw new Error(VE_DISABLED_MESSAGE);
19281
+ }
19274
19282
  this.rootNames = [...rootNames];
19275
19283
  if (!options.disableTypeScriptVersionCheck) {
19276
19284
  verifySupportedTypeScriptVersion();
@@ -19973,9 +19981,6 @@ function isIvyNgModule(clazz) {
19973
19981
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/perform_compile.mjs
19974
19982
  import { isSyntaxError as isSyntaxError2 } from "@angular/compiler";
19975
19983
  import ts86 from "typescript";
19976
- function filterErrorsAndWarnings(diagnostics) {
19977
- return diagnostics.filter((d) => d.category !== ts86.DiagnosticCategory.Message);
19978
- }
19979
19984
  var defaultFormatHost = {
19980
19985
  getCurrentDirectory: () => ts86.sys.getCurrentDirectory(),
19981
19986
  getCanonicalFileName: (fileName) => fileName,
@@ -20138,7 +20143,9 @@ function getExtendedConfigPathWorker(configFile, extendsValue, host, fs5) {
20138
20143
  return null;
20139
20144
  }
20140
20145
  function exitCodeFromResult(diags) {
20141
- if (!diags || filterErrorsAndWarnings(diags).length === 0) {
20146
+ if (!diags)
20147
+ return 0;
20148
+ if (diags.every((diag) => diag.category !== ts86.DiagnosticCategory.Error)) {
20142
20149
  return 0;
20143
20150
  }
20144
20151
  return diags.some((d) => d.source === "angular" && d.code === UNKNOWN_ERROR_CODE) ? 2 : 1;
@@ -20358,7 +20365,6 @@ export {
20358
20365
  defaultGatherDiagnostics,
20359
20366
  dirname,
20360
20367
  exitCodeFromResult,
20361
- filterErrorsAndWarnings,
20362
20368
  flattenDiagnosticMessageChain,
20363
20369
  formatDiagnostic,
20364
20370
  formatDiagnosticPosition,