@angular/compiler-cli 17.2.3 → 17.3.0-next.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/{chunk-LWM7EW6L.js → chunk-2CAUFIKU.js} +3 -3
- package/bundles/{chunk-SGHI77T2.js → chunk-5A5Y7O22.js} +29 -19
- package/bundles/chunk-5A5Y7O22.js.map +6 -0
- package/bundles/{chunk-YBXVKJOM.js → chunk-7VU7HCQZ.js} +290 -286
- package/bundles/chunk-7VU7HCQZ.js.map +6 -0
- package/bundles/{chunk-NQAH24UD.js → chunk-FPKC3HSK.js} +2 -2
- package/bundles/{chunk-FS75LCNP.js → chunk-IIZOI4XA.js} +7 -4
- package/bundles/{chunk-FS75LCNP.js.map → chunk-IIZOI4XA.js.map} +1 -1
- package/bundles/{chunk-MV5DSSRA.js → chunk-YVYW546M.js} +3 -3
- package/bundles/{chunk-MV5DSSRA.js.map → chunk-YVYW546M.js.map} +1 -1
- package/bundles/index.js +8 -5
- package/bundles/index.js.map +1 -1
- package/bundles/linker/babel/index.js +2 -2
- package/bundles/linker/index.js +2 -2
- package/bundles/private/migrations.js +2 -2
- package/bundles/private/tooling.js +3 -3
- package/bundles/src/bin/ng_xi18n.js +4 -4
- package/bundles/src/bin/ngc.js +4 -4
- package/bundles_metadata.json +1 -1
- package/index.d.ts +1 -0
- package/linker/src/file_linker/partial_linkers/util.d.ts +2 -2
- package/package.json +3 -3
- package/src/ngtsc/core/src/feature_detection.d.ts +13 -0
- package/src/ngtsc/diagnostics/index.d.ts +1 -1
- package/src/ngtsc/diagnostics/src/error.d.ts +7 -0
- package/src/ngtsc/diagnostics/src/error_code.d.ts +9 -3
- package/bundles/chunk-SGHI77T2.js.map +0 -6
- package/bundles/chunk-YBXVKJOM.js.map +0 -6
- /package/bundles/{chunk-LWM7EW6L.js.map → chunk-2CAUFIKU.js.map} +0 -0
- /package/bundles/{chunk-NQAH24UD.js.map → chunk-FPKC3HSK.js.map} +0 -0
|
@@ -11,14 +11,14 @@ import {
|
|
|
11
11
|
tryParseSignalInputMapping,
|
|
12
12
|
tryParseSignalModelMapping,
|
|
13
13
|
tryParseSignalQueryFromInitializer
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-YVYW546M.js";
|
|
15
15
|
import {
|
|
16
16
|
ImportManager,
|
|
17
17
|
ImportedSymbolsTracker,
|
|
18
18
|
TypeScriptReflectionHost,
|
|
19
19
|
isAliasImportDeclaration,
|
|
20
20
|
loadIsReferencedAliasDeclarationPatch
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-7VU7HCQZ.js";
|
|
22
22
|
|
|
23
23
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/jit_transforms/downlevel_decorators_transform.mjs
|
|
24
24
|
import ts from "typescript";
|
|
@@ -549,4 +549,4 @@ export {
|
|
|
549
549
|
* Use of this source code is governed by an MIT-style license that can be
|
|
550
550
|
* found in the LICENSE file at https://angular.io/license
|
|
551
551
|
*/
|
|
552
|
-
//# sourceMappingURL=chunk-
|
|
552
|
+
//# sourceMappingURL=chunk-2CAUFIKU.js.map
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
declarationTransformFactory,
|
|
40
40
|
isHostDirectiveMetaForGlobalMode,
|
|
41
41
|
ivyTransformFactory
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-YVYW546M.js";
|
|
43
43
|
import {
|
|
44
44
|
AbsoluteModuleStrategy,
|
|
45
45
|
AliasStrategy,
|
|
@@ -89,7 +89,7 @@ import {
|
|
|
89
89
|
toUnredirectedSourceFile,
|
|
90
90
|
translateExpression,
|
|
91
91
|
translateType
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-7VU7HCQZ.js";
|
|
93
93
|
import {
|
|
94
94
|
ActivePerfRecorder,
|
|
95
95
|
DelegatingPerfRecorder,
|
|
@@ -274,7 +274,7 @@ function compareVersions(v1, v2) {
|
|
|
274
274
|
|
|
275
275
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/typescript_support.mjs
|
|
276
276
|
var MIN_TS_VERSION = "5.2.0";
|
|
277
|
-
var MAX_TS_VERSION = "5.
|
|
277
|
+
var MAX_TS_VERSION = "5.5.0";
|
|
278
278
|
var tsVersion = ts2.version;
|
|
279
279
|
function checkVersion(version, minVersion, maxVersion) {
|
|
280
280
|
if (compareVersions(version, minVersion) < 0 || compareVersions(version, maxVersion) >= 0) {
|
|
@@ -878,9 +878,12 @@ function isSyntheticAngularConstant(declaration) {
|
|
|
878
878
|
return declaration.name.getText() === "USED_FOR_NG_TYPE_CHECKING";
|
|
879
879
|
}
|
|
880
880
|
function extractLiteralPropertiesAsEnumMembers(declaration) {
|
|
881
|
-
|
|
881
|
+
let initializer = declaration.initializer;
|
|
882
|
+
while (initializer && (ts7.isAsExpression(initializer) || ts7.isParenthesizedExpression(initializer))) {
|
|
883
|
+
initializer = initializer.expression;
|
|
884
|
+
}
|
|
882
885
|
if (initializer === void 0 || !ts7.isObjectLiteralExpression(initializer)) {
|
|
883
|
-
throw new Error(`Declaration tagged with "${LITERAL_AS_ENUM_TAG}" must be initialized to an object literal`);
|
|
886
|
+
throw new Error(`Declaration tagged with "${LITERAL_AS_ENUM_TAG}" must be initialized to an object literal, but received ${initializer ? ts7.SyntaxKind[initializer.kind] : "undefined"}`);
|
|
884
887
|
}
|
|
885
888
|
return initializer.properties.map((prop) => {
|
|
886
889
|
if (!ts7.isPropertyAssignment(prop) || !ts7.isIdentifier(prop.name)) {
|
|
@@ -7801,8 +7804,17 @@ var SUPPORTED_DIAGNOSTIC_NAMES = /* @__PURE__ */ new Set([
|
|
|
7801
7804
|
...ALL_DIAGNOSTIC_FACTORIES.map((factory9) => factory9.name)
|
|
7802
7805
|
]);
|
|
7803
7806
|
|
|
7807
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/feature_detection.mjs
|
|
7808
|
+
import semver from "semver";
|
|
7809
|
+
function coreVersionSupportsFeature(coreVersion, minVersion) {
|
|
7810
|
+
if (coreVersion === `0.0.0-${"PLACEHOLDER"}`) {
|
|
7811
|
+
return true;
|
|
7812
|
+
}
|
|
7813
|
+
return semver.satisfies(coreVersion, minVersion);
|
|
7814
|
+
}
|
|
7815
|
+
|
|
7804
7816
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/compiler.mjs
|
|
7805
|
-
var SHOULD_USE_TEMPLATE_PIPELINE =
|
|
7817
|
+
var SHOULD_USE_TEMPLATE_PIPELINE = true;
|
|
7806
7818
|
var CompilationTicketKind;
|
|
7807
7819
|
(function(CompilationTicketKind2) {
|
|
7808
7820
|
CompilationTicketKind2[CompilationTicketKind2["Fresh"] = 0] = "Fresh";
|
|
@@ -7874,7 +7886,7 @@ var NgCompiler = class {
|
|
|
7874
7886
|
}
|
|
7875
7887
|
}
|
|
7876
7888
|
constructor(adapter, options, inputProgram, programDriver, incrementalStrategy, incrementalCompilation, enableTemplateTypeChecker, usePoisonedData, livePerfRecorder) {
|
|
7877
|
-
var _a, _b;
|
|
7889
|
+
var _a, _b, _c;
|
|
7878
7890
|
this.adapter = adapter;
|
|
7879
7891
|
this.options = options;
|
|
7880
7892
|
this.inputProgram = inputProgram;
|
|
@@ -7889,7 +7901,7 @@ var NgCompiler = class {
|
|
|
7889
7901
|
this.delegatingPerfRecorder = new DelegatingPerfRecorder(this.perfRecorder);
|
|
7890
7902
|
this.enableTemplateTypeChecker = enableTemplateTypeChecker || ((_a = options["_enableTemplateTypeChecker"]) != null ? _a : false);
|
|
7891
7903
|
this.enableBlockSyntax = (_b = options["_enableBlockSyntax"]) != null ? _b : true;
|
|
7892
|
-
this.angularCoreVersion = options["_angularCoreVersion"]
|
|
7904
|
+
this.angularCoreVersion = (_c = options["_angularCoreVersion"]) != null ? _c : null;
|
|
7893
7905
|
this.constructionDiagnostics.push(...this.adapter.constructionDiagnostics, ...verifyCompatibleTypeCheckOptions(this.options));
|
|
7894
7906
|
this.currentProgram = inputProgram;
|
|
7895
7907
|
this.closureCompilerEnabled = !!this.options.annotateForClosureCompiler;
|
|
@@ -8156,7 +8168,7 @@ var NgCompiler = class {
|
|
|
8156
8168
|
var _a, _b, _c, _d;
|
|
8157
8169
|
const strictTemplates = !!this.options.strictTemplates;
|
|
8158
8170
|
const useInlineTypeConstructors = this.programDriver.supportsInlineOperations;
|
|
8159
|
-
const allowSignalsInTwoWayBindings = this.angularCoreVersion === null || this.angularCoreVersion
|
|
8171
|
+
const allowSignalsInTwoWayBindings = this.angularCoreVersion === null || coreVersionSupportsFeature(this.angularCoreVersion, ">= 17.2.0-0");
|
|
8160
8172
|
let typeCheckingConfig;
|
|
8161
8173
|
if (this.fullTemplateTypeCheck) {
|
|
8162
8174
|
typeCheckingConfig = {
|
|
@@ -8580,15 +8592,6 @@ function versionMapFromProgram(program, driver) {
|
|
|
8580
8592
|
}
|
|
8581
8593
|
return versions;
|
|
8582
8594
|
}
|
|
8583
|
-
var Version = class {
|
|
8584
|
-
constructor(full) {
|
|
8585
|
-
this.full = full;
|
|
8586
|
-
[this.major, this.minor, this.patch] = full.split(".").map((part) => {
|
|
8587
|
-
const parsed = parseInt(part);
|
|
8588
|
-
return isNaN(parsed) ? -1 : parsed;
|
|
8589
|
-
});
|
|
8590
|
-
}
|
|
8591
|
-
};
|
|
8592
8595
|
|
|
8593
8596
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/core/src/host.mjs
|
|
8594
8597
|
import ts38 from "typescript";
|
|
@@ -9184,6 +9187,13 @@ export {
|
|
|
9184
9187
|
performCompilation,
|
|
9185
9188
|
defaultGatherDiagnostics
|
|
9186
9189
|
};
|
|
9190
|
+
/*!
|
|
9191
|
+
* @license
|
|
9192
|
+
* Copyright Google LLC All Rights Reserved.
|
|
9193
|
+
*
|
|
9194
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
9195
|
+
* found in the LICENSE file at https://angular.io/license
|
|
9196
|
+
*/
|
|
9187
9197
|
/**
|
|
9188
9198
|
* @license
|
|
9189
9199
|
* Copyright Google LLC All Rights Reserved.
|
|
@@ -9191,4 +9201,4 @@ export {
|
|
|
9191
9201
|
* Use of this source code is governed by an MIT-style license that can be
|
|
9192
9202
|
* found in the LICENSE file at https://angular.io/license
|
|
9193
9203
|
*/
|
|
9194
|
-
//# sourceMappingURL=chunk-
|
|
9204
|
+
//# sourceMappingURL=chunk-5A5Y7O22.js.map
|