@typescript-deploys/pr-build 5.8.0-pr-57838-3 → 5.8.0-pr-60630-2
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 +9 -16
- package/lib/typescript.js +9 -16
- package/package.json +1 -1
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.8";
|
|
21
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
21
|
+
var version = `${versionMajorMinor}.0-insiders.20241203`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -64859,15 +64859,15 @@ function createTypeChecker(host) {
|
|
|
64859
64859
|
}
|
|
64860
64860
|
return result2;
|
|
64861
64861
|
}
|
|
64862
|
-
function getApparentMappedTypeKeys(nameType,
|
|
64863
|
-
const modifiersType = getApparentType(getModifiersTypeFromMappedType(
|
|
64862
|
+
function getApparentMappedTypeKeys(nameType, targetType) {
|
|
64863
|
+
const modifiersType = getApparentType(getModifiersTypeFromMappedType(targetType));
|
|
64864
64864
|
const mappedKeys = [];
|
|
64865
64865
|
forEachMappedTypePropertyKeyTypeAndIndexSignatureKeyType(
|
|
64866
64866
|
modifiersType,
|
|
64867
64867
|
8576 /* StringOrNumberLiteralOrUnique */,
|
|
64868
64868
|
/*stringsOnly*/
|
|
64869
64869
|
false,
|
|
64870
|
-
(t) => void mappedKeys.push(instantiateType(nameType, appendTypeMapping(
|
|
64870
|
+
(t) => void mappedKeys.push(instantiateType(nameType, appendTypeMapping(targetType.mapper, getTypeParameterFromMappedType(targetType), t)))
|
|
64871
64871
|
);
|
|
64872
64872
|
return getUnionType(mappedKeys);
|
|
64873
64873
|
}
|
|
@@ -65232,15 +65232,7 @@ function createTypeChecker(host) {
|
|
|
65232
65232
|
if (isDeferredMappedIndex) {
|
|
65233
65233
|
const mappedType = source2.type;
|
|
65234
65234
|
const nameType = getNameTypeFromMappedType(mappedType);
|
|
65235
|
-
|
|
65236
|
-
if (nameType && isMappedTypeWithKeyofConstraintDeclaration(mappedType)) {
|
|
65237
|
-
sourceMappedKeys = getApparentMappedTypeKeys(nameType, mappedType);
|
|
65238
|
-
if (sourceMappedKeys.flags & 131072 /* Never */) {
|
|
65239
|
-
sourceMappedKeys = stringNumberSymbolType;
|
|
65240
|
-
}
|
|
65241
|
-
} else {
|
|
65242
|
-
sourceMappedKeys = nameType || getConstraintTypeFromMappedType(mappedType);
|
|
65243
|
-
}
|
|
65235
|
+
const sourceMappedKeys = nameType && isMappedTypeWithKeyofConstraintDeclaration(mappedType) ? getApparentMappedTypeKeys(nameType, mappedType) : nameType || getConstraintTypeFromMappedType(mappedType);
|
|
65244
65236
|
if (result2 = isRelatedTo(sourceMappedKeys, target2, 1 /* Source */, reportErrors2)) {
|
|
65245
65237
|
return result2;
|
|
65246
65238
|
}
|
|
@@ -77781,7 +77773,7 @@ function createTypeChecker(host) {
|
|
|
77781
77773
|
}
|
|
77782
77774
|
return !someType(operandConstraint, (t) => getTypeFacts(t, notEqualFacts) === notEqualFacts);
|
|
77783
77775
|
}
|
|
77784
|
-
const type = checkExpressionCached(node.expression);
|
|
77776
|
+
const type = getBaseConstraintOrType(checkExpressionCached(node.expression));
|
|
77785
77777
|
if (!isLiteralType(type)) {
|
|
77786
77778
|
return false;
|
|
77787
77779
|
}
|
|
@@ -78098,7 +78090,7 @@ function createTypeChecker(host) {
|
|
|
78098
78090
|
}
|
|
78099
78091
|
if (isReadonlySymbol(symbol)) {
|
|
78100
78092
|
if (symbol.flags & 4 /* Property */ && isAccessExpression(expr) && expr.expression.kind === 110 /* ThisKeyword */) {
|
|
78101
|
-
const ctor =
|
|
78093
|
+
const ctor = getControlFlowContainer(expr);
|
|
78102
78094
|
if (!(ctor && (ctor.kind === 176 /* Constructor */ || isJSConstructor(ctor)))) {
|
|
78103
78095
|
return true;
|
|
78104
78096
|
}
|
|
@@ -127191,7 +127183,8 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
|
|
|
127191
127183
|
return removeAtRoot;
|
|
127192
127184
|
}
|
|
127193
127185
|
function stopWatchFailedLookupLocationOfResolution(resolution, filePath, getResolutionWithResolvedFileName) {
|
|
127194
|
-
|
|
127186
|
+
if (!resolution.files) return;
|
|
127187
|
+
resolution.files.delete(filePath);
|
|
127195
127188
|
if (resolution.files.size) return;
|
|
127196
127189
|
resolution.files = void 0;
|
|
127197
127190
|
const resolved = getResolutionWithResolvedFileName(resolution);
|
package/lib/typescript.js
CHANGED
|
@@ -2278,7 +2278,7 @@ module.exports = __toCommonJS(typescript_exports);
|
|
|
2278
2278
|
|
|
2279
2279
|
// src/compiler/corePublic.ts
|
|
2280
2280
|
var versionMajorMinor = "5.8";
|
|
2281
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
2281
|
+
var version = `${versionMajorMinor}.0-insiders.20241203`;
|
|
2282
2282
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2283
2283
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2284
2284
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -69463,15 +69463,15 @@ function createTypeChecker(host) {
|
|
|
69463
69463
|
}
|
|
69464
69464
|
return result2;
|
|
69465
69465
|
}
|
|
69466
|
-
function getApparentMappedTypeKeys(nameType,
|
|
69467
|
-
const modifiersType = getApparentType(getModifiersTypeFromMappedType(
|
|
69466
|
+
function getApparentMappedTypeKeys(nameType, targetType) {
|
|
69467
|
+
const modifiersType = getApparentType(getModifiersTypeFromMappedType(targetType));
|
|
69468
69468
|
const mappedKeys = [];
|
|
69469
69469
|
forEachMappedTypePropertyKeyTypeAndIndexSignatureKeyType(
|
|
69470
69470
|
modifiersType,
|
|
69471
69471
|
8576 /* StringOrNumberLiteralOrUnique */,
|
|
69472
69472
|
/*stringsOnly*/
|
|
69473
69473
|
false,
|
|
69474
|
-
(t) => void mappedKeys.push(instantiateType(nameType, appendTypeMapping(
|
|
69474
|
+
(t) => void mappedKeys.push(instantiateType(nameType, appendTypeMapping(targetType.mapper, getTypeParameterFromMappedType(targetType), t)))
|
|
69475
69475
|
);
|
|
69476
69476
|
return getUnionType(mappedKeys);
|
|
69477
69477
|
}
|
|
@@ -69836,15 +69836,7 @@ function createTypeChecker(host) {
|
|
|
69836
69836
|
if (isDeferredMappedIndex) {
|
|
69837
69837
|
const mappedType = source2.type;
|
|
69838
69838
|
const nameType = getNameTypeFromMappedType(mappedType);
|
|
69839
|
-
|
|
69840
|
-
if (nameType && isMappedTypeWithKeyofConstraintDeclaration(mappedType)) {
|
|
69841
|
-
sourceMappedKeys = getApparentMappedTypeKeys(nameType, mappedType);
|
|
69842
|
-
if (sourceMappedKeys.flags & 131072 /* Never */) {
|
|
69843
|
-
sourceMappedKeys = stringNumberSymbolType;
|
|
69844
|
-
}
|
|
69845
|
-
} else {
|
|
69846
|
-
sourceMappedKeys = nameType || getConstraintTypeFromMappedType(mappedType);
|
|
69847
|
-
}
|
|
69839
|
+
const sourceMappedKeys = nameType && isMappedTypeWithKeyofConstraintDeclaration(mappedType) ? getApparentMappedTypeKeys(nameType, mappedType) : nameType || getConstraintTypeFromMappedType(mappedType);
|
|
69848
69840
|
if (result2 = isRelatedTo(sourceMappedKeys, target2, 1 /* Source */, reportErrors2)) {
|
|
69849
69841
|
return result2;
|
|
69850
69842
|
}
|
|
@@ -82385,7 +82377,7 @@ function createTypeChecker(host) {
|
|
|
82385
82377
|
}
|
|
82386
82378
|
return !someType(operandConstraint, (t) => getTypeFacts(t, notEqualFacts) === notEqualFacts);
|
|
82387
82379
|
}
|
|
82388
|
-
const type = checkExpressionCached(node.expression);
|
|
82380
|
+
const type = getBaseConstraintOrType(checkExpressionCached(node.expression));
|
|
82389
82381
|
if (!isLiteralType(type)) {
|
|
82390
82382
|
return false;
|
|
82391
82383
|
}
|
|
@@ -82702,7 +82694,7 @@ function createTypeChecker(host) {
|
|
|
82702
82694
|
}
|
|
82703
82695
|
if (isReadonlySymbol(symbol)) {
|
|
82704
82696
|
if (symbol.flags & 4 /* Property */ && isAccessExpression(expr) && expr.expression.kind === 110 /* ThisKeyword */) {
|
|
82705
|
-
const ctor =
|
|
82697
|
+
const ctor = getControlFlowContainer(expr);
|
|
82706
82698
|
if (!(ctor && (ctor.kind === 176 /* Constructor */ || isJSConstructor(ctor)))) {
|
|
82707
82699
|
return true;
|
|
82708
82700
|
}
|
|
@@ -132095,7 +132087,8 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
|
|
|
132095
132087
|
return removeAtRoot;
|
|
132096
132088
|
}
|
|
132097
132089
|
function stopWatchFailedLookupLocationOfResolution(resolution, filePath, getResolutionWithResolvedFileName) {
|
|
132098
|
-
|
|
132090
|
+
if (!resolution.files) return;
|
|
132091
|
+
resolution.files.delete(filePath);
|
|
132099
132092
|
if (resolution.files.size) return;
|
|
132100
132093
|
resolution.files = void 0;
|
|
132101
132094
|
const resolved = getResolutionWithResolvedFileName(resolution);
|
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.8.0-pr-
|
|
5
|
+
"version": "5.8.0-pr-60630-2",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|