@typescript-deploys/pr-build 5.3.0-pr-55867-7 → 5.3.0-pr-55926-3
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 +7 -4
- package/lib/tsserver.js +22 -19
- package/lib/typescript.js +21 -18
- 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.3";
|
|
21
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
21
|
+
var version = `${versionMajorMinor}.0-insiders.20230930`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -10815,7 +10815,7 @@ function isAccessor(node) {
|
|
|
10815
10815
|
function isAutoAccessorPropertyDeclaration(node) {
|
|
10816
10816
|
return isPropertyDeclaration(node) && hasAccessorModifier(node);
|
|
10817
10817
|
}
|
|
10818
|
-
function
|
|
10818
|
+
function isClassInstanceProperty(node) {
|
|
10819
10819
|
if (isInJSFile(node) && isExpandoPropertyDeclaration(node)) {
|
|
10820
10820
|
return (!isBindableStaticAccessExpression(node) || !isPrototypeAccess(node.expression)) && !isBindableStaticNameExpression(
|
|
10821
10821
|
node,
|
|
@@ -66357,6 +66357,9 @@ function createTypeChecker(host) {
|
|
|
66357
66357
|
if (type.flags & 3 /* AnyOrUnknown */) {
|
|
66358
66358
|
return candidate;
|
|
66359
66359
|
}
|
|
66360
|
+
if (isTypeIdenticalTo(type, candidate)) {
|
|
66361
|
+
return candidate;
|
|
66362
|
+
}
|
|
66360
66363
|
const isRelated = checkDerived ? isTypeDerivedFrom : isTypeSubtypeOf;
|
|
66361
66364
|
const keyPropertyName = type.flags & 1048576 /* Union */ ? getKeyPropertyName(type) : void 0;
|
|
66362
66365
|
const narrowedType = mapType(candidate, (c) => {
|
|
@@ -69303,7 +69306,7 @@ function createTypeChecker(host) {
|
|
|
69303
69306
|
}
|
|
69304
69307
|
return false;
|
|
69305
69308
|
}
|
|
69306
|
-
if (!(flags & 32 /* Static */) && ((_a = prop.declarations) == null ? void 0 : _a.some(
|
|
69309
|
+
if (!(flags & 32 /* Static */) && ((_a = prop.declarations) == null ? void 0 : _a.some(isClassInstanceProperty))) {
|
|
69307
69310
|
if (errorNode) {
|
|
69308
69311
|
error(errorNode, Diagnostics.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super, symbolToString(prop));
|
|
69309
69312
|
}
|
|
@@ -79698,7 +79701,7 @@ function createTypeChecker(host) {
|
|
|
79698
79701
|
}
|
|
79699
79702
|
if (isConstantVariable(symbol)) {
|
|
79700
79703
|
const declaration = symbol.valueDeclaration;
|
|
79701
|
-
if (declaration && !declaration.type && declaration.initializer && (!location || declaration !== location && isBlockScopedNameDeclaredBeforeUse(declaration, location))) {
|
|
79704
|
+
if (declaration && isVariableDeclaration(declaration) && !declaration.type && declaration.initializer && (!location || declaration !== location && isBlockScopedNameDeclaredBeforeUse(declaration, location))) {
|
|
79702
79705
|
return evaluate(declaration.initializer, declaration);
|
|
79703
79706
|
}
|
|
79704
79707
|
}
|
package/lib/tsserver.js
CHANGED
|
@@ -1253,7 +1253,7 @@ __export(server_exports, {
|
|
|
1253
1253
|
isClassDeclaration: () => isClassDeclaration,
|
|
1254
1254
|
isClassElement: () => isClassElement,
|
|
1255
1255
|
isClassExpression: () => isClassExpression,
|
|
1256
|
-
|
|
1256
|
+
isClassInstanceProperty: () => isClassInstanceProperty,
|
|
1257
1257
|
isClassLike: () => isClassLike,
|
|
1258
1258
|
isClassMemberModifier: () => isClassMemberModifier,
|
|
1259
1259
|
isClassNamedEvaluationHelperBlock: () => isClassNamedEvaluationHelperBlock,
|
|
@@ -2328,7 +2328,7 @@ module.exports = __toCommonJS(server_exports);
|
|
|
2328
2328
|
|
|
2329
2329
|
// src/compiler/corePublic.ts
|
|
2330
2330
|
var versionMajorMinor = "5.3";
|
|
2331
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
2331
|
+
var version = `${versionMajorMinor}.0-insiders.20230930`;
|
|
2332
2332
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2333
2333
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2334
2334
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -14486,7 +14486,7 @@ function isAccessor(node) {
|
|
|
14486
14486
|
function isAutoAccessorPropertyDeclaration(node) {
|
|
14487
14487
|
return isPropertyDeclaration(node) && hasAccessorModifier(node);
|
|
14488
14488
|
}
|
|
14489
|
-
function
|
|
14489
|
+
function isClassInstanceProperty(node) {
|
|
14490
14490
|
if (isInJSFile(node) && isExpandoPropertyDeclaration(node)) {
|
|
14491
14491
|
return (!isBindableStaticAccessExpression(node) || !isPrototypeAccess(node.expression)) && !isBindableStaticNameExpression(
|
|
14492
14492
|
node,
|
|
@@ -71069,6 +71069,9 @@ function createTypeChecker(host) {
|
|
|
71069
71069
|
if (type.flags & 3 /* AnyOrUnknown */) {
|
|
71070
71070
|
return candidate;
|
|
71071
71071
|
}
|
|
71072
|
+
if (isTypeIdenticalTo(type, candidate)) {
|
|
71073
|
+
return candidate;
|
|
71074
|
+
}
|
|
71072
71075
|
const isRelated = checkDerived ? isTypeDerivedFrom : isTypeSubtypeOf;
|
|
71073
71076
|
const keyPropertyName = type.flags & 1048576 /* Union */ ? getKeyPropertyName(type) : void 0;
|
|
71074
71077
|
const narrowedType = mapType(candidate, (c) => {
|
|
@@ -74015,7 +74018,7 @@ function createTypeChecker(host) {
|
|
|
74015
74018
|
}
|
|
74016
74019
|
return false;
|
|
74017
74020
|
}
|
|
74018
|
-
if (!(flags & 32 /* Static */) && ((_a = prop.declarations) == null ? void 0 : _a.some(
|
|
74021
|
+
if (!(flags & 32 /* Static */) && ((_a = prop.declarations) == null ? void 0 : _a.some(isClassInstanceProperty))) {
|
|
74019
74022
|
if (errorNode) {
|
|
74020
74023
|
error2(errorNode, Diagnostics.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super, symbolToString(prop));
|
|
74021
74024
|
}
|
|
@@ -84410,7 +84413,7 @@ function createTypeChecker(host) {
|
|
|
84410
84413
|
}
|
|
84411
84414
|
if (isConstantVariable(symbol)) {
|
|
84412
84415
|
const declaration = symbol.valueDeclaration;
|
|
84413
|
-
if (declaration && !declaration.type && declaration.initializer && (!location || declaration !== location && isBlockScopedNameDeclaredBeforeUse(declaration, location))) {
|
|
84416
|
+
if (declaration && isVariableDeclaration(declaration) && !declaration.type && declaration.initializer && (!location || declaration !== location && isBlockScopedNameDeclaredBeforeUse(declaration, location))) {
|
|
84414
84417
|
return evaluate(declaration.initializer, declaration);
|
|
84415
84418
|
}
|
|
84416
84419
|
}
|
|
@@ -164387,14 +164390,14 @@ function provideInlayHints(context) {
|
|
|
164387
164390
|
if (isModuleReferenceType(declarationType)) {
|
|
164388
164391
|
return;
|
|
164389
164392
|
}
|
|
164390
|
-
const
|
|
164391
|
-
if (
|
|
164392
|
-
const hintText = typeof
|
|
164393
|
+
const hintParts = typeToInlayHintParts(declarationType);
|
|
164394
|
+
if (hintParts) {
|
|
164395
|
+
const hintText = typeof hintParts === "string" ? hintParts : hintParts.map((part) => part.text).join("");
|
|
164393
164396
|
const isVariableNameMatchesType = preferences.includeInlayVariableTypeHintsWhenTypeMatchesName === false && equateStringsCaseInsensitive(decl.name.getText(), hintText);
|
|
164394
164397
|
if (isVariableNameMatchesType) {
|
|
164395
164398
|
return;
|
|
164396
164399
|
}
|
|
164397
|
-
addTypeHints(
|
|
164400
|
+
addTypeHints(hintParts, decl.name.end);
|
|
164398
164401
|
}
|
|
164399
164402
|
}
|
|
164400
164403
|
function visitCallOrNewExpression(expr) {
|
|
@@ -164502,9 +164505,9 @@ function provideInlayHints(context) {
|
|
|
164502
164505
|
if (isModuleReferenceType(returnType)) {
|
|
164503
164506
|
return;
|
|
164504
164507
|
}
|
|
164505
|
-
const
|
|
164506
|
-
if (
|
|
164507
|
-
addTypeHints(
|
|
164508
|
+
const hintParts = typeToInlayHintParts(returnType);
|
|
164509
|
+
if (hintParts) {
|
|
164510
|
+
addTypeHints(hintParts, getTypeAnnotationPosition(decl));
|
|
164508
164511
|
}
|
|
164509
164512
|
}
|
|
164510
164513
|
function getTypeAnnotationPosition(decl) {
|
|
@@ -164528,14 +164531,14 @@ function provideInlayHints(context) {
|
|
|
164528
164531
|
if (effectiveTypeAnnotation) {
|
|
164529
164532
|
continue;
|
|
164530
164533
|
}
|
|
164531
|
-
const
|
|
164532
|
-
if (!
|
|
164534
|
+
const typeHints = getParameterDeclarationTypeHints(signature.parameters[i]);
|
|
164535
|
+
if (!typeHints) {
|
|
164533
164536
|
continue;
|
|
164534
164537
|
}
|
|
164535
|
-
addTypeHints(
|
|
164538
|
+
addTypeHints(typeHints, param.questionToken ? param.questionToken.end : param.name.end);
|
|
164536
164539
|
}
|
|
164537
164540
|
}
|
|
164538
|
-
function
|
|
164541
|
+
function getParameterDeclarationTypeHints(symbol) {
|
|
164539
164542
|
const valueDeclaration = symbol.valueDeclaration;
|
|
164540
164543
|
if (!valueDeclaration || !isParameter(valueDeclaration)) {
|
|
164541
164544
|
return void 0;
|
|
@@ -164544,7 +164547,7 @@ function provideInlayHints(context) {
|
|
|
164544
164547
|
if (isModuleReferenceType(signatureParamType)) {
|
|
164545
164548
|
return void 0;
|
|
164546
164549
|
}
|
|
164547
|
-
return
|
|
164550
|
+
return typeToInlayHintParts(signatureParamType);
|
|
164548
164551
|
}
|
|
164549
164552
|
function printTypeInSingleLine(type) {
|
|
164550
164553
|
const flags = 70221824 /* IgnoreErrors */ | 1048576 /* AllowUniqueESSymbolType */ | 16384 /* UseAliasDefinedOutsideCurrentScope */;
|
|
@@ -173128,7 +173131,7 @@ __export(ts_exports2, {
|
|
|
173128
173131
|
isClassDeclaration: () => isClassDeclaration,
|
|
173129
173132
|
isClassElement: () => isClassElement,
|
|
173130
173133
|
isClassExpression: () => isClassExpression,
|
|
173131
|
-
|
|
173134
|
+
isClassInstanceProperty: () => isClassInstanceProperty,
|
|
173132
173135
|
isClassLike: () => isClassLike,
|
|
173133
173136
|
isClassMemberModifier: () => isClassMemberModifier,
|
|
173134
173137
|
isClassNamedEvaluationHelperBlock: () => isClassNamedEvaluationHelperBlock,
|
|
@@ -187807,7 +187810,7 @@ start(initializeNodeSystem(), require("os").platform());
|
|
|
187807
187810
|
isClassDeclaration,
|
|
187808
187811
|
isClassElement,
|
|
187809
187812
|
isClassExpression,
|
|
187810
|
-
|
|
187813
|
+
isClassInstanceProperty,
|
|
187811
187814
|
isClassLike,
|
|
187812
187815
|
isClassMemberModifier,
|
|
187813
187816
|
isClassNamedEvaluationHelperBlock,
|
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.3";
|
|
38
|
-
version = `${versionMajorMinor}.0-insiders.
|
|
38
|
+
version = `${versionMajorMinor}.0-insiders.20230930`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -12275,7 +12275,7 @@ ${lanes.join("\n")}
|
|
|
12275
12275
|
function isAutoAccessorPropertyDeclaration(node) {
|
|
12276
12276
|
return isPropertyDeclaration(node) && hasAccessorModifier(node);
|
|
12277
12277
|
}
|
|
12278
|
-
function
|
|
12278
|
+
function isClassInstanceProperty(node) {
|
|
12279
12279
|
if (isInJSFile(node) && isExpandoPropertyDeclaration(node)) {
|
|
12280
12280
|
return (!isBindableStaticAccessExpression(node) || !isPrototypeAccess(node.expression)) && !isBindableStaticNameExpression(
|
|
12281
12281
|
node,
|
|
@@ -68836,6 +68836,9 @@ ${lanes.join("\n")}
|
|
|
68836
68836
|
if (type.flags & 3 /* AnyOrUnknown */) {
|
|
68837
68837
|
return candidate;
|
|
68838
68838
|
}
|
|
68839
|
+
if (isTypeIdenticalTo(type, candidate)) {
|
|
68840
|
+
return candidate;
|
|
68841
|
+
}
|
|
68839
68842
|
const isRelated = checkDerived ? isTypeDerivedFrom : isTypeSubtypeOf;
|
|
68840
68843
|
const keyPropertyName = type.flags & 1048576 /* Union */ ? getKeyPropertyName(type) : void 0;
|
|
68841
68844
|
const narrowedType = mapType(candidate, (c) => {
|
|
@@ -71782,7 +71785,7 @@ ${lanes.join("\n")}
|
|
|
71782
71785
|
}
|
|
71783
71786
|
return false;
|
|
71784
71787
|
}
|
|
71785
|
-
if (!(flags & 32 /* Static */) && ((_a = prop.declarations) == null ? void 0 : _a.some(
|
|
71788
|
+
if (!(flags & 32 /* Static */) && ((_a = prop.declarations) == null ? void 0 : _a.some(isClassInstanceProperty))) {
|
|
71786
71789
|
if (errorNode) {
|
|
71787
71790
|
error2(errorNode, Diagnostics.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super, symbolToString(prop));
|
|
71788
71791
|
}
|
|
@@ -82177,7 +82180,7 @@ ${lanes.join("\n")}
|
|
|
82177
82180
|
}
|
|
82178
82181
|
if (isConstantVariable(symbol)) {
|
|
82179
82182
|
const declaration = symbol.valueDeclaration;
|
|
82180
|
-
if (declaration && !declaration.type && declaration.initializer && (!location || declaration !== location && isBlockScopedNameDeclaredBeforeUse(declaration, location))) {
|
|
82183
|
+
if (declaration && isVariableDeclaration(declaration) && !declaration.type && declaration.initializer && (!location || declaration !== location && isBlockScopedNameDeclaredBeforeUse(declaration, location))) {
|
|
82181
82184
|
return evaluate(declaration.initializer, declaration);
|
|
82182
82185
|
}
|
|
82183
82186
|
}
|
|
@@ -163732,14 +163735,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
163732
163735
|
if (isModuleReferenceType(declarationType)) {
|
|
163733
163736
|
return;
|
|
163734
163737
|
}
|
|
163735
|
-
const
|
|
163736
|
-
if (
|
|
163737
|
-
const hintText = typeof
|
|
163738
|
+
const hintParts = typeToInlayHintParts(declarationType);
|
|
163739
|
+
if (hintParts) {
|
|
163740
|
+
const hintText = typeof hintParts === "string" ? hintParts : hintParts.map((part) => part.text).join("");
|
|
163738
163741
|
const isVariableNameMatchesType = preferences.includeInlayVariableTypeHintsWhenTypeMatchesName === false && equateStringsCaseInsensitive(decl.name.getText(), hintText);
|
|
163739
163742
|
if (isVariableNameMatchesType) {
|
|
163740
163743
|
return;
|
|
163741
163744
|
}
|
|
163742
|
-
addTypeHints(
|
|
163745
|
+
addTypeHints(hintParts, decl.name.end);
|
|
163743
163746
|
}
|
|
163744
163747
|
}
|
|
163745
163748
|
function visitCallOrNewExpression(expr) {
|
|
@@ -163847,9 +163850,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
163847
163850
|
if (isModuleReferenceType(returnType)) {
|
|
163848
163851
|
return;
|
|
163849
163852
|
}
|
|
163850
|
-
const
|
|
163851
|
-
if (
|
|
163852
|
-
addTypeHints(
|
|
163853
|
+
const hintParts = typeToInlayHintParts(returnType);
|
|
163854
|
+
if (hintParts) {
|
|
163855
|
+
addTypeHints(hintParts, getTypeAnnotationPosition(decl));
|
|
163853
163856
|
}
|
|
163854
163857
|
}
|
|
163855
163858
|
function getTypeAnnotationPosition(decl) {
|
|
@@ -163873,14 +163876,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
163873
163876
|
if (effectiveTypeAnnotation) {
|
|
163874
163877
|
continue;
|
|
163875
163878
|
}
|
|
163876
|
-
const
|
|
163877
|
-
if (!
|
|
163879
|
+
const typeHints = getParameterDeclarationTypeHints(signature.parameters[i]);
|
|
163880
|
+
if (!typeHints) {
|
|
163878
163881
|
continue;
|
|
163879
163882
|
}
|
|
163880
|
-
addTypeHints(
|
|
163883
|
+
addTypeHints(typeHints, param.questionToken ? param.questionToken.end : param.name.end);
|
|
163881
163884
|
}
|
|
163882
163885
|
}
|
|
163883
|
-
function
|
|
163886
|
+
function getParameterDeclarationTypeHints(symbol) {
|
|
163884
163887
|
const valueDeclaration = symbol.valueDeclaration;
|
|
163885
163888
|
if (!valueDeclaration || !isParameter(valueDeclaration)) {
|
|
163886
163889
|
return void 0;
|
|
@@ -163889,7 +163892,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
163889
163892
|
if (isModuleReferenceType(signatureParamType)) {
|
|
163890
163893
|
return void 0;
|
|
163891
163894
|
}
|
|
163892
|
-
return
|
|
163895
|
+
return typeToInlayHintParts(signatureParamType);
|
|
163893
163896
|
}
|
|
163894
163897
|
function printTypeInSingleLine(type) {
|
|
163895
163898
|
const flags = 70221824 /* IgnoreErrors */ | 1048576 /* AllowUniqueESSymbolType */ | 16384 /* UseAliasDefinedOutsideCurrentScope */;
|
|
@@ -184421,7 +184424,7 @@ ${e.message}`;
|
|
|
184421
184424
|
isClassDeclaration: () => isClassDeclaration,
|
|
184422
184425
|
isClassElement: () => isClassElement,
|
|
184423
184426
|
isClassExpression: () => isClassExpression,
|
|
184424
|
-
|
|
184427
|
+
isClassInstanceProperty: () => isClassInstanceProperty,
|
|
184425
184428
|
isClassLike: () => isClassLike,
|
|
184426
184429
|
isClassMemberModifier: () => isClassMemberModifier,
|
|
184427
184430
|
isClassNamedEvaluationHelperBlock: () => isClassNamedEvaluationHelperBlock,
|
|
@@ -186828,7 +186831,7 @@ ${e.message}`;
|
|
|
186828
186831
|
isClassDeclaration: () => isClassDeclaration,
|
|
186829
186832
|
isClassElement: () => isClassElement,
|
|
186830
186833
|
isClassExpression: () => isClassExpression,
|
|
186831
|
-
|
|
186834
|
+
isClassInstanceProperty: () => isClassInstanceProperty,
|
|
186832
186835
|
isClassLike: () => isClassLike,
|
|
186833
186836
|
isClassMemberModifier: () => isClassMemberModifier,
|
|
186834
186837
|
isClassNamedEvaluationHelperBlock: () => isClassNamedEvaluationHelperBlock,
|
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.3";
|
|
57
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
57
|
+
var version = `${versionMajorMinor}.0-insiders.20230930`;
|
|
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.3.0-pr-
|
|
5
|
+
"version": "5.3.0-pr-55926-3",
|
|
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": "0aae977155b035922037ff0c16e828184a47f8c9"
|
|
118
118
|
}
|