typescript 5.4.0-dev.20240208 → 5.4.0-dev.20240210

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.4";
21
- var version = `${versionMajorMinor}.0-dev.20240208`;
21
+ var version = `${versionMajorMinor}.0-dev.20240210`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -59789,8 +59789,8 @@ function createTypeChecker(host) {
59789
59789
  if (!result) {
59790
59790
  const newMapper = createTypeMapper(root.outerTypeParameters, typeArguments);
59791
59791
  const checkType = root.checkType;
59792
- const distributionType = root.isDistributive ? getMappedType(checkType, newMapper) : void 0;
59793
- result = distributionType && checkType !== distributionType && distributionType.flags & (1048576 /* Union */ | 131072 /* Never */) ? mapTypeWithAlias(getReducedType(distributionType), (t) => getConditionalType(root, prependTypeMapping(checkType, t, newMapper), forConstraint), aliasSymbol, aliasTypeArguments) : getConditionalType(root, newMapper, forConstraint, aliasSymbol, aliasTypeArguments);
59792
+ const distributionType = root.isDistributive ? getReducedType(getMappedType(checkType, newMapper)) : void 0;
59793
+ result = distributionType && checkType !== distributionType && distributionType.flags & (1048576 /* Union */ | 131072 /* Never */) ? mapTypeWithAlias(distributionType, (t) => getConditionalType(root, prependTypeMapping(checkType, t, newMapper), forConstraint), aliasSymbol, aliasTypeArguments) : getConditionalType(root, newMapper, forConstraint, aliasSymbol, aliasTypeArguments);
59794
59794
  root.instantiations.set(id, result);
59795
59795
  }
59796
59796
  return result;
package/lib/tsserver.js CHANGED
@@ -2340,7 +2340,7 @@ module.exports = __toCommonJS(server_exports);
2340
2340
 
2341
2341
  // src/compiler/corePublic.ts
2342
2342
  var versionMajorMinor = "5.4";
2343
- var version = `${versionMajorMinor}.0-dev.20240208`;
2343
+ var version = `${versionMajorMinor}.0-dev.20240210`;
2344
2344
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2345
2345
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2346
2346
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -64533,8 +64533,8 @@ function createTypeChecker(host) {
64533
64533
  if (!result) {
64534
64534
  const newMapper = createTypeMapper(root.outerTypeParameters, typeArguments);
64535
64535
  const checkType = root.checkType;
64536
- const distributionType = root.isDistributive ? getMappedType(checkType, newMapper) : void 0;
64537
- result = distributionType && checkType !== distributionType && distributionType.flags & (1048576 /* Union */ | 131072 /* Never */) ? mapTypeWithAlias(getReducedType(distributionType), (t) => getConditionalType(root, prependTypeMapping(checkType, t, newMapper), forConstraint), aliasSymbol, aliasTypeArguments) : getConditionalType(root, newMapper, forConstraint, aliasSymbol, aliasTypeArguments);
64536
+ const distributionType = root.isDistributive ? getReducedType(getMappedType(checkType, newMapper)) : void 0;
64537
+ result = distributionType && checkType !== distributionType && distributionType.flags & (1048576 /* Union */ | 131072 /* Never */) ? mapTypeWithAlias(distributionType, (t) => getConditionalType(root, prependTypeMapping(checkType, t, newMapper), forConstraint), aliasSymbol, aliasTypeArguments) : getConditionalType(root, newMapper, forConstraint, aliasSymbol, aliasTypeArguments);
64538
64538
  root.instantiations.set(id, result);
64539
64539
  }
64540
64540
  return result;
@@ -152211,7 +152211,7 @@ function compareModuleSpecifiers(a, b, importingFile, program, allowsImportingSp
152211
152211
  }
152212
152212
  function isFixPossiblyReExportingImportingFile(fix, importingFile, compilerOptions, toPath3) {
152213
152213
  var _a;
152214
- if (fix.isReExport && ((_a = fix.exportInfo) == null ? void 0 : _a.moduleFileName) && getEmitModuleResolutionKind(compilerOptions) === 2 /* Node10 */ && isIndexFileName(fix.exportInfo.moduleFileName)) {
152214
+ if (fix.isReExport && ((_a = fix.exportInfo) == null ? void 0 : _a.moduleFileName) && isIndexFileName(fix.exportInfo.moduleFileName)) {
152215
152215
  const reExportDir = toPath3(getDirectoryPath(fix.exportInfo.moduleFileName));
152216
152216
  return startsWith(importingFile.path, reExportDir);
152217
152217
  }
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.4";
38
- version = `${versionMajorMinor}.0-dev.20240208`;
38
+ version = `${versionMajorMinor}.0-dev.20240210`;
39
39
  Comparison = /* @__PURE__ */ ((Comparison3) => {
40
40
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
41
41
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -62288,8 +62288,8 @@ ${lanes.join("\n")}
62288
62288
  if (!result) {
62289
62289
  const newMapper = createTypeMapper(root.outerTypeParameters, typeArguments);
62290
62290
  const checkType = root.checkType;
62291
- const distributionType = root.isDistributive ? getMappedType(checkType, newMapper) : void 0;
62292
- result = distributionType && checkType !== distributionType && distributionType.flags & (1048576 /* Union */ | 131072 /* Never */) ? mapTypeWithAlias(getReducedType(distributionType), (t) => getConditionalType(root, prependTypeMapping(checkType, t, newMapper), forConstraint), aliasSymbol, aliasTypeArguments) : getConditionalType(root, newMapper, forConstraint, aliasSymbol, aliasTypeArguments);
62291
+ const distributionType = root.isDistributive ? getReducedType(getMappedType(checkType, newMapper)) : void 0;
62292
+ result = distributionType && checkType !== distributionType && distributionType.flags & (1048576 /* Union */ | 131072 /* Never */) ? mapTypeWithAlias(distributionType, (t) => getConditionalType(root, prependTypeMapping(checkType, t, newMapper), forConstraint), aliasSymbol, aliasTypeArguments) : getConditionalType(root, newMapper, forConstraint, aliasSymbol, aliasTypeArguments);
62293
62293
  root.instantiations.set(id, result);
62294
62294
  }
62295
62295
  return result;
@@ -150911,7 +150911,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
150911
150911
  }
150912
150912
  function isFixPossiblyReExportingImportingFile(fix, importingFile, compilerOptions, toPath3) {
150913
150913
  var _a;
150914
- if (fix.isReExport && ((_a = fix.exportInfo) == null ? void 0 : _a.moduleFileName) && getEmitModuleResolutionKind(compilerOptions) === 2 /* Node10 */ && isIndexFileName(fix.exportInfo.moduleFileName)) {
150914
+ if (fix.isReExport && ((_a = fix.exportInfo) == null ? void 0 : _a.moduleFileName) && isIndexFileName(fix.exportInfo.moduleFileName)) {
150915
150915
  const reExportDir = toPath3(getDirectoryPath(fix.exportInfo.moduleFileName));
150916
150916
  return startsWith(importingFile.path, reExportDir);
150917
150917
  }
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
54
54
 
55
55
  // src/compiler/corePublic.ts
56
56
  var versionMajorMinor = "5.4";
57
- var version = `${versionMajorMinor}.0-dev.20240208`;
57
+ var version = `${versionMajorMinor}.0-dev.20240210`;
58
58
 
59
59
  // src/compiler/core.ts
60
60
  var emptyArray = [];
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.4.0-dev.20240208",
5
+ "version": "5.4.0-dev.20240210",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -113,5 +113,5 @@
113
113
  "node": "20.1.0",
114
114
  "npm": "8.19.4"
115
115
  },
116
- "gitHead": "10a3872de4c8ed8f68633d29066862b292851df9"
116
+ "gitHead": "25a708cf633c6c8a66c86ca9e664c31bd8d145d0"
117
117
  }