typescript 5.8.0-dev.20241114 → 5.8.0-dev.20241116
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 +1 -1
- package/lib/typescript.js +11 -22
- 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.8";
|
21
|
-
var version = `${versionMajorMinor}.0-dev.
|
21
|
+
var version = `${versionMajorMinor}.0-dev.20241116`;
|
22
22
|
|
23
23
|
// src/compiler/core.ts
|
24
24
|
var emptyArray = [];
|
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.
|
2281
|
+
var version = `${versionMajorMinor}.0-dev.20241116`;
|
2282
2282
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
2283
2283
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
2284
2284
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
@@ -146875,23 +146875,22 @@ function getUsageInfo(oldFile, toMove, checker, existingTargetLocals = /* @__PUR
|
|
146875
146875
|
const unusedImportsFromOldFile = /* @__PURE__ */ new Set();
|
146876
146876
|
for (const statement of toMove) {
|
146877
146877
|
forEachReference(statement, checker, enclosingRange, (symbol, isValidTypeOnlyUseSite) => {
|
146878
|
-
if (!symbol.declarations
|
146878
|
+
if (!symbol.declarations) {
|
146879
146879
|
return;
|
146880
146880
|
}
|
146881
146881
|
if (existingTargetLocals.has(skipAlias(symbol, checker))) {
|
146882
146882
|
unusedImportsFromOldFile.add(symbol);
|
146883
146883
|
return;
|
146884
146884
|
}
|
146885
|
-
|
146886
|
-
|
146887
|
-
|
146888
|
-
|
146889
|
-
|
146890
|
-
|
146891
|
-
|
146892
|
-
|
146893
|
-
|
146894
|
-
}
|
146885
|
+
const importedDeclaration = find(symbol.declarations, isInImport);
|
146886
|
+
if (importedDeclaration) {
|
146887
|
+
const prevIsTypeOnly = oldImportsNeededByTargetFile.get(symbol);
|
146888
|
+
oldImportsNeededByTargetFile.set(symbol, [
|
146889
|
+
prevIsTypeOnly === void 0 ? isValidTypeOnlyUseSite : prevIsTypeOnly && isValidTypeOnlyUseSite,
|
146890
|
+
tryCast(importedDeclaration, (d) => isImportSpecifier(d) || isImportClause(d) || isNamespaceImport(d) || isImportEqualsDeclaration(d) || isBindingElement(d) || isVariableDeclaration(d))
|
146891
|
+
]);
|
146892
|
+
} else if (!movedSymbols.has(symbol) && every(symbol.declarations, (decl) => isTopLevelDeclaration(decl) && sourceFileOfTopLevelDeclaration(decl) === oldFile)) {
|
146893
|
+
targetFileImportsFromOldFile.set(symbol, isValidTypeOnlyUseSite);
|
146895
146894
|
}
|
146896
146895
|
});
|
146897
146896
|
}
|
@@ -146925,16 +146924,6 @@ function getUsageInfo(oldFile, toMove, checker, existingTargetLocals = /* @__PUR
|
|
146925
146924
|
return !!jsxNamespaceSymbol2 && some(jsxNamespaceSymbol2.declarations, isInImport) ? jsxNamespaceSymbol2 : void 0;
|
146926
146925
|
}
|
146927
146926
|
}
|
146928
|
-
function isGlobalType(checker, symbol) {
|
146929
|
-
return !!checker.resolveName(
|
146930
|
-
symbol.name,
|
146931
|
-
/*location*/
|
146932
|
-
void 0,
|
146933
|
-
788968 /* Type */,
|
146934
|
-
/*excludeGlobals*/
|
146935
|
-
false
|
146936
|
-
);
|
146937
|
-
}
|
146938
146927
|
function makeUniqueFilename(proposedFilename, extension, inDirectory, host) {
|
146939
146928
|
let newFilename = proposedFilename;
|
146940
146929
|
for (let i = 1; ; i++) {
|
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.
|
5
|
+
"version": "5.8.0-dev.20241116",
|
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": "
|
119
|
+
"gitHead": "b3c67d32020a3015fe068fbcb1dcfb18aedcaad3"
|
120
120
|
}
|