@typescript-deploys/pr-build 5.5.0-pr-57575-41 → 5.5.0-pr-55267-86

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.5";
21
- var version = `${versionMajorMinor}.0-insiders.20240301`;
21
+ var version = `${versionMajorMinor}.0-insiders.20240302`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -40996,7 +40996,7 @@ function createBinder() {
40996
40996
  return Diagnostics.Invalid_use_of_0_in_strict_mode;
40997
40997
  }
40998
40998
  function checkStrictModeFunctionName(node) {
40999
- if (inStrictMode) {
40999
+ if (inStrictMode && !(node.flags & 33554432 /* Ambient */)) {
41000
41000
  checkStrictModeEvalOrArguments(node, node.name);
41001
41001
  }
41002
41002
  }
@@ -44178,6 +44178,8 @@ function createTypeChecker(host) {
44178
44178
  var comparableRelation = /* @__PURE__ */ new Map();
44179
44179
  var identityRelation = /* @__PURE__ */ new Map();
44180
44180
  var enumRelation = /* @__PURE__ */ new Map();
44181
+ var builtinGlobals = createSymbolTable();
44182
+ builtinGlobals.set(undefinedSymbol.escapedName, undefinedSymbol);
44181
44183
  var suggestedExtensions = [
44182
44184
  [".mts", ".mjs"],
44183
44185
  [".ts", ".js"],
@@ -44595,17 +44597,17 @@ function createTypeChecker(host) {
44595
44597
  }
44596
44598
  }
44597
44599
  }
44598
- function addUndefinedToGlobalsOrErrorOnRedeclaration() {
44599
- const name = undefinedSymbol.escapedName;
44600
- const targetSymbol = globals.get(name);
44601
- if (targetSymbol) {
44602
- forEach(targetSymbol.declarations, (declaration) => {
44603
- if (!isTypeDeclaration(declaration)) {
44604
- diagnostics.add(createDiagnosticForNode(declaration, Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0, unescapeLeadingUnderscores(name)));
44605
- }
44606
- });
44607
- } else {
44608
- globals.set(name, undefinedSymbol);
44600
+ function addToSymbolTable(target, source, message) {
44601
+ source.forEach((sourceSymbol, id) => {
44602
+ const targetSymbol = target.get(id);
44603
+ if (targetSymbol) {
44604
+ forEach(targetSymbol.declarations, addDeclarationDiagnostic(unescapeLeadingUnderscores(id), message));
44605
+ } else {
44606
+ target.set(id, sourceSymbol);
44607
+ }
44608
+ });
44609
+ function addDeclarationDiagnostic(id, message2) {
44610
+ return (declaration) => diagnostics.add(createDiagnosticForNode(declaration, message2, id));
44609
44611
  }
44610
44612
  }
44611
44613
  function getSymbolLinks(symbol) {
@@ -74504,11 +74506,13 @@ function createTypeChecker(host) {
74504
74506
  }
74505
74507
  function getSymbolHasInstanceMethodOfObjectType(type) {
74506
74508
  const hasInstancePropertyName = getPropertyNameForKnownSymbolName("hasInstance");
74507
- const hasInstanceProperty = getPropertyOfObjectType(type, hasInstancePropertyName);
74508
- if (hasInstanceProperty) {
74509
- const hasInstancePropertyType = getTypeOfSymbol(hasInstanceProperty);
74510
- if (hasInstancePropertyType && getSignaturesOfType(hasInstancePropertyType, 0 /* Call */).length !== 0) {
74511
- return hasInstancePropertyType;
74509
+ if (allTypesAssignableToKind(type, 67108864 /* NonPrimitive */)) {
74510
+ const hasInstanceProperty = getPropertyOfType(type, hasInstancePropertyName);
74511
+ if (hasInstanceProperty) {
74512
+ const hasInstancePropertyType = getTypeOfSymbol(hasInstanceProperty);
74513
+ if (hasInstancePropertyType && getSignaturesOfType(hasInstancePropertyType, 0 /* Call */).length !== 0) {
74514
+ return hasInstancePropertyType;
74515
+ }
74512
74516
  }
74513
74517
  }
74514
74518
  }
@@ -79465,7 +79469,6 @@ function createTypeChecker(host) {
79465
79469
  case "symbol":
79466
79470
  case "void":
79467
79471
  case "object":
79468
- case "undefined":
79469
79472
  error(name, message, name.escapedText);
79470
79473
  }
79471
79474
  }
@@ -83168,7 +83171,7 @@ function createTypeChecker(host) {
83168
83171
  }
83169
83172
  }
83170
83173
  }
83171
- addUndefinedToGlobalsOrErrorOnRedeclaration();
83174
+ addToSymbolTable(globals, builtinGlobals, Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0);
83172
83175
  getSymbolLinks(undefinedSymbol).type = undefinedWideningType;
83173
83176
  getSymbolLinks(argumentsSymbol).type = getGlobalType(
83174
83177
  "IArguments",
package/lib/tsserver.js CHANGED
@@ -2325,7 +2325,7 @@ module.exports = __toCommonJS(server_exports);
2325
2325
 
2326
2326
  // src/compiler/corePublic.ts
2327
2327
  var versionMajorMinor = "5.5";
2328
- var version = `${versionMajorMinor}.0-insiders.20240301`;
2328
+ var version = `${versionMajorMinor}.0-insiders.20240302`;
2329
2329
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2330
2330
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2331
2331
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -45661,7 +45661,7 @@ function createBinder() {
45661
45661
  return Diagnostics.Invalid_use_of_0_in_strict_mode;
45662
45662
  }
45663
45663
  function checkStrictModeFunctionName(node) {
45664
- if (inStrictMode) {
45664
+ if (inStrictMode && !(node.flags & 33554432 /* Ambient */)) {
45665
45665
  checkStrictModeEvalOrArguments(node, node.name);
45666
45666
  }
45667
45667
  }
@@ -48897,6 +48897,8 @@ function createTypeChecker(host) {
48897
48897
  var comparableRelation = /* @__PURE__ */ new Map();
48898
48898
  var identityRelation = /* @__PURE__ */ new Map();
48899
48899
  var enumRelation = /* @__PURE__ */ new Map();
48900
+ var builtinGlobals = createSymbolTable();
48901
+ builtinGlobals.set(undefinedSymbol.escapedName, undefinedSymbol);
48900
48902
  var suggestedExtensions = [
48901
48903
  [".mts", ".mjs"],
48902
48904
  [".ts", ".js"],
@@ -49314,17 +49316,17 @@ function createTypeChecker(host) {
49314
49316
  }
49315
49317
  }
49316
49318
  }
49317
- function addUndefinedToGlobalsOrErrorOnRedeclaration() {
49318
- const name = undefinedSymbol.escapedName;
49319
- const targetSymbol = globals.get(name);
49320
- if (targetSymbol) {
49321
- forEach(targetSymbol.declarations, (declaration) => {
49322
- if (!isTypeDeclaration(declaration)) {
49323
- diagnostics.add(createDiagnosticForNode(declaration, Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0, unescapeLeadingUnderscores(name)));
49324
- }
49325
- });
49326
- } else {
49327
- globals.set(name, undefinedSymbol);
49319
+ function addToSymbolTable(target, source, message) {
49320
+ source.forEach((sourceSymbol, id) => {
49321
+ const targetSymbol = target.get(id);
49322
+ if (targetSymbol) {
49323
+ forEach(targetSymbol.declarations, addDeclarationDiagnostic(unescapeLeadingUnderscores(id), message));
49324
+ } else {
49325
+ target.set(id, sourceSymbol);
49326
+ }
49327
+ });
49328
+ function addDeclarationDiagnostic(id, message2) {
49329
+ return (declaration) => diagnostics.add(createDiagnosticForNode(declaration, message2, id));
49328
49330
  }
49329
49331
  }
49330
49332
  function getSymbolLinks(symbol) {
@@ -79223,11 +79225,13 @@ function createTypeChecker(host) {
79223
79225
  }
79224
79226
  function getSymbolHasInstanceMethodOfObjectType(type) {
79225
79227
  const hasInstancePropertyName = getPropertyNameForKnownSymbolName("hasInstance");
79226
- const hasInstanceProperty = getPropertyOfObjectType(type, hasInstancePropertyName);
79227
- if (hasInstanceProperty) {
79228
- const hasInstancePropertyType = getTypeOfSymbol(hasInstanceProperty);
79229
- if (hasInstancePropertyType && getSignaturesOfType(hasInstancePropertyType, 0 /* Call */).length !== 0) {
79230
- return hasInstancePropertyType;
79228
+ if (allTypesAssignableToKind(type, 67108864 /* NonPrimitive */)) {
79229
+ const hasInstanceProperty = getPropertyOfType(type, hasInstancePropertyName);
79230
+ if (hasInstanceProperty) {
79231
+ const hasInstancePropertyType = getTypeOfSymbol(hasInstanceProperty);
79232
+ if (hasInstancePropertyType && getSignaturesOfType(hasInstancePropertyType, 0 /* Call */).length !== 0) {
79233
+ return hasInstancePropertyType;
79234
+ }
79231
79235
  }
79232
79236
  }
79233
79237
  }
@@ -84184,7 +84188,6 @@ function createTypeChecker(host) {
84184
84188
  case "symbol":
84185
84189
  case "void":
84186
84190
  case "object":
84187
- case "undefined":
84188
84191
  error2(name, message, name.escapedText);
84189
84192
  }
84190
84193
  }
@@ -87887,7 +87890,7 @@ function createTypeChecker(host) {
87887
87890
  }
87888
87891
  }
87889
87892
  }
87890
- addUndefinedToGlobalsOrErrorOnRedeclaration();
87893
+ addToSymbolTable(globals, builtinGlobals, Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0);
87891
87894
  getSymbolLinks(undefinedSymbol).type = undefinedWideningType;
87892
87895
  getSymbolLinks(argumentsSymbol).type = getGlobalType(
87893
87896
  "IArguments",
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.5";
38
- version = `${versionMajorMinor}.0-insiders.20240301`;
38
+ version = `${versionMajorMinor}.0-insiders.20240302`;
39
39
  Comparison = /* @__PURE__ */ ((Comparison3) => {
40
40
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
41
41
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -43512,7 +43512,7 @@ ${lanes.join("\n")}
43512
43512
  return Diagnostics.Invalid_use_of_0_in_strict_mode;
43513
43513
  }
43514
43514
  function checkStrictModeFunctionName(node) {
43515
- if (inStrictMode) {
43515
+ if (inStrictMode && !(node.flags & 33554432 /* Ambient */)) {
43516
43516
  checkStrictModeEvalOrArguments(node, node.name);
43517
43517
  }
43518
43518
  }
@@ -46668,6 +46668,8 @@ ${lanes.join("\n")}
46668
46668
  var comparableRelation = /* @__PURE__ */ new Map();
46669
46669
  var identityRelation = /* @__PURE__ */ new Map();
46670
46670
  var enumRelation = /* @__PURE__ */ new Map();
46671
+ var builtinGlobals = createSymbolTable();
46672
+ builtinGlobals.set(undefinedSymbol.escapedName, undefinedSymbol);
46671
46673
  var suggestedExtensions = [
46672
46674
  [".mts", ".mjs"],
46673
46675
  [".ts", ".js"],
@@ -47085,17 +47087,17 @@ ${lanes.join("\n")}
47085
47087
  }
47086
47088
  }
47087
47089
  }
47088
- function addUndefinedToGlobalsOrErrorOnRedeclaration() {
47089
- const name = undefinedSymbol.escapedName;
47090
- const targetSymbol = globals.get(name);
47091
- if (targetSymbol) {
47092
- forEach(targetSymbol.declarations, (declaration) => {
47093
- if (!isTypeDeclaration(declaration)) {
47094
- diagnostics.add(createDiagnosticForNode(declaration, Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0, unescapeLeadingUnderscores(name)));
47095
- }
47096
- });
47097
- } else {
47098
- globals.set(name, undefinedSymbol);
47090
+ function addToSymbolTable(target, source, message) {
47091
+ source.forEach((sourceSymbol, id) => {
47092
+ const targetSymbol = target.get(id);
47093
+ if (targetSymbol) {
47094
+ forEach(targetSymbol.declarations, addDeclarationDiagnostic(unescapeLeadingUnderscores(id), message));
47095
+ } else {
47096
+ target.set(id, sourceSymbol);
47097
+ }
47098
+ });
47099
+ function addDeclarationDiagnostic(id, message2) {
47100
+ return (declaration) => diagnostics.add(createDiagnosticForNode(declaration, message2, id));
47099
47101
  }
47100
47102
  }
47101
47103
  function getSymbolLinks(symbol) {
@@ -76994,11 +76996,13 @@ ${lanes.join("\n")}
76994
76996
  }
76995
76997
  function getSymbolHasInstanceMethodOfObjectType(type) {
76996
76998
  const hasInstancePropertyName = getPropertyNameForKnownSymbolName("hasInstance");
76997
- const hasInstanceProperty = getPropertyOfObjectType(type, hasInstancePropertyName);
76998
- if (hasInstanceProperty) {
76999
- const hasInstancePropertyType = getTypeOfSymbol(hasInstanceProperty);
77000
- if (hasInstancePropertyType && getSignaturesOfType(hasInstancePropertyType, 0 /* Call */).length !== 0) {
77001
- return hasInstancePropertyType;
76999
+ if (allTypesAssignableToKind(type, 67108864 /* NonPrimitive */)) {
77000
+ const hasInstanceProperty = getPropertyOfType(type, hasInstancePropertyName);
77001
+ if (hasInstanceProperty) {
77002
+ const hasInstancePropertyType = getTypeOfSymbol(hasInstanceProperty);
77003
+ if (hasInstancePropertyType && getSignaturesOfType(hasInstancePropertyType, 0 /* Call */).length !== 0) {
77004
+ return hasInstancePropertyType;
77005
+ }
77002
77006
  }
77003
77007
  }
77004
77008
  }
@@ -81955,7 +81959,6 @@ ${lanes.join("\n")}
81955
81959
  case "symbol":
81956
81960
  case "void":
81957
81961
  case "object":
81958
- case "undefined":
81959
81962
  error2(name, message, name.escapedText);
81960
81963
  }
81961
81964
  }
@@ -85658,7 +85661,7 @@ ${lanes.join("\n")}
85658
85661
  }
85659
85662
  }
85660
85663
  }
85661
- addUndefinedToGlobalsOrErrorOnRedeclaration();
85664
+ addToSymbolTable(globals, builtinGlobals, Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0);
85662
85665
  getSymbolLinks(undefinedSymbol).type = undefinedWideningType;
85663
85666
  getSymbolLinks(argumentsSymbol).type = getGlobalType(
85664
85667
  "IArguments",
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
54
54
 
55
55
  // src/compiler/corePublic.ts
56
56
  var versionMajorMinor = "5.5";
57
- var version = `${versionMajorMinor}.0-insiders.20240301`;
57
+ var version = `${versionMajorMinor}.0-insiders.20240302`;
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.5.0-pr-57575-41",
5
+ "version": "5.5.0-pr-55267-86",
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": "f840eb2c9891cf344a872c0adc23e6e9342819e3"
117
+ "gitHead": "a86164cc3827a15d985063f6626d676daf079a99"
118
118
  }