@typescript-deploys/pr-build 5.1.0-pr-54052-7 → 5.1.0-pr-54066-7
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 +18 -3
- package/lib/tsserver.js +18 -3
- package/lib/tsserverlibrary.js +18 -3
- package/lib/typescript.js +18 -3
- 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.1";
|
|
21
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
21
|
+
var version = `${versionMajorMinor}.0-insiders.20230429`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -56065,6 +56065,7 @@ function createTypeChecker(host) {
|
|
|
56065
56065
|
if (types.length === 1) {
|
|
56066
56066
|
return types[0];
|
|
56067
56067
|
}
|
|
56068
|
+
types = [...new Set(types)];
|
|
56068
56069
|
if (types.length === 2 && !origin && (types[0].flags & 1048576 /* Union */ || types[1].flags & 1048576 /* Union */)) {
|
|
56069
56070
|
const infix = unionReduction === 0 /* None */ ? "N" : unionReduction === 2 /* Subtype */ ? "S" : "L";
|
|
56070
56071
|
const index = types[0].id < types[1].id ? 0 : 1;
|
|
@@ -56336,6 +56337,7 @@ function createTypeChecker(host) {
|
|
|
56336
56337
|
return result;
|
|
56337
56338
|
}
|
|
56338
56339
|
function getIntersectionType(types, aliasSymbol, aliasTypeArguments, noSupertypeReduction) {
|
|
56340
|
+
types = [...new Set(types.slice().reverse())].reverse();
|
|
56339
56341
|
const typeMembershipMap = /* @__PURE__ */ new Map();
|
|
56340
56342
|
const includes = addTypesToIntersection(typeMembershipMap, 0, types);
|
|
56341
56343
|
const typeSet = arrayFrom(typeMembershipMap.values());
|
|
@@ -61671,7 +61673,7 @@ function createTypeChecker(host) {
|
|
|
61671
61673
|
}
|
|
61672
61674
|
}
|
|
61673
61675
|
}
|
|
61674
|
-
const filtered = contains(include, 0 /* False */) ? getUnionType(types.filter((_, i) => include[i])
|
|
61676
|
+
const filtered = contains(include, 0 /* False */) ? getUnionType(types.filter((_, i) => include[i])) : target;
|
|
61675
61677
|
return filtered.flags & 131072 /* Never */ ? target : filtered;
|
|
61676
61678
|
}
|
|
61677
61679
|
function isWeakType(type) {
|
|
@@ -90414,6 +90416,19 @@ function transformLegacyDecorators(context) {
|
|
|
90414
90416
|
let members = visitNodes2(node.members, visitor, isClassElement);
|
|
90415
90417
|
let decorationStatements = [];
|
|
90416
90418
|
({ members, decorationStatements } = transformDecoratorsOfClassElements(node, members));
|
|
90419
|
+
const assignClassAliasInStaticBlock = languageVersion >= 9 /* ES2022 */ && !!classAlias && some(members, (member) => isPropertyDeclaration(member) && hasSyntacticModifier(member, 32 /* Static */) || isClassStaticBlockDeclaration(member));
|
|
90420
|
+
if (assignClassAliasInStaticBlock) {
|
|
90421
|
+
members = setTextRange(factory2.createNodeArray([
|
|
90422
|
+
factory2.createClassStaticBlockDeclaration(
|
|
90423
|
+
factory2.createBlock([
|
|
90424
|
+
factory2.createExpressionStatement(
|
|
90425
|
+
factory2.createAssignment(classAlias, factory2.createThis())
|
|
90426
|
+
)
|
|
90427
|
+
])
|
|
90428
|
+
),
|
|
90429
|
+
...members
|
|
90430
|
+
]), members);
|
|
90431
|
+
}
|
|
90417
90432
|
const classExpression = factory2.createClassExpression(
|
|
90418
90433
|
modifiers,
|
|
90419
90434
|
name && isGeneratedIdentifier(name) ? void 0 : name,
|
|
@@ -90430,7 +90445,7 @@ function transformLegacyDecorators(context) {
|
|
|
90430
90445
|
void 0,
|
|
90431
90446
|
/*type*/
|
|
90432
90447
|
void 0,
|
|
90433
|
-
classAlias ? factory2.createAssignment(classAlias, classExpression) : classExpression
|
|
90448
|
+
classAlias && !assignClassAliasInStaticBlock ? factory2.createAssignment(classAlias, classExpression) : classExpression
|
|
90434
90449
|
);
|
|
90435
90450
|
setOriginalNode(varDecl, node);
|
|
90436
90451
|
let varModifiers;
|
package/lib/tsserver.js
CHANGED
|
@@ -2303,7 +2303,7 @@ module.exports = __toCommonJS(server_exports);
|
|
|
2303
2303
|
|
|
2304
2304
|
// src/compiler/corePublic.ts
|
|
2305
2305
|
var versionMajorMinor = "5.1";
|
|
2306
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
2306
|
+
var version = `${versionMajorMinor}.0-insiders.20230429`;
|
|
2307
2307
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2308
2308
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2309
2309
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -60715,6 +60715,7 @@ function createTypeChecker(host) {
|
|
|
60715
60715
|
if (types.length === 1) {
|
|
60716
60716
|
return types[0];
|
|
60717
60717
|
}
|
|
60718
|
+
types = [...new Set(types)];
|
|
60718
60719
|
if (types.length === 2 && !origin && (types[0].flags & 1048576 /* Union */ || types[1].flags & 1048576 /* Union */)) {
|
|
60719
60720
|
const infix = unionReduction === 0 /* None */ ? "N" : unionReduction === 2 /* Subtype */ ? "S" : "L";
|
|
60720
60721
|
const index = types[0].id < types[1].id ? 0 : 1;
|
|
@@ -60986,6 +60987,7 @@ function createTypeChecker(host) {
|
|
|
60986
60987
|
return result;
|
|
60987
60988
|
}
|
|
60988
60989
|
function getIntersectionType(types, aliasSymbol, aliasTypeArguments, noSupertypeReduction) {
|
|
60990
|
+
types = [...new Set(types.slice().reverse())].reverse();
|
|
60989
60991
|
const typeMembershipMap = /* @__PURE__ */ new Map();
|
|
60990
60992
|
const includes = addTypesToIntersection(typeMembershipMap, 0, types);
|
|
60991
60993
|
const typeSet = arrayFrom(typeMembershipMap.values());
|
|
@@ -66321,7 +66323,7 @@ function createTypeChecker(host) {
|
|
|
66321
66323
|
}
|
|
66322
66324
|
}
|
|
66323
66325
|
}
|
|
66324
|
-
const filtered = contains(include, 0 /* False */) ? getUnionType(types.filter((_, i) => include[i])
|
|
66326
|
+
const filtered = contains(include, 0 /* False */) ? getUnionType(types.filter((_, i) => include[i])) : target;
|
|
66325
66327
|
return filtered.flags & 131072 /* Never */ ? target : filtered;
|
|
66326
66328
|
}
|
|
66327
66329
|
function isWeakType(type) {
|
|
@@ -95235,6 +95237,19 @@ function transformLegacyDecorators(context) {
|
|
|
95235
95237
|
let members = visitNodes2(node.members, visitor, isClassElement);
|
|
95236
95238
|
let decorationStatements = [];
|
|
95237
95239
|
({ members, decorationStatements } = transformDecoratorsOfClassElements(node, members));
|
|
95240
|
+
const assignClassAliasInStaticBlock = languageVersion >= 9 /* ES2022 */ && !!classAlias && some(members, (member) => isPropertyDeclaration(member) && hasSyntacticModifier(member, 32 /* Static */) || isClassStaticBlockDeclaration(member));
|
|
95241
|
+
if (assignClassAliasInStaticBlock) {
|
|
95242
|
+
members = setTextRange(factory2.createNodeArray([
|
|
95243
|
+
factory2.createClassStaticBlockDeclaration(
|
|
95244
|
+
factory2.createBlock([
|
|
95245
|
+
factory2.createExpressionStatement(
|
|
95246
|
+
factory2.createAssignment(classAlias, factory2.createThis())
|
|
95247
|
+
)
|
|
95248
|
+
])
|
|
95249
|
+
),
|
|
95250
|
+
...members
|
|
95251
|
+
]), members);
|
|
95252
|
+
}
|
|
95238
95253
|
const classExpression = factory2.createClassExpression(
|
|
95239
95254
|
modifiers,
|
|
95240
95255
|
name && isGeneratedIdentifier(name) ? void 0 : name,
|
|
@@ -95251,7 +95266,7 @@ function transformLegacyDecorators(context) {
|
|
|
95251
95266
|
void 0,
|
|
95252
95267
|
/*type*/
|
|
95253
95268
|
void 0,
|
|
95254
|
-
classAlias ? factory2.createAssignment(classAlias, classExpression) : classExpression
|
|
95269
|
+
classAlias && !assignClassAliasInStaticBlock ? factory2.createAssignment(classAlias, classExpression) : classExpression
|
|
95255
95270
|
);
|
|
95256
95271
|
setOriginalNode(varDecl, node);
|
|
95257
95272
|
let varModifiers;
|
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.1";
|
|
38
|
-
version = `${versionMajorMinor}.0-insiders.
|
|
38
|
+
version = `${versionMajorMinor}.0-insiders.20230429`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -58507,6 +58507,7 @@ ${lanes.join("\n")}
|
|
|
58507
58507
|
if (types.length === 1) {
|
|
58508
58508
|
return types[0];
|
|
58509
58509
|
}
|
|
58510
|
+
types = [...new Set(types)];
|
|
58510
58511
|
if (types.length === 2 && !origin && (types[0].flags & 1048576 /* Union */ || types[1].flags & 1048576 /* Union */)) {
|
|
58511
58512
|
const infix = unionReduction === 0 /* None */ ? "N" : unionReduction === 2 /* Subtype */ ? "S" : "L";
|
|
58512
58513
|
const index = types[0].id < types[1].id ? 0 : 1;
|
|
@@ -58778,6 +58779,7 @@ ${lanes.join("\n")}
|
|
|
58778
58779
|
return result;
|
|
58779
58780
|
}
|
|
58780
58781
|
function getIntersectionType(types, aliasSymbol, aliasTypeArguments, noSupertypeReduction) {
|
|
58782
|
+
types = [...new Set(types.slice().reverse())].reverse();
|
|
58781
58783
|
const typeMembershipMap = /* @__PURE__ */ new Map();
|
|
58782
58784
|
const includes = addTypesToIntersection(typeMembershipMap, 0, types);
|
|
58783
58785
|
const typeSet = arrayFrom(typeMembershipMap.values());
|
|
@@ -64113,7 +64115,7 @@ ${lanes.join("\n")}
|
|
|
64113
64115
|
}
|
|
64114
64116
|
}
|
|
64115
64117
|
}
|
|
64116
|
-
const filtered = contains(include, 0 /* False */) ? getUnionType(types.filter((_, i) => include[i])
|
|
64118
|
+
const filtered = contains(include, 0 /* False */) ? getUnionType(types.filter((_, i) => include[i])) : target;
|
|
64117
64119
|
return filtered.flags & 131072 /* Never */ ? target : filtered;
|
|
64118
64120
|
}
|
|
64119
64121
|
function isWeakType(type) {
|
|
@@ -93214,6 +93216,19 @@ ${lanes.join("\n")}
|
|
|
93214
93216
|
let members = visitNodes2(node.members, visitor, isClassElement);
|
|
93215
93217
|
let decorationStatements = [];
|
|
93216
93218
|
({ members, decorationStatements } = transformDecoratorsOfClassElements(node, members));
|
|
93219
|
+
const assignClassAliasInStaticBlock = languageVersion >= 9 /* ES2022 */ && !!classAlias && some(members, (member) => isPropertyDeclaration(member) && hasSyntacticModifier(member, 32 /* Static */) || isClassStaticBlockDeclaration(member));
|
|
93220
|
+
if (assignClassAliasInStaticBlock) {
|
|
93221
|
+
members = setTextRange(factory2.createNodeArray([
|
|
93222
|
+
factory2.createClassStaticBlockDeclaration(
|
|
93223
|
+
factory2.createBlock([
|
|
93224
|
+
factory2.createExpressionStatement(
|
|
93225
|
+
factory2.createAssignment(classAlias, factory2.createThis())
|
|
93226
|
+
)
|
|
93227
|
+
])
|
|
93228
|
+
),
|
|
93229
|
+
...members
|
|
93230
|
+
]), members);
|
|
93231
|
+
}
|
|
93217
93232
|
const classExpression = factory2.createClassExpression(
|
|
93218
93233
|
modifiers,
|
|
93219
93234
|
name && isGeneratedIdentifier(name) ? void 0 : name,
|
|
@@ -93230,7 +93245,7 @@ ${lanes.join("\n")}
|
|
|
93230
93245
|
void 0,
|
|
93231
93246
|
/*type*/
|
|
93232
93247
|
void 0,
|
|
93233
|
-
classAlias ? factory2.createAssignment(classAlias, classExpression) : classExpression
|
|
93248
|
+
classAlias && !assignClassAliasInStaticBlock ? factory2.createAssignment(classAlias, classExpression) : classExpression
|
|
93234
93249
|
);
|
|
93235
93250
|
setOriginalNode(varDecl, node);
|
|
93236
93251
|
let varModifiers;
|
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.1";
|
|
38
|
-
version = `${versionMajorMinor}.0-insiders.
|
|
38
|
+
version = `${versionMajorMinor}.0-insiders.20230429`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -58507,6 +58507,7 @@ ${lanes.join("\n")}
|
|
|
58507
58507
|
if (types.length === 1) {
|
|
58508
58508
|
return types[0];
|
|
58509
58509
|
}
|
|
58510
|
+
types = [...new Set(types)];
|
|
58510
58511
|
if (types.length === 2 && !origin && (types[0].flags & 1048576 /* Union */ || types[1].flags & 1048576 /* Union */)) {
|
|
58511
58512
|
const infix = unionReduction === 0 /* None */ ? "N" : unionReduction === 2 /* Subtype */ ? "S" : "L";
|
|
58512
58513
|
const index = types[0].id < types[1].id ? 0 : 1;
|
|
@@ -58778,6 +58779,7 @@ ${lanes.join("\n")}
|
|
|
58778
58779
|
return result;
|
|
58779
58780
|
}
|
|
58780
58781
|
function getIntersectionType(types, aliasSymbol, aliasTypeArguments, noSupertypeReduction) {
|
|
58782
|
+
types = [...new Set(types.slice().reverse())].reverse();
|
|
58781
58783
|
const typeMembershipMap = /* @__PURE__ */ new Map();
|
|
58782
58784
|
const includes = addTypesToIntersection(typeMembershipMap, 0, types);
|
|
58783
58785
|
const typeSet = arrayFrom(typeMembershipMap.values());
|
|
@@ -64113,7 +64115,7 @@ ${lanes.join("\n")}
|
|
|
64113
64115
|
}
|
|
64114
64116
|
}
|
|
64115
64117
|
}
|
|
64116
|
-
const filtered = contains(include, 0 /* False */) ? getUnionType(types.filter((_, i) => include[i])
|
|
64118
|
+
const filtered = contains(include, 0 /* False */) ? getUnionType(types.filter((_, i) => include[i])) : target;
|
|
64117
64119
|
return filtered.flags & 131072 /* Never */ ? target : filtered;
|
|
64118
64120
|
}
|
|
64119
64121
|
function isWeakType(type) {
|
|
@@ -93214,6 +93216,19 @@ ${lanes.join("\n")}
|
|
|
93214
93216
|
let members = visitNodes2(node.members, visitor, isClassElement);
|
|
93215
93217
|
let decorationStatements = [];
|
|
93216
93218
|
({ members, decorationStatements } = transformDecoratorsOfClassElements(node, members));
|
|
93219
|
+
const assignClassAliasInStaticBlock = languageVersion >= 9 /* ES2022 */ && !!classAlias && some(members, (member) => isPropertyDeclaration(member) && hasSyntacticModifier(member, 32 /* Static */) || isClassStaticBlockDeclaration(member));
|
|
93220
|
+
if (assignClassAliasInStaticBlock) {
|
|
93221
|
+
members = setTextRange(factory2.createNodeArray([
|
|
93222
|
+
factory2.createClassStaticBlockDeclaration(
|
|
93223
|
+
factory2.createBlock([
|
|
93224
|
+
factory2.createExpressionStatement(
|
|
93225
|
+
factory2.createAssignment(classAlias, factory2.createThis())
|
|
93226
|
+
)
|
|
93227
|
+
])
|
|
93228
|
+
),
|
|
93229
|
+
...members
|
|
93230
|
+
]), members);
|
|
93231
|
+
}
|
|
93217
93232
|
const classExpression = factory2.createClassExpression(
|
|
93218
93233
|
modifiers,
|
|
93219
93234
|
name && isGeneratedIdentifier(name) ? void 0 : name,
|
|
@@ -93230,7 +93245,7 @@ ${lanes.join("\n")}
|
|
|
93230
93245
|
void 0,
|
|
93231
93246
|
/*type*/
|
|
93232
93247
|
void 0,
|
|
93233
|
-
classAlias ? factory2.createAssignment(classAlias, classExpression) : classExpression
|
|
93248
|
+
classAlias && !assignClassAliasInStaticBlock ? factory2.createAssignment(classAlias, classExpression) : classExpression
|
|
93234
93249
|
);
|
|
93235
93250
|
setOriginalNode(varDecl, node);
|
|
93236
93251
|
let varModifiers;
|
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.1";
|
|
57
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
57
|
+
var version = `${versionMajorMinor}.0-insiders.20230429`;
|
|
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.1.0-pr-
|
|
5
|
+
"version": "5.1.0-pr-54066-7",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -116,5 +116,5 @@
|
|
|
116
116
|
"node": "14.21.1",
|
|
117
117
|
"npm": "8.19.3"
|
|
118
118
|
},
|
|
119
|
-
"gitHead": "
|
|
119
|
+
"gitHead": "dc59cf428dfa2195ec374367e34c69c88e44aa9f"
|
|
120
120
|
}
|