@typescript-deploys/pr-build 5.0.0-pr-52696-39 → 5.0.0-pr-52734-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
@@ -23,7 +23,7 @@ var __export = (target, all) => {
23
23
 
24
24
  // src/compiler/corePublic.ts
25
25
  var versionMajorMinor = "5.0";
26
- var version = `${versionMajorMinor}.0-insiders.20230211`;
26
+ var version = `${versionMajorMinor}.0-insiders.20230213`;
27
27
 
28
28
  // src/compiler/core.ts
29
29
  var emptyArray = [];
@@ -50466,8 +50466,6 @@ function createTypeChecker(host) {
50466
50466
  return !!target.baseTypesResolved;
50467
50467
  case 8 /* WriteType */:
50468
50468
  return !!getSymbolLinks(target).writeType;
50469
- case 9 /* ParameterInitializerContainsUndefined */:
50470
- return getNodeLinks(target).parameterInitializerContainsUndefined !== void 0;
50471
50469
  }
50472
50470
  return Debug.assertNever(propertyName);
50473
50471
  }
@@ -62492,10 +62490,10 @@ function createTypeChecker(host) {
62492
62490
  return getBigIntLiteralType(parseValidBigInt(text));
62493
62491
  }
62494
62492
  function isMemberOfStringMapping(source, target) {
62495
- if (target.flags & (4 /* String */ | 1 /* Any */)) {
62493
+ if (target.flags & 1 /* Any */) {
62496
62494
  return true;
62497
62495
  }
62498
- if (target.flags & 134217728 /* TemplateLiteral */) {
62496
+ if (target.flags & (4 /* String */ & 134217728 /* TemplateLiteral */)) {
62499
62497
  return isTypeAssignableTo(source, target);
62500
62498
  }
62501
62499
  if (target.flags & 268435456 /* StringMapping */) {
@@ -65300,25 +65298,15 @@ function createTypeChecker(host) {
65300
65298
  function isConstVariable(symbol) {
65301
65299
  return symbol.flags & 3 /* Variable */ && (getDeclarationNodeFlagsFromSymbol(symbol) & 2 /* Const */) !== 0;
65302
65300
  }
65303
- function parameterInitializerContainsUndefined(declaration) {
65304
- const links = getNodeLinks(declaration);
65305
- if (links.parameterInitializerContainsUndefined === void 0) {
65306
- if (!pushTypeResolution(declaration, 9 /* ParameterInitializerContainsUndefined */)) {
65307
- reportCircularityError(declaration.symbol);
65308
- return true;
65309
- }
65310
- const containsUndefined = !!(getTypeFacts(checkDeclarationInitializer(declaration, 0 /* Normal */)) & 16777216 /* IsUndefined */);
65311
- if (!popTypeResolution()) {
65312
- reportCircularityError(declaration.symbol);
65313
- return true;
65314
- }
65315
- links.parameterInitializerContainsUndefined = containsUndefined;
65316
- }
65317
- return links.parameterInitializerContainsUndefined;
65318
- }
65319
65301
  function removeOptionalityFromDeclaredType(declaredType, declaration) {
65320
- const removeUndefined = strictNullChecks && declaration.kind === 166 /* Parameter */ && declaration.initializer && getTypeFacts(declaredType) & 16777216 /* IsUndefined */ && !parameterInitializerContainsUndefined(declaration);
65321
- return removeUndefined ? getTypeWithFacts(declaredType, 524288 /* NEUndefined */) : declaredType;
65302
+ if (pushTypeResolution(declaration.symbol, 2 /* DeclaredType */)) {
65303
+ const annotationIncludesUndefined = strictNullChecks && declaration.kind === 166 /* Parameter */ && declaration.initializer && getTypeFacts(declaredType) & 16777216 /* IsUndefined */ && !(getTypeFacts(checkExpression(declaration.initializer)) & 16777216 /* IsUndefined */);
65304
+ popTypeResolution();
65305
+ return annotationIncludesUndefined ? getTypeWithFacts(declaredType, 524288 /* NEUndefined */) : declaredType;
65306
+ } else {
65307
+ reportCircularityError(declaration.symbol);
65308
+ return declaredType;
65309
+ }
65322
65310
  }
65323
65311
  function isConstraintPosition(type, node) {
65324
65312
  const parent = node.parent;
package/lib/tsserver.js CHANGED
@@ -2287,7 +2287,7 @@ module.exports = __toCommonJS(server_exports);
2287
2287
 
2288
2288
  // src/compiler/corePublic.ts
2289
2289
  var versionMajorMinor = "5.0";
2290
- var version = `${versionMajorMinor}.0-insiders.20230211`;
2290
+ var version = `${versionMajorMinor}.0-insiders.20230213`;
2291
2291
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2292
2292
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2293
2293
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -55042,8 +55042,6 @@ function createTypeChecker(host) {
55042
55042
  return !!target.baseTypesResolved;
55043
55043
  case 8 /* WriteType */:
55044
55044
  return !!getSymbolLinks(target).writeType;
55045
- case 9 /* ParameterInitializerContainsUndefined */:
55046
- return getNodeLinks(target).parameterInitializerContainsUndefined !== void 0;
55047
55045
  }
55048
55046
  return Debug.assertNever(propertyName);
55049
55047
  }
@@ -67068,10 +67066,10 @@ function createTypeChecker(host) {
67068
67066
  return getBigIntLiteralType(parseValidBigInt(text));
67069
67067
  }
67070
67068
  function isMemberOfStringMapping(source, target) {
67071
- if (target.flags & (4 /* String */ | 1 /* Any */)) {
67069
+ if (target.flags & 1 /* Any */) {
67072
67070
  return true;
67073
67071
  }
67074
- if (target.flags & 134217728 /* TemplateLiteral */) {
67072
+ if (target.flags & (4 /* String */ & 134217728 /* TemplateLiteral */)) {
67075
67073
  return isTypeAssignableTo(source, target);
67076
67074
  }
67077
67075
  if (target.flags & 268435456 /* StringMapping */) {
@@ -69876,25 +69874,15 @@ function createTypeChecker(host) {
69876
69874
  function isConstVariable(symbol) {
69877
69875
  return symbol.flags & 3 /* Variable */ && (getDeclarationNodeFlagsFromSymbol(symbol) & 2 /* Const */) !== 0;
69878
69876
  }
69879
- function parameterInitializerContainsUndefined(declaration) {
69880
- const links = getNodeLinks(declaration);
69881
- if (links.parameterInitializerContainsUndefined === void 0) {
69882
- if (!pushTypeResolution(declaration, 9 /* ParameterInitializerContainsUndefined */)) {
69883
- reportCircularityError(declaration.symbol);
69884
- return true;
69885
- }
69886
- const containsUndefined = !!(getTypeFacts(checkDeclarationInitializer(declaration, 0 /* Normal */)) & 16777216 /* IsUndefined */);
69887
- if (!popTypeResolution()) {
69888
- reportCircularityError(declaration.symbol);
69889
- return true;
69890
- }
69891
- links.parameterInitializerContainsUndefined = containsUndefined;
69892
- }
69893
- return links.parameterInitializerContainsUndefined;
69894
- }
69895
69877
  function removeOptionalityFromDeclaredType(declaredType, declaration) {
69896
- const removeUndefined = strictNullChecks && declaration.kind === 166 /* Parameter */ && declaration.initializer && getTypeFacts(declaredType) & 16777216 /* IsUndefined */ && !parameterInitializerContainsUndefined(declaration);
69897
- return removeUndefined ? getTypeWithFacts(declaredType, 524288 /* NEUndefined */) : declaredType;
69878
+ if (pushTypeResolution(declaration.symbol, 2 /* DeclaredType */)) {
69879
+ const annotationIncludesUndefined = strictNullChecks && declaration.kind === 166 /* Parameter */ && declaration.initializer && getTypeFacts(declaredType) & 16777216 /* IsUndefined */ && !(getTypeFacts(checkExpression(declaration.initializer)) & 16777216 /* IsUndefined */);
69880
+ popTypeResolution();
69881
+ return annotationIncludesUndefined ? getTypeWithFacts(declaredType, 524288 /* NEUndefined */) : declaredType;
69882
+ } else {
69883
+ reportCircularityError(declaration.symbol);
69884
+ return declaredType;
69885
+ }
69898
69886
  }
69899
69887
  function isConstraintPosition(type, node) {
69900
69888
  const parent2 = node.parent;
@@ -35,7 +35,7 @@ var ts = (() => {
35
35
  "src/compiler/corePublic.ts"() {
36
36
  "use strict";
37
37
  versionMajorMinor = "5.0";
38
- version = `${versionMajorMinor}.0-insiders.20230211`;
38
+ version = `${versionMajorMinor}.0-insiders.20230213`;
39
39
  Comparison = /* @__PURE__ */ ((Comparison3) => {
40
40
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
41
41
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -52852,8 +52852,6 @@ ${lanes.join("\n")}
52852
52852
  return !!target.baseTypesResolved;
52853
52853
  case 8 /* WriteType */:
52854
52854
  return !!getSymbolLinks(target).writeType;
52855
- case 9 /* ParameterInitializerContainsUndefined */:
52856
- return getNodeLinks(target).parameterInitializerContainsUndefined !== void 0;
52857
52855
  }
52858
52856
  return Debug.assertNever(propertyName);
52859
52857
  }
@@ -64878,10 +64876,10 @@ ${lanes.join("\n")}
64878
64876
  return getBigIntLiteralType(parseValidBigInt(text));
64879
64877
  }
64880
64878
  function isMemberOfStringMapping(source, target) {
64881
- if (target.flags & (4 /* String */ | 1 /* Any */)) {
64879
+ if (target.flags & 1 /* Any */) {
64882
64880
  return true;
64883
64881
  }
64884
- if (target.flags & 134217728 /* TemplateLiteral */) {
64882
+ if (target.flags & (4 /* String */ & 134217728 /* TemplateLiteral */)) {
64885
64883
  return isTypeAssignableTo(source, target);
64886
64884
  }
64887
64885
  if (target.flags & 268435456 /* StringMapping */) {
@@ -67686,25 +67684,15 @@ ${lanes.join("\n")}
67686
67684
  function isConstVariable(symbol) {
67687
67685
  return symbol.flags & 3 /* Variable */ && (getDeclarationNodeFlagsFromSymbol(symbol) & 2 /* Const */) !== 0;
67688
67686
  }
67689
- function parameterInitializerContainsUndefined(declaration) {
67690
- const links = getNodeLinks(declaration);
67691
- if (links.parameterInitializerContainsUndefined === void 0) {
67692
- if (!pushTypeResolution(declaration, 9 /* ParameterInitializerContainsUndefined */)) {
67693
- reportCircularityError(declaration.symbol);
67694
- return true;
67695
- }
67696
- const containsUndefined = !!(getTypeFacts(checkDeclarationInitializer(declaration, 0 /* Normal */)) & 16777216 /* IsUndefined */);
67697
- if (!popTypeResolution()) {
67698
- reportCircularityError(declaration.symbol);
67699
- return true;
67700
- }
67701
- links.parameterInitializerContainsUndefined = containsUndefined;
67702
- }
67703
- return links.parameterInitializerContainsUndefined;
67704
- }
67705
67687
  function removeOptionalityFromDeclaredType(declaredType, declaration) {
67706
- const removeUndefined = strictNullChecks && declaration.kind === 166 /* Parameter */ && declaration.initializer && getTypeFacts(declaredType) & 16777216 /* IsUndefined */ && !parameterInitializerContainsUndefined(declaration);
67707
- return removeUndefined ? getTypeWithFacts(declaredType, 524288 /* NEUndefined */) : declaredType;
67688
+ if (pushTypeResolution(declaration.symbol, 2 /* DeclaredType */)) {
67689
+ const annotationIncludesUndefined = strictNullChecks && declaration.kind === 166 /* Parameter */ && declaration.initializer && getTypeFacts(declaredType) & 16777216 /* IsUndefined */ && !(getTypeFacts(checkExpression(declaration.initializer)) & 16777216 /* IsUndefined */);
67690
+ popTypeResolution();
67691
+ return annotationIncludesUndefined ? getTypeWithFacts(declaredType, 524288 /* NEUndefined */) : declaredType;
67692
+ } else {
67693
+ reportCircularityError(declaration.symbol);
67694
+ return declaredType;
67695
+ }
67708
67696
  }
67709
67697
  function isConstraintPosition(type, node) {
67710
67698
  const parent2 = node.parent;
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.0";
38
- version = `${versionMajorMinor}.0-insiders.20230211`;
38
+ version = `${versionMajorMinor}.0-insiders.20230213`;
39
39
  Comparison = /* @__PURE__ */ ((Comparison3) => {
40
40
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
41
41
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -52852,8 +52852,6 @@ ${lanes.join("\n")}
52852
52852
  return !!target.baseTypesResolved;
52853
52853
  case 8 /* WriteType */:
52854
52854
  return !!getSymbolLinks(target).writeType;
52855
- case 9 /* ParameterInitializerContainsUndefined */:
52856
- return getNodeLinks(target).parameterInitializerContainsUndefined !== void 0;
52857
52855
  }
52858
52856
  return Debug.assertNever(propertyName);
52859
52857
  }
@@ -64878,10 +64876,10 @@ ${lanes.join("\n")}
64878
64876
  return getBigIntLiteralType(parseValidBigInt(text));
64879
64877
  }
64880
64878
  function isMemberOfStringMapping(source, target) {
64881
- if (target.flags & (4 /* String */ | 1 /* Any */)) {
64879
+ if (target.flags & 1 /* Any */) {
64882
64880
  return true;
64883
64881
  }
64884
- if (target.flags & 134217728 /* TemplateLiteral */) {
64882
+ if (target.flags & (4 /* String */ & 134217728 /* TemplateLiteral */)) {
64885
64883
  return isTypeAssignableTo(source, target);
64886
64884
  }
64887
64885
  if (target.flags & 268435456 /* StringMapping */) {
@@ -67686,25 +67684,15 @@ ${lanes.join("\n")}
67686
67684
  function isConstVariable(symbol) {
67687
67685
  return symbol.flags & 3 /* Variable */ && (getDeclarationNodeFlagsFromSymbol(symbol) & 2 /* Const */) !== 0;
67688
67686
  }
67689
- function parameterInitializerContainsUndefined(declaration) {
67690
- const links = getNodeLinks(declaration);
67691
- if (links.parameterInitializerContainsUndefined === void 0) {
67692
- if (!pushTypeResolution(declaration, 9 /* ParameterInitializerContainsUndefined */)) {
67693
- reportCircularityError(declaration.symbol);
67694
- return true;
67695
- }
67696
- const containsUndefined = !!(getTypeFacts(checkDeclarationInitializer(declaration, 0 /* Normal */)) & 16777216 /* IsUndefined */);
67697
- if (!popTypeResolution()) {
67698
- reportCircularityError(declaration.symbol);
67699
- return true;
67700
- }
67701
- links.parameterInitializerContainsUndefined = containsUndefined;
67702
- }
67703
- return links.parameterInitializerContainsUndefined;
67704
- }
67705
67687
  function removeOptionalityFromDeclaredType(declaredType, declaration) {
67706
- const removeUndefined = strictNullChecks && declaration.kind === 166 /* Parameter */ && declaration.initializer && getTypeFacts(declaredType) & 16777216 /* IsUndefined */ && !parameterInitializerContainsUndefined(declaration);
67707
- return removeUndefined ? getTypeWithFacts(declaredType, 524288 /* NEUndefined */) : declaredType;
67688
+ if (pushTypeResolution(declaration.symbol, 2 /* DeclaredType */)) {
67689
+ const annotationIncludesUndefined = strictNullChecks && declaration.kind === 166 /* Parameter */ && declaration.initializer && getTypeFacts(declaredType) & 16777216 /* IsUndefined */ && !(getTypeFacts(checkExpression(declaration.initializer)) & 16777216 /* IsUndefined */);
67690
+ popTypeResolution();
67691
+ return annotationIncludesUndefined ? getTypeWithFacts(declaredType, 524288 /* NEUndefined */) : declaredType;
67692
+ } else {
67693
+ reportCircularityError(declaration.symbol);
67694
+ return declaredType;
67695
+ }
67708
67696
  }
67709
67697
  function isConstraintPosition(type, node) {
67710
67698
  const parent2 = node.parent;
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
54
54
 
55
55
  // src/compiler/corePublic.ts
56
56
  var versionMajorMinor = "5.0";
57
- var version = `${versionMajorMinor}.0-insiders.20230211`;
57
+ var version = `${versionMajorMinor}.0-insiders.20230213`;
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.0.0-pr-52696-39",
5
+ "version": "5.0.0-pr-52734-9",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [