typescript 5.3.0-dev.20231003 → 5.3.0-dev.20231004
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 +16 -6
- package/lib/tsserver.js +28 -7
- package/lib/typescript.js +28 -7
- package/lib/typingsInstaller.js +1 -1
- package/package.json +2 -2
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.3";
|
|
21
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
21
|
+
var version = `${versionMajorMinor}.0-dev.20231004`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -42361,10 +42361,12 @@ function getModuleSpecifiers(moduleSymbol, checker, compilerOptions, importingSo
|
|
|
42361
42361
|
importingSourceFile,
|
|
42362
42362
|
host,
|
|
42363
42363
|
userPreferences,
|
|
42364
|
-
options
|
|
42364
|
+
options,
|
|
42365
|
+
/*forAutoImport*/
|
|
42366
|
+
false
|
|
42365
42367
|
).moduleSpecifiers;
|
|
42366
42368
|
}
|
|
42367
|
-
function getModuleSpecifiersWithCacheInfo(moduleSymbol, checker, compilerOptions, importingSourceFile, host, userPreferences, options = {}) {
|
|
42369
|
+
function getModuleSpecifiersWithCacheInfo(moduleSymbol, checker, compilerOptions, importingSourceFile, host, userPreferences, options = {}, forAutoImport) {
|
|
42368
42370
|
let computedWithoutCache = false;
|
|
42369
42371
|
const ambient = tryGetModuleNameFromAmbientModule(moduleSymbol, checker);
|
|
42370
42372
|
if (ambient)
|
|
@@ -42382,11 +42384,19 @@ function getModuleSpecifiersWithCacheInfo(moduleSymbol, checker, compilerOptions
|
|
|
42382
42384
|
return { moduleSpecifiers: emptyArray, computedWithoutCache };
|
|
42383
42385
|
computedWithoutCache = true;
|
|
42384
42386
|
modulePaths || (modulePaths = getAllModulePathsWorker(importingSourceFile.path, moduleSourceFile.originalFileName, host));
|
|
42385
|
-
const result = computeModuleSpecifiers(
|
|
42387
|
+
const result = computeModuleSpecifiers(
|
|
42388
|
+
modulePaths,
|
|
42389
|
+
compilerOptions,
|
|
42390
|
+
importingSourceFile,
|
|
42391
|
+
host,
|
|
42392
|
+
userPreferences,
|
|
42393
|
+
options,
|
|
42394
|
+
forAutoImport
|
|
42395
|
+
);
|
|
42386
42396
|
cache == null ? void 0 : cache.set(importingSourceFile.path, moduleSourceFile.path, userPreferences, options, modulePaths, result);
|
|
42387
42397
|
return { moduleSpecifiers: result, computedWithoutCache };
|
|
42388
42398
|
}
|
|
42389
|
-
function computeModuleSpecifiers(modulePaths, compilerOptions, importingSourceFile, host, userPreferences, options = {}) {
|
|
42399
|
+
function computeModuleSpecifiers(modulePaths, compilerOptions, importingSourceFile, host, userPreferences, options = {}, forAutoImport) {
|
|
42390
42400
|
const info = getInfo(importingSourceFile.path, host);
|
|
42391
42401
|
const preferences = getPreferences(userPreferences, compilerOptions, importingSourceFile);
|
|
42392
42402
|
const existingSpecifier = forEach(modulePaths, (modulePath) => forEach(
|
|
@@ -42443,7 +42453,7 @@ function computeModuleSpecifiers(modulePaths, compilerOptions, importingSourceFi
|
|
|
42443
42453
|
redirectPathsSpecifiers = append(redirectPathsSpecifiers, local);
|
|
42444
42454
|
} else if (pathIsBareSpecifier(local)) {
|
|
42445
42455
|
pathsSpecifiers = append(pathsSpecifiers, local);
|
|
42446
|
-
} else if (!importedFileIsInNodeModules || modulePath.isInNodeModules) {
|
|
42456
|
+
} else if (forAutoImport || !importedFileIsInNodeModules || modulePath.isInNodeModules) {
|
|
42447
42457
|
relativeSpecifiers = append(relativeSpecifiers, local);
|
|
42448
42458
|
}
|
|
42449
42459
|
}
|
package/lib/tsserver.js
CHANGED
|
@@ -2328,7 +2328,7 @@ module.exports = __toCommonJS(server_exports);
|
|
|
2328
2328
|
|
|
2329
2329
|
// src/compiler/corePublic.ts
|
|
2330
2330
|
var versionMajorMinor = "5.3";
|
|
2331
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
2331
|
+
var version = `${versionMajorMinor}.0-dev.20231004`;
|
|
2332
2332
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2333
2333
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2334
2334
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -47073,10 +47073,12 @@ function getModuleSpecifiers(moduleSymbol, checker, compilerOptions, importingSo
|
|
|
47073
47073
|
importingSourceFile,
|
|
47074
47074
|
host,
|
|
47075
47075
|
userPreferences,
|
|
47076
|
-
options
|
|
47076
|
+
options,
|
|
47077
|
+
/*forAutoImport*/
|
|
47078
|
+
false
|
|
47077
47079
|
).moduleSpecifiers;
|
|
47078
47080
|
}
|
|
47079
|
-
function getModuleSpecifiersWithCacheInfo(moduleSymbol, checker, compilerOptions, importingSourceFile, host, userPreferences, options = {}) {
|
|
47081
|
+
function getModuleSpecifiersWithCacheInfo(moduleSymbol, checker, compilerOptions, importingSourceFile, host, userPreferences, options = {}, forAutoImport) {
|
|
47080
47082
|
let computedWithoutCache = false;
|
|
47081
47083
|
const ambient = tryGetModuleNameFromAmbientModule(moduleSymbol, checker);
|
|
47082
47084
|
if (ambient)
|
|
@@ -47094,11 +47096,19 @@ function getModuleSpecifiersWithCacheInfo(moduleSymbol, checker, compilerOptions
|
|
|
47094
47096
|
return { moduleSpecifiers: emptyArray, computedWithoutCache };
|
|
47095
47097
|
computedWithoutCache = true;
|
|
47096
47098
|
modulePaths || (modulePaths = getAllModulePathsWorker(importingSourceFile.path, moduleSourceFile.originalFileName, host));
|
|
47097
|
-
const result = computeModuleSpecifiers(
|
|
47099
|
+
const result = computeModuleSpecifiers(
|
|
47100
|
+
modulePaths,
|
|
47101
|
+
compilerOptions,
|
|
47102
|
+
importingSourceFile,
|
|
47103
|
+
host,
|
|
47104
|
+
userPreferences,
|
|
47105
|
+
options,
|
|
47106
|
+
forAutoImport
|
|
47107
|
+
);
|
|
47098
47108
|
cache == null ? void 0 : cache.set(importingSourceFile.path, moduleSourceFile.path, userPreferences, options, modulePaths, result);
|
|
47099
47109
|
return { moduleSpecifiers: result, computedWithoutCache };
|
|
47100
47110
|
}
|
|
47101
|
-
function computeModuleSpecifiers(modulePaths, compilerOptions, importingSourceFile, host, userPreferences, options = {}) {
|
|
47111
|
+
function computeModuleSpecifiers(modulePaths, compilerOptions, importingSourceFile, host, userPreferences, options = {}, forAutoImport) {
|
|
47102
47112
|
const info = getInfo(importingSourceFile.path, host);
|
|
47103
47113
|
const preferences = getPreferences(userPreferences, compilerOptions, importingSourceFile);
|
|
47104
47114
|
const existingSpecifier = forEach(modulePaths, (modulePath) => forEach(
|
|
@@ -47155,7 +47165,7 @@ function computeModuleSpecifiers(modulePaths, compilerOptions, importingSourceFi
|
|
|
47155
47165
|
redirectPathsSpecifiers = append(redirectPathsSpecifiers, local);
|
|
47156
47166
|
} else if (pathIsBareSpecifier(local)) {
|
|
47157
47167
|
pathsSpecifiers = append(pathsSpecifiers, local);
|
|
47158
|
-
} else if (!importedFileIsInNodeModules || modulePath.isInNodeModules) {
|
|
47168
|
+
} else if (forAutoImport || !importedFileIsInNodeModules || modulePath.isInNodeModules) {
|
|
47159
47169
|
relativeSpecifiers = append(relativeSpecifiers, local);
|
|
47160
47170
|
}
|
|
47161
47171
|
}
|
|
@@ -150092,7 +150102,18 @@ function getNewImportFixes(program, sourceFile, usagePosition, isValidTypeOnlyUs
|
|
|
150092
150102
|
const getChecker = createGetChecker(program, host);
|
|
150093
150103
|
const moduleResolution = getEmitModuleResolutionKind(compilerOptions);
|
|
150094
150104
|
const rejectNodeModulesRelativePaths = moduleResolutionUsesNodeModules(moduleResolution);
|
|
150095
|
-
const getModuleSpecifiers2 = fromCacheOnly ? (moduleSymbol) => ({ moduleSpecifiers: ts_moduleSpecifiers_exports.tryGetModuleSpecifiersFromCache(moduleSymbol, sourceFile, moduleSpecifierResolutionHost, preferences), computedWithoutCache: false }) : (moduleSymbol, checker) => ts_moduleSpecifiers_exports.getModuleSpecifiersWithCacheInfo(
|
|
150105
|
+
const getModuleSpecifiers2 = fromCacheOnly ? (moduleSymbol) => ({ moduleSpecifiers: ts_moduleSpecifiers_exports.tryGetModuleSpecifiersFromCache(moduleSymbol, sourceFile, moduleSpecifierResolutionHost, preferences), computedWithoutCache: false }) : (moduleSymbol, checker) => ts_moduleSpecifiers_exports.getModuleSpecifiersWithCacheInfo(
|
|
150106
|
+
moduleSymbol,
|
|
150107
|
+
checker,
|
|
150108
|
+
compilerOptions,
|
|
150109
|
+
sourceFile,
|
|
150110
|
+
moduleSpecifierResolutionHost,
|
|
150111
|
+
preferences,
|
|
150112
|
+
/*options*/
|
|
150113
|
+
void 0,
|
|
150114
|
+
/*forAutoImport*/
|
|
150115
|
+
true
|
|
150116
|
+
);
|
|
150096
150117
|
let computedWithoutCacheCount = 0;
|
|
150097
150118
|
const fixes = flatMap(exportInfo, (exportInfo2, i) => {
|
|
150098
150119
|
const checker = getChecker(exportInfo2.isFromPackageJson);
|
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.3";
|
|
38
|
-
version = `${versionMajorMinor}.0-dev.
|
|
38
|
+
version = `${versionMajorMinor}.0-dev.20231004`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -44938,10 +44938,12 @@ ${lanes.join("\n")}
|
|
|
44938
44938
|
importingSourceFile,
|
|
44939
44939
|
host,
|
|
44940
44940
|
userPreferences,
|
|
44941
|
-
options
|
|
44941
|
+
options,
|
|
44942
|
+
/*forAutoImport*/
|
|
44943
|
+
false
|
|
44942
44944
|
).moduleSpecifiers;
|
|
44943
44945
|
}
|
|
44944
|
-
function getModuleSpecifiersWithCacheInfo(moduleSymbol, checker, compilerOptions, importingSourceFile, host, userPreferences, options = {}) {
|
|
44946
|
+
function getModuleSpecifiersWithCacheInfo(moduleSymbol, checker, compilerOptions, importingSourceFile, host, userPreferences, options = {}, forAutoImport) {
|
|
44945
44947
|
let computedWithoutCache = false;
|
|
44946
44948
|
const ambient = tryGetModuleNameFromAmbientModule(moduleSymbol, checker);
|
|
44947
44949
|
if (ambient)
|
|
@@ -44959,11 +44961,19 @@ ${lanes.join("\n")}
|
|
|
44959
44961
|
return { moduleSpecifiers: emptyArray, computedWithoutCache };
|
|
44960
44962
|
computedWithoutCache = true;
|
|
44961
44963
|
modulePaths || (modulePaths = getAllModulePathsWorker(importingSourceFile.path, moduleSourceFile.originalFileName, host));
|
|
44962
|
-
const result = computeModuleSpecifiers(
|
|
44964
|
+
const result = computeModuleSpecifiers(
|
|
44965
|
+
modulePaths,
|
|
44966
|
+
compilerOptions,
|
|
44967
|
+
importingSourceFile,
|
|
44968
|
+
host,
|
|
44969
|
+
userPreferences,
|
|
44970
|
+
options,
|
|
44971
|
+
forAutoImport
|
|
44972
|
+
);
|
|
44963
44973
|
cache == null ? void 0 : cache.set(importingSourceFile.path, moduleSourceFile.path, userPreferences, options, modulePaths, result);
|
|
44964
44974
|
return { moduleSpecifiers: result, computedWithoutCache };
|
|
44965
44975
|
}
|
|
44966
|
-
function computeModuleSpecifiers(modulePaths, compilerOptions, importingSourceFile, host, userPreferences, options = {}) {
|
|
44976
|
+
function computeModuleSpecifiers(modulePaths, compilerOptions, importingSourceFile, host, userPreferences, options = {}, forAutoImport) {
|
|
44967
44977
|
const info = getInfo(importingSourceFile.path, host);
|
|
44968
44978
|
const preferences = getPreferences(userPreferences, compilerOptions, importingSourceFile);
|
|
44969
44979
|
const existingSpecifier = forEach(modulePaths, (modulePath) => forEach(
|
|
@@ -45020,7 +45030,7 @@ ${lanes.join("\n")}
|
|
|
45020
45030
|
redirectPathsSpecifiers = append(redirectPathsSpecifiers, local);
|
|
45021
45031
|
} else if (pathIsBareSpecifier(local)) {
|
|
45022
45032
|
pathsSpecifiers = append(pathsSpecifiers, local);
|
|
45023
|
-
} else if (!importedFileIsInNodeModules || modulePath.isInNodeModules) {
|
|
45033
|
+
} else if (forAutoImport || !importedFileIsInNodeModules || modulePath.isInNodeModules) {
|
|
45024
45034
|
relativeSpecifiers = append(relativeSpecifiers, local);
|
|
45025
45035
|
}
|
|
45026
45036
|
}
|
|
@@ -148812,7 +148822,18 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
148812
148822
|
const getChecker = createGetChecker(program, host);
|
|
148813
148823
|
const moduleResolution = getEmitModuleResolutionKind(compilerOptions);
|
|
148814
148824
|
const rejectNodeModulesRelativePaths = moduleResolutionUsesNodeModules(moduleResolution);
|
|
148815
|
-
const getModuleSpecifiers2 = fromCacheOnly ? (moduleSymbol) => ({ moduleSpecifiers: ts_moduleSpecifiers_exports.tryGetModuleSpecifiersFromCache(moduleSymbol, sourceFile, moduleSpecifierResolutionHost, preferences), computedWithoutCache: false }) : (moduleSymbol, checker) => ts_moduleSpecifiers_exports.getModuleSpecifiersWithCacheInfo(
|
|
148825
|
+
const getModuleSpecifiers2 = fromCacheOnly ? (moduleSymbol) => ({ moduleSpecifiers: ts_moduleSpecifiers_exports.tryGetModuleSpecifiersFromCache(moduleSymbol, sourceFile, moduleSpecifierResolutionHost, preferences), computedWithoutCache: false }) : (moduleSymbol, checker) => ts_moduleSpecifiers_exports.getModuleSpecifiersWithCacheInfo(
|
|
148826
|
+
moduleSymbol,
|
|
148827
|
+
checker,
|
|
148828
|
+
compilerOptions,
|
|
148829
|
+
sourceFile,
|
|
148830
|
+
moduleSpecifierResolutionHost,
|
|
148831
|
+
preferences,
|
|
148832
|
+
/*options*/
|
|
148833
|
+
void 0,
|
|
148834
|
+
/*forAutoImport*/
|
|
148835
|
+
true
|
|
148836
|
+
);
|
|
148816
148837
|
let computedWithoutCacheCount = 0;
|
|
148817
148838
|
const fixes = flatMap(exportInfo, (exportInfo2, i) => {
|
|
148818
148839
|
const checker = getChecker(exportInfo2.isFromPackageJson);
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
|
|
|
54
54
|
|
|
55
55
|
// src/compiler/corePublic.ts
|
|
56
56
|
var versionMajorMinor = "5.3";
|
|
57
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
57
|
+
var version = `${versionMajorMinor}.0-dev.20231004`;
|
|
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.3.0-dev.
|
|
5
|
+
"version": "5.3.0-dev.20231004",
|
|
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": "
|
|
116
|
+
"gitHead": "375216469400fab44cbcec99e7d14eb8f96fd059"
|
|
117
117
|
}
|