@typescript-deploys/pr-build 5.3.0-pr-55291-6 → 5.3.0-pr-55449-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 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.20230817`;
21
+ var version = `${versionMajorMinor}.0-insiders.20230821`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -64463,7 +64463,7 @@ function createTypeChecker(host) {
64463
64463
  const resolved = resolveStructuredTypeMembers(type);
64464
64464
  return !!(resolved.callSignatures.length || resolved.constructSignatures.length || resolved.members.get("bind") && isTypeSubtypeOf(type, globalFunctionType));
64465
64465
  }
64466
- function getTypeFacts(type, strictTruthy) {
64466
+ function getTypeFacts(type) {
64467
64467
  if (type.flags & (2097152 /* Intersection */ | 465829888 /* Instantiable */)) {
64468
64468
  type = getBaseConstraintOfType(type) || unknownType;
64469
64469
  }
@@ -64493,7 +64493,7 @@ function createTypeChecker(host) {
64493
64493
  return strictNullChecks ? 16316168 /* BooleanStrictFacts */ : 16774920 /* BooleanFacts */;
64494
64494
  }
64495
64495
  if (flags & 528 /* BooleanLike */) {
64496
- return strictNullChecks ? type === falseType || type === regularFalseType ? 12121864 /* FalseStrictFacts */ : 7927560 /* TrueStrictFacts */ : type === falseType || type === regularFalseType ? 12580616 /* FalseFacts */ : strictTruthy ? 16774920 /* TrueFacts */ & ~8388608 /* Falsy */ : 16774920 /* TrueFacts */;
64496
+ return strictNullChecks ? type === falseType || type === regularFalseType ? 12121864 /* FalseStrictFacts */ : 7927560 /* TrueStrictFacts */ : type === falseType || type === regularFalseType ? 12580616 /* FalseFacts */ : 16774920 /* TrueFacts */;
64497
64497
  }
64498
64498
  if (flags & 524288 /* Object */) {
64499
64499
  return getObjectFlags(type) & 16 /* Anonymous */ && isEmptyObjectType(type) ? strictNullChecks ? 83427327 /* EmptyObjectStrictFacts */ : 83886079 /* EmptyObjectFacts */ : isFunctionObjectType(type) ? strictNullChecks ? 7880640 /* FunctionStrictFacts */ : 16728e3 /* FunctionFacts */ : strictNullChecks ? 7888800 /* ObjectStrictFacts */ : 16736160 /* ObjectFacts */;
@@ -64517,7 +64517,7 @@ function createTypeChecker(host) {
64517
64517
  return 0 /* None */;
64518
64518
  }
64519
64519
  if (flags & 1048576 /* Union */) {
64520
- return reduceLeft(type.types, (facts, t) => facts | getTypeFacts(t, strictTruthy), 0 /* None */);
64520
+ return reduceLeft(type.types, (facts, t) => facts | getTypeFacts(t), 0 /* None */);
64521
64521
  }
64522
64522
  if (flags & 2097152 /* Intersection */) {
64523
64523
  return getIntersectionTypeFacts(type);
@@ -64537,8 +64537,8 @@ function createTypeChecker(host) {
64537
64537
  }
64538
64538
  return oredFacts & 8256 /* OrFactsMask */ | andedFacts & 134209471 /* AndFactsMask */;
64539
64539
  }
64540
- function getTypeWithFacts(type, include, strictTruthy) {
64541
- return filterType(type, (t) => (getTypeFacts(t, strictTruthy) & include) !== 0);
64540
+ function getTypeWithFacts(type, include) {
64541
+ return filterType(type, (t) => (getTypeFacts(t) & include) !== 0);
64542
64542
  }
64543
64543
  function getAdjustedTypeWithFacts(type, facts) {
64544
64544
  const reduced = recombineUnknownType(getTypeWithFacts(strictNullChecks && type.flags & 2 /* Unknown */ ? unknownUnionType : type, facts));
@@ -65598,12 +65598,7 @@ function createTypeChecker(host) {
65598
65598
  }
65599
65599
  const access = getDiscriminantPropertyAccess(expr, type);
65600
65600
  if (access) {
65601
- return narrowTypeByDiscriminant(type, access, (t) => getTypeWithFacts(
65602
- t,
65603
- assumeTrue ? 4194304 /* Truthy */ : 8388608 /* Falsy */,
65604
- /*strictTruthy*/
65605
- true
65606
- ));
65601
+ return narrowTypeByDiscriminant(type, access, (t) => getTypeWithFacts(t, assumeTrue ? 4194304 /* Truthy */ : 8388608 /* Falsy */));
65607
65602
  }
65608
65603
  return type;
65609
65604
  }
@@ -73163,8 +73158,9 @@ function createTypeChecker(host) {
73163
73158
  if (symbol) {
73164
73159
  if (isReadonlySymbol(symbol)) {
73165
73160
  error(expr, Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property);
73161
+ } else {
73162
+ checkDeleteExpressionMustBeOptional(expr, symbol);
73166
73163
  }
73167
- checkDeleteExpressionMustBeOptional(expr, symbol);
73168
73164
  }
73169
73165
  return booleanType;
73170
73166
  }
@@ -83700,7 +83696,7 @@ function createTypeChecker(host) {
83700
83696
  }
83701
83697
  function getEffectivePropertyNameForPropertyNameNode(node) {
83702
83698
  const name = getPropertyNameForPropertyNameNode(node);
83703
- return name ? name : isComputedPropertyName(node) && isEntityNameExpression(node.expression) ? tryGetNameFromEntityNameExpression(node.expression) : void 0;
83699
+ return name ? name : isComputedPropertyName(node) ? tryGetNameFromType(getTypeOfExpression(node.expression)) : void 0;
83704
83700
  }
83705
83701
  function getCombinedModifierFlagsCached(node) {
83706
83702
  if (lastGetCombinedModifierFlagsNode === node) {
package/lib/tsserver.js CHANGED
@@ -2333,7 +2333,7 @@ module.exports = __toCommonJS(server_exports);
2333
2333
 
2334
2334
  // src/compiler/corePublic.ts
2335
2335
  var versionMajorMinor = "5.3";
2336
- var version = `${versionMajorMinor}.0-insiders.20230817`;
2336
+ var version = `${versionMajorMinor}.0-insiders.20230821`;
2337
2337
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2338
2338
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2339
2339
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -69171,7 +69171,7 @@ function createTypeChecker(host) {
69171
69171
  const resolved = resolveStructuredTypeMembers(type);
69172
69172
  return !!(resolved.callSignatures.length || resolved.constructSignatures.length || resolved.members.get("bind") && isTypeSubtypeOf(type, globalFunctionType));
69173
69173
  }
69174
- function getTypeFacts(type, strictTruthy) {
69174
+ function getTypeFacts(type) {
69175
69175
  if (type.flags & (2097152 /* Intersection */ | 465829888 /* Instantiable */)) {
69176
69176
  type = getBaseConstraintOfType(type) || unknownType;
69177
69177
  }
@@ -69201,7 +69201,7 @@ function createTypeChecker(host) {
69201
69201
  return strictNullChecks ? 16316168 /* BooleanStrictFacts */ : 16774920 /* BooleanFacts */;
69202
69202
  }
69203
69203
  if (flags & 528 /* BooleanLike */) {
69204
- return strictNullChecks ? type === falseType || type === regularFalseType ? 12121864 /* FalseStrictFacts */ : 7927560 /* TrueStrictFacts */ : type === falseType || type === regularFalseType ? 12580616 /* FalseFacts */ : strictTruthy ? 16774920 /* TrueFacts */ & ~8388608 /* Falsy */ : 16774920 /* TrueFacts */;
69204
+ return strictNullChecks ? type === falseType || type === regularFalseType ? 12121864 /* FalseStrictFacts */ : 7927560 /* TrueStrictFacts */ : type === falseType || type === regularFalseType ? 12580616 /* FalseFacts */ : 16774920 /* TrueFacts */;
69205
69205
  }
69206
69206
  if (flags & 524288 /* Object */) {
69207
69207
  return getObjectFlags(type) & 16 /* Anonymous */ && isEmptyObjectType(type) ? strictNullChecks ? 83427327 /* EmptyObjectStrictFacts */ : 83886079 /* EmptyObjectFacts */ : isFunctionObjectType(type) ? strictNullChecks ? 7880640 /* FunctionStrictFacts */ : 16728e3 /* FunctionFacts */ : strictNullChecks ? 7888800 /* ObjectStrictFacts */ : 16736160 /* ObjectFacts */;
@@ -69225,7 +69225,7 @@ function createTypeChecker(host) {
69225
69225
  return 0 /* None */;
69226
69226
  }
69227
69227
  if (flags & 1048576 /* Union */) {
69228
- return reduceLeft(type.types, (facts, t) => facts | getTypeFacts(t, strictTruthy), 0 /* None */);
69228
+ return reduceLeft(type.types, (facts, t) => facts | getTypeFacts(t), 0 /* None */);
69229
69229
  }
69230
69230
  if (flags & 2097152 /* Intersection */) {
69231
69231
  return getIntersectionTypeFacts(type);
@@ -69245,8 +69245,8 @@ function createTypeChecker(host) {
69245
69245
  }
69246
69246
  return oredFacts & 8256 /* OrFactsMask */ | andedFacts & 134209471 /* AndFactsMask */;
69247
69247
  }
69248
- function getTypeWithFacts(type, include, strictTruthy) {
69249
- return filterType(type, (t) => (getTypeFacts(t, strictTruthy) & include) !== 0);
69248
+ function getTypeWithFacts(type, include) {
69249
+ return filterType(type, (t) => (getTypeFacts(t) & include) !== 0);
69250
69250
  }
69251
69251
  function getAdjustedTypeWithFacts(type, facts) {
69252
69252
  const reduced = recombineUnknownType(getTypeWithFacts(strictNullChecks && type.flags & 2 /* Unknown */ ? unknownUnionType : type, facts));
@@ -70306,12 +70306,7 @@ function createTypeChecker(host) {
70306
70306
  }
70307
70307
  const access = getDiscriminantPropertyAccess(expr, type);
70308
70308
  if (access) {
70309
- return narrowTypeByDiscriminant(type, access, (t) => getTypeWithFacts(
70310
- t,
70311
- assumeTrue ? 4194304 /* Truthy */ : 8388608 /* Falsy */,
70312
- /*strictTruthy*/
70313
- true
70314
- ));
70309
+ return narrowTypeByDiscriminant(type, access, (t) => getTypeWithFacts(t, assumeTrue ? 4194304 /* Truthy */ : 8388608 /* Falsy */));
70315
70310
  }
70316
70311
  return type;
70317
70312
  }
@@ -77871,8 +77866,9 @@ function createTypeChecker(host) {
77871
77866
  if (symbol) {
77872
77867
  if (isReadonlySymbol(symbol)) {
77873
77868
  error2(expr, Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property);
77869
+ } else {
77870
+ checkDeleteExpressionMustBeOptional(expr, symbol);
77874
77871
  }
77875
- checkDeleteExpressionMustBeOptional(expr, symbol);
77876
77872
  }
77877
77873
  return booleanType;
77878
77874
  }
@@ -88408,7 +88404,7 @@ function createTypeChecker(host) {
88408
88404
  }
88409
88405
  function getEffectivePropertyNameForPropertyNameNode(node) {
88410
88406
  const name = getPropertyNameForPropertyNameNode(node);
88411
- return name ? name : isComputedPropertyName(node) && isEntityNameExpression(node.expression) ? tryGetNameFromEntityNameExpression(node.expression) : void 0;
88407
+ return name ? name : isComputedPropertyName(node) ? tryGetNameFromType(getTypeOfExpression(node.expression)) : void 0;
88412
88408
  }
88413
88409
  function getCombinedModifierFlagsCached(node) {
88414
88410
  if (lastGetCombinedModifierFlagsNode === node) {
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.20230817`;
38
+ version = `${versionMajorMinor}.0-insiders.20230821`;
39
39
  Comparison = /* @__PURE__ */ ((Comparison3) => {
40
40
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
41
41
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -66932,7 +66932,7 @@ ${lanes.join("\n")}
66932
66932
  const resolved = resolveStructuredTypeMembers(type);
66933
66933
  return !!(resolved.callSignatures.length || resolved.constructSignatures.length || resolved.members.get("bind") && isTypeSubtypeOf(type, globalFunctionType));
66934
66934
  }
66935
- function getTypeFacts(type, strictTruthy) {
66935
+ function getTypeFacts(type) {
66936
66936
  if (type.flags & (2097152 /* Intersection */ | 465829888 /* Instantiable */)) {
66937
66937
  type = getBaseConstraintOfType(type) || unknownType;
66938
66938
  }
@@ -66962,7 +66962,7 @@ ${lanes.join("\n")}
66962
66962
  return strictNullChecks ? 16316168 /* BooleanStrictFacts */ : 16774920 /* BooleanFacts */;
66963
66963
  }
66964
66964
  if (flags & 528 /* BooleanLike */) {
66965
- return strictNullChecks ? type === falseType || type === regularFalseType ? 12121864 /* FalseStrictFacts */ : 7927560 /* TrueStrictFacts */ : type === falseType || type === regularFalseType ? 12580616 /* FalseFacts */ : strictTruthy ? 16774920 /* TrueFacts */ & ~8388608 /* Falsy */ : 16774920 /* TrueFacts */;
66965
+ return strictNullChecks ? type === falseType || type === regularFalseType ? 12121864 /* FalseStrictFacts */ : 7927560 /* TrueStrictFacts */ : type === falseType || type === regularFalseType ? 12580616 /* FalseFacts */ : 16774920 /* TrueFacts */;
66966
66966
  }
66967
66967
  if (flags & 524288 /* Object */) {
66968
66968
  return getObjectFlags(type) & 16 /* Anonymous */ && isEmptyObjectType(type) ? strictNullChecks ? 83427327 /* EmptyObjectStrictFacts */ : 83886079 /* EmptyObjectFacts */ : isFunctionObjectType(type) ? strictNullChecks ? 7880640 /* FunctionStrictFacts */ : 16728e3 /* FunctionFacts */ : strictNullChecks ? 7888800 /* ObjectStrictFacts */ : 16736160 /* ObjectFacts */;
@@ -66986,7 +66986,7 @@ ${lanes.join("\n")}
66986
66986
  return 0 /* None */;
66987
66987
  }
66988
66988
  if (flags & 1048576 /* Union */) {
66989
- return reduceLeft(type.types, (facts, t) => facts | getTypeFacts(t, strictTruthy), 0 /* None */);
66989
+ return reduceLeft(type.types, (facts, t) => facts | getTypeFacts(t), 0 /* None */);
66990
66990
  }
66991
66991
  if (flags & 2097152 /* Intersection */) {
66992
66992
  return getIntersectionTypeFacts(type);
@@ -67006,8 +67006,8 @@ ${lanes.join("\n")}
67006
67006
  }
67007
67007
  return oredFacts & 8256 /* OrFactsMask */ | andedFacts & 134209471 /* AndFactsMask */;
67008
67008
  }
67009
- function getTypeWithFacts(type, include, strictTruthy) {
67010
- return filterType(type, (t) => (getTypeFacts(t, strictTruthy) & include) !== 0);
67009
+ function getTypeWithFacts(type, include) {
67010
+ return filterType(type, (t) => (getTypeFacts(t) & include) !== 0);
67011
67011
  }
67012
67012
  function getAdjustedTypeWithFacts(type, facts) {
67013
67013
  const reduced = recombineUnknownType(getTypeWithFacts(strictNullChecks && type.flags & 2 /* Unknown */ ? unknownUnionType : type, facts));
@@ -68067,12 +68067,7 @@ ${lanes.join("\n")}
68067
68067
  }
68068
68068
  const access = getDiscriminantPropertyAccess(expr, type);
68069
68069
  if (access) {
68070
- return narrowTypeByDiscriminant(type, access, (t) => getTypeWithFacts(
68071
- t,
68072
- assumeTrue ? 4194304 /* Truthy */ : 8388608 /* Falsy */,
68073
- /*strictTruthy*/
68074
- true
68075
- ));
68070
+ return narrowTypeByDiscriminant(type, access, (t) => getTypeWithFacts(t, assumeTrue ? 4194304 /* Truthy */ : 8388608 /* Falsy */));
68076
68071
  }
68077
68072
  return type;
68078
68073
  }
@@ -75632,8 +75627,9 @@ ${lanes.join("\n")}
75632
75627
  if (symbol) {
75633
75628
  if (isReadonlySymbol(symbol)) {
75634
75629
  error2(expr, Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property);
75630
+ } else {
75631
+ checkDeleteExpressionMustBeOptional(expr, symbol);
75635
75632
  }
75636
- checkDeleteExpressionMustBeOptional(expr, symbol);
75637
75633
  }
75638
75634
  return booleanType;
75639
75635
  }
@@ -86169,7 +86165,7 @@ ${lanes.join("\n")}
86169
86165
  }
86170
86166
  function getEffectivePropertyNameForPropertyNameNode(node) {
86171
86167
  const name = getPropertyNameForPropertyNameNode(node);
86172
- return name ? name : isComputedPropertyName(node) && isEntityNameExpression(node.expression) ? tryGetNameFromEntityNameExpression(node.expression) : void 0;
86168
+ return name ? name : isComputedPropertyName(node) ? tryGetNameFromType(getTypeOfExpression(node.expression)) : void 0;
86173
86169
  }
86174
86170
  function getCombinedModifierFlagsCached(node) {
86175
86171
  if (lastGetCombinedModifierFlagsNode === node) {
@@ -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.20230817`;
57
+ var version = `${versionMajorMinor}.0-insiders.20230821`;
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-55291-6",
5
+ "version": "5.3.0-pr-55449-9",
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": "20.1.0",
117
117
  "npm": "8.19.4"
118
118
  },
119
- "gitHead": "92a0ae5c70e8053b382ed5242c49f738c455b804"
119
+ "gitHead": "87ce66cf9383513524b9f91cca3314885758c7b1"
120
120
  }