@typescript-deploys/pr-build 5.2.0-pr-53647-17 → 5.2.0-pr-54777-9
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 +20 -13
- package/lib/tsserver.js +20 -13
- package/lib/tsserverlibrary.js +20 -13
- package/lib/typescript.js +20 -13
- 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.2";
|
|
21
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
21
|
+
var version = `${versionMajorMinor}.0-insiders.20230628`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -43746,7 +43746,7 @@ function createTypeChecker(host) {
|
|
|
43746
43746
|
};
|
|
43747
43747
|
var amalgamatedDuplicates;
|
|
43748
43748
|
var reverseMappedCache = /* @__PURE__ */ new Map();
|
|
43749
|
-
var
|
|
43749
|
+
var inInferTypeForHomomorphicMappedType = false;
|
|
43750
43750
|
var ambientModulesCache;
|
|
43751
43751
|
var patternAmbientModules;
|
|
43752
43752
|
var patternAmbientModuleAugmentations;
|
|
@@ -52160,7 +52160,7 @@ function createTypeChecker(host) {
|
|
|
52160
52160
|
return checkFlags & 2 /* SyntheticProperty */ ? checkFlags & 65536 /* DeferredType */ ? getWriteTypeOfSymbolWithDeferredType(symbol) || getTypeOfSymbolWithDeferredType(symbol) : (
|
|
52161
52161
|
// NOTE: cast to TransientSymbol should be safe because only TransientSymbols can have CheckFlags.SyntheticProperty
|
|
52162
52162
|
symbol.links.writeType || symbol.links.type
|
|
52163
|
-
) : getTypeOfSymbol(symbol);
|
|
52163
|
+
) : removeMissingType(getTypeOfSymbol(symbol), !!(symbol.flags & 16777216 /* Optional */));
|
|
52164
52164
|
}
|
|
52165
52165
|
if (symbol.flags & 98304 /* Accessor */) {
|
|
52166
52166
|
return checkFlags & 1 /* Instantiated */ ? getWriteTypeOfInstantiatedSymbol(symbol) : getWriteTypeOfAccessors(symbol);
|
|
@@ -63134,18 +63134,17 @@ function createTypeChecker(host) {
|
|
|
63134
63134
|
);
|
|
63135
63135
|
}
|
|
63136
63136
|
function inferTypeForHomomorphicMappedType(source, target, constraint) {
|
|
63137
|
-
|
|
63138
|
-
if (reverseMappedCache.has(cacheKey)) {
|
|
63139
|
-
return reverseMappedCache.get(cacheKey);
|
|
63140
|
-
}
|
|
63141
|
-
const recursionKey = source.id + "," + (target.target || target).id;
|
|
63142
|
-
if (contains(homomorphicMappedTypeInferenceStack, recursionKey)) {
|
|
63137
|
+
if (inInferTypeForHomomorphicMappedType) {
|
|
63143
63138
|
return void 0;
|
|
63144
63139
|
}
|
|
63145
|
-
|
|
63140
|
+
const key = source.id + "," + target.id + "," + constraint.id;
|
|
63141
|
+
if (reverseMappedCache.has(key)) {
|
|
63142
|
+
return reverseMappedCache.get(key);
|
|
63143
|
+
}
|
|
63144
|
+
inInferTypeForHomomorphicMappedType = true;
|
|
63146
63145
|
const type = createReverseMappedType(source, target, constraint);
|
|
63147
|
-
|
|
63148
|
-
reverseMappedCache.set(
|
|
63146
|
+
inInferTypeForHomomorphicMappedType = false;
|
|
63147
|
+
reverseMappedCache.set(key, type);
|
|
63149
63148
|
return type;
|
|
63150
63149
|
}
|
|
63151
63150
|
function isPartiallyInferableType(type) {
|
|
@@ -66035,7 +66034,15 @@ function createTypeChecker(host) {
|
|
|
66035
66034
|
location = location.parent;
|
|
66036
66035
|
}
|
|
66037
66036
|
if (isExpressionNode(location) && (!isAssignmentTarget(location) || isWriteAccess(location))) {
|
|
66038
|
-
const type = removeOptionalTypeMarker(
|
|
66037
|
+
const type = removeOptionalTypeMarker(
|
|
66038
|
+
isWriteAccess(location) && location.kind === 211 /* PropertyAccessExpression */ ? checkPropertyAccessExpression(
|
|
66039
|
+
location,
|
|
66040
|
+
/*checkMode*/
|
|
66041
|
+
void 0,
|
|
66042
|
+
/*writeOnly*/
|
|
66043
|
+
true
|
|
66044
|
+
) : getTypeOfExpression(location)
|
|
66045
|
+
);
|
|
66039
66046
|
if (getExportSymbolOfValueSymbolIfExported(getNodeLinks(location).resolvedSymbol) === symbol) {
|
|
66040
66047
|
return type;
|
|
66041
66048
|
}
|
package/lib/tsserver.js
CHANGED
|
@@ -2327,7 +2327,7 @@ module.exports = __toCommonJS(server_exports);
|
|
|
2327
2327
|
|
|
2328
2328
|
// src/compiler/corePublic.ts
|
|
2329
2329
|
var versionMajorMinor = "5.2";
|
|
2330
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
2330
|
+
var version = `${versionMajorMinor}.0-insiders.20230628`;
|
|
2331
2331
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2332
2332
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2333
2333
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -48422,7 +48422,7 @@ function createTypeChecker(host) {
|
|
|
48422
48422
|
};
|
|
48423
48423
|
var amalgamatedDuplicates;
|
|
48424
48424
|
var reverseMappedCache = /* @__PURE__ */ new Map();
|
|
48425
|
-
var
|
|
48425
|
+
var inInferTypeForHomomorphicMappedType = false;
|
|
48426
48426
|
var ambientModulesCache;
|
|
48427
48427
|
var patternAmbientModules;
|
|
48428
48428
|
var patternAmbientModuleAugmentations;
|
|
@@ -56836,7 +56836,7 @@ function createTypeChecker(host) {
|
|
|
56836
56836
|
return checkFlags & 2 /* SyntheticProperty */ ? checkFlags & 65536 /* DeferredType */ ? getWriteTypeOfSymbolWithDeferredType(symbol) || getTypeOfSymbolWithDeferredType(symbol) : (
|
|
56837
56837
|
// NOTE: cast to TransientSymbol should be safe because only TransientSymbols can have CheckFlags.SyntheticProperty
|
|
56838
56838
|
symbol.links.writeType || symbol.links.type
|
|
56839
|
-
) : getTypeOfSymbol(symbol);
|
|
56839
|
+
) : removeMissingType(getTypeOfSymbol(symbol), !!(symbol.flags & 16777216 /* Optional */));
|
|
56840
56840
|
}
|
|
56841
56841
|
if (symbol.flags & 98304 /* Accessor */) {
|
|
56842
56842
|
return checkFlags & 1 /* Instantiated */ ? getWriteTypeOfInstantiatedSymbol(symbol) : getWriteTypeOfAccessors(symbol);
|
|
@@ -67810,18 +67810,17 @@ function createTypeChecker(host) {
|
|
|
67810
67810
|
);
|
|
67811
67811
|
}
|
|
67812
67812
|
function inferTypeForHomomorphicMappedType(source, target, constraint) {
|
|
67813
|
-
|
|
67814
|
-
if (reverseMappedCache.has(cacheKey)) {
|
|
67815
|
-
return reverseMappedCache.get(cacheKey);
|
|
67816
|
-
}
|
|
67817
|
-
const recursionKey = source.id + "," + (target.target || target).id;
|
|
67818
|
-
if (contains(homomorphicMappedTypeInferenceStack, recursionKey)) {
|
|
67813
|
+
if (inInferTypeForHomomorphicMappedType) {
|
|
67819
67814
|
return void 0;
|
|
67820
67815
|
}
|
|
67821
|
-
|
|
67816
|
+
const key = source.id + "," + target.id + "," + constraint.id;
|
|
67817
|
+
if (reverseMappedCache.has(key)) {
|
|
67818
|
+
return reverseMappedCache.get(key);
|
|
67819
|
+
}
|
|
67820
|
+
inInferTypeForHomomorphicMappedType = true;
|
|
67822
67821
|
const type = createReverseMappedType(source, target, constraint);
|
|
67823
|
-
|
|
67824
|
-
reverseMappedCache.set(
|
|
67822
|
+
inInferTypeForHomomorphicMappedType = false;
|
|
67823
|
+
reverseMappedCache.set(key, type);
|
|
67825
67824
|
return type;
|
|
67826
67825
|
}
|
|
67827
67826
|
function isPartiallyInferableType(type) {
|
|
@@ -70711,7 +70710,15 @@ function createTypeChecker(host) {
|
|
|
70711
70710
|
location = location.parent;
|
|
70712
70711
|
}
|
|
70713
70712
|
if (isExpressionNode(location) && (!isAssignmentTarget(location) || isWriteAccess(location))) {
|
|
70714
|
-
const type = removeOptionalTypeMarker(
|
|
70713
|
+
const type = removeOptionalTypeMarker(
|
|
70714
|
+
isWriteAccess(location) && location.kind === 211 /* PropertyAccessExpression */ ? checkPropertyAccessExpression(
|
|
70715
|
+
location,
|
|
70716
|
+
/*checkMode*/
|
|
70717
|
+
void 0,
|
|
70718
|
+
/*writeOnly*/
|
|
70719
|
+
true
|
|
70720
|
+
) : getTypeOfExpression(location)
|
|
70721
|
+
);
|
|
70715
70722
|
if (getExportSymbolOfValueSymbolIfExported(getNodeLinks(location).resolvedSymbol) === symbol) {
|
|
70716
70723
|
return type;
|
|
70717
70724
|
}
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -35,7 +35,7 @@ var ts = (() => {
|
|
|
35
35
|
"src/compiler/corePublic.ts"() {
|
|
36
36
|
"use strict";
|
|
37
37
|
versionMajorMinor = "5.2";
|
|
38
|
-
version = `${versionMajorMinor}.0-insiders.
|
|
38
|
+
version = `${versionMajorMinor}.0-insiders.20230628`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -46189,7 +46189,7 @@ ${lanes.join("\n")}
|
|
|
46189
46189
|
};
|
|
46190
46190
|
var amalgamatedDuplicates;
|
|
46191
46191
|
var reverseMappedCache = /* @__PURE__ */ new Map();
|
|
46192
|
-
var
|
|
46192
|
+
var inInferTypeForHomomorphicMappedType = false;
|
|
46193
46193
|
var ambientModulesCache;
|
|
46194
46194
|
var patternAmbientModules;
|
|
46195
46195
|
var patternAmbientModuleAugmentations;
|
|
@@ -54603,7 +54603,7 @@ ${lanes.join("\n")}
|
|
|
54603
54603
|
return checkFlags & 2 /* SyntheticProperty */ ? checkFlags & 65536 /* DeferredType */ ? getWriteTypeOfSymbolWithDeferredType(symbol) || getTypeOfSymbolWithDeferredType(symbol) : (
|
|
54604
54604
|
// NOTE: cast to TransientSymbol should be safe because only TransientSymbols can have CheckFlags.SyntheticProperty
|
|
54605
54605
|
symbol.links.writeType || symbol.links.type
|
|
54606
|
-
) : getTypeOfSymbol(symbol);
|
|
54606
|
+
) : removeMissingType(getTypeOfSymbol(symbol), !!(symbol.flags & 16777216 /* Optional */));
|
|
54607
54607
|
}
|
|
54608
54608
|
if (symbol.flags & 98304 /* Accessor */) {
|
|
54609
54609
|
return checkFlags & 1 /* Instantiated */ ? getWriteTypeOfInstantiatedSymbol(symbol) : getWriteTypeOfAccessors(symbol);
|
|
@@ -65577,18 +65577,17 @@ ${lanes.join("\n")}
|
|
|
65577
65577
|
);
|
|
65578
65578
|
}
|
|
65579
65579
|
function inferTypeForHomomorphicMappedType(source, target, constraint) {
|
|
65580
|
-
|
|
65581
|
-
if (reverseMappedCache.has(cacheKey)) {
|
|
65582
|
-
return reverseMappedCache.get(cacheKey);
|
|
65583
|
-
}
|
|
65584
|
-
const recursionKey = source.id + "," + (target.target || target).id;
|
|
65585
|
-
if (contains(homomorphicMappedTypeInferenceStack, recursionKey)) {
|
|
65580
|
+
if (inInferTypeForHomomorphicMappedType) {
|
|
65586
65581
|
return void 0;
|
|
65587
65582
|
}
|
|
65588
|
-
|
|
65583
|
+
const key = source.id + "," + target.id + "," + constraint.id;
|
|
65584
|
+
if (reverseMappedCache.has(key)) {
|
|
65585
|
+
return reverseMappedCache.get(key);
|
|
65586
|
+
}
|
|
65587
|
+
inInferTypeForHomomorphicMappedType = true;
|
|
65589
65588
|
const type = createReverseMappedType(source, target, constraint);
|
|
65590
|
-
|
|
65591
|
-
reverseMappedCache.set(
|
|
65589
|
+
inInferTypeForHomomorphicMappedType = false;
|
|
65590
|
+
reverseMappedCache.set(key, type);
|
|
65592
65591
|
return type;
|
|
65593
65592
|
}
|
|
65594
65593
|
function isPartiallyInferableType(type) {
|
|
@@ -68478,7 +68477,15 @@ ${lanes.join("\n")}
|
|
|
68478
68477
|
location = location.parent;
|
|
68479
68478
|
}
|
|
68480
68479
|
if (isExpressionNode(location) && (!isAssignmentTarget(location) || isWriteAccess(location))) {
|
|
68481
|
-
const type = removeOptionalTypeMarker(
|
|
68480
|
+
const type = removeOptionalTypeMarker(
|
|
68481
|
+
isWriteAccess(location) && location.kind === 211 /* PropertyAccessExpression */ ? checkPropertyAccessExpression(
|
|
68482
|
+
location,
|
|
68483
|
+
/*checkMode*/
|
|
68484
|
+
void 0,
|
|
68485
|
+
/*writeOnly*/
|
|
68486
|
+
true
|
|
68487
|
+
) : getTypeOfExpression(location)
|
|
68488
|
+
);
|
|
68482
68489
|
if (getExportSymbolOfValueSymbolIfExported(getNodeLinks(location).resolvedSymbol) === symbol) {
|
|
68483
68490
|
return type;
|
|
68484
68491
|
}
|
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.2";
|
|
38
|
-
version = `${versionMajorMinor}.0-insiders.
|
|
38
|
+
version = `${versionMajorMinor}.0-insiders.20230628`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -46189,7 +46189,7 @@ ${lanes.join("\n")}
|
|
|
46189
46189
|
};
|
|
46190
46190
|
var amalgamatedDuplicates;
|
|
46191
46191
|
var reverseMappedCache = /* @__PURE__ */ new Map();
|
|
46192
|
-
var
|
|
46192
|
+
var inInferTypeForHomomorphicMappedType = false;
|
|
46193
46193
|
var ambientModulesCache;
|
|
46194
46194
|
var patternAmbientModules;
|
|
46195
46195
|
var patternAmbientModuleAugmentations;
|
|
@@ -54603,7 +54603,7 @@ ${lanes.join("\n")}
|
|
|
54603
54603
|
return checkFlags & 2 /* SyntheticProperty */ ? checkFlags & 65536 /* DeferredType */ ? getWriteTypeOfSymbolWithDeferredType(symbol) || getTypeOfSymbolWithDeferredType(symbol) : (
|
|
54604
54604
|
// NOTE: cast to TransientSymbol should be safe because only TransientSymbols can have CheckFlags.SyntheticProperty
|
|
54605
54605
|
symbol.links.writeType || symbol.links.type
|
|
54606
|
-
) : getTypeOfSymbol(symbol);
|
|
54606
|
+
) : removeMissingType(getTypeOfSymbol(symbol), !!(symbol.flags & 16777216 /* Optional */));
|
|
54607
54607
|
}
|
|
54608
54608
|
if (symbol.flags & 98304 /* Accessor */) {
|
|
54609
54609
|
return checkFlags & 1 /* Instantiated */ ? getWriteTypeOfInstantiatedSymbol(symbol) : getWriteTypeOfAccessors(symbol);
|
|
@@ -65577,18 +65577,17 @@ ${lanes.join("\n")}
|
|
|
65577
65577
|
);
|
|
65578
65578
|
}
|
|
65579
65579
|
function inferTypeForHomomorphicMappedType(source, target, constraint) {
|
|
65580
|
-
|
|
65581
|
-
if (reverseMappedCache.has(cacheKey)) {
|
|
65582
|
-
return reverseMappedCache.get(cacheKey);
|
|
65583
|
-
}
|
|
65584
|
-
const recursionKey = source.id + "," + (target.target || target).id;
|
|
65585
|
-
if (contains(homomorphicMappedTypeInferenceStack, recursionKey)) {
|
|
65580
|
+
if (inInferTypeForHomomorphicMappedType) {
|
|
65586
65581
|
return void 0;
|
|
65587
65582
|
}
|
|
65588
|
-
|
|
65583
|
+
const key = source.id + "," + target.id + "," + constraint.id;
|
|
65584
|
+
if (reverseMappedCache.has(key)) {
|
|
65585
|
+
return reverseMappedCache.get(key);
|
|
65586
|
+
}
|
|
65587
|
+
inInferTypeForHomomorphicMappedType = true;
|
|
65589
65588
|
const type = createReverseMappedType(source, target, constraint);
|
|
65590
|
-
|
|
65591
|
-
reverseMappedCache.set(
|
|
65589
|
+
inInferTypeForHomomorphicMappedType = false;
|
|
65590
|
+
reverseMappedCache.set(key, type);
|
|
65592
65591
|
return type;
|
|
65593
65592
|
}
|
|
65594
65593
|
function isPartiallyInferableType(type) {
|
|
@@ -68478,7 +68477,15 @@ ${lanes.join("\n")}
|
|
|
68478
68477
|
location = location.parent;
|
|
68479
68478
|
}
|
|
68480
68479
|
if (isExpressionNode(location) && (!isAssignmentTarget(location) || isWriteAccess(location))) {
|
|
68481
|
-
const type = removeOptionalTypeMarker(
|
|
68480
|
+
const type = removeOptionalTypeMarker(
|
|
68481
|
+
isWriteAccess(location) && location.kind === 211 /* PropertyAccessExpression */ ? checkPropertyAccessExpression(
|
|
68482
|
+
location,
|
|
68483
|
+
/*checkMode*/
|
|
68484
|
+
void 0,
|
|
68485
|
+
/*writeOnly*/
|
|
68486
|
+
true
|
|
68487
|
+
) : getTypeOfExpression(location)
|
|
68488
|
+
);
|
|
68482
68489
|
if (getExportSymbolOfValueSymbolIfExported(getNodeLinks(location).resolvedSymbol) === symbol) {
|
|
68483
68490
|
return type;
|
|
68484
68491
|
}
|
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.2";
|
|
57
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
57
|
+
var version = `${versionMajorMinor}.0-insiders.20230628`;
|
|
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.2.0-pr-
|
|
5
|
+
"version": "5.2.0-pr-54777-9",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -115,5 +115,5 @@
|
|
|
115
115
|
"node": "20.1.0",
|
|
116
116
|
"npm": "8.19.4"
|
|
117
117
|
},
|
|
118
|
-
"gitHead": "
|
|
118
|
+
"gitHead": "f3bce69feea5bdb597c5c6f296dcc35b7d0d1273"
|
|
119
119
|
}
|