typescript 5.7.0-dev.20241003 → 5.7.0-dev.20241005

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.7";
21
- var version = `${versionMajorMinor}.0-dev.20241003`;
21
+ var version = `${versionMajorMinor}.0-dev.20241005`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -70426,7 +70426,7 @@ function createTypeChecker(host) {
70426
70426
  jsxFactorySym = resolveName(
70427
70427
  jsxFactoryLocation,
70428
70428
  jsxFactoryNamespace,
70429
- 111551 /* Value */,
70429
+ compilerOptions.jsx === 1 /* Preserve */ ? 111551 /* Value */ & ~384 /* Enum */ : 111551 /* Value */,
70430
70430
  jsxFactoryRefErr,
70431
70431
  /*isUse*/
70432
70432
  true
@@ -70445,7 +70445,7 @@ function createTypeChecker(host) {
70445
70445
  resolveName(
70446
70446
  jsxFactoryLocation,
70447
70447
  localJsxNamespace,
70448
- 111551 /* Value */,
70448
+ compilerOptions.jsx === 1 /* Preserve */ ? 111551 /* Value */ & ~384 /* Enum */ : 111551 /* Value */,
70449
70449
  jsxFactoryRefErr,
70450
70450
  /*isUse*/
70451
70451
  true
@@ -72903,7 +72903,8 @@ function createTypeChecker(host) {
72903
72903
  );
72904
72904
  }
72905
72905
  checkJsxChildren(node);
72906
- return getJsxElementTypeAt(node) || anyType;
72906
+ const jsxElementType = getJsxElementTypeAt(node);
72907
+ return isErrorType(jsxElementType) ? anyType : jsxElementType;
72907
72908
  }
72908
72909
  function isHyphenatedJsxName(name) {
72909
72910
  return name.includes("-");
@@ -75963,11 +75964,12 @@ function createTypeChecker(host) {
75963
75964
  const sourceFileLinks = getNodeLinks(getSourceFileOfNode(node));
75964
75965
  if (sourceFileLinks.jsxFragmentType !== void 0) return sourceFileLinks.jsxFragmentType;
75965
75966
  const jsxFragmentFactoryName = getJsxNamespace(node);
75967
+ if (jsxFragmentFactoryName === "null") return sourceFileLinks.jsxFragmentType = anyType;
75966
75968
  const jsxFactoryRefErr = diagnostics ? Diagnostics.Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found : void 0;
75967
75969
  const jsxFactorySymbol = getJsxNamespaceContainerForImplicitImport(node) ?? resolveName(
75968
75970
  node,
75969
75971
  jsxFragmentFactoryName,
75970
- 111551 /* Value */,
75972
+ compilerOptions.jsx === 1 /* Preserve */ ? 111551 /* Value */ & ~384 /* Enum */ : 111551 /* Value */,
75971
75973
  /*nameNotFoundMessage*/
75972
75974
  jsxFactoryRefErr,
75973
75975
  /*isUse*/
package/lib/typescript.js CHANGED
@@ -2277,7 +2277,7 @@ module.exports = __toCommonJS(typescript_exports);
2277
2277
 
2278
2278
  // src/compiler/corePublic.ts
2279
2279
  var versionMajorMinor = "5.7";
2280
- var version = `${versionMajorMinor}.0-dev.20241003`;
2280
+ var version = `${versionMajorMinor}.0-dev.20241005`;
2281
2281
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2282
2282
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2283
2283
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -75029,7 +75029,7 @@ function createTypeChecker(host) {
75029
75029
  jsxFactorySym = resolveName(
75030
75030
  jsxFactoryLocation,
75031
75031
  jsxFactoryNamespace,
75032
- 111551 /* Value */,
75032
+ compilerOptions.jsx === 1 /* Preserve */ ? 111551 /* Value */ & ~384 /* Enum */ : 111551 /* Value */,
75033
75033
  jsxFactoryRefErr,
75034
75034
  /*isUse*/
75035
75035
  true
@@ -75048,7 +75048,7 @@ function createTypeChecker(host) {
75048
75048
  resolveName(
75049
75049
  jsxFactoryLocation,
75050
75050
  localJsxNamespace,
75051
- 111551 /* Value */,
75051
+ compilerOptions.jsx === 1 /* Preserve */ ? 111551 /* Value */ & ~384 /* Enum */ : 111551 /* Value */,
75052
75052
  jsxFactoryRefErr,
75053
75053
  /*isUse*/
75054
75054
  true
@@ -77506,7 +77506,8 @@ function createTypeChecker(host) {
77506
77506
  );
77507
77507
  }
77508
77508
  checkJsxChildren(node);
77509
- return getJsxElementTypeAt(node) || anyType;
77509
+ const jsxElementType = getJsxElementTypeAt(node);
77510
+ return isErrorType(jsxElementType) ? anyType : jsxElementType;
77510
77511
  }
77511
77512
  function isHyphenatedJsxName(name) {
77512
77513
  return name.includes("-");
@@ -80566,11 +80567,12 @@ function createTypeChecker(host) {
80566
80567
  const sourceFileLinks = getNodeLinks(getSourceFileOfNode(node));
80567
80568
  if (sourceFileLinks.jsxFragmentType !== void 0) return sourceFileLinks.jsxFragmentType;
80568
80569
  const jsxFragmentFactoryName = getJsxNamespace(node);
80570
+ if (jsxFragmentFactoryName === "null") return sourceFileLinks.jsxFragmentType = anyType;
80569
80571
  const jsxFactoryRefErr = diagnostics ? Diagnostics.Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found : void 0;
80570
80572
  const jsxFactorySymbol = getJsxNamespaceContainerForImplicitImport(node) ?? resolveName(
80571
80573
  node,
80572
80574
  jsxFragmentFactoryName,
80573
- 111551 /* Value */,
80575
+ compilerOptions.jsx === 1 /* Preserve */ ? 111551 /* Value */ & ~384 /* Enum */ : 111551 /* Value */,
80574
80576
  /*nameNotFoundMessage*/
80575
80577
  jsxFactoryRefErr,
80576
80578
  /*isUse*/
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "typescript",
3
3
  "author": "Microsoft Corp.",
4
4
  "homepage": "https://www.typescriptlang.org/",
5
- "version": "5.7.0-dev.20241003",
5
+ "version": "5.7.0-dev.20241005",
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": "ca18009b8bd5cea6a7fbcba3d7e4dd3c4633bc92"
119
+ "gitHead": "b845fd2434f255ba35b0bb143a65172c8985e467"
120
120
  }