@angular/compiler-cli 17.3.0 → 17.3.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.
@@ -271,7 +271,7 @@ import { compileDirectiveFromMetadata, makeBindingParser, ParseLocation, ParseSo
271
271
 
272
272
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/util.mjs
273
273
  import { createMayBeForwardRefExpression, outputAst as o2 } from "@angular/compiler";
274
- var PLACEHOLDER_VERSION = "17.3.0";
274
+ var PLACEHOLDER_VERSION = "17.3.1";
275
275
  var SHOULD_USE_TEMPLATE_PIPELINE_FOR_LINKER = true;
276
276
  function wrapReference(wrapped) {
277
277
  return { value: wrapped, type: wrapped };
@@ -12,7 +12,7 @@ import {
12
12
  formatDiagnostics,
13
13
  performCompilation,
14
14
  readConfiguration
15
- } from "./chunk-X6GFRI46.js";
15
+ } from "./chunk-VH6EDOMC.js";
16
16
 
17
17
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/main.mjs
18
18
  import ts2 from "typescript";
@@ -342,4 +342,4 @@ export {
342
342
  * Use of this source code is governed by an MIT-style license that can be
343
343
  * found in the LICENSE file at https://angular.io/license
344
344
  */
345
- //# sourceMappingURL=chunk-GQ63H5AL.js.map
345
+ //# sourceMappingURL=chunk-F2QV65AH.js.map
@@ -286,6 +286,7 @@ function verifySupportedTypeScriptVersion() {
286
286
  }
287
287
 
288
288
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
289
+ import { R3Identifiers as R3Identifiers5 } from "@angular/compiler";
289
290
  import ts38 from "typescript";
290
291
 
291
292
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/cycles/src/analyzer.mjs
@@ -7854,6 +7855,25 @@ function unwrapAstWithSource(ast) {
7854
7855
  return ast instanceof ASTWithSource5 ? ast.ast : ast;
7855
7856
  }
7856
7857
 
7858
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/core_version.mjs
7859
+ function coreHasSymbol(program, symbol) {
7860
+ const checker = program.getTypeChecker();
7861
+ for (const sf of program.getSourceFiles().filter(isMaybeCore)) {
7862
+ const sym = checker.getSymbolAtLocation(sf);
7863
+ if (sym === void 0 || sym.exports === void 0) {
7864
+ continue;
7865
+ }
7866
+ if (!sym.exports.has("\u0275\u0275template")) {
7867
+ continue;
7868
+ }
7869
+ return sym.exports.has(symbol.name);
7870
+ }
7871
+ return null;
7872
+ }
7873
+ function isMaybeCore(sf) {
7874
+ return sf.isDeclarationFile && sf.fileName.includes("@angular/core") && sf.fileName.endsWith("index.d.ts");
7875
+ }
7876
+
7857
7877
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/feature_detection.mjs
7858
7878
  import semver from "semver";
7859
7879
  function coreVersionSupportsFeature(coreVersion, minVersion) {
@@ -8212,10 +8232,10 @@ var NgCompiler = class {
8212
8232
  return strictTemplates || !!this.options.fullTemplateTypeCheck;
8213
8233
  }
8214
8234
  getTypeCheckingConfig() {
8215
- var _a, _b, _c, _d;
8235
+ var _a, _b, _c, _d, _e;
8216
8236
  const strictTemplates = !!this.options.strictTemplates;
8217
8237
  const useInlineTypeConstructors = this.programDriver.supportsInlineOperations;
8218
- const allowSignalsInTwoWayBindings = this.angularCoreVersion === null || coreVersionSupportsFeature(this.angularCoreVersion, ">= 17.2.0-0");
8238
+ let allowSignalsInTwoWayBindings = (_a = coreHasSymbol(this.inputProgram, R3Identifiers5.unwrapWritableSignal)) != null ? _a : this.angularCoreVersion === null || coreVersionSupportsFeature(this.angularCoreVersion, ">= 17.2.0-0");
8219
8239
  let typeCheckingConfig;
8220
8240
  if (this.fullTemplateTypeCheck) {
8221
8241
  typeCheckingConfig = {
@@ -8240,7 +8260,7 @@ var NgCompiler = class {
8240
8260
  enableTemplateTypeChecker: this.enableTemplateTypeChecker,
8241
8261
  useInlineTypeConstructors,
8242
8262
  suggestionsForSuboptimalTypeInference: this.enableTemplateTypeChecker && !strictTemplates,
8243
- controlFlowPreventingContentProjection: ((_a = this.options.extendedDiagnostics) == null ? void 0 : _a.defaultCategory) || DiagnosticCategoryLabel.Warning,
8263
+ controlFlowPreventingContentProjection: ((_b = this.options.extendedDiagnostics) == null ? void 0 : _b.defaultCategory) || DiagnosticCategoryLabel.Warning,
8244
8264
  allowSignalsInTwoWayBindings
8245
8265
  };
8246
8266
  } else {
@@ -8266,7 +8286,7 @@ var NgCompiler = class {
8266
8286
  enableTemplateTypeChecker: this.enableTemplateTypeChecker,
8267
8287
  useInlineTypeConstructors,
8268
8288
  suggestionsForSuboptimalTypeInference: false,
8269
- controlFlowPreventingContentProjection: ((_b = this.options.extendedDiagnostics) == null ? void 0 : _b.defaultCategory) || DiagnosticCategoryLabel.Warning,
8289
+ controlFlowPreventingContentProjection: ((_c = this.options.extendedDiagnostics) == null ? void 0 : _c.defaultCategory) || DiagnosticCategoryLabel.Warning,
8270
8290
  allowSignalsInTwoWayBindings
8271
8291
  };
8272
8292
  }
@@ -8302,7 +8322,7 @@ var NgCompiler = class {
8302
8322
  if (this.options.strictLiteralTypes !== void 0) {
8303
8323
  typeCheckingConfig.strictLiteralTypes = this.options.strictLiteralTypes;
8304
8324
  }
8305
- if (((_d = (_c = this.options.extendedDiagnostics) == null ? void 0 : _c.checks) == null ? void 0 : _d.controlFlowPreventingContentProjection) !== void 0) {
8325
+ if (((_e = (_d = this.options.extendedDiagnostics) == null ? void 0 : _d.checks) == null ? void 0 : _e.controlFlowPreventingContentProjection) !== void 0) {
8306
8326
  typeCheckingConfig.controlFlowPreventingContentProjection = this.options.extendedDiagnostics.checks.controlFlowPreventingContentProjection;
8307
8327
  }
8308
8328
  return typeCheckingConfig;
@@ -9256,4 +9276,4 @@ export {
9256
9276
  * Use of this source code is governed by an MIT-style license that can be
9257
9277
  * found in the LICENSE file at https://angular.io/license
9258
9278
  */
9259
- //# sourceMappingURL=chunk-X6GFRI46.js.map
9279
+ //# sourceMappingURL=chunk-VH6EDOMC.js.map