typescript 5.2.0-dev.20230709 → 5.2.0-dev.20230711

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.2";
21
- var version = `${versionMajorMinor}.0-dev.20230709`;
21
+ var version = `${versionMajorMinor}.0-dev.20230711`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -118420,6 +118420,9 @@ function parseConfigHostFromCompilerHostLike(host, directoryStructureHost = host
118420
118420
  return directoryStructureHost.readDirectory(root, extensions, excludes, includes, depth);
118421
118421
  },
118422
118422
  readFile: (f) => directoryStructureHost.readFile(f),
118423
+ directoryExists: maybeBind(directoryStructureHost, directoryStructureHost.directoryExists),
118424
+ getDirectories: maybeBind(directoryStructureHost, directoryStructureHost.getDirectories),
118425
+ realpath: maybeBind(directoryStructureHost, directoryStructureHost.realpath),
118423
118426
  useCaseSensitiveFileNames: host.useCaseSensitiveFileNames(),
118424
118427
  getCurrentDirectory: () => host.getCurrentDirectory(),
118425
118428
  onUnRecoverableConfigFileDiagnostic: host.onUnRecoverableConfigFileDiagnostic || returnUndefined,
package/lib/tsserver.js CHANGED
@@ -2327,7 +2327,7 @@ module.exports = __toCommonJS(server_exports);
2327
2327
 
2328
2328
  // src/compiler/corePublic.ts
2329
2329
  var versionMajorMinor = "5.2";
2330
- var version = `${versionMajorMinor}.0-dev.20230709`;
2330
+ var version = `${versionMajorMinor}.0-dev.20230711`;
2331
2331
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2332
2332
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2333
2333
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -123363,6 +123363,9 @@ function parseConfigHostFromCompilerHostLike(host, directoryStructureHost = host
123363
123363
  return directoryStructureHost.readDirectory(root, extensions, excludes, includes, depth);
123364
123364
  },
123365
123365
  readFile: (f) => directoryStructureHost.readFile(f),
123366
+ directoryExists: maybeBind(directoryStructureHost, directoryStructureHost.directoryExists),
123367
+ getDirectories: maybeBind(directoryStructureHost, directoryStructureHost.getDirectories),
123368
+ realpath: maybeBind(directoryStructureHost, directoryStructureHost.realpath),
123366
123369
  useCaseSensitiveFileNames: host.useCaseSensitiveFileNames(),
123367
123370
  getCurrentDirectory: () => host.getCurrentDirectory(),
123368
123371
  onUnRecoverableConfigFileDiagnostic: host.onUnRecoverableConfigFileDiagnostic || returnUndefined,
@@ -132867,13 +132870,16 @@ function needsNameFromDeclaration(symbol) {
132867
132870
  return !(symbol.flags & 33554432 /* Transient */) && (symbol.escapedName === "export=" /* ExportEquals */ || symbol.escapedName === "default" /* Default */);
132868
132871
  }
132869
132872
  function getDefaultLikeExportNameFromDeclaration(symbol) {
132870
- return firstDefined(
132871
- symbol.declarations,
132872
- (d) => {
132873
- var _a, _b;
132874
- return isExportAssignment(d) ? (_a = tryCast(skipOuterExpressions(d.expression), isIdentifier)) == null ? void 0 : _a.text : (_b = tryCast(getNameOfDeclaration(d), isIdentifier)) == null ? void 0 : _b.text;
132873
+ return firstDefined(symbol.declarations, (d) => {
132874
+ var _a, _b, _c;
132875
+ if (isExportAssignment(d)) {
132876
+ return (_a = tryCast(skipOuterExpressions(d.expression), isIdentifier)) == null ? void 0 : _a.text;
132875
132877
  }
132876
- );
132878
+ if (isExportSpecifier(d) && d.symbol.flags === 2097152 /* Alias */) {
132879
+ return (_b = tryCast(d.propertyName, isIdentifier)) == null ? void 0 : _b.text;
132880
+ }
132881
+ return (_c = tryCast(getNameOfDeclaration(d), isIdentifier)) == null ? void 0 : _c.text;
132882
+ });
132877
132883
  }
132878
132884
  function getSymbolParentOrFail(symbol) {
132879
132885
  var _a;
@@ -143742,6 +143748,9 @@ function createLanguageService(host, documentRegistry = createDocumentRegistry(h
143742
143748
  useCaseSensitiveFileNames: useCaseSensitiveFileNames2,
143743
143749
  fileExists: (fileName) => compilerHost.fileExists(fileName),
143744
143750
  readFile: (fileName) => compilerHost.readFile(fileName),
143751
+ directoryExists: (f) => compilerHost.directoryExists(f),
143752
+ getDirectories: (f) => compilerHost.getDirectories(f),
143753
+ realpath: compilerHost.realpath,
143745
143754
  readDirectory: (...args) => compilerHost.readDirectory(...args),
143746
143755
  trace: compilerHost.trace,
143747
143756
  getCurrentDirectory: compilerHost.getCurrentDirectory,
@@ -6274,7 +6274,7 @@ declare namespace ts {
6274
6274
  getSourceFileByPath(path: Path): SourceFile | undefined;
6275
6275
  getCurrentDirectory(): string;
6276
6276
  }
6277
- interface ParseConfigHost {
6277
+ interface ParseConfigHost extends ModuleResolutionHost {
6278
6278
  useCaseSensitiveFileNames: boolean;
6279
6279
  readDirectory(rootDir: string, extensions: readonly string[], excludes: readonly string[] | undefined, includes: readonly string[], depth?: number): readonly string[];
6280
6280
  /**
@@ -35,7 +35,7 @@ var ts = (() => {
35
35
  "src/compiler/corePublic.ts"() {
36
36
  "use strict";
37
37
  versionMajorMinor = "5.2";
38
- version = `${versionMajorMinor}.0-dev.20230709`;
38
+ version = `${versionMajorMinor}.0-dev.20230711`;
39
39
  Comparison = /* @__PURE__ */ ((Comparison3) => {
40
40
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
41
41
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -121348,6 +121348,9 @@ ${lanes.join("\n")}
121348
121348
  return directoryStructureHost.readDirectory(root, extensions, excludes, includes, depth);
121349
121349
  },
121350
121350
  readFile: (f) => directoryStructureHost.readFile(f),
121351
+ directoryExists: maybeBind(directoryStructureHost, directoryStructureHost.directoryExists),
121352
+ getDirectories: maybeBind(directoryStructureHost, directoryStructureHost.getDirectories),
121353
+ realpath: maybeBind(directoryStructureHost, directoryStructureHost.realpath),
121351
121354
  useCaseSensitiveFileNames: host.useCaseSensitiveFileNames(),
121352
121355
  getCurrentDirectory: () => host.getCurrentDirectory(),
121353
121356
  onUnRecoverableConfigFileDiagnostic: host.onUnRecoverableConfigFileDiagnostic || returnUndefined,
@@ -131125,13 +131128,16 @@ ${lanes.join("\n")}
131125
131128
  return !(symbol.flags & 33554432 /* Transient */) && (symbol.escapedName === "export=" /* ExportEquals */ || symbol.escapedName === "default" /* Default */);
131126
131129
  }
131127
131130
  function getDefaultLikeExportNameFromDeclaration(symbol) {
131128
- return firstDefined(
131129
- symbol.declarations,
131130
- (d) => {
131131
- var _a, _b;
131132
- return isExportAssignment(d) ? (_a = tryCast(skipOuterExpressions(d.expression), isIdentifier)) == null ? void 0 : _a.text : (_b = tryCast(getNameOfDeclaration(d), isIdentifier)) == null ? void 0 : _b.text;
131131
+ return firstDefined(symbol.declarations, (d) => {
131132
+ var _a, _b, _c;
131133
+ if (isExportAssignment(d)) {
131134
+ return (_a = tryCast(skipOuterExpressions(d.expression), isIdentifier)) == null ? void 0 : _a.text;
131133
131135
  }
131134
- );
131136
+ if (isExportSpecifier(d) && d.symbol.flags === 2097152 /* Alias */) {
131137
+ return (_b = tryCast(d.propertyName, isIdentifier)) == null ? void 0 : _b.text;
131138
+ }
131139
+ return (_c = tryCast(getNameOfDeclaration(d), isIdentifier)) == null ? void 0 : _c.text;
131140
+ });
131135
131141
  }
131136
131142
  function getSymbolParentOrFail(symbol) {
131137
131143
  var _a;
@@ -141687,6 +141693,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
141687
141693
  useCaseSensitiveFileNames: useCaseSensitiveFileNames2,
141688
141694
  fileExists: (fileName) => compilerHost.fileExists(fileName),
141689
141695
  readFile: (fileName) => compilerHost.readFile(fileName),
141696
+ directoryExists: (f) => compilerHost.directoryExists(f),
141697
+ getDirectories: (f) => compilerHost.getDirectories(f),
141698
+ realpath: compilerHost.realpath,
141690
141699
  readDirectory: (...args) => compilerHost.readDirectory(...args),
141691
141700
  trace: compilerHost.trace,
141692
141701
  getCurrentDirectory: compilerHost.getCurrentDirectory,
@@ -2221,7 +2221,7 @@ declare namespace ts {
2221
2221
  getSourceFileByPath(path: Path): SourceFile | undefined;
2222
2222
  getCurrentDirectory(): string;
2223
2223
  }
2224
- interface ParseConfigHost {
2224
+ interface ParseConfigHost extends ModuleResolutionHost {
2225
2225
  useCaseSensitiveFileNames: boolean;
2226
2226
  readDirectory(rootDir: string, extensions: readonly string[], excludes: readonly string[] | undefined, includes: readonly string[], depth?: number): readonly string[];
2227
2227
  /**
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.2";
38
- version = `${versionMajorMinor}.0-dev.20230709`;
38
+ version = `${versionMajorMinor}.0-dev.20230711`;
39
39
  Comparison = /* @__PURE__ */ ((Comparison3) => {
40
40
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
41
41
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -121348,6 +121348,9 @@ ${lanes.join("\n")}
121348
121348
  return directoryStructureHost.readDirectory(root, extensions, excludes, includes, depth);
121349
121349
  },
121350
121350
  readFile: (f) => directoryStructureHost.readFile(f),
121351
+ directoryExists: maybeBind(directoryStructureHost, directoryStructureHost.directoryExists),
121352
+ getDirectories: maybeBind(directoryStructureHost, directoryStructureHost.getDirectories),
121353
+ realpath: maybeBind(directoryStructureHost, directoryStructureHost.realpath),
121351
121354
  useCaseSensitiveFileNames: host.useCaseSensitiveFileNames(),
121352
121355
  getCurrentDirectory: () => host.getCurrentDirectory(),
121353
121356
  onUnRecoverableConfigFileDiagnostic: host.onUnRecoverableConfigFileDiagnostic || returnUndefined,
@@ -131140,13 +131143,16 @@ ${lanes.join("\n")}
131140
131143
  return !(symbol.flags & 33554432 /* Transient */) && (symbol.escapedName === "export=" /* ExportEquals */ || symbol.escapedName === "default" /* Default */);
131141
131144
  }
131142
131145
  function getDefaultLikeExportNameFromDeclaration(symbol) {
131143
- return firstDefined(
131144
- symbol.declarations,
131145
- (d) => {
131146
- var _a, _b;
131147
- return isExportAssignment(d) ? (_a = tryCast(skipOuterExpressions(d.expression), isIdentifier)) == null ? void 0 : _a.text : (_b = tryCast(getNameOfDeclaration(d), isIdentifier)) == null ? void 0 : _b.text;
131146
+ return firstDefined(symbol.declarations, (d) => {
131147
+ var _a, _b, _c;
131148
+ if (isExportAssignment(d)) {
131149
+ return (_a = tryCast(skipOuterExpressions(d.expression), isIdentifier)) == null ? void 0 : _a.text;
131148
131150
  }
131149
- );
131151
+ if (isExportSpecifier(d) && d.symbol.flags === 2097152 /* Alias */) {
131152
+ return (_b = tryCast(d.propertyName, isIdentifier)) == null ? void 0 : _b.text;
131153
+ }
131154
+ return (_c = tryCast(getNameOfDeclaration(d), isIdentifier)) == null ? void 0 : _c.text;
131155
+ });
131150
131156
  }
131151
131157
  function getSymbolParentOrFail(symbol) {
131152
131158
  var _a;
@@ -141702,6 +141708,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
141702
141708
  useCaseSensitiveFileNames: useCaseSensitiveFileNames2,
141703
141709
  fileExists: (fileName) => compilerHost.fileExists(fileName),
141704
141710
  readFile: (fileName) => compilerHost.readFile(fileName),
141711
+ directoryExists: (f) => compilerHost.directoryExists(f),
141712
+ getDirectories: (f) => compilerHost.getDirectories(f),
141713
+ realpath: compilerHost.realpath,
141705
141714
  readDirectory: (...args) => compilerHost.readDirectory(...args),
141706
141715
  trace: compilerHost.trace,
141707
141716
  getCurrentDirectory: compilerHost.getCurrentDirectory,
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
54
54
 
55
55
  // src/compiler/corePublic.ts
56
56
  var versionMajorMinor = "5.2";
57
- var version = `${versionMajorMinor}.0-dev.20230709`;
57
+ var version = `${versionMajorMinor}.0-dev.20230711`;
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.2.0-dev.20230709",
5
+ "version": "5.2.0-dev.20230711",
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": "9701f55f7217d7bd56d28e73b250444efcefa8dd"
117
+ "gitHead": "d8585688dd1bc8d82b7b5daab9af83ae1e3de197"
118
118
  }