@typescript-deploys/pr-build 5.4.0-pr-56439-8 → 5.4.0-pr-56552-6
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 +13 -19
- package/lib/tsserver.js +13 -19
- package/lib/typescript.js +13 -19
- package/lib/typingsInstaller.js +7 -14
- package/package.json +3 -3
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.20231127`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -18119,7 +18119,6 @@ var nullNodeConverters = {
|
|
|
18119
18119
|
var nextAutoGenerateId = 0;
|
|
18120
18120
|
var nodeFactoryPatchers = [];
|
|
18121
18121
|
function createNodeFactory(flags, baseFactory2) {
|
|
18122
|
-
const update = flags & 8 /* NoOriginalNode */ ? updateWithoutOriginal : updateWithOriginal;
|
|
18123
18122
|
const setOriginal = flags & 8 /* NoOriginalNode */ ? identity : setOriginalNode;
|
|
18124
18123
|
const parenthesizerRules = memoize(() => flags & 1 /* NoParenthesizerRules */ ? nullParenthesizerRules : createParenthesizerRules(factory2));
|
|
18125
18124
|
const converters = memoize(() => flags & 2 /* NoNodeConverters */ ? nullNodeConverters : createNodeConverters(factory2));
|
|
@@ -22346,19 +22345,13 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
22346
22345
|
}
|
|
22347
22346
|
return variableDeclaration;
|
|
22348
22347
|
}
|
|
22349
|
-
|
|
22350
|
-
|
|
22351
|
-
|
|
22352
|
-
|
|
22353
|
-
|
|
22354
|
-
|
|
22355
|
-
}
|
|
22356
|
-
function updateWithOriginal(updated, original) {
|
|
22357
|
-
if (updated !== original) {
|
|
22358
|
-
setOriginalNode(updated, original);
|
|
22359
|
-
setTextRange(updated, original);
|
|
22348
|
+
function update(updated, original) {
|
|
22349
|
+
if (updated !== original) {
|
|
22350
|
+
setOriginal(updated, original);
|
|
22351
|
+
setTextRange(updated, original);
|
|
22352
|
+
}
|
|
22353
|
+
return updated;
|
|
22360
22354
|
}
|
|
22361
|
-
return updated;
|
|
22362
22355
|
}
|
|
22363
22356
|
function getDefaultTagNameForKind(kind) {
|
|
22364
22357
|
switch (kind) {
|
|
@@ -41772,7 +41765,7 @@ function createBinder() {
|
|
|
41772
41765
|
}
|
|
41773
41766
|
function bindSpecialPropertyAssignment(node) {
|
|
41774
41767
|
var _a;
|
|
41775
|
-
const parentSymbol = lookupSymbolForPropertyAccess(node.left.expression,
|
|
41768
|
+
const parentSymbol = lookupSymbolForPropertyAccess(node.left.expression, blockScopeContainer) || lookupSymbolForPropertyAccess(node.left.expression, container);
|
|
41776
41769
|
if (!isInJSFile(node) && !isFunctionSymbol(parentSymbol)) {
|
|
41777
41770
|
return;
|
|
41778
41771
|
}
|
|
@@ -41870,7 +41863,7 @@ function createBinder() {
|
|
|
41870
41863
|
return isBinaryExpression(propertyAccess.parent) ? getParentOfBinaryExpression(propertyAccess.parent).parent.kind === 312 /* SourceFile */ : propertyAccess.parent.parent.kind === 312 /* SourceFile */;
|
|
41871
41864
|
}
|
|
41872
41865
|
function bindPropertyAssignment(name, propertyAccess, isPrototypeProperty, containerIsClass) {
|
|
41873
|
-
let namespaceSymbol = lookupSymbolForPropertyAccess(name,
|
|
41866
|
+
let namespaceSymbol = lookupSymbolForPropertyAccess(name, blockScopeContainer) || lookupSymbolForPropertyAccess(name, container);
|
|
41874
41867
|
const isToplevel = isTopLevelNamespaceAssignment(propertyAccess);
|
|
41875
41868
|
namespaceSymbol = bindPotentiallyMissingNamespaces(namespaceSymbol, propertyAccess.expression, isToplevel, isPrototypeProperty, containerIsClass);
|
|
41876
41869
|
bindPotentiallyNewExpandoMemberToNamespace(propertyAccess, namespaceSymbol, isPrototypeProperty);
|
|
@@ -64837,7 +64830,8 @@ function createTypeChecker(host) {
|
|
|
64837
64830
|
if (hasOnlyExpressionInitializer(declaration) && isBlockScopedNameDeclaredBeforeUse(declaration, node)) {
|
|
64838
64831
|
const initializer = getEffectiveInitializer(declaration);
|
|
64839
64832
|
if (initializer) {
|
|
64840
|
-
|
|
64833
|
+
const initializerType = isBindingPattern(declaration.parent) ? getTypeForBindingElement(declaration) : getTypeOfExpression(initializer);
|
|
64834
|
+
return initializerType && tryGetNameFromType(initializerType);
|
|
64841
64835
|
}
|
|
64842
64836
|
if (isEnumMember(declaration)) {
|
|
64843
64837
|
return getTextOfPropertyName(declaration.name);
|
|
@@ -66232,10 +66226,10 @@ function createTypeChecker(host) {
|
|
|
66232
66226
|
if (isMatchingConstructorReference(right)) {
|
|
66233
66227
|
return narrowTypeByConstructor(type, operator, left, assumeTrue);
|
|
66234
66228
|
}
|
|
66235
|
-
if (isBooleanLiteral(right)) {
|
|
66229
|
+
if (isBooleanLiteral(right) && !isAccessExpression(left)) {
|
|
66236
66230
|
return narrowTypeByBooleanComparison(type, left, right, operator, assumeTrue);
|
|
66237
66231
|
}
|
|
66238
|
-
if (isBooleanLiteral(left)) {
|
|
66232
|
+
if (isBooleanLiteral(left) && !isAccessExpression(right)) {
|
|
66239
66233
|
return narrowTypeByBooleanComparison(type, right, left, operator, assumeTrue);
|
|
66240
66234
|
}
|
|
66241
66235
|
break;
|
package/lib/tsserver.js
CHANGED
|
@@ -2331,7 +2331,7 @@ module.exports = __toCommonJS(server_exports);
|
|
|
2331
2331
|
|
|
2332
2332
|
// src/compiler/corePublic.ts
|
|
2333
2333
|
var versionMajorMinor = "5.4";
|
|
2334
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
2334
|
+
var version = `${versionMajorMinor}.0-insiders.20231127`;
|
|
2335
2335
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2336
2336
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2337
2337
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -22349,7 +22349,6 @@ function addNodeFactoryPatcher(fn) {
|
|
|
22349
22349
|
nodeFactoryPatchers.push(fn);
|
|
22350
22350
|
}
|
|
22351
22351
|
function createNodeFactory(flags, baseFactory2) {
|
|
22352
|
-
const update = flags & 8 /* NoOriginalNode */ ? updateWithoutOriginal : updateWithOriginal;
|
|
22353
22352
|
const setOriginal = flags & 8 /* NoOriginalNode */ ? identity : setOriginalNode;
|
|
22354
22353
|
const parenthesizerRules = memoize(() => flags & 1 /* NoParenthesizerRules */ ? nullParenthesizerRules : createParenthesizerRules(factory2));
|
|
22355
22354
|
const converters = memoize(() => flags & 2 /* NoNodeConverters */ ? nullNodeConverters : createNodeConverters(factory2));
|
|
@@ -26576,19 +26575,13 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
26576
26575
|
}
|
|
26577
26576
|
return variableDeclaration;
|
|
26578
26577
|
}
|
|
26579
|
-
|
|
26580
|
-
|
|
26581
|
-
|
|
26582
|
-
|
|
26583
|
-
|
|
26584
|
-
|
|
26585
|
-
}
|
|
26586
|
-
function updateWithOriginal(updated, original) {
|
|
26587
|
-
if (updated !== original) {
|
|
26588
|
-
setOriginalNode(updated, original);
|
|
26589
|
-
setTextRange(updated, original);
|
|
26578
|
+
function update(updated, original) {
|
|
26579
|
+
if (updated !== original) {
|
|
26580
|
+
setOriginal(updated, original);
|
|
26581
|
+
setTextRange(updated, original);
|
|
26582
|
+
}
|
|
26583
|
+
return updated;
|
|
26590
26584
|
}
|
|
26591
|
-
return updated;
|
|
26592
26585
|
}
|
|
26593
26586
|
function getDefaultTagNameForKind(kind) {
|
|
26594
26587
|
switch (kind) {
|
|
@@ -46453,7 +46446,7 @@ function createBinder() {
|
|
|
46453
46446
|
}
|
|
46454
46447
|
function bindSpecialPropertyAssignment(node) {
|
|
46455
46448
|
var _a;
|
|
46456
|
-
const parentSymbol = lookupSymbolForPropertyAccess(node.left.expression,
|
|
46449
|
+
const parentSymbol = lookupSymbolForPropertyAccess(node.left.expression, blockScopeContainer) || lookupSymbolForPropertyAccess(node.left.expression, container);
|
|
46457
46450
|
if (!isInJSFile(node) && !isFunctionSymbol(parentSymbol)) {
|
|
46458
46451
|
return;
|
|
46459
46452
|
}
|
|
@@ -46551,7 +46544,7 @@ function createBinder() {
|
|
|
46551
46544
|
return isBinaryExpression(propertyAccess.parent) ? getParentOfBinaryExpression(propertyAccess.parent).parent.kind === 312 /* SourceFile */ : propertyAccess.parent.parent.kind === 312 /* SourceFile */;
|
|
46552
46545
|
}
|
|
46553
46546
|
function bindPropertyAssignment(name, propertyAccess, isPrototypeProperty, containerIsClass) {
|
|
46554
|
-
let namespaceSymbol = lookupSymbolForPropertyAccess(name,
|
|
46547
|
+
let namespaceSymbol = lookupSymbolForPropertyAccess(name, blockScopeContainer) || lookupSymbolForPropertyAccess(name, container);
|
|
46555
46548
|
const isToplevel = isTopLevelNamespaceAssignment(propertyAccess);
|
|
46556
46549
|
namespaceSymbol = bindPotentiallyMissingNamespaces(namespaceSymbol, propertyAccess.expression, isToplevel, isPrototypeProperty, containerIsClass);
|
|
46557
46550
|
bindPotentiallyNewExpandoMemberToNamespace(propertyAccess, namespaceSymbol, isPrototypeProperty);
|
|
@@ -69563,7 +69556,8 @@ function createTypeChecker(host) {
|
|
|
69563
69556
|
if (hasOnlyExpressionInitializer(declaration) && isBlockScopedNameDeclaredBeforeUse(declaration, node)) {
|
|
69564
69557
|
const initializer = getEffectiveInitializer(declaration);
|
|
69565
69558
|
if (initializer) {
|
|
69566
|
-
|
|
69559
|
+
const initializerType = isBindingPattern(declaration.parent) ? getTypeForBindingElement(declaration) : getTypeOfExpression(initializer);
|
|
69560
|
+
return initializerType && tryGetNameFromType(initializerType);
|
|
69567
69561
|
}
|
|
69568
69562
|
if (isEnumMember(declaration)) {
|
|
69569
69563
|
return getTextOfPropertyName(declaration.name);
|
|
@@ -70958,10 +70952,10 @@ function createTypeChecker(host) {
|
|
|
70958
70952
|
if (isMatchingConstructorReference(right)) {
|
|
70959
70953
|
return narrowTypeByConstructor(type, operator, left, assumeTrue);
|
|
70960
70954
|
}
|
|
70961
|
-
if (isBooleanLiteral(right)) {
|
|
70955
|
+
if (isBooleanLiteral(right) && !isAccessExpression(left)) {
|
|
70962
70956
|
return narrowTypeByBooleanComparison(type, left, right, operator, assumeTrue);
|
|
70963
70957
|
}
|
|
70964
|
-
if (isBooleanLiteral(left)) {
|
|
70958
|
+
if (isBooleanLiteral(left) && !isAccessExpression(right)) {
|
|
70965
70959
|
return narrowTypeByBooleanComparison(type, right, left, operator, assumeTrue);
|
|
70966
70960
|
}
|
|
70967
70961
|
break;
|
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.20231127`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -20160,7 +20160,6 @@ ${lanes.join("\n")}
|
|
|
20160
20160
|
nodeFactoryPatchers.push(fn);
|
|
20161
20161
|
}
|
|
20162
20162
|
function createNodeFactory(flags, baseFactory2) {
|
|
20163
|
-
const update = flags & 8 /* NoOriginalNode */ ? updateWithoutOriginal : updateWithOriginal;
|
|
20164
20163
|
const setOriginal = flags & 8 /* NoOriginalNode */ ? identity : setOriginalNode;
|
|
20165
20164
|
const parenthesizerRules = memoize(() => flags & 1 /* NoParenthesizerRules */ ? nullParenthesizerRules : createParenthesizerRules(factory2));
|
|
20166
20165
|
const converters = memoize(() => flags & 2 /* NoNodeConverters */ ? nullNodeConverters : createNodeConverters(factory2));
|
|
@@ -24387,19 +24386,13 @@ ${lanes.join("\n")}
|
|
|
24387
24386
|
}
|
|
24388
24387
|
return variableDeclaration;
|
|
24389
24388
|
}
|
|
24390
|
-
|
|
24391
|
-
|
|
24392
|
-
|
|
24393
|
-
|
|
24394
|
-
|
|
24395
|
-
|
|
24396
|
-
}
|
|
24397
|
-
function updateWithOriginal(updated, original) {
|
|
24398
|
-
if (updated !== original) {
|
|
24399
|
-
setOriginalNode(updated, original);
|
|
24400
|
-
setTextRange(updated, original);
|
|
24389
|
+
function update(updated, original) {
|
|
24390
|
+
if (updated !== original) {
|
|
24391
|
+
setOriginal(updated, original);
|
|
24392
|
+
setTextRange(updated, original);
|
|
24393
|
+
}
|
|
24394
|
+
return updated;
|
|
24401
24395
|
}
|
|
24402
|
-
return updated;
|
|
24403
24396
|
}
|
|
24404
24397
|
function getDefaultTagNameForKind(kind) {
|
|
24405
24398
|
switch (kind) {
|
|
@@ -44297,7 +44290,7 @@ ${lanes.join("\n")}
|
|
|
44297
44290
|
}
|
|
44298
44291
|
function bindSpecialPropertyAssignment(node) {
|
|
44299
44292
|
var _a;
|
|
44300
|
-
const parentSymbol = lookupSymbolForPropertyAccess(node.left.expression,
|
|
44293
|
+
const parentSymbol = lookupSymbolForPropertyAccess(node.left.expression, blockScopeContainer) || lookupSymbolForPropertyAccess(node.left.expression, container);
|
|
44301
44294
|
if (!isInJSFile(node) && !isFunctionSymbol(parentSymbol)) {
|
|
44302
44295
|
return;
|
|
44303
44296
|
}
|
|
@@ -44395,7 +44388,7 @@ ${lanes.join("\n")}
|
|
|
44395
44388
|
return isBinaryExpression(propertyAccess.parent) ? getParentOfBinaryExpression(propertyAccess.parent).parent.kind === 312 /* SourceFile */ : propertyAccess.parent.parent.kind === 312 /* SourceFile */;
|
|
44396
44389
|
}
|
|
44397
44390
|
function bindPropertyAssignment(name, propertyAccess, isPrototypeProperty, containerIsClass) {
|
|
44398
|
-
let namespaceSymbol = lookupSymbolForPropertyAccess(name,
|
|
44391
|
+
let namespaceSymbol = lookupSymbolForPropertyAccess(name, blockScopeContainer) || lookupSymbolForPropertyAccess(name, container);
|
|
44399
44392
|
const isToplevel = isTopLevelNamespaceAssignment(propertyAccess);
|
|
44400
44393
|
namespaceSymbol = bindPotentiallyMissingNamespaces(namespaceSymbol, propertyAccess.expression, isToplevel, isPrototypeProperty, containerIsClass);
|
|
44401
44394
|
bindPotentiallyNewExpandoMemberToNamespace(propertyAccess, namespaceSymbol, isPrototypeProperty);
|
|
@@ -67327,7 +67320,8 @@ ${lanes.join("\n")}
|
|
|
67327
67320
|
if (hasOnlyExpressionInitializer(declaration) && isBlockScopedNameDeclaredBeforeUse(declaration, node)) {
|
|
67328
67321
|
const initializer = getEffectiveInitializer(declaration);
|
|
67329
67322
|
if (initializer) {
|
|
67330
|
-
|
|
67323
|
+
const initializerType = isBindingPattern(declaration.parent) ? getTypeForBindingElement(declaration) : getTypeOfExpression(initializer);
|
|
67324
|
+
return initializerType && tryGetNameFromType(initializerType);
|
|
67331
67325
|
}
|
|
67332
67326
|
if (isEnumMember(declaration)) {
|
|
67333
67327
|
return getTextOfPropertyName(declaration.name);
|
|
@@ -68722,10 +68716,10 @@ ${lanes.join("\n")}
|
|
|
68722
68716
|
if (isMatchingConstructorReference(right)) {
|
|
68723
68717
|
return narrowTypeByConstructor(type, operator, left, assumeTrue);
|
|
68724
68718
|
}
|
|
68725
|
-
if (isBooleanLiteral(right)) {
|
|
68719
|
+
if (isBooleanLiteral(right) && !isAccessExpression(left)) {
|
|
68726
68720
|
return narrowTypeByBooleanComparison(type, left, right, operator, assumeTrue);
|
|
68727
68721
|
}
|
|
68728
|
-
if (isBooleanLiteral(left)) {
|
|
68722
|
+
if (isBooleanLiteral(left) && !isAccessExpression(right)) {
|
|
68729
68723
|
return narrowTypeByBooleanComparison(type, right, left, operator, assumeTrue);
|
|
68730
68724
|
}
|
|
68731
68725
|
break;
|
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.20231127`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
|
@@ -12337,7 +12337,6 @@ var nullNodeConverters = {
|
|
|
12337
12337
|
var nextAutoGenerateId = 0;
|
|
12338
12338
|
var nodeFactoryPatchers = [];
|
|
12339
12339
|
function createNodeFactory(flags, baseFactory2) {
|
|
12340
|
-
const update = flags & 8 /* NoOriginalNode */ ? updateWithoutOriginal : updateWithOriginal;
|
|
12341
12340
|
const setOriginal = flags & 8 /* NoOriginalNode */ ? identity : setOriginalNode;
|
|
12342
12341
|
const parenthesizerRules = memoize(() => flags & 1 /* NoParenthesizerRules */ ? nullParenthesizerRules : createParenthesizerRules(factory2));
|
|
12343
12342
|
const converters = memoize(() => flags & 2 /* NoNodeConverters */ ? nullNodeConverters : createNodeConverters(factory2));
|
|
@@ -16564,19 +16563,13 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
16564
16563
|
}
|
|
16565
16564
|
return variableDeclaration;
|
|
16566
16565
|
}
|
|
16567
|
-
|
|
16568
|
-
|
|
16569
|
-
|
|
16570
|
-
|
|
16571
|
-
|
|
16572
|
-
|
|
16573
|
-
}
|
|
16574
|
-
function updateWithOriginal(updated, original) {
|
|
16575
|
-
if (updated !== original) {
|
|
16576
|
-
setOriginalNode(updated, original);
|
|
16577
|
-
setTextRange(updated, original);
|
|
16566
|
+
function update(updated, original) {
|
|
16567
|
+
if (updated !== original) {
|
|
16568
|
+
setOriginal(updated, original);
|
|
16569
|
+
setTextRange(updated, original);
|
|
16570
|
+
}
|
|
16571
|
+
return updated;
|
|
16578
16572
|
}
|
|
16579
|
-
return updated;
|
|
16580
16573
|
}
|
|
16581
16574
|
function getDefaultTagNameForKind(kind) {
|
|
16582
16575
|
switch (kind) {
|
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-56552-6",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"playwright": "^1.38.0",
|
|
79
79
|
"source-map-support": "^0.5.21",
|
|
80
80
|
"tslib": "^2.5.0",
|
|
81
|
-
"typescript": "^5.
|
|
81
|
+
"typescript": "^5.3.2",
|
|
82
82
|
"which": "^2.0.2"
|
|
83
83
|
},
|
|
84
84
|
"overrides": {
|
|
@@ -115,5 +115,5 @@
|
|
|
115
115
|
"node": "20.1.0",
|
|
116
116
|
"npm": "8.19.4"
|
|
117
117
|
},
|
|
118
|
-
"gitHead": "
|
|
118
|
+
"gitHead": "1b95c5e2d60ba2b6f25cdc58375d0ce2f2d09f88"
|
|
119
119
|
}
|