typescript 5.8.0-dev.20241208 → 5.8.0-dev.20241210

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.8";
21
- var version = `${versionMajorMinor}.0-dev.20241208`;
21
+ var version = `${versionMajorMinor}.0-dev.20241210`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -70672,12 +70672,13 @@ function createTypeChecker(host) {
70672
70672
  const jsxFactoryRefErr = diagnostics && compilerOptions.jsx === 2 /* React */ ? Diagnostics.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found : void 0;
70673
70673
  const jsxFactoryNamespace = getJsxNamespace(node);
70674
70674
  const jsxFactoryLocation = isJsxOpeningLikeElement(node) ? node.tagName : node;
70675
+ const shouldFactoryRefErr = compilerOptions.jsx !== 1 /* Preserve */ && compilerOptions.jsx !== 3 /* ReactNative */;
70675
70676
  let jsxFactorySym;
70676
70677
  if (!(isJsxOpeningFragment(node) && jsxFactoryNamespace === "null")) {
70677
70678
  jsxFactorySym = resolveName(
70678
70679
  jsxFactoryLocation,
70679
70680
  jsxFactoryNamespace,
70680
- compilerOptions.jsx === 1 /* Preserve */ || compilerOptions.jsx === 3 /* ReactNative */ ? 111551 /* Value */ & ~384 /* Enum */ : 111551 /* Value */,
70681
+ shouldFactoryRefErr ? 111551 /* Value */ : 111551 /* Value */ & ~384 /* Enum */,
70681
70682
  jsxFactoryRefErr,
70682
70683
  /*isUse*/
70683
70684
  true
@@ -70697,7 +70698,7 @@ function createTypeChecker(host) {
70697
70698
  resolveName(
70698
70699
  jsxFactoryLocation,
70699
70700
  localJsxNamespace,
70700
- compilerOptions.jsx === 1 /* Preserve */ || compilerOptions.jsx === 3 /* ReactNative */ ? 111551 /* Value */ & ~384 /* Enum */ : 111551 /* Value */,
70701
+ shouldFactoryRefErr ? 111551 /* Value */ : 111551 /* Value */ & ~384 /* Enum */,
70701
70702
  jsxFactoryRefErr,
70702
70703
  /*isUse*/
70703
70704
  true
@@ -76242,12 +76243,14 @@ function createTypeChecker(host) {
76242
76243
  const sourceFileLinks = getNodeLinks(getSourceFileOfNode(node));
76243
76244
  if (sourceFileLinks.jsxFragmentType !== void 0) return sourceFileLinks.jsxFragmentType;
76244
76245
  const jsxFragmentFactoryName = getJsxNamespace(node);
76245
- if (jsxFragmentFactoryName === "null") return sourceFileLinks.jsxFragmentType = anyType;
76246
+ const shouldResolveFactoryReference = (compilerOptions.jsx === 2 /* React */ || compilerOptions.jsxFragmentFactory !== void 0) && jsxFragmentFactoryName !== "null";
76247
+ if (!shouldResolveFactoryReference) return sourceFileLinks.jsxFragmentType = anyType;
76248
+ const shouldModuleRefErr = compilerOptions.jsx !== 1 /* Preserve */ && compilerOptions.jsx !== 3 /* ReactNative */;
76246
76249
  const jsxFactoryRefErr = diagnostics ? Diagnostics.Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found : void 0;
76247
76250
  const jsxFactorySymbol = getJsxNamespaceContainerForImplicitImport(node) ?? resolveName(
76248
76251
  node,
76249
76252
  jsxFragmentFactoryName,
76250
- compilerOptions.jsx === 1 /* Preserve */ || compilerOptions.jsx === 3 /* ReactNative */ ? 111551 /* Value */ & ~384 /* Enum */ : 111551 /* Value */,
76253
+ shouldModuleRefErr ? 111551 /* Value */ : 111551 /* Value */ & ~384 /* Enum */,
76251
76254
  /*nameNotFoundMessage*/
76252
76255
  jsxFactoryRefErr,
76253
76256
  /*isUse*/
package/lib/typescript.js CHANGED
@@ -2278,7 +2278,7 @@ module.exports = __toCommonJS(typescript_exports);
2278
2278
 
2279
2279
  // src/compiler/corePublic.ts
2280
2280
  var versionMajorMinor = "5.8";
2281
- var version = `${versionMajorMinor}.0-dev.20241208`;
2281
+ var version = `${versionMajorMinor}.0-dev.20241210`;
2282
2282
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2283
2283
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2284
2284
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -75275,12 +75275,13 @@ function createTypeChecker(host) {
75275
75275
  const jsxFactoryRefErr = diagnostics && compilerOptions.jsx === 2 /* React */ ? Diagnostics.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found : void 0;
75276
75276
  const jsxFactoryNamespace = getJsxNamespace(node);
75277
75277
  const jsxFactoryLocation = isJsxOpeningLikeElement(node) ? node.tagName : node;
75278
+ const shouldFactoryRefErr = compilerOptions.jsx !== 1 /* Preserve */ && compilerOptions.jsx !== 3 /* ReactNative */;
75278
75279
  let jsxFactorySym;
75279
75280
  if (!(isJsxOpeningFragment(node) && jsxFactoryNamespace === "null")) {
75280
75281
  jsxFactorySym = resolveName(
75281
75282
  jsxFactoryLocation,
75282
75283
  jsxFactoryNamespace,
75283
- compilerOptions.jsx === 1 /* Preserve */ || compilerOptions.jsx === 3 /* ReactNative */ ? 111551 /* Value */ & ~384 /* Enum */ : 111551 /* Value */,
75284
+ shouldFactoryRefErr ? 111551 /* Value */ : 111551 /* Value */ & ~384 /* Enum */,
75284
75285
  jsxFactoryRefErr,
75285
75286
  /*isUse*/
75286
75287
  true
@@ -75300,7 +75301,7 @@ function createTypeChecker(host) {
75300
75301
  resolveName(
75301
75302
  jsxFactoryLocation,
75302
75303
  localJsxNamespace,
75303
- compilerOptions.jsx === 1 /* Preserve */ || compilerOptions.jsx === 3 /* ReactNative */ ? 111551 /* Value */ & ~384 /* Enum */ : 111551 /* Value */,
75304
+ shouldFactoryRefErr ? 111551 /* Value */ : 111551 /* Value */ & ~384 /* Enum */,
75304
75305
  jsxFactoryRefErr,
75305
75306
  /*isUse*/
75306
75307
  true
@@ -80845,12 +80846,14 @@ function createTypeChecker(host) {
80845
80846
  const sourceFileLinks = getNodeLinks(getSourceFileOfNode(node));
80846
80847
  if (sourceFileLinks.jsxFragmentType !== void 0) return sourceFileLinks.jsxFragmentType;
80847
80848
  const jsxFragmentFactoryName = getJsxNamespace(node);
80848
- if (jsxFragmentFactoryName === "null") return sourceFileLinks.jsxFragmentType = anyType;
80849
+ const shouldResolveFactoryReference = (compilerOptions.jsx === 2 /* React */ || compilerOptions.jsxFragmentFactory !== void 0) && jsxFragmentFactoryName !== "null";
80850
+ if (!shouldResolveFactoryReference) return sourceFileLinks.jsxFragmentType = anyType;
80851
+ const shouldModuleRefErr = compilerOptions.jsx !== 1 /* Preserve */ && compilerOptions.jsx !== 3 /* ReactNative */;
80849
80852
  const jsxFactoryRefErr = diagnostics ? Diagnostics.Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found : void 0;
80850
80853
  const jsxFactorySymbol = getJsxNamespaceContainerForImplicitImport(node) ?? resolveName(
80851
80854
  node,
80852
80855
  jsxFragmentFactoryName,
80853
- compilerOptions.jsx === 1 /* Preserve */ || compilerOptions.jsx === 3 /* ReactNative */ ? 111551 /* Value */ & ~384 /* Enum */ : 111551 /* Value */,
80856
+ shouldModuleRefErr ? 111551 /* Value */ : 111551 /* Value */ & ~384 /* Enum */,
80854
80857
  /*nameNotFoundMessage*/
80855
80858
  jsxFactoryRefErr,
80856
80859
  /*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.8.0-dev.20241208",
5
+ "version": "5.8.0-dev.20241210",
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": "421f5c5458d09dad601604e6eff8765283aef14e"
119
+ "gitHead": "3d2b8f33d4ff86ec351ba93a557d37720962c921"
120
120
  }