@typescript-deploys/pr-build 5.4.0-pr-57341-6 → 5.4.0-pr-57358-11
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/lib/tsc.js +4 -9
- package/lib/tsserver.js +5 -7
- package/lib/typescript.js +5 -7
- package/lib/typingsInstaller.js +1 -1
- package/package.json +2 -2
package/lib/tsc.js
CHANGED
|
@@ -18,7 +18,7 @@ and limitations under the License.
|
|
|
18
18
|
|
|
19
19
|
// src/compiler/corePublic.ts
|
|
20
20
|
var versionMajorMinor = "5.4";
|
|
21
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
21
|
+
var version = `${versionMajorMinor}.0-insiders.20240212`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -12929,9 +12929,6 @@ function isObjectLiteralOrClassExpressionMethodOrAccessor(node) {
|
|
|
12929
12929
|
function isIdentifierTypePredicate(predicate) {
|
|
12930
12930
|
return predicate && predicate.kind === 1 /* Identifier */;
|
|
12931
12931
|
}
|
|
12932
|
-
function isThisTypePredicate(predicate) {
|
|
12933
|
-
return predicate && predicate.kind === 0 /* This */;
|
|
12934
|
-
}
|
|
12935
12932
|
function forEachPropertyAssignment(objectLiteral, key, callback, key2) {
|
|
12936
12933
|
return forEach(objectLiteral == null ? void 0 : objectLiteral.properties, (property) => {
|
|
12937
12934
|
if (!isPropertyAssignment(property))
|
|
@@ -59792,8 +59789,8 @@ function createTypeChecker(host) {
|
|
|
59792
59789
|
if (!result) {
|
|
59793
59790
|
const newMapper = createTypeMapper(root.outerTypeParameters, typeArguments);
|
|
59794
59791
|
const checkType = root.checkType;
|
|
59795
|
-
const distributionType = root.isDistributive ? getMappedType(checkType, newMapper) : void 0;
|
|
59796
|
-
result = distributionType && checkType !== distributionType && distributionType.flags & (1048576 /* Union */ | 131072 /* Never */) ? mapTypeWithAlias(
|
|
59792
|
+
const distributionType = root.isDistributive ? getReducedType(getMappedType(checkType, newMapper)) : void 0;
|
|
59793
|
+
result = distributionType && checkType !== distributionType && distributionType.flags & (1048576 /* Union */ | 131072 /* Never */) ? mapTypeWithAlias(distributionType, (t) => getConditionalType(root, prependTypeMapping(checkType, t, newMapper), forConstraint), aliasSymbol, aliasTypeArguments) : getConditionalType(root, newMapper, forConstraint, aliasSymbol, aliasTypeArguments);
|
|
59797
59794
|
root.instantiations.set(id, result);
|
|
59798
59795
|
}
|
|
59799
59796
|
return result;
|
|
@@ -60712,8 +60709,6 @@ function createTypeChecker(host) {
|
|
|
60712
60709
|
errorReporter(Diagnostics.Signature_0_must_be_a_type_predicate, signatureToString(source));
|
|
60713
60710
|
}
|
|
60714
60711
|
return 0 /* False */;
|
|
60715
|
-
} else if (isThisTypePredicate(targetTypePredicate)) {
|
|
60716
|
-
result &= compareTypes(sourceReturnType, targetReturnType, reportErrors2);
|
|
60717
60712
|
}
|
|
60718
60713
|
} else {
|
|
60719
60714
|
result &= checkMode & 1 /* BivariantCallback */ && compareTypes(
|
|
@@ -65653,7 +65648,7 @@ function createTypeChecker(host) {
|
|
|
65653
65648
|
function hasMatchingArgument(expression, reference) {
|
|
65654
65649
|
if (expression.arguments) {
|
|
65655
65650
|
for (const argument of expression.arguments) {
|
|
65656
|
-
if (isOrContainsMatchingReference(reference, argument) || optionalChainContainsReference(argument, reference)) {
|
|
65651
|
+
if (isOrContainsMatchingReference(reference, argument) || optionalChainContainsReference(argument, reference) || isAccessExpression(argument) && isMatchingReference(reference, argument.expression)) {
|
|
65657
65652
|
return true;
|
|
65658
65653
|
}
|
|
65659
65654
|
}
|
package/lib/tsserver.js
CHANGED
|
@@ -2340,7 +2340,7 @@ module.exports = __toCommonJS(server_exports);
|
|
|
2340
2340
|
|
|
2341
2341
|
// src/compiler/corePublic.ts
|
|
2342
2342
|
var versionMajorMinor = "5.4";
|
|
2343
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
2343
|
+
var version = `${versionMajorMinor}.0-insiders.20240212`;
|
|
2344
2344
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2345
2345
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2346
2346
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -64533,8 +64533,8 @@ function createTypeChecker(host) {
|
|
|
64533
64533
|
if (!result) {
|
|
64534
64534
|
const newMapper = createTypeMapper(root.outerTypeParameters, typeArguments);
|
|
64535
64535
|
const checkType = root.checkType;
|
|
64536
|
-
const distributionType = root.isDistributive ? getMappedType(checkType, newMapper) : void 0;
|
|
64537
|
-
result = distributionType && checkType !== distributionType && distributionType.flags & (1048576 /* Union */ | 131072 /* Never */) ? mapTypeWithAlias(
|
|
64536
|
+
const distributionType = root.isDistributive ? getReducedType(getMappedType(checkType, newMapper)) : void 0;
|
|
64537
|
+
result = distributionType && checkType !== distributionType && distributionType.flags & (1048576 /* Union */ | 131072 /* Never */) ? mapTypeWithAlias(distributionType, (t) => getConditionalType(root, prependTypeMapping(checkType, t, newMapper), forConstraint), aliasSymbol, aliasTypeArguments) : getConditionalType(root, newMapper, forConstraint, aliasSymbol, aliasTypeArguments);
|
|
64538
64538
|
root.instantiations.set(id, result);
|
|
64539
64539
|
}
|
|
64540
64540
|
return result;
|
|
@@ -65453,8 +65453,6 @@ function createTypeChecker(host) {
|
|
|
65453
65453
|
errorReporter(Diagnostics.Signature_0_must_be_a_type_predicate, signatureToString(source));
|
|
65454
65454
|
}
|
|
65455
65455
|
return 0 /* False */;
|
|
65456
|
-
} else if (isThisTypePredicate(targetTypePredicate)) {
|
|
65457
|
-
result &= compareTypes(sourceReturnType, targetReturnType, reportErrors2);
|
|
65458
65456
|
}
|
|
65459
65457
|
} else {
|
|
65460
65458
|
result &= checkMode & 1 /* BivariantCallback */ && compareTypes(
|
|
@@ -70394,7 +70392,7 @@ function createTypeChecker(host) {
|
|
|
70394
70392
|
function hasMatchingArgument(expression, reference) {
|
|
70395
70393
|
if (expression.arguments) {
|
|
70396
70394
|
for (const argument of expression.arguments) {
|
|
70397
|
-
if (isOrContainsMatchingReference(reference, argument) || optionalChainContainsReference(argument, reference)) {
|
|
70395
|
+
if (isOrContainsMatchingReference(reference, argument) || optionalChainContainsReference(argument, reference) || isAccessExpression(argument) && isMatchingReference(reference, argument.expression)) {
|
|
70398
70396
|
return true;
|
|
70399
70397
|
}
|
|
70400
70398
|
}
|
|
@@ -152213,7 +152211,7 @@ function compareModuleSpecifiers(a, b, importingFile, program, allowsImportingSp
|
|
|
152213
152211
|
}
|
|
152214
152212
|
function isFixPossiblyReExportingImportingFile(fix, importingFile, compilerOptions, toPath3) {
|
|
152215
152213
|
var _a;
|
|
152216
|
-
if (fix.isReExport && ((_a = fix.exportInfo) == null ? void 0 : _a.moduleFileName) &&
|
|
152214
|
+
if (fix.isReExport && ((_a = fix.exportInfo) == null ? void 0 : _a.moduleFileName) && isIndexFileName(fix.exportInfo.moduleFileName)) {
|
|
152217
152215
|
const reExportDir = toPath3(getDirectoryPath(fix.exportInfo.moduleFileName));
|
|
152218
152216
|
return startsWith(importingFile.path, reExportDir);
|
|
152219
152217
|
}
|
package/lib/typescript.js
CHANGED
|
@@ -35,7 +35,7 @@ var ts = (() => {
|
|
|
35
35
|
"src/compiler/corePublic.ts"() {
|
|
36
36
|
"use strict";
|
|
37
37
|
versionMajorMinor = "5.4";
|
|
38
|
-
version = `${versionMajorMinor}.0-insiders.
|
|
38
|
+
version = `${versionMajorMinor}.0-insiders.20240212`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -62288,8 +62288,8 @@ ${lanes.join("\n")}
|
|
|
62288
62288
|
if (!result) {
|
|
62289
62289
|
const newMapper = createTypeMapper(root.outerTypeParameters, typeArguments);
|
|
62290
62290
|
const checkType = root.checkType;
|
|
62291
|
-
const distributionType = root.isDistributive ? getMappedType(checkType, newMapper) : void 0;
|
|
62292
|
-
result = distributionType && checkType !== distributionType && distributionType.flags & (1048576 /* Union */ | 131072 /* Never */) ? mapTypeWithAlias(
|
|
62291
|
+
const distributionType = root.isDistributive ? getReducedType(getMappedType(checkType, newMapper)) : void 0;
|
|
62292
|
+
result = distributionType && checkType !== distributionType && distributionType.flags & (1048576 /* Union */ | 131072 /* Never */) ? mapTypeWithAlias(distributionType, (t) => getConditionalType(root, prependTypeMapping(checkType, t, newMapper), forConstraint), aliasSymbol, aliasTypeArguments) : getConditionalType(root, newMapper, forConstraint, aliasSymbol, aliasTypeArguments);
|
|
62293
62293
|
root.instantiations.set(id, result);
|
|
62294
62294
|
}
|
|
62295
62295
|
return result;
|
|
@@ -63208,8 +63208,6 @@ ${lanes.join("\n")}
|
|
|
63208
63208
|
errorReporter(Diagnostics.Signature_0_must_be_a_type_predicate, signatureToString(source));
|
|
63209
63209
|
}
|
|
63210
63210
|
return 0 /* False */;
|
|
63211
|
-
} else if (isThisTypePredicate(targetTypePredicate)) {
|
|
63212
|
-
result &= compareTypes(sourceReturnType, targetReturnType, reportErrors2);
|
|
63213
63211
|
}
|
|
63214
63212
|
} else {
|
|
63215
63213
|
result &= checkMode & 1 /* BivariantCallback */ && compareTypes(
|
|
@@ -68149,7 +68147,7 @@ ${lanes.join("\n")}
|
|
|
68149
68147
|
function hasMatchingArgument(expression, reference) {
|
|
68150
68148
|
if (expression.arguments) {
|
|
68151
68149
|
for (const argument of expression.arguments) {
|
|
68152
|
-
if (isOrContainsMatchingReference(reference, argument) || optionalChainContainsReference(argument, reference)) {
|
|
68150
|
+
if (isOrContainsMatchingReference(reference, argument) || optionalChainContainsReference(argument, reference) || isAccessExpression(argument) && isMatchingReference(reference, argument.expression)) {
|
|
68153
68151
|
return true;
|
|
68154
68152
|
}
|
|
68155
68153
|
}
|
|
@@ -150913,7 +150911,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
150913
150911
|
}
|
|
150914
150912
|
function isFixPossiblyReExportingImportingFile(fix, importingFile, compilerOptions, toPath3) {
|
|
150915
150913
|
var _a;
|
|
150916
|
-
if (fix.isReExport && ((_a = fix.exportInfo) == null ? void 0 : _a.moduleFileName) &&
|
|
150914
|
+
if (fix.isReExport && ((_a = fix.exportInfo) == null ? void 0 : _a.moduleFileName) && isIndexFileName(fix.exportInfo.moduleFileName)) {
|
|
150917
150915
|
const reExportDir = toPath3(getDirectoryPath(fix.exportInfo.moduleFileName));
|
|
150918
150916
|
return startsWith(importingFile.path, reExportDir);
|
|
150919
150917
|
}
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
|
|
|
54
54
|
|
|
55
55
|
// src/compiler/corePublic.ts
|
|
56
56
|
var versionMajorMinor = "5.4";
|
|
57
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
57
|
+
var version = `${versionMajorMinor}.0-insiders.20240212`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@typescript-deploys/pr-build",
|
|
3
3
|
"author": "Microsoft Corp.",
|
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
-
"version": "5.4.0-pr-
|
|
5
|
+
"version": "5.4.0-pr-57358-11",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"node": "20.1.0",
|
|
115
115
|
"npm": "8.19.4"
|
|
116
116
|
},
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "b87dbd0105bdab7a63a2d0d289f01fe3408069ad"
|
|
118
118
|
}
|