typescript 5.5.0-dev.20240305 → 5.5.0-dev.20240307
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 +31 -7
- package/lib/tsserver.js +31 -7
- package/lib/typescript.js +31 -7
- package/lib/typingsInstaller.js +1 -1
- package/package.json +18 -19
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.5";
|
|
21
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
21
|
+
var version = `${versionMajorMinor}.0-dev.20240307`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -86814,6 +86814,7 @@ function collectExternalModuleInfo(context, sourceFile) {
|
|
|
86814
86814
|
const exportedBindings = [];
|
|
86815
86815
|
const uniqueExports = /* @__PURE__ */ new Map();
|
|
86816
86816
|
let exportedNames;
|
|
86817
|
+
let exportedFunctions;
|
|
86817
86818
|
let hasExportDefault = false;
|
|
86818
86819
|
let exportEquals;
|
|
86819
86820
|
let hasExportStarsToExportValues = false;
|
|
@@ -86872,6 +86873,7 @@ function collectExternalModuleInfo(context, sourceFile) {
|
|
|
86872
86873
|
break;
|
|
86873
86874
|
case 262 /* FunctionDeclaration */:
|
|
86874
86875
|
if (hasSyntacticModifier(node, 32 /* Export */)) {
|
|
86876
|
+
exportedFunctions = append(exportedFunctions, node);
|
|
86875
86877
|
if (hasSyntacticModifier(node, 2048 /* Default */)) {
|
|
86876
86878
|
if (!hasExportDefault) {
|
|
86877
86879
|
multiMapSparseArrayAdd(exportedBindings, getOriginalNodeId(node), context.factory.getDeclarationName(node));
|
|
@@ -86882,7 +86884,6 @@ function collectExternalModuleInfo(context, sourceFile) {
|
|
|
86882
86884
|
if (!uniqueExports.get(idText(name))) {
|
|
86883
86885
|
multiMapSparseArrayAdd(exportedBindings, getOriginalNodeId(node), name);
|
|
86884
86886
|
uniqueExports.set(idText(name), true);
|
|
86885
|
-
exportedNames = append(exportedNames, name);
|
|
86886
86887
|
}
|
|
86887
86888
|
}
|
|
86888
86889
|
}
|
|
@@ -86910,7 +86911,7 @@ function collectExternalModuleInfo(context, sourceFile) {
|
|
|
86910
86911
|
if (externalHelpersImportDeclaration) {
|
|
86911
86912
|
externalImports.unshift(externalHelpersImportDeclaration);
|
|
86912
86913
|
}
|
|
86913
|
-
return { externalImports, exportSpecifiers, exportEquals, hasExportStarsToExportValues, exportedBindings, exportedNames, externalHelpersImportDeclaration };
|
|
86914
|
+
return { externalImports, exportSpecifiers, exportEquals, hasExportStarsToExportValues, exportedBindings, exportedNames, exportedFunctions, externalHelpersImportDeclaration };
|
|
86914
86915
|
function addExportedNamesForExportDeclaration(node) {
|
|
86915
86916
|
for (const specifier of cast(node.exportClause, isNamedExports).elements) {
|
|
86916
86917
|
if (!uniqueExports.get(idText(specifier.name))) {
|
|
@@ -104241,7 +104242,7 @@ function transformModule(context) {
|
|
|
104241
104242
|
if (shouldEmitUnderscoreUnderscoreESModule()) {
|
|
104242
104243
|
append(statements, createUnderscoreUnderscoreESModule());
|
|
104243
104244
|
}
|
|
104244
|
-
if (
|
|
104245
|
+
if (some(currentModuleInfo.exportedNames)) {
|
|
104245
104246
|
const chunkSize = 50;
|
|
104246
104247
|
for (let i = 0; i < currentModuleInfo.exportedNames.length; i += chunkSize) {
|
|
104247
104248
|
append(
|
|
@@ -104256,6 +104257,11 @@ function transformModule(context) {
|
|
|
104256
104257
|
);
|
|
104257
104258
|
}
|
|
104258
104259
|
}
|
|
104260
|
+
if (some(currentModuleInfo.exportedFunctions)) {
|
|
104261
|
+
for (const f of currentModuleInfo.exportedFunctions) {
|
|
104262
|
+
appendExportsOfHoistedDeclaration(statements, f);
|
|
104263
|
+
}
|
|
104264
|
+
}
|
|
104259
104265
|
append(statements, visitNode(currentModuleInfo.externalHelpersImportDeclaration, topLevelVisitor, isStatement));
|
|
104260
104266
|
addRange(statements, visitNodes2(node.statements, topLevelVisitor, isStatement, statementOffset));
|
|
104261
104267
|
addExportEqualsIfNeeded(
|
|
@@ -104568,9 +104574,14 @@ function transformModule(context) {
|
|
|
104568
104574
|
if (shouldEmitUnderscoreUnderscoreESModule()) {
|
|
104569
104575
|
append(statements, createUnderscoreUnderscoreESModule());
|
|
104570
104576
|
}
|
|
104571
|
-
if (
|
|
104577
|
+
if (some(currentModuleInfo.exportedNames)) {
|
|
104572
104578
|
append(statements, factory2.createExpressionStatement(reduceLeft(currentModuleInfo.exportedNames, (prev, nextId) => factory2.createAssignment(factory2.createPropertyAccessExpression(factory2.createIdentifier("exports"), factory2.createIdentifier(idText(nextId))), prev), factory2.createVoidZero())));
|
|
104573
104579
|
}
|
|
104580
|
+
if (some(currentModuleInfo.exportedFunctions)) {
|
|
104581
|
+
for (const f of currentModuleInfo.exportedFunctions) {
|
|
104582
|
+
appendExportsOfHoistedDeclaration(statements, f);
|
|
104583
|
+
}
|
|
104584
|
+
}
|
|
104574
104585
|
append(statements, visitNode(currentModuleInfo.externalHelpersImportDeclaration, topLevelVisitor, isStatement));
|
|
104575
104586
|
if (moduleKind === 2 /* AMD */) {
|
|
104576
104587
|
addRange(statements, mapDefined(currentModuleInfo.externalImports, getAMDImportExpressionForImport));
|
|
@@ -105541,7 +105552,6 @@ function transformModule(context) {
|
|
|
105541
105552
|
} else {
|
|
105542
105553
|
statements = append(statements, visitEachChild(node, visitor, context));
|
|
105543
105554
|
}
|
|
105544
|
-
statements = appendExportsOfHoistedDeclaration(statements, node);
|
|
105545
105555
|
return singleOrMany(statements);
|
|
105546
105556
|
}
|
|
105547
105557
|
function visitClassDeclaration(node) {
|
|
@@ -106284,7 +106294,7 @@ function transformSystemModule(context) {
|
|
|
106284
106294
|
if (!moduleInfo.hasExportStarsToExportValues) {
|
|
106285
106295
|
return;
|
|
106286
106296
|
}
|
|
106287
|
-
if (!moduleInfo.exportedNames && moduleInfo.exportSpecifiers.size === 0) {
|
|
106297
|
+
if (!some(moduleInfo.exportedNames) && !some(moduleInfo.exportedFunctions) && moduleInfo.exportSpecifiers.size === 0) {
|
|
106288
106298
|
let hasExportDeclarationWithExportClause = false;
|
|
106289
106299
|
for (const externalImport of moduleInfo.externalImports) {
|
|
106290
106300
|
if (externalImport.kind === 278 /* ExportDeclaration */ && externalImport.exportClause) {
|
|
@@ -106315,6 +106325,20 @@ function transformSystemModule(context) {
|
|
|
106315
106325
|
);
|
|
106316
106326
|
}
|
|
106317
106327
|
}
|
|
106328
|
+
if (moduleInfo.exportedFunctions) {
|
|
106329
|
+
for (const f of moduleInfo.exportedFunctions) {
|
|
106330
|
+
if (hasSyntacticModifier(f, 2048 /* Default */)) {
|
|
106331
|
+
continue;
|
|
106332
|
+
}
|
|
106333
|
+
Debug.assert(!!f.name);
|
|
106334
|
+
exportedNames.push(
|
|
106335
|
+
factory2.createPropertyAssignment(
|
|
106336
|
+
factory2.createStringLiteralFromNode(f.name),
|
|
106337
|
+
factory2.createTrue()
|
|
106338
|
+
)
|
|
106339
|
+
);
|
|
106340
|
+
}
|
|
106341
|
+
}
|
|
106318
106342
|
const exportedNamesStorageRef = factory2.createUniqueName("exportedNames");
|
|
106319
106343
|
statements.push(
|
|
106320
106344
|
factory2.createVariableStatement(
|
package/lib/tsserver.js
CHANGED
|
@@ -2325,7 +2325,7 @@ module.exports = __toCommonJS(server_exports);
|
|
|
2325
2325
|
|
|
2326
2326
|
// src/compiler/corePublic.ts
|
|
2327
2327
|
var versionMajorMinor = "5.5";
|
|
2328
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
2328
|
+
var version = `${versionMajorMinor}.0-dev.20240307`;
|
|
2329
2329
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2330
2330
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2331
2331
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -91710,6 +91710,7 @@ function collectExternalModuleInfo(context, sourceFile) {
|
|
|
91710
91710
|
const exportedBindings = [];
|
|
91711
91711
|
const uniqueExports = /* @__PURE__ */ new Map();
|
|
91712
91712
|
let exportedNames;
|
|
91713
|
+
let exportedFunctions;
|
|
91713
91714
|
let hasExportDefault = false;
|
|
91714
91715
|
let exportEquals;
|
|
91715
91716
|
let hasExportStarsToExportValues = false;
|
|
@@ -91768,6 +91769,7 @@ function collectExternalModuleInfo(context, sourceFile) {
|
|
|
91768
91769
|
break;
|
|
91769
91770
|
case 262 /* FunctionDeclaration */:
|
|
91770
91771
|
if (hasSyntacticModifier(node, 32 /* Export */)) {
|
|
91772
|
+
exportedFunctions = append(exportedFunctions, node);
|
|
91771
91773
|
if (hasSyntacticModifier(node, 2048 /* Default */)) {
|
|
91772
91774
|
if (!hasExportDefault) {
|
|
91773
91775
|
multiMapSparseArrayAdd(exportedBindings, getOriginalNodeId(node), context.factory.getDeclarationName(node));
|
|
@@ -91778,7 +91780,6 @@ function collectExternalModuleInfo(context, sourceFile) {
|
|
|
91778
91780
|
if (!uniqueExports.get(idText(name))) {
|
|
91779
91781
|
multiMapSparseArrayAdd(exportedBindings, getOriginalNodeId(node), name);
|
|
91780
91782
|
uniqueExports.set(idText(name), true);
|
|
91781
|
-
exportedNames = append(exportedNames, name);
|
|
91782
91783
|
}
|
|
91783
91784
|
}
|
|
91784
91785
|
}
|
|
@@ -91806,7 +91807,7 @@ function collectExternalModuleInfo(context, sourceFile) {
|
|
|
91806
91807
|
if (externalHelpersImportDeclaration) {
|
|
91807
91808
|
externalImports.unshift(externalHelpersImportDeclaration);
|
|
91808
91809
|
}
|
|
91809
|
-
return { externalImports, exportSpecifiers, exportEquals, hasExportStarsToExportValues, exportedBindings, exportedNames, externalHelpersImportDeclaration };
|
|
91810
|
+
return { externalImports, exportSpecifiers, exportEquals, hasExportStarsToExportValues, exportedBindings, exportedNames, exportedFunctions, externalHelpersImportDeclaration };
|
|
91810
91811
|
function addExportedNamesForExportDeclaration(node) {
|
|
91811
91812
|
for (const specifier of cast(node.exportClause, isNamedExports).elements) {
|
|
91812
91813
|
if (!uniqueExports.get(idText(specifier.name))) {
|
|
@@ -109147,7 +109148,7 @@ function transformModule(context) {
|
|
|
109147
109148
|
if (shouldEmitUnderscoreUnderscoreESModule()) {
|
|
109148
109149
|
append(statements, createUnderscoreUnderscoreESModule());
|
|
109149
109150
|
}
|
|
109150
|
-
if (
|
|
109151
|
+
if (some(currentModuleInfo.exportedNames)) {
|
|
109151
109152
|
const chunkSize = 50;
|
|
109152
109153
|
for (let i = 0; i < currentModuleInfo.exportedNames.length; i += chunkSize) {
|
|
109153
109154
|
append(
|
|
@@ -109162,6 +109163,11 @@ function transformModule(context) {
|
|
|
109162
109163
|
);
|
|
109163
109164
|
}
|
|
109164
109165
|
}
|
|
109166
|
+
if (some(currentModuleInfo.exportedFunctions)) {
|
|
109167
|
+
for (const f of currentModuleInfo.exportedFunctions) {
|
|
109168
|
+
appendExportsOfHoistedDeclaration(statements, f);
|
|
109169
|
+
}
|
|
109170
|
+
}
|
|
109165
109171
|
append(statements, visitNode(currentModuleInfo.externalHelpersImportDeclaration, topLevelVisitor, isStatement));
|
|
109166
109172
|
addRange(statements, visitNodes2(node.statements, topLevelVisitor, isStatement, statementOffset));
|
|
109167
109173
|
addExportEqualsIfNeeded(
|
|
@@ -109474,9 +109480,14 @@ function transformModule(context) {
|
|
|
109474
109480
|
if (shouldEmitUnderscoreUnderscoreESModule()) {
|
|
109475
109481
|
append(statements, createUnderscoreUnderscoreESModule());
|
|
109476
109482
|
}
|
|
109477
|
-
if (
|
|
109483
|
+
if (some(currentModuleInfo.exportedNames)) {
|
|
109478
109484
|
append(statements, factory2.createExpressionStatement(reduceLeft(currentModuleInfo.exportedNames, (prev, nextId) => factory2.createAssignment(factory2.createPropertyAccessExpression(factory2.createIdentifier("exports"), factory2.createIdentifier(idText(nextId))), prev), factory2.createVoidZero())));
|
|
109479
109485
|
}
|
|
109486
|
+
if (some(currentModuleInfo.exportedFunctions)) {
|
|
109487
|
+
for (const f of currentModuleInfo.exportedFunctions) {
|
|
109488
|
+
appendExportsOfHoistedDeclaration(statements, f);
|
|
109489
|
+
}
|
|
109490
|
+
}
|
|
109480
109491
|
append(statements, visitNode(currentModuleInfo.externalHelpersImportDeclaration, topLevelVisitor, isStatement));
|
|
109481
109492
|
if (moduleKind === 2 /* AMD */) {
|
|
109482
109493
|
addRange(statements, mapDefined(currentModuleInfo.externalImports, getAMDImportExpressionForImport));
|
|
@@ -110447,7 +110458,6 @@ function transformModule(context) {
|
|
|
110447
110458
|
} else {
|
|
110448
110459
|
statements = append(statements, visitEachChild(node, visitor, context));
|
|
110449
110460
|
}
|
|
110450
|
-
statements = appendExportsOfHoistedDeclaration(statements, node);
|
|
110451
110461
|
return singleOrMany(statements);
|
|
110452
110462
|
}
|
|
110453
110463
|
function visitClassDeclaration(node) {
|
|
@@ -111190,7 +111200,7 @@ function transformSystemModule(context) {
|
|
|
111190
111200
|
if (!moduleInfo.hasExportStarsToExportValues) {
|
|
111191
111201
|
return;
|
|
111192
111202
|
}
|
|
111193
|
-
if (!moduleInfo.exportedNames && moduleInfo.exportSpecifiers.size === 0) {
|
|
111203
|
+
if (!some(moduleInfo.exportedNames) && !some(moduleInfo.exportedFunctions) && moduleInfo.exportSpecifiers.size === 0) {
|
|
111194
111204
|
let hasExportDeclarationWithExportClause = false;
|
|
111195
111205
|
for (const externalImport of moduleInfo.externalImports) {
|
|
111196
111206
|
if (externalImport.kind === 278 /* ExportDeclaration */ && externalImport.exportClause) {
|
|
@@ -111221,6 +111231,20 @@ function transformSystemModule(context) {
|
|
|
111221
111231
|
);
|
|
111222
111232
|
}
|
|
111223
111233
|
}
|
|
111234
|
+
if (moduleInfo.exportedFunctions) {
|
|
111235
|
+
for (const f of moduleInfo.exportedFunctions) {
|
|
111236
|
+
if (hasSyntacticModifier(f, 2048 /* Default */)) {
|
|
111237
|
+
continue;
|
|
111238
|
+
}
|
|
111239
|
+
Debug.assert(!!f.name);
|
|
111240
|
+
exportedNames.push(
|
|
111241
|
+
factory2.createPropertyAssignment(
|
|
111242
|
+
factory2.createStringLiteralFromNode(f.name),
|
|
111243
|
+
factory2.createTrue()
|
|
111244
|
+
)
|
|
111245
|
+
);
|
|
111246
|
+
}
|
|
111247
|
+
}
|
|
111224
111248
|
const exportedNamesStorageRef = factory2.createUniqueName("exportedNames");
|
|
111225
111249
|
statements.push(
|
|
111226
111250
|
factory2.createVariableStatement(
|
package/lib/typescript.js
CHANGED
|
@@ -2325,7 +2325,7 @@ module.exports = __toCommonJS(typescript_exports);
|
|
|
2325
2325
|
|
|
2326
2326
|
// src/compiler/corePublic.ts
|
|
2327
2327
|
var versionMajorMinor = "5.5";
|
|
2328
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
2328
|
+
var version = `${versionMajorMinor}.0-dev.20240307`;
|
|
2329
2329
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2330
2330
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2331
2331
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -91710,6 +91710,7 @@ function collectExternalModuleInfo(context, sourceFile) {
|
|
|
91710
91710
|
const exportedBindings = [];
|
|
91711
91711
|
const uniqueExports = /* @__PURE__ */ new Map();
|
|
91712
91712
|
let exportedNames;
|
|
91713
|
+
let exportedFunctions;
|
|
91713
91714
|
let hasExportDefault = false;
|
|
91714
91715
|
let exportEquals;
|
|
91715
91716
|
let hasExportStarsToExportValues = false;
|
|
@@ -91768,6 +91769,7 @@ function collectExternalModuleInfo(context, sourceFile) {
|
|
|
91768
91769
|
break;
|
|
91769
91770
|
case 262 /* FunctionDeclaration */:
|
|
91770
91771
|
if (hasSyntacticModifier(node, 32 /* Export */)) {
|
|
91772
|
+
exportedFunctions = append(exportedFunctions, node);
|
|
91771
91773
|
if (hasSyntacticModifier(node, 2048 /* Default */)) {
|
|
91772
91774
|
if (!hasExportDefault) {
|
|
91773
91775
|
multiMapSparseArrayAdd(exportedBindings, getOriginalNodeId(node), context.factory.getDeclarationName(node));
|
|
@@ -91778,7 +91780,6 @@ function collectExternalModuleInfo(context, sourceFile) {
|
|
|
91778
91780
|
if (!uniqueExports.get(idText(name))) {
|
|
91779
91781
|
multiMapSparseArrayAdd(exportedBindings, getOriginalNodeId(node), name);
|
|
91780
91782
|
uniqueExports.set(idText(name), true);
|
|
91781
|
-
exportedNames = append(exportedNames, name);
|
|
91782
91783
|
}
|
|
91783
91784
|
}
|
|
91784
91785
|
}
|
|
@@ -91806,7 +91807,7 @@ function collectExternalModuleInfo(context, sourceFile) {
|
|
|
91806
91807
|
if (externalHelpersImportDeclaration) {
|
|
91807
91808
|
externalImports.unshift(externalHelpersImportDeclaration);
|
|
91808
91809
|
}
|
|
91809
|
-
return { externalImports, exportSpecifiers, exportEquals, hasExportStarsToExportValues, exportedBindings, exportedNames, externalHelpersImportDeclaration };
|
|
91810
|
+
return { externalImports, exportSpecifiers, exportEquals, hasExportStarsToExportValues, exportedBindings, exportedNames, exportedFunctions, externalHelpersImportDeclaration };
|
|
91810
91811
|
function addExportedNamesForExportDeclaration(node) {
|
|
91811
91812
|
for (const specifier of cast(node.exportClause, isNamedExports).elements) {
|
|
91812
91813
|
if (!uniqueExports.get(idText(specifier.name))) {
|
|
@@ -109147,7 +109148,7 @@ function transformModule(context) {
|
|
|
109147
109148
|
if (shouldEmitUnderscoreUnderscoreESModule()) {
|
|
109148
109149
|
append(statements, createUnderscoreUnderscoreESModule());
|
|
109149
109150
|
}
|
|
109150
|
-
if (
|
|
109151
|
+
if (some(currentModuleInfo.exportedNames)) {
|
|
109151
109152
|
const chunkSize = 50;
|
|
109152
109153
|
for (let i = 0; i < currentModuleInfo.exportedNames.length; i += chunkSize) {
|
|
109153
109154
|
append(
|
|
@@ -109162,6 +109163,11 @@ function transformModule(context) {
|
|
|
109162
109163
|
);
|
|
109163
109164
|
}
|
|
109164
109165
|
}
|
|
109166
|
+
if (some(currentModuleInfo.exportedFunctions)) {
|
|
109167
|
+
for (const f of currentModuleInfo.exportedFunctions) {
|
|
109168
|
+
appendExportsOfHoistedDeclaration(statements, f);
|
|
109169
|
+
}
|
|
109170
|
+
}
|
|
109165
109171
|
append(statements, visitNode(currentModuleInfo.externalHelpersImportDeclaration, topLevelVisitor, isStatement));
|
|
109166
109172
|
addRange(statements, visitNodes2(node.statements, topLevelVisitor, isStatement, statementOffset));
|
|
109167
109173
|
addExportEqualsIfNeeded(
|
|
@@ -109474,9 +109480,14 @@ function transformModule(context) {
|
|
|
109474
109480
|
if (shouldEmitUnderscoreUnderscoreESModule()) {
|
|
109475
109481
|
append(statements, createUnderscoreUnderscoreESModule());
|
|
109476
109482
|
}
|
|
109477
|
-
if (
|
|
109483
|
+
if (some(currentModuleInfo.exportedNames)) {
|
|
109478
109484
|
append(statements, factory2.createExpressionStatement(reduceLeft(currentModuleInfo.exportedNames, (prev, nextId) => factory2.createAssignment(factory2.createPropertyAccessExpression(factory2.createIdentifier("exports"), factory2.createIdentifier(idText(nextId))), prev), factory2.createVoidZero())));
|
|
109479
109485
|
}
|
|
109486
|
+
if (some(currentModuleInfo.exportedFunctions)) {
|
|
109487
|
+
for (const f of currentModuleInfo.exportedFunctions) {
|
|
109488
|
+
appendExportsOfHoistedDeclaration(statements, f);
|
|
109489
|
+
}
|
|
109490
|
+
}
|
|
109480
109491
|
append(statements, visitNode(currentModuleInfo.externalHelpersImportDeclaration, topLevelVisitor, isStatement));
|
|
109481
109492
|
if (moduleKind === 2 /* AMD */) {
|
|
109482
109493
|
addRange(statements, mapDefined(currentModuleInfo.externalImports, getAMDImportExpressionForImport));
|
|
@@ -110447,7 +110458,6 @@ function transformModule(context) {
|
|
|
110447
110458
|
} else {
|
|
110448
110459
|
statements = append(statements, visitEachChild(node, visitor, context));
|
|
110449
110460
|
}
|
|
110450
|
-
statements = appendExportsOfHoistedDeclaration(statements, node);
|
|
110451
110461
|
return singleOrMany(statements);
|
|
110452
110462
|
}
|
|
110453
110463
|
function visitClassDeclaration(node) {
|
|
@@ -111190,7 +111200,7 @@ function transformSystemModule(context) {
|
|
|
111190
111200
|
if (!moduleInfo.hasExportStarsToExportValues) {
|
|
111191
111201
|
return;
|
|
111192
111202
|
}
|
|
111193
|
-
if (!moduleInfo.exportedNames && moduleInfo.exportSpecifiers.size === 0) {
|
|
111203
|
+
if (!some(moduleInfo.exportedNames) && !some(moduleInfo.exportedFunctions) && moduleInfo.exportSpecifiers.size === 0) {
|
|
111194
111204
|
let hasExportDeclarationWithExportClause = false;
|
|
111195
111205
|
for (const externalImport of moduleInfo.externalImports) {
|
|
111196
111206
|
if (externalImport.kind === 278 /* ExportDeclaration */ && externalImport.exportClause) {
|
|
@@ -111221,6 +111231,20 @@ function transformSystemModule(context) {
|
|
|
111221
111231
|
);
|
|
111222
111232
|
}
|
|
111223
111233
|
}
|
|
111234
|
+
if (moduleInfo.exportedFunctions) {
|
|
111235
|
+
for (const f of moduleInfo.exportedFunctions) {
|
|
111236
|
+
if (hasSyntacticModifier(f, 2048 /* Default */)) {
|
|
111237
|
+
continue;
|
|
111238
|
+
}
|
|
111239
|
+
Debug.assert(!!f.name);
|
|
111240
|
+
exportedNames.push(
|
|
111241
|
+
factory2.createPropertyAssignment(
|
|
111242
|
+
factory2.createStringLiteralFromNode(f.name),
|
|
111243
|
+
factory2.createTrue()
|
|
111244
|
+
)
|
|
111245
|
+
);
|
|
111246
|
+
}
|
|
111247
|
+
}
|
|
111224
111248
|
const exportedNamesStorageRef = factory2.createUniqueName("exportedNames");
|
|
111225
111249
|
statements.push(
|
|
111226
111250
|
factory2.createVariableStatement(
|
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.5";
|
|
57
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
57
|
+
var version = `${versionMajorMinor}.0-dev.20240307`;
|
|
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.5.0-dev.
|
|
5
|
+
"version": "5.5.0-dev.20240307",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -41,8 +41,7 @@
|
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@esfx/canceltoken": "^1.0.0",
|
|
43
43
|
"@octokit/rest": "^20.0.2",
|
|
44
|
-
"@types/chai": "^4.3.
|
|
45
|
-
"@types/glob": "^8.1.0",
|
|
44
|
+
"@types/chai": "^4.3.12",
|
|
46
45
|
"@types/microsoft__typescript-etw": "^0.1.3",
|
|
47
46
|
"@types/minimist": "^1.2.5",
|
|
48
47
|
"@types/mocha": "^10.0.6",
|
|
@@ -50,35 +49,35 @@
|
|
|
50
49
|
"@types/node": "latest",
|
|
51
50
|
"@types/source-map-support": "^0.5.10",
|
|
52
51
|
"@types/which": "^3.0.3",
|
|
53
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
54
|
-
"@typescript-eslint/parser": "^
|
|
55
|
-
"@typescript-eslint/utils": "^
|
|
56
|
-
"azure-devops-node-api": "^12.
|
|
52
|
+
"@typescript-eslint/eslint-plugin": "^7.1.1",
|
|
53
|
+
"@typescript-eslint/parser": "^7.1.1",
|
|
54
|
+
"@typescript-eslint/utils": "^7.1.1",
|
|
55
|
+
"azure-devops-node-api": "^12.4.0",
|
|
57
56
|
"c8": "^9.1.0",
|
|
58
57
|
"chai": "^4.4.1",
|
|
59
58
|
"chalk": "^4.1.2",
|
|
60
|
-
"chokidar": "^3.
|
|
61
|
-
"diff": "^5.
|
|
59
|
+
"chokidar": "^3.6.0",
|
|
60
|
+
"diff": "^5.2.0",
|
|
62
61
|
"dprint": "^0.45.0",
|
|
63
|
-
"esbuild": "^0.20.
|
|
64
|
-
"eslint": "^8.
|
|
62
|
+
"esbuild": "^0.20.1",
|
|
63
|
+
"eslint": "^8.57.0",
|
|
65
64
|
"eslint-formatter-autolinkable-stylish": "^1.3.0",
|
|
66
|
-
"eslint-plugin-local": "^
|
|
65
|
+
"eslint-plugin-local": "^4.2.1",
|
|
67
66
|
"eslint-plugin-no-null": "^1.0.2",
|
|
68
|
-
"eslint-plugin-simple-import-sort": "^
|
|
69
|
-
"fast-xml-parser": "^4.3.
|
|
67
|
+
"eslint-plugin-simple-import-sort": "^12.0.0",
|
|
68
|
+
"fast-xml-parser": "^4.3.5",
|
|
70
69
|
"glob": "^10.3.10",
|
|
71
70
|
"hereby": "^1.8.9",
|
|
72
|
-
"jsonc-parser": "^3.2.
|
|
71
|
+
"jsonc-parser": "^3.2.1",
|
|
73
72
|
"minimist": "^1.2.8",
|
|
74
|
-
"mocha": "^10.
|
|
73
|
+
"mocha": "^10.3.0",
|
|
75
74
|
"mocha-fivemat-progress-reporter": "^0.1.0",
|
|
76
75
|
"ms": "^2.1.3",
|
|
77
76
|
"node-fetch": "^3.3.2",
|
|
78
|
-
"playwright": "^1.
|
|
77
|
+
"playwright": "^1.42.1",
|
|
79
78
|
"source-map-support": "^0.5.21",
|
|
80
79
|
"tslib": "^2.6.2",
|
|
81
|
-
"typescript": "5.4.
|
|
80
|
+
"typescript": "^5.4.2",
|
|
82
81
|
"which": "^3.0.1"
|
|
83
82
|
},
|
|
84
83
|
"overrides": {
|
|
@@ -113,5 +112,5 @@
|
|
|
113
112
|
"node": "20.1.0",
|
|
114
113
|
"npm": "8.19.4"
|
|
115
114
|
},
|
|
116
|
-
"gitHead": "
|
|
115
|
+
"gitHead": "881f449a8a10839db5d535c3a407621d53c78666"
|
|
117
116
|
}
|