@typescript-deploys/pr-build 6.0.0-pr-62243-25 → 6.0.0-pr-62184-3
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 +46 -67
- package/lib/typescript.js +51 -72
- package/package.json +19 -20
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 = "6.0";
|
|
21
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
21
|
+
var version = `${versionMajorMinor}.0-insiders.20250816`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -4254,10 +4254,10 @@ function createSingleWatcherPerName(cache, useCaseSensitiveFileNames2, name, cal
|
|
|
4254
4254
|
cache.set(path, {
|
|
4255
4255
|
watcher: createWatcher(
|
|
4256
4256
|
// Cant infer types correctly so lets satisfy checker
|
|
4257
|
-
(param1, param2, param3) => {
|
|
4257
|
+
((param1, param2, param3) => {
|
|
4258
4258
|
var _a;
|
|
4259
4259
|
return (_a = cache.get(path)) == null ? void 0 : _a.callbacks.slice().forEach((cb) => cb(param1, param2, param3));
|
|
4260
|
-
}
|
|
4260
|
+
})
|
|
4261
4261
|
),
|
|
4262
4262
|
callbacks: [callback]
|
|
4263
4263
|
});
|
|
@@ -14265,15 +14265,12 @@ function forEachYieldExpression(body, visitor) {
|
|
|
14265
14265
|
function traverse(node) {
|
|
14266
14266
|
switch (node.kind) {
|
|
14267
14267
|
case 230 /* YieldExpression */:
|
|
14268
|
-
|
|
14269
|
-
if (value) {
|
|
14270
|
-
return value;
|
|
14271
|
-
}
|
|
14268
|
+
visitor(node);
|
|
14272
14269
|
const operand = node.expression;
|
|
14273
|
-
if (
|
|
14274
|
-
|
|
14270
|
+
if (operand) {
|
|
14271
|
+
traverse(operand);
|
|
14275
14272
|
}
|
|
14276
|
-
return
|
|
14273
|
+
return;
|
|
14277
14274
|
case 267 /* EnumDeclaration */:
|
|
14278
14275
|
case 265 /* InterfaceDeclaration */:
|
|
14279
14276
|
case 268 /* ModuleDeclaration */:
|
|
@@ -14282,10 +14279,11 @@ function forEachYieldExpression(body, visitor) {
|
|
|
14282
14279
|
default:
|
|
14283
14280
|
if (isFunctionLike(node)) {
|
|
14284
14281
|
if (node.name && node.name.kind === 168 /* ComputedPropertyName */) {
|
|
14285
|
-
|
|
14282
|
+
traverse(node.name.expression);
|
|
14283
|
+
return;
|
|
14286
14284
|
}
|
|
14287
14285
|
} else if (!isPartOfTypeNode(node)) {
|
|
14288
|
-
|
|
14286
|
+
forEachChild(node, traverse);
|
|
14289
14287
|
}
|
|
14290
14288
|
}
|
|
14291
14289
|
}
|
|
@@ -19135,7 +19133,7 @@ function hasContextSensitiveParameters(node) {
|
|
|
19135
19133
|
if (node.kind !== 220 /* ArrowFunction */) {
|
|
19136
19134
|
const parameter = firstOrUndefined(node.parameters);
|
|
19137
19135
|
if (!(parameter && parameterIsThisKeyword(parameter))) {
|
|
19138
|
-
return
|
|
19136
|
+
return true;
|
|
19139
19137
|
}
|
|
19140
19138
|
}
|
|
19141
19139
|
}
|
|
@@ -42649,7 +42647,6 @@ function createBinder() {
|
|
|
42649
42647
|
const saveExceptionTarget = currentExceptionTarget;
|
|
42650
42648
|
const saveActiveLabelList = activeLabelList;
|
|
42651
42649
|
const saveHasExplicitReturn = hasExplicitReturn;
|
|
42652
|
-
const saveSeenThisKeyword = seenThisKeyword;
|
|
42653
42650
|
const isImmediatelyInvoked = containerFlags & 16 /* IsFunctionExpression */ && !hasSyntacticModifier(node, 1024 /* Async */) && !node.asteriskToken && !!getImmediatelyInvokedFunctionExpression(node) || node.kind === 176 /* ClassStaticBlockDeclaration */;
|
|
42654
42651
|
if (!isImmediatelyInvoked) {
|
|
42655
42652
|
currentFlow = createFlowNode(
|
|
@@ -42669,17 +42666,13 @@ function createBinder() {
|
|
|
42669
42666
|
currentContinueTarget = void 0;
|
|
42670
42667
|
activeLabelList = void 0;
|
|
42671
42668
|
hasExplicitReturn = false;
|
|
42672
|
-
seenThisKeyword = false;
|
|
42673
42669
|
bindChildren(node);
|
|
42674
|
-
node.flags &= ~
|
|
42670
|
+
node.flags &= ~5632 /* ReachabilityAndEmitFlags */;
|
|
42675
42671
|
if (!(currentFlow.flags & 1 /* Unreachable */) && containerFlags & 8 /* IsFunctionLike */ && nodeIsPresent(node.body)) {
|
|
42676
42672
|
node.flags |= 512 /* HasImplicitReturn */;
|
|
42677
42673
|
if (hasExplicitReturn) node.flags |= 1024 /* HasExplicitReturn */;
|
|
42678
42674
|
node.endFlowNode = currentFlow;
|
|
42679
42675
|
}
|
|
42680
|
-
if (seenThisKeyword) {
|
|
42681
|
-
node.flags |= 256 /* ContainsThis */;
|
|
42682
|
-
}
|
|
42683
42676
|
if (node.kind === 308 /* SourceFile */) {
|
|
42684
42677
|
node.flags |= emitFlags;
|
|
42685
42678
|
node.endFlowNode = currentFlow;
|
|
@@ -42700,14 +42693,11 @@ function createBinder() {
|
|
|
42700
42693
|
currentExceptionTarget = saveExceptionTarget;
|
|
42701
42694
|
activeLabelList = saveActiveLabelList;
|
|
42702
42695
|
hasExplicitReturn = saveHasExplicitReturn;
|
|
42703
|
-
seenThisKeyword = node.kind === 220 /* ArrowFunction */ ? saveSeenThisKeyword || seenThisKeyword : saveSeenThisKeyword;
|
|
42704
42696
|
} else if (containerFlags & 64 /* IsInterface */) {
|
|
42705
|
-
const saveSeenThisKeyword = seenThisKeyword;
|
|
42706
42697
|
seenThisKeyword = false;
|
|
42707
42698
|
bindChildren(node);
|
|
42708
42699
|
Debug.assertNotNode(node, isIdentifier);
|
|
42709
42700
|
node.flags = seenThisKeyword ? node.flags | 256 /* ContainsThis */ : node.flags & ~256 /* ContainsThis */;
|
|
42710
|
-
seenThisKeyword = saveSeenThisKeyword;
|
|
42711
42701
|
} else {
|
|
42712
42702
|
bindChildren(node);
|
|
42713
42703
|
}
|
|
@@ -44195,9 +44185,6 @@ function createBinder() {
|
|
|
44195
44185
|
}
|
|
44196
44186
|
// falls through
|
|
44197
44187
|
case 110 /* ThisKeyword */:
|
|
44198
|
-
if (node.kind === 110 /* ThisKeyword */) {
|
|
44199
|
-
seenThisKeyword = true;
|
|
44200
|
-
}
|
|
44201
44188
|
if (currentFlow && (isExpression(node) || parent.kind === 305 /* ShorthandPropertyAssignment */)) {
|
|
44202
44189
|
node.flowNode = currentFlow;
|
|
44203
44190
|
}
|
|
@@ -45120,8 +45107,6 @@ function getContainerFlags(node) {
|
|
|
45120
45107
|
// falls through
|
|
45121
45108
|
case 177 /* Constructor */:
|
|
45122
45109
|
case 263 /* FunctionDeclaration */:
|
|
45123
|
-
case 176 /* ClassStaticBlockDeclaration */:
|
|
45124
|
-
return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */ | 8 /* IsFunctionLike */;
|
|
45125
45110
|
case 174 /* MethodSignature */:
|
|
45126
45111
|
case 180 /* CallSignature */:
|
|
45127
45112
|
case 324 /* JSDocSignature */:
|
|
@@ -45129,14 +45114,17 @@ function getContainerFlags(node) {
|
|
|
45129
45114
|
case 185 /* FunctionType */:
|
|
45130
45115
|
case 181 /* ConstructSignature */:
|
|
45131
45116
|
case 186 /* ConstructorType */:
|
|
45132
|
-
|
|
45117
|
+
case 176 /* ClassStaticBlockDeclaration */:
|
|
45118
|
+
return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */ | 8 /* IsFunctionLike */;
|
|
45133
45119
|
case 352 /* JSDocImportTag */:
|
|
45134
|
-
return 1 /* IsContainer */ | 32 /* HasLocals */;
|
|
45120
|
+
return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */;
|
|
45135
45121
|
case 219 /* FunctionExpression */:
|
|
45136
45122
|
case 220 /* ArrowFunction */:
|
|
45137
45123
|
return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */ | 8 /* IsFunctionLike */ | 16 /* IsFunctionExpression */;
|
|
45138
45124
|
case 269 /* ModuleBlock */:
|
|
45139
45125
|
return 4 /* IsControlFlowContainer */;
|
|
45126
|
+
case 173 /* PropertyDeclaration */:
|
|
45127
|
+
return node.initializer ? 4 /* IsControlFlowContainer */ : 0;
|
|
45140
45128
|
case 300 /* CatchClause */:
|
|
45141
45129
|
case 249 /* ForStatement */:
|
|
45142
45130
|
case 250 /* ForInStatement */:
|
|
@@ -46877,27 +46865,11 @@ function createTypeChecker(host) {
|
|
|
46877
46865
|
function runWithoutResolvedSignatureCaching(node, fn) {
|
|
46878
46866
|
node = findAncestor(node, isCallLikeOrFunctionLikeExpression);
|
|
46879
46867
|
if (node) {
|
|
46880
|
-
|
|
46881
|
-
const cachedTypes2 = [];
|
|
46882
|
-
while (node) {
|
|
46883
|
-
const nodeLinks2 = getNodeLinks(node);
|
|
46884
|
-
cachedResolvedSignatures.push([nodeLinks2, nodeLinks2.resolvedSignature]);
|
|
46885
|
-
nodeLinks2.resolvedSignature = void 0;
|
|
46886
|
-
if (isFunctionExpressionOrArrowFunction(node)) {
|
|
46887
|
-
const symbolLinks2 = getSymbolLinks(getSymbolOfDeclaration(node));
|
|
46888
|
-
const type = symbolLinks2.type;
|
|
46889
|
-
cachedTypes2.push([symbolLinks2, type]);
|
|
46890
|
-
symbolLinks2.type = void 0;
|
|
46891
|
-
}
|
|
46892
|
-
node = findAncestor(node.parent, isCallLikeOrFunctionLikeExpression);
|
|
46893
|
-
}
|
|
46868
|
+
sourceFileWithoutResolvedSignatureCaching = getSourceFileOfNode(node);
|
|
46894
46869
|
const result = fn();
|
|
46895
|
-
|
|
46896
|
-
|
|
46897
|
-
|
|
46898
|
-
for (const [symbolLinks2, type] of cachedTypes2) {
|
|
46899
|
-
symbolLinks2.type = type;
|
|
46900
|
-
}
|
|
46870
|
+
sourceFileWithoutResolvedSignatureCaching = void 0;
|
|
46871
|
+
symbolLinksWithoutResolvedSignatureCaching = void 0;
|
|
46872
|
+
nodeLinksWithoutResolvedSignatureCaching = void 0;
|
|
46901
46873
|
return result;
|
|
46902
46874
|
}
|
|
46903
46875
|
return fn();
|
|
@@ -47370,7 +47342,10 @@ function createTypeChecker(host) {
|
|
|
47370
47342
|
var maximumSuggestionCount = 10;
|
|
47371
47343
|
var mergedSymbols = [];
|
|
47372
47344
|
var symbolLinks = [];
|
|
47345
|
+
var symbolLinksWithoutResolvedSignatureCaching;
|
|
47373
47346
|
var nodeLinks = [];
|
|
47347
|
+
var nodeLinksWithoutResolvedSignatureCaching;
|
|
47348
|
+
var sourceFileWithoutResolvedSignatureCaching;
|
|
47374
47349
|
var flowLoopCaches = [];
|
|
47375
47350
|
var flowLoopNodes = [];
|
|
47376
47351
|
var flowLoopKeys = [];
|
|
@@ -47839,11 +47814,19 @@ function createTypeChecker(host) {
|
|
|
47839
47814
|
function getSymbolLinks(symbol) {
|
|
47840
47815
|
if (symbol.flags & 33554432 /* Transient */) return symbol.links;
|
|
47841
47816
|
const id = getSymbolId(symbol);
|
|
47817
|
+
if (sourceFileWithoutResolvedSignatureCaching && symbol.valueDeclaration && (isFunctionExpressionOrArrowFunction(symbol.valueDeclaration) || tryGetRootParameterDeclaration(symbol.valueDeclaration)) && getSourceFileOfNode(symbol.valueDeclaration) === sourceFileWithoutResolvedSignatureCaching) {
|
|
47818
|
+
symbolLinksWithoutResolvedSignatureCaching ?? (symbolLinksWithoutResolvedSignatureCaching = []);
|
|
47819
|
+
return symbolLinksWithoutResolvedSignatureCaching[id] ?? (symbolLinksWithoutResolvedSignatureCaching[id] = new SymbolLinks());
|
|
47820
|
+
}
|
|
47842
47821
|
return symbolLinks[id] ?? (symbolLinks[id] = new SymbolLinks());
|
|
47843
47822
|
}
|
|
47844
47823
|
function getNodeLinks(node) {
|
|
47845
47824
|
const nodeId = getNodeId(node);
|
|
47846
|
-
|
|
47825
|
+
if (sourceFileWithoutResolvedSignatureCaching && (isCallLikeOrFunctionLikeExpression(node) || tryGetRootParameterDeclaration(node)) && getSourceFileOfNode(node) === sourceFileWithoutResolvedSignatureCaching) {
|
|
47826
|
+
nodeLinksWithoutResolvedSignatureCaching ?? (nodeLinksWithoutResolvedSignatureCaching = []);
|
|
47827
|
+
return nodeLinksWithoutResolvedSignatureCaching[nodeId] ?? (nodeLinksWithoutResolvedSignatureCaching[nodeId] = new NodeLinks());
|
|
47828
|
+
}
|
|
47829
|
+
return nodeLinks[nodeId] ?? (nodeLinks[nodeId] = new NodeLinks());
|
|
47847
47830
|
}
|
|
47848
47831
|
function getSymbol(symbols, name, meaning) {
|
|
47849
47832
|
if (meaning) {
|
|
@@ -63750,8 +63733,7 @@ function createTypeChecker(host) {
|
|
|
63750
63733
|
const { initializer } = node;
|
|
63751
63734
|
return !!initializer && isContextSensitive(initializer);
|
|
63752
63735
|
}
|
|
63753
|
-
case 295 /* JsxExpression */:
|
|
63754
|
-
case 230 /* YieldExpression */: {
|
|
63736
|
+
case 295 /* JsxExpression */: {
|
|
63755
63737
|
const { expression } = node;
|
|
63756
63738
|
return !!expression && isContextSensitive(expression);
|
|
63757
63739
|
}
|
|
@@ -63759,7 +63741,7 @@ function createTypeChecker(host) {
|
|
|
63759
63741
|
return false;
|
|
63760
63742
|
}
|
|
63761
63743
|
function isContextSensitiveFunctionLikeDeclaration(node) {
|
|
63762
|
-
return hasContextSensitiveParameters(node) || hasContextSensitiveReturnExpression(node)
|
|
63744
|
+
return hasContextSensitiveParameters(node) || hasContextSensitiveReturnExpression(node);
|
|
63763
63745
|
}
|
|
63764
63746
|
function hasContextSensitiveReturnExpression(node) {
|
|
63765
63747
|
if (node.typeParameters || getEffectiveReturnTypeNode(node) || !node.body) {
|
|
@@ -64250,9 +64232,9 @@ function createTypeChecker(host) {
|
|
|
64250
64232
|
const elem = getElaborationElementForJsxChild(child, childrenNameType, getInvalidTextualChildDiagnostic);
|
|
64251
64233
|
if (elem) {
|
|
64252
64234
|
result = elaborateElementwise(
|
|
64253
|
-
function* () {
|
|
64235
|
+
(function* () {
|
|
64254
64236
|
yield elem;
|
|
64255
|
-
}(),
|
|
64237
|
+
})(),
|
|
64256
64238
|
source,
|
|
64257
64239
|
target,
|
|
64258
64240
|
relation,
|
|
@@ -73259,7 +73241,7 @@ function createTypeChecker(host) {
|
|
|
73259
73241
|
concatenate(
|
|
73260
73242
|
map(
|
|
73261
73243
|
filter(node.properties, (p) => !!p.symbol && p.kind === 292 /* JsxAttribute */ && isDiscriminantProperty(contextualType, p.symbol.escapedName) && (!p.initializer || isPossiblyDiscriminantValue(p.initializer))),
|
|
73262
|
-
(prop) => [!prop.initializer ? () => trueType : () => getContextFreeTypeOfExpression(prop.initializer), prop.symbol.escapedName]
|
|
73244
|
+
(prop) => [!prop.initializer ? (() => trueType) : (() => getContextFreeTypeOfExpression(prop.initializer)), prop.symbol.escapedName]
|
|
73263
73245
|
),
|
|
73264
73246
|
map(
|
|
73265
73247
|
filter(getPropertiesOfType(contextualType), (s) => {
|
|
@@ -73301,10 +73283,7 @@ function createTypeChecker(host) {
|
|
|
73301
73283
|
if (contextualType && maybeTypeOfKind(contextualType, 465829888 /* Instantiable */)) {
|
|
73302
73284
|
const inferenceContext = getInferenceContext(node);
|
|
73303
73285
|
if (inferenceContext && contextFlags & 1 /* Signature */ && some(inferenceContext.inferences, hasInferenceCandidatesOrDefault)) {
|
|
73304
|
-
|
|
73305
|
-
if (!(type.flags & 3 /* AnyOrUnknown */)) {
|
|
73306
|
-
return type;
|
|
73307
|
-
}
|
|
73286
|
+
return instantiateInstantiableTypes(contextualType, inferenceContext.nonFixingMapper);
|
|
73308
73287
|
}
|
|
73309
73288
|
if (inferenceContext == null ? void 0 : inferenceContext.returnMapper) {
|
|
73310
73289
|
const type = instantiateInstantiableTypes(contextualType, inferenceContext.returnMapper);
|
|
@@ -75920,11 +75899,11 @@ function createTypeChecker(host) {
|
|
|
75920
75899
|
Debug.assert(typeParameters[i] !== void 0, "Should not call checkTypeArguments with too many type arguments");
|
|
75921
75900
|
const constraint = getConstraintOfTypeParameter(typeParameters[i]);
|
|
75922
75901
|
if (constraint) {
|
|
75923
|
-
const errorInfo = reportErrors2 && headMessage ? () => chainDiagnosticMessages(
|
|
75902
|
+
const errorInfo = reportErrors2 && headMessage ? (() => chainDiagnosticMessages(
|
|
75924
75903
|
/*details*/
|
|
75925
75904
|
void 0,
|
|
75926
75905
|
Diagnostics.Type_0_does_not_satisfy_the_constraint_1
|
|
75927
|
-
) : void 0;
|
|
75906
|
+
)) : void 0;
|
|
75928
75907
|
const typeArgumentHeadMessage = headMessage || Diagnostics.Type_0_does_not_satisfy_the_constraint_1;
|
|
75929
75908
|
if (!mapper) {
|
|
75930
75909
|
mapper = createTypeMapper(typeParameters, typeArgumentTypes);
|
|
@@ -78736,7 +78715,7 @@ function createTypeChecker(host) {
|
|
|
78736
78715
|
const nextTypes = [];
|
|
78737
78716
|
const isAsync = (getFunctionFlags(func) & 2 /* Async */) !== 0;
|
|
78738
78717
|
forEachYieldExpression(func.body, (yieldExpression) => {
|
|
78739
|
-
const yieldExpressionType = yieldExpression.expression ? checkExpression(yieldExpression.expression, checkMode
|
|
78718
|
+
const yieldExpressionType = yieldExpression.expression ? checkExpression(yieldExpression.expression, checkMode) : undefinedWideningType;
|
|
78740
78719
|
pushIfUnique(yieldTypes, getYieldedTypeOfYieldExpression(yieldExpression, yieldExpressionType, anyType, isAsync));
|
|
78741
78720
|
let nextType;
|
|
78742
78721
|
if (yieldExpression.asteriskToken) {
|
|
@@ -90353,7 +90332,7 @@ function createBasicNodeBuilderModuleSpecifierResolutionHost(host) {
|
|
|
90353
90332
|
isSourceOfProjectReferenceRedirect: (fileName) => host.isSourceOfProjectReferenceRedirect(fileName),
|
|
90354
90333
|
fileExists: (fileName) => host.fileExists(fileName),
|
|
90355
90334
|
getFileIncludeReasons: () => host.getFileIncludeReasons(),
|
|
90356
|
-
readFile: host.readFile ? (fileName) => host.readFile(fileName) : void 0,
|
|
90335
|
+
readFile: host.readFile ? ((fileName) => host.readFile(fileName)) : void 0,
|
|
90357
90336
|
getDefaultResolutionModeForFile: (file) => host.getDefaultResolutionModeForFile(file),
|
|
90358
90337
|
getModeForResolutionAtIndex: (file, index) => host.getModeForResolutionAtIndex(file, index),
|
|
90359
90338
|
getGlobalTypingsCacheLocation: maybeBind(host, host.getGlobalTypingsCacheLocation)
|
|
@@ -99059,7 +99038,7 @@ function transformESDecorators(context) {
|
|
|
99059
99038
|
} else {
|
|
99060
99039
|
Debug.assertIsDefined(node.name, "A class declaration that is not a default export must have a name.");
|
|
99061
99040
|
const iife = transformClassLike(node);
|
|
99062
|
-
const modifierVisitorNoExport = isExport ? (node2) => isExportModifier(node2) ? void 0 : modifierVisitor(node2) : modifierVisitor;
|
|
99041
|
+
const modifierVisitorNoExport = isExport ? ((node2) => isExportModifier(node2) ? void 0 : modifierVisitor(node2)) : modifierVisitor;
|
|
99063
99042
|
const modifiers = visitNodes2(node.modifiers, modifierVisitorNoExport, isModifier);
|
|
99064
99043
|
const declName = factory2.getLocalName(
|
|
99065
99044
|
node,
|
|
@@ -128882,7 +128861,7 @@ var WatchType = {
|
|
|
128882
128861
|
};
|
|
128883
128862
|
function createWatchFactory(host, options) {
|
|
128884
128863
|
const watchLogLevel = host.trace ? options.extendedDiagnostics ? 2 /* Verbose */ : options.diagnostics ? 1 /* TriggerOnly */ : 0 /* None */ : 0 /* None */;
|
|
128885
|
-
const writeLog = watchLogLevel !== 0 /* None */ ? (s) => host.trace(s) : noop;
|
|
128864
|
+
const writeLog = watchLogLevel !== 0 /* None */ ? ((s) => host.trace(s)) : noop;
|
|
128886
128865
|
const result = getWatchFactory(host, watchLogLevel, writeLog);
|
|
128887
128866
|
result.writeLog = writeLog;
|
|
128888
128867
|
return result;
|
|
@@ -129191,7 +129170,7 @@ function createWatchProgram(host) {
|
|
|
129191
129170
|
compilerHost.resolveTypeReferenceDirectiveReferences = resolutionCache.resolveTypeReferenceDirectiveReferences.bind(resolutionCache);
|
|
129192
129171
|
}
|
|
129193
129172
|
compilerHost.resolveLibrary = !host.resolveLibrary ? resolutionCache.resolveLibrary.bind(resolutionCache) : host.resolveLibrary.bind(host);
|
|
129194
|
-
compilerHost.getModuleResolutionCache = host.resolveModuleNameLiterals || host.resolveModuleNames ? maybeBind(host, host.getModuleResolutionCache) : () => resolutionCache.getModuleResolutionCache();
|
|
129173
|
+
compilerHost.getModuleResolutionCache = host.resolveModuleNameLiterals || host.resolveModuleNames ? maybeBind(host, host.getModuleResolutionCache) : (() => resolutionCache.getModuleResolutionCache());
|
|
129195
129174
|
const userProvidedResolution = !!host.resolveModuleNameLiterals || !!host.resolveTypeReferenceDirectiveReferences || !!host.resolveModuleNames || !!host.resolveTypeReferenceDirectives;
|
|
129196
129175
|
const customHasInvalidatedResolutions = userProvidedResolution ? maybeBind(host, host.hasInvalidatedResolutions) || returnTrue : returnFalse;
|
|
129197
129176
|
const customHasInvalidLibResolutions = host.resolveLibrary ? maybeBind(host, host.hasInvalidatedLibResolutions) || returnTrue : returnFalse;
|
package/lib/typescript.js
CHANGED
|
@@ -2285,7 +2285,7 @@ module.exports = __toCommonJS(typescript_exports);
|
|
|
2285
2285
|
|
|
2286
2286
|
// src/compiler/corePublic.ts
|
|
2287
2287
|
var versionMajorMinor = "6.0";
|
|
2288
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
2288
|
+
var version = `${versionMajorMinor}.0-insiders.20250816`;
|
|
2289
2289
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2290
2290
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2291
2291
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -7623,10 +7623,10 @@ function createSingleWatcherPerName(cache, useCaseSensitiveFileNames2, name, cal
|
|
|
7623
7623
|
cache.set(path, {
|
|
7624
7624
|
watcher: createWatcher(
|
|
7625
7625
|
// Cant infer types correctly so lets satisfy checker
|
|
7626
|
-
(param1, param2, param3) => {
|
|
7626
|
+
((param1, param2, param3) => {
|
|
7627
7627
|
var _a;
|
|
7628
7628
|
return (_a = cache.get(path)) == null ? void 0 : _a.callbacks.slice().forEach((cb) => cb(param1, param2, param3));
|
|
7629
|
-
}
|
|
7629
|
+
})
|
|
7630
7630
|
),
|
|
7631
7631
|
callbacks: [callback]
|
|
7632
7632
|
});
|
|
@@ -17952,15 +17952,12 @@ function forEachYieldExpression(body, visitor) {
|
|
|
17952
17952
|
function traverse(node) {
|
|
17953
17953
|
switch (node.kind) {
|
|
17954
17954
|
case 230 /* YieldExpression */:
|
|
17955
|
-
|
|
17956
|
-
if (value) {
|
|
17957
|
-
return value;
|
|
17958
|
-
}
|
|
17955
|
+
visitor(node);
|
|
17959
17956
|
const operand = node.expression;
|
|
17960
|
-
if (
|
|
17961
|
-
|
|
17957
|
+
if (operand) {
|
|
17958
|
+
traverse(operand);
|
|
17962
17959
|
}
|
|
17963
|
-
return
|
|
17960
|
+
return;
|
|
17964
17961
|
case 267 /* EnumDeclaration */:
|
|
17965
17962
|
case 265 /* InterfaceDeclaration */:
|
|
17966
17963
|
case 268 /* ModuleDeclaration */:
|
|
@@ -17969,10 +17966,11 @@ function forEachYieldExpression(body, visitor) {
|
|
|
17969
17966
|
default:
|
|
17970
17967
|
if (isFunctionLike(node)) {
|
|
17971
17968
|
if (node.name && node.name.kind === 168 /* ComputedPropertyName */) {
|
|
17972
|
-
|
|
17969
|
+
traverse(node.name.expression);
|
|
17970
|
+
return;
|
|
17973
17971
|
}
|
|
17974
17972
|
} else if (!isPartOfTypeNode(node)) {
|
|
17975
|
-
|
|
17973
|
+
forEachChild(node, traverse);
|
|
17976
17974
|
}
|
|
17977
17975
|
}
|
|
17978
17976
|
}
|
|
@@ -23123,7 +23121,7 @@ function hasContextSensitiveParameters(node) {
|
|
|
23123
23121
|
if (node.kind !== 220 /* ArrowFunction */) {
|
|
23124
23122
|
const parameter = firstOrUndefined(node.parameters);
|
|
23125
23123
|
if (!(parameter && parameterIsThisKeyword(parameter))) {
|
|
23126
|
-
return
|
|
23124
|
+
return true;
|
|
23127
23125
|
}
|
|
23128
23126
|
}
|
|
23129
23127
|
}
|
|
@@ -47157,7 +47155,6 @@ function createBinder() {
|
|
|
47157
47155
|
const saveExceptionTarget = currentExceptionTarget;
|
|
47158
47156
|
const saveActiveLabelList = activeLabelList;
|
|
47159
47157
|
const saveHasExplicitReturn = hasExplicitReturn;
|
|
47160
|
-
const saveSeenThisKeyword = seenThisKeyword;
|
|
47161
47158
|
const isImmediatelyInvoked = containerFlags & 16 /* IsFunctionExpression */ && !hasSyntacticModifier(node, 1024 /* Async */) && !node.asteriskToken && !!getImmediatelyInvokedFunctionExpression(node) || node.kind === 176 /* ClassStaticBlockDeclaration */;
|
|
47162
47159
|
if (!isImmediatelyInvoked) {
|
|
47163
47160
|
currentFlow = createFlowNode(
|
|
@@ -47177,17 +47174,13 @@ function createBinder() {
|
|
|
47177
47174
|
currentContinueTarget = void 0;
|
|
47178
47175
|
activeLabelList = void 0;
|
|
47179
47176
|
hasExplicitReturn = false;
|
|
47180
|
-
seenThisKeyword = false;
|
|
47181
47177
|
bindChildren(node);
|
|
47182
|
-
node.flags &= ~
|
|
47178
|
+
node.flags &= ~5632 /* ReachabilityAndEmitFlags */;
|
|
47183
47179
|
if (!(currentFlow.flags & 1 /* Unreachable */) && containerFlags & 8 /* IsFunctionLike */ && nodeIsPresent(node.body)) {
|
|
47184
47180
|
node.flags |= 512 /* HasImplicitReturn */;
|
|
47185
47181
|
if (hasExplicitReturn) node.flags |= 1024 /* HasExplicitReturn */;
|
|
47186
47182
|
node.endFlowNode = currentFlow;
|
|
47187
47183
|
}
|
|
47188
|
-
if (seenThisKeyword) {
|
|
47189
|
-
node.flags |= 256 /* ContainsThis */;
|
|
47190
|
-
}
|
|
47191
47184
|
if (node.kind === 308 /* SourceFile */) {
|
|
47192
47185
|
node.flags |= emitFlags;
|
|
47193
47186
|
node.endFlowNode = currentFlow;
|
|
@@ -47208,14 +47201,11 @@ function createBinder() {
|
|
|
47208
47201
|
currentExceptionTarget = saveExceptionTarget;
|
|
47209
47202
|
activeLabelList = saveActiveLabelList;
|
|
47210
47203
|
hasExplicitReturn = saveHasExplicitReturn;
|
|
47211
|
-
seenThisKeyword = node.kind === 220 /* ArrowFunction */ ? saveSeenThisKeyword || seenThisKeyword : saveSeenThisKeyword;
|
|
47212
47204
|
} else if (containerFlags & 64 /* IsInterface */) {
|
|
47213
|
-
const saveSeenThisKeyword = seenThisKeyword;
|
|
47214
47205
|
seenThisKeyword = false;
|
|
47215
47206
|
bindChildren(node);
|
|
47216
47207
|
Debug.assertNotNode(node, isIdentifier);
|
|
47217
47208
|
node.flags = seenThisKeyword ? node.flags | 256 /* ContainsThis */ : node.flags & ~256 /* ContainsThis */;
|
|
47218
|
-
seenThisKeyword = saveSeenThisKeyword;
|
|
47219
47209
|
} else {
|
|
47220
47210
|
bindChildren(node);
|
|
47221
47211
|
}
|
|
@@ -48703,9 +48693,6 @@ function createBinder() {
|
|
|
48703
48693
|
}
|
|
48704
48694
|
// falls through
|
|
48705
48695
|
case 110 /* ThisKeyword */:
|
|
48706
|
-
if (node.kind === 110 /* ThisKeyword */) {
|
|
48707
|
-
seenThisKeyword = true;
|
|
48708
|
-
}
|
|
48709
48696
|
if (currentFlow && (isExpression(node) || parent2.kind === 305 /* ShorthandPropertyAssignment */)) {
|
|
48710
48697
|
node.flowNode = currentFlow;
|
|
48711
48698
|
}
|
|
@@ -49628,8 +49615,6 @@ function getContainerFlags(node) {
|
|
|
49628
49615
|
// falls through
|
|
49629
49616
|
case 177 /* Constructor */:
|
|
49630
49617
|
case 263 /* FunctionDeclaration */:
|
|
49631
|
-
case 176 /* ClassStaticBlockDeclaration */:
|
|
49632
|
-
return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */ | 8 /* IsFunctionLike */;
|
|
49633
49618
|
case 174 /* MethodSignature */:
|
|
49634
49619
|
case 180 /* CallSignature */:
|
|
49635
49620
|
case 324 /* JSDocSignature */:
|
|
@@ -49637,14 +49622,17 @@ function getContainerFlags(node) {
|
|
|
49637
49622
|
case 185 /* FunctionType */:
|
|
49638
49623
|
case 181 /* ConstructSignature */:
|
|
49639
49624
|
case 186 /* ConstructorType */:
|
|
49640
|
-
|
|
49625
|
+
case 176 /* ClassStaticBlockDeclaration */:
|
|
49626
|
+
return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */ | 8 /* IsFunctionLike */;
|
|
49641
49627
|
case 352 /* JSDocImportTag */:
|
|
49642
|
-
return 1 /* IsContainer */ | 32 /* HasLocals */;
|
|
49628
|
+
return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */;
|
|
49643
49629
|
case 219 /* FunctionExpression */:
|
|
49644
49630
|
case 220 /* ArrowFunction */:
|
|
49645
49631
|
return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */ | 8 /* IsFunctionLike */ | 16 /* IsFunctionExpression */;
|
|
49646
49632
|
case 269 /* ModuleBlock */:
|
|
49647
49633
|
return 4 /* IsControlFlowContainer */;
|
|
49634
|
+
case 173 /* PropertyDeclaration */:
|
|
49635
|
+
return node.initializer ? 4 /* IsControlFlowContainer */ : 0;
|
|
49648
49636
|
case 300 /* CatchClause */:
|
|
49649
49637
|
case 249 /* ForStatement */:
|
|
49650
49638
|
case 250 /* ForInStatement */:
|
|
@@ -51485,27 +51473,11 @@ function createTypeChecker(host) {
|
|
|
51485
51473
|
function runWithoutResolvedSignatureCaching(node, fn) {
|
|
51486
51474
|
node = findAncestor(node, isCallLikeOrFunctionLikeExpression);
|
|
51487
51475
|
if (node) {
|
|
51488
|
-
|
|
51489
|
-
const cachedTypes2 = [];
|
|
51490
|
-
while (node) {
|
|
51491
|
-
const nodeLinks2 = getNodeLinks(node);
|
|
51492
|
-
cachedResolvedSignatures.push([nodeLinks2, nodeLinks2.resolvedSignature]);
|
|
51493
|
-
nodeLinks2.resolvedSignature = void 0;
|
|
51494
|
-
if (isFunctionExpressionOrArrowFunction(node)) {
|
|
51495
|
-
const symbolLinks2 = getSymbolLinks(getSymbolOfDeclaration(node));
|
|
51496
|
-
const type = symbolLinks2.type;
|
|
51497
|
-
cachedTypes2.push([symbolLinks2, type]);
|
|
51498
|
-
symbolLinks2.type = void 0;
|
|
51499
|
-
}
|
|
51500
|
-
node = findAncestor(node.parent, isCallLikeOrFunctionLikeExpression);
|
|
51501
|
-
}
|
|
51476
|
+
sourceFileWithoutResolvedSignatureCaching = getSourceFileOfNode(node);
|
|
51502
51477
|
const result = fn();
|
|
51503
|
-
|
|
51504
|
-
|
|
51505
|
-
|
|
51506
|
-
for (const [symbolLinks2, type] of cachedTypes2) {
|
|
51507
|
-
symbolLinks2.type = type;
|
|
51508
|
-
}
|
|
51478
|
+
sourceFileWithoutResolvedSignatureCaching = void 0;
|
|
51479
|
+
symbolLinksWithoutResolvedSignatureCaching = void 0;
|
|
51480
|
+
nodeLinksWithoutResolvedSignatureCaching = void 0;
|
|
51509
51481
|
return result;
|
|
51510
51482
|
}
|
|
51511
51483
|
return fn();
|
|
@@ -51978,7 +51950,10 @@ function createTypeChecker(host) {
|
|
|
51978
51950
|
var maximumSuggestionCount = 10;
|
|
51979
51951
|
var mergedSymbols = [];
|
|
51980
51952
|
var symbolLinks = [];
|
|
51953
|
+
var symbolLinksWithoutResolvedSignatureCaching;
|
|
51981
51954
|
var nodeLinks = [];
|
|
51955
|
+
var nodeLinksWithoutResolvedSignatureCaching;
|
|
51956
|
+
var sourceFileWithoutResolvedSignatureCaching;
|
|
51982
51957
|
var flowLoopCaches = [];
|
|
51983
51958
|
var flowLoopNodes = [];
|
|
51984
51959
|
var flowLoopKeys = [];
|
|
@@ -52447,11 +52422,19 @@ function createTypeChecker(host) {
|
|
|
52447
52422
|
function getSymbolLinks(symbol) {
|
|
52448
52423
|
if (symbol.flags & 33554432 /* Transient */) return symbol.links;
|
|
52449
52424
|
const id = getSymbolId(symbol);
|
|
52425
|
+
if (sourceFileWithoutResolvedSignatureCaching && symbol.valueDeclaration && (isFunctionExpressionOrArrowFunction(symbol.valueDeclaration) || tryGetRootParameterDeclaration(symbol.valueDeclaration)) && getSourceFileOfNode(symbol.valueDeclaration) === sourceFileWithoutResolvedSignatureCaching) {
|
|
52426
|
+
symbolLinksWithoutResolvedSignatureCaching ?? (symbolLinksWithoutResolvedSignatureCaching = []);
|
|
52427
|
+
return symbolLinksWithoutResolvedSignatureCaching[id] ?? (symbolLinksWithoutResolvedSignatureCaching[id] = new SymbolLinks());
|
|
52428
|
+
}
|
|
52450
52429
|
return symbolLinks[id] ?? (symbolLinks[id] = new SymbolLinks());
|
|
52451
52430
|
}
|
|
52452
52431
|
function getNodeLinks(node) {
|
|
52453
52432
|
const nodeId = getNodeId(node);
|
|
52454
|
-
|
|
52433
|
+
if (sourceFileWithoutResolvedSignatureCaching && (isCallLikeOrFunctionLikeExpression(node) || tryGetRootParameterDeclaration(node)) && getSourceFileOfNode(node) === sourceFileWithoutResolvedSignatureCaching) {
|
|
52434
|
+
nodeLinksWithoutResolvedSignatureCaching ?? (nodeLinksWithoutResolvedSignatureCaching = []);
|
|
52435
|
+
return nodeLinksWithoutResolvedSignatureCaching[nodeId] ?? (nodeLinksWithoutResolvedSignatureCaching[nodeId] = new NodeLinks());
|
|
52436
|
+
}
|
|
52437
|
+
return nodeLinks[nodeId] ?? (nodeLinks[nodeId] = new NodeLinks());
|
|
52455
52438
|
}
|
|
52456
52439
|
function getSymbol2(symbols, name, meaning) {
|
|
52457
52440
|
if (meaning) {
|
|
@@ -68358,8 +68341,7 @@ function createTypeChecker(host) {
|
|
|
68358
68341
|
const { initializer } = node;
|
|
68359
68342
|
return !!initializer && isContextSensitive(initializer);
|
|
68360
68343
|
}
|
|
68361
|
-
case 295 /* JsxExpression */:
|
|
68362
|
-
case 230 /* YieldExpression */: {
|
|
68344
|
+
case 295 /* JsxExpression */: {
|
|
68363
68345
|
const { expression } = node;
|
|
68364
68346
|
return !!expression && isContextSensitive(expression);
|
|
68365
68347
|
}
|
|
@@ -68367,7 +68349,7 @@ function createTypeChecker(host) {
|
|
|
68367
68349
|
return false;
|
|
68368
68350
|
}
|
|
68369
68351
|
function isContextSensitiveFunctionLikeDeclaration(node) {
|
|
68370
|
-
return hasContextSensitiveParameters(node) || hasContextSensitiveReturnExpression(node)
|
|
68352
|
+
return hasContextSensitiveParameters(node) || hasContextSensitiveReturnExpression(node);
|
|
68371
68353
|
}
|
|
68372
68354
|
function hasContextSensitiveReturnExpression(node) {
|
|
68373
68355
|
if (node.typeParameters || getEffectiveReturnTypeNode(node) || !node.body) {
|
|
@@ -68858,9 +68840,9 @@ function createTypeChecker(host) {
|
|
|
68858
68840
|
const elem = getElaborationElementForJsxChild(child, childrenNameType, getInvalidTextualChildDiagnostic);
|
|
68859
68841
|
if (elem) {
|
|
68860
68842
|
result = elaborateElementwise(
|
|
68861
|
-
function* () {
|
|
68843
|
+
(function* () {
|
|
68862
68844
|
yield elem;
|
|
68863
|
-
}(),
|
|
68845
|
+
})(),
|
|
68864
68846
|
source,
|
|
68865
68847
|
target,
|
|
68866
68848
|
relation,
|
|
@@ -77867,7 +77849,7 @@ function createTypeChecker(host) {
|
|
|
77867
77849
|
concatenate(
|
|
77868
77850
|
map(
|
|
77869
77851
|
filter(node.properties, (p) => !!p.symbol && p.kind === 292 /* JsxAttribute */ && isDiscriminantProperty(contextualType, p.symbol.escapedName) && (!p.initializer || isPossiblyDiscriminantValue(p.initializer))),
|
|
77870
|
-
(prop) => [!prop.initializer ? () => trueType : () => getContextFreeTypeOfExpression(prop.initializer), prop.symbol.escapedName]
|
|
77852
|
+
(prop) => [!prop.initializer ? (() => trueType) : (() => getContextFreeTypeOfExpression(prop.initializer)), prop.symbol.escapedName]
|
|
77871
77853
|
),
|
|
77872
77854
|
map(
|
|
77873
77855
|
filter(getPropertiesOfType(contextualType), (s) => {
|
|
@@ -77909,10 +77891,7 @@ function createTypeChecker(host) {
|
|
|
77909
77891
|
if (contextualType && maybeTypeOfKind(contextualType, 465829888 /* Instantiable */)) {
|
|
77910
77892
|
const inferenceContext = getInferenceContext(node);
|
|
77911
77893
|
if (inferenceContext && contextFlags & 1 /* Signature */ && some(inferenceContext.inferences, hasInferenceCandidatesOrDefault)) {
|
|
77912
|
-
|
|
77913
|
-
if (!(type.flags & 3 /* AnyOrUnknown */)) {
|
|
77914
|
-
return type;
|
|
77915
|
-
}
|
|
77894
|
+
return instantiateInstantiableTypes(contextualType, inferenceContext.nonFixingMapper);
|
|
77916
77895
|
}
|
|
77917
77896
|
if (inferenceContext == null ? void 0 : inferenceContext.returnMapper) {
|
|
77918
77897
|
const type = instantiateInstantiableTypes(contextualType, inferenceContext.returnMapper);
|
|
@@ -80528,11 +80507,11 @@ function createTypeChecker(host) {
|
|
|
80528
80507
|
Debug.assert(typeParameters[i] !== void 0, "Should not call checkTypeArguments with too many type arguments");
|
|
80529
80508
|
const constraint = getConstraintOfTypeParameter(typeParameters[i]);
|
|
80530
80509
|
if (constraint) {
|
|
80531
|
-
const errorInfo = reportErrors2 && headMessage ? () => chainDiagnosticMessages(
|
|
80510
|
+
const errorInfo = reportErrors2 && headMessage ? (() => chainDiagnosticMessages(
|
|
80532
80511
|
/*details*/
|
|
80533
80512
|
void 0,
|
|
80534
80513
|
Diagnostics.Type_0_does_not_satisfy_the_constraint_1
|
|
80535
|
-
) : void 0;
|
|
80514
|
+
)) : void 0;
|
|
80536
80515
|
const typeArgumentHeadMessage = headMessage || Diagnostics.Type_0_does_not_satisfy_the_constraint_1;
|
|
80537
80516
|
if (!mapper) {
|
|
80538
80517
|
mapper = createTypeMapper(typeParameters, typeArgumentTypes);
|
|
@@ -83344,7 +83323,7 @@ function createTypeChecker(host) {
|
|
|
83344
83323
|
const nextTypes = [];
|
|
83345
83324
|
const isAsync = (getFunctionFlags(func) & 2 /* Async */) !== 0;
|
|
83346
83325
|
forEachYieldExpression(func.body, (yieldExpression) => {
|
|
83347
|
-
const yieldExpressionType = yieldExpression.expression ? checkExpression(yieldExpression.expression, checkMode
|
|
83326
|
+
const yieldExpressionType = yieldExpression.expression ? checkExpression(yieldExpression.expression, checkMode) : undefinedWideningType;
|
|
83348
83327
|
pushIfUnique(yieldTypes, getYieldedTypeOfYieldExpression(yieldExpression, yieldExpressionType, anyType, isAsync));
|
|
83349
83328
|
let nextType;
|
|
83350
83329
|
if (yieldExpression.asteriskToken) {
|
|
@@ -94961,7 +94940,7 @@ function createBasicNodeBuilderModuleSpecifierResolutionHost(host) {
|
|
|
94961
94940
|
isSourceOfProjectReferenceRedirect: (fileName) => host.isSourceOfProjectReferenceRedirect(fileName),
|
|
94962
94941
|
fileExists: (fileName) => host.fileExists(fileName),
|
|
94963
94942
|
getFileIncludeReasons: () => host.getFileIncludeReasons(),
|
|
94964
|
-
readFile: host.readFile ? (fileName) => host.readFile(fileName) : void 0,
|
|
94943
|
+
readFile: host.readFile ? ((fileName) => host.readFile(fileName)) : void 0,
|
|
94965
94944
|
getDefaultResolutionModeForFile: (file) => host.getDefaultResolutionModeForFile(file),
|
|
94966
94945
|
getModeForResolutionAtIndex: (file, index) => host.getModeForResolutionAtIndex(file, index),
|
|
94967
94946
|
getGlobalTypingsCacheLocation: maybeBind(host, host.getGlobalTypingsCacheLocation)
|
|
@@ -103849,7 +103828,7 @@ function transformESDecorators(context) {
|
|
|
103849
103828
|
} else {
|
|
103850
103829
|
Debug.assertIsDefined(node.name, "A class declaration that is not a default export must have a name.");
|
|
103851
103830
|
const iife = transformClassLike(node);
|
|
103852
|
-
const modifierVisitorNoExport = isExport ? (node2) => isExportModifier(node2) ? void 0 : modifierVisitor(node2) : modifierVisitor;
|
|
103831
|
+
const modifierVisitorNoExport = isExport ? ((node2) => isExportModifier(node2) ? void 0 : modifierVisitor(node2)) : modifierVisitor;
|
|
103853
103832
|
const modifiers = visitNodes2(node.modifiers, modifierVisitorNoExport, isModifier);
|
|
103854
103833
|
const declName = factory2.getLocalName(
|
|
103855
103834
|
node,
|
|
@@ -133790,7 +133769,7 @@ var WatchType = {
|
|
|
133790
133769
|
};
|
|
133791
133770
|
function createWatchFactory(host, options) {
|
|
133792
133771
|
const watchLogLevel = host.trace ? options.extendedDiagnostics ? 2 /* Verbose */ : options.diagnostics ? 1 /* TriggerOnly */ : 0 /* None */ : 0 /* None */;
|
|
133793
|
-
const writeLog = watchLogLevel !== 0 /* None */ ? (s) => host.trace(s) : noop;
|
|
133772
|
+
const writeLog = watchLogLevel !== 0 /* None */ ? ((s) => host.trace(s)) : noop;
|
|
133794
133773
|
const result = getWatchFactory(host, watchLogLevel, writeLog);
|
|
133795
133774
|
result.writeLog = writeLog;
|
|
133796
133775
|
return result;
|
|
@@ -134124,7 +134103,7 @@ function createWatchProgram(host) {
|
|
|
134124
134103
|
compilerHost.resolveTypeReferenceDirectiveReferences = resolutionCache.resolveTypeReferenceDirectiveReferences.bind(resolutionCache);
|
|
134125
134104
|
}
|
|
134126
134105
|
compilerHost.resolveLibrary = !host.resolveLibrary ? resolutionCache.resolveLibrary.bind(resolutionCache) : host.resolveLibrary.bind(host);
|
|
134127
|
-
compilerHost.getModuleResolutionCache = host.resolveModuleNameLiterals || host.resolveModuleNames ? maybeBind(host, host.getModuleResolutionCache) : () => resolutionCache.getModuleResolutionCache();
|
|
134106
|
+
compilerHost.getModuleResolutionCache = host.resolveModuleNameLiterals || host.resolveModuleNames ? maybeBind(host, host.getModuleResolutionCache) : (() => resolutionCache.getModuleResolutionCache());
|
|
134128
134107
|
const userProvidedResolution = !!host.resolveModuleNameLiterals || !!host.resolveTypeReferenceDirectiveReferences || !!host.resolveModuleNames || !!host.resolveTypeReferenceDirectives;
|
|
134129
134108
|
const customHasInvalidatedResolutions = userProvidedResolution ? maybeBind(host, host.hasInvalidatedResolutions) || returnTrue : returnFalse;
|
|
134130
134109
|
const customHasInvalidLibResolutions = host.resolveLibrary ? maybeBind(host, host.hasInvalidatedLibResolutions) || returnTrue : returnFalse;
|
|
@@ -142423,7 +142402,7 @@ function forEachExternalModule(checker, allSourceFiles, excludePatterns, host, c
|
|
|
142423
142402
|
function getIsExcluded(excludePatterns, host) {
|
|
142424
142403
|
var _a;
|
|
142425
142404
|
const realpathsWithSymlinks = (_a = host.getSymlinkCache) == null ? void 0 : _a.call(host).getSymlinkedDirectoriesByRealpath();
|
|
142426
|
-
return ({ fileName, path }) => {
|
|
142405
|
+
return (({ fileName, path }) => {
|
|
142427
142406
|
if (excludePatterns.some((p) => p.test(fileName))) return true;
|
|
142428
142407
|
if ((realpathsWithSymlinks == null ? void 0 : realpathsWithSymlinks.size) && pathContainsNodeModules(fileName)) {
|
|
142429
142408
|
let dir = getDirectoryPath(fileName);
|
|
@@ -142440,7 +142419,7 @@ function getIsExcluded(excludePatterns, host) {
|
|
|
142440
142419
|
) ?? false;
|
|
142441
142420
|
}
|
|
142442
142421
|
return false;
|
|
142443
|
-
};
|
|
142422
|
+
});
|
|
142444
142423
|
}
|
|
142445
142424
|
function getIsFileExcluded(host, preferences) {
|
|
142446
142425
|
if (!preferences.autoImportFileExcludePatterns) return () => false;
|
|
@@ -185846,7 +185825,7 @@ var TypingsInstaller = class {
|
|
|
185846
185825
|
}
|
|
185847
185826
|
const discoverTypingsResult = ts_JsTyping_exports.discoverTypings(
|
|
185848
185827
|
this.installTypingHost,
|
|
185849
|
-
this.log.isEnabled() ? (s) => this.log.writeLine(s) : void 0,
|
|
185828
|
+
this.log.isEnabled() ? ((s) => this.log.writeLine(s)) : void 0,
|
|
185850
185829
|
req.fileNames,
|
|
185851
185830
|
req.projectRootPath,
|
|
185852
185831
|
this.safeList,
|
|
@@ -190058,7 +190037,7 @@ var _ProjectService = class _ProjectService {
|
|
|
190058
190037
|
this
|
|
190059
190038
|
);
|
|
190060
190039
|
const watchLogLevel = this.logger.hasLevel(3 /* verbose */) ? 2 /* Verbose */ : this.logger.loggingEnabled() ? 1 /* TriggerOnly */ : 0 /* None */;
|
|
190061
|
-
const log = watchLogLevel !== 0 /* None */ ? (s) => this.logger.info(s) : noop;
|
|
190040
|
+
const log = watchLogLevel !== 0 /* None */ ? ((s) => this.logger.info(s)) : noop;
|
|
190062
190041
|
this.packageJsonCache = createPackageJsonCache(this);
|
|
190063
190042
|
this.watchFactory = this.serverMode !== 0 /* Semantic */ ? {
|
|
190064
190043
|
watchFile: returnNoopFileWatcher,
|
|
@@ -190522,7 +190501,7 @@ var _ProjectService = class _ProjectService {
|
|
|
190522
190501
|
useCaseSensitiveFileNames: this.host.useCaseSensitiveFileNames,
|
|
190523
190502
|
writeLog: (s) => this.logger.info(s),
|
|
190524
190503
|
toPath: (s) => this.toPath(s),
|
|
190525
|
-
getScriptKind: configuredProjectForConfig ? (fileName) => configuredProjectForConfig.getScriptKind(fileName) : void 0
|
|
190504
|
+
getScriptKind: configuredProjectForConfig ? ((fileName) => configuredProjectForConfig.getScriptKind(fileName)) : void 0
|
|
190526
190505
|
})) return;
|
|
190527
190506
|
if (config.updateLevel !== 2 /* Full */) config.updateLevel = 1 /* RootNamesAndUpdate */;
|
|
190528
190507
|
config.projects.forEach((watchWildcardDirectories, projectCanonicalPath) => {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@typescript-deploys/pr-build",
|
|
3
3
|
"author": "Microsoft Corp.",
|
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
-
"version": "6.0.0-pr-
|
|
5
|
+
"version": "6.0.0-pr-62184-3",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -42,46 +42,45 @@
|
|
|
42
42
|
"@dprint/formatter": "^0.4.1",
|
|
43
43
|
"@dprint/typescript": "0.93.4",
|
|
44
44
|
"@esfx/canceltoken": "^1.0.0",
|
|
45
|
-
"@eslint/js": "^9.
|
|
45
|
+
"@eslint/js": "^9.33.0",
|
|
46
46
|
"@octokit/rest": "^21.1.1",
|
|
47
47
|
"@types/chai": "^4.3.20",
|
|
48
|
-
"@types/diff": "^7.0.1",
|
|
49
48
|
"@types/minimist": "^1.2.5",
|
|
50
49
|
"@types/mocha": "^10.0.10",
|
|
51
50
|
"@types/ms": "^0.7.34",
|
|
52
51
|
"@types/node": "latest",
|
|
53
52
|
"@types/source-map-support": "^0.5.10",
|
|
54
53
|
"@types/which": "^3.0.4",
|
|
55
|
-
"@typescript-eslint/rule-tester": "^8.
|
|
56
|
-
"@typescript-eslint/type-utils": "^8.
|
|
57
|
-
"@typescript-eslint/utils": "^8.
|
|
58
|
-
"azure-devops-node-api": "^
|
|
54
|
+
"@typescript-eslint/rule-tester": "^8.39.1",
|
|
55
|
+
"@typescript-eslint/type-utils": "^8.39.1",
|
|
56
|
+
"@typescript-eslint/utils": "^8.39.1",
|
|
57
|
+
"azure-devops-node-api": "^15.1.1",
|
|
59
58
|
"c8": "^10.1.3",
|
|
60
59
|
"chai": "^4.5.0",
|
|
61
60
|
"chokidar": "^4.0.3",
|
|
62
|
-
"diff": "^
|
|
63
|
-
"dprint": "^0.49.
|
|
64
|
-
"esbuild": "^0.25.
|
|
65
|
-
"eslint": "^9.
|
|
61
|
+
"diff": "^8.0.2",
|
|
62
|
+
"dprint": "^0.49.1",
|
|
63
|
+
"esbuild": "^0.25.9",
|
|
64
|
+
"eslint": "^9.33.0",
|
|
66
65
|
"eslint-formatter-autolinkable-stylish": "^1.4.0",
|
|
67
|
-
"eslint-plugin-regexp": "^2.
|
|
68
|
-
"fast-xml-parser": "^
|
|
66
|
+
"eslint-plugin-regexp": "^2.10.0",
|
|
67
|
+
"fast-xml-parser": "^5.2.5",
|
|
69
68
|
"glob": "^10.4.5",
|
|
70
|
-
"globals": "^
|
|
71
|
-
"hereby": "^1.
|
|
69
|
+
"globals": "^16.3.0",
|
|
70
|
+
"hereby": "^1.11.0",
|
|
72
71
|
"jsonc-parser": "^3.3.1",
|
|
73
|
-
"knip": "^5.
|
|
72
|
+
"knip": "^5.62.0",
|
|
74
73
|
"minimist": "^1.2.8",
|
|
75
74
|
"mocha": "^10.8.2",
|
|
76
75
|
"mocha-fivemat-progress-reporter": "^0.1.0",
|
|
77
|
-
"monocart-coverage-reports": "^2.12.
|
|
76
|
+
"monocart-coverage-reports": "^2.12.6",
|
|
78
77
|
"ms": "^2.1.3",
|
|
79
78
|
"picocolors": "^1.1.1",
|
|
80
|
-
"playwright": "^1.
|
|
79
|
+
"playwright": "^1.54.2",
|
|
81
80
|
"source-map-support": "^0.5.21",
|
|
82
81
|
"tslib": "^2.8.1",
|
|
83
|
-
"typescript": "^5.
|
|
84
|
-
"typescript-eslint": "^8.
|
|
82
|
+
"typescript": "^5.9.2",
|
|
83
|
+
"typescript-eslint": "^8.39.1",
|
|
85
84
|
"which": "^3.0.1"
|
|
86
85
|
},
|
|
87
86
|
"overrides": {
|