@typescript-deploys/pr-build 6.0.0-pr-62661-9 → 6.0.0-pr-62661-13
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 +39 -29
- package/lib/typescript.js +39 -29
- package/package.json +1 -1
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.20251024`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -18037,29 +18037,21 @@ var _computedOptions = createComputedCompilerOptions({
|
|
|
18037
18037
|
}
|
|
18038
18038
|
},
|
|
18039
18039
|
esModuleInterop: {
|
|
18040
|
-
dependencies: [
|
|
18040
|
+
dependencies: [],
|
|
18041
18041
|
computeValue: (compilerOptions) => {
|
|
18042
18042
|
if (compilerOptions.esModuleInterop !== void 0) {
|
|
18043
18043
|
return compilerOptions.esModuleInterop;
|
|
18044
18044
|
}
|
|
18045
|
-
|
|
18046
|
-
case 100 /* Node16 */:
|
|
18047
|
-
case 101 /* Node18 */:
|
|
18048
|
-
case 102 /* Node20 */:
|
|
18049
|
-
case 199 /* NodeNext */:
|
|
18050
|
-
case 200 /* Preserve */:
|
|
18051
|
-
return true;
|
|
18052
|
-
}
|
|
18053
|
-
return false;
|
|
18045
|
+
return true;
|
|
18054
18046
|
}
|
|
18055
18047
|
},
|
|
18056
18048
|
allowSyntheticDefaultImports: {
|
|
18057
|
-
dependencies: [
|
|
18049
|
+
dependencies: [],
|
|
18058
18050
|
computeValue: (compilerOptions) => {
|
|
18059
18051
|
if (compilerOptions.allowSyntheticDefaultImports !== void 0) {
|
|
18060
18052
|
return compilerOptions.allowSyntheticDefaultImports;
|
|
18061
18053
|
}
|
|
18062
|
-
return
|
|
18054
|
+
return true;
|
|
18063
18055
|
}
|
|
18064
18056
|
},
|
|
18065
18057
|
resolvePackageJsonExports: {
|
|
@@ -37357,7 +37349,7 @@ var commandOptionsWithoutBuild = [
|
|
|
37357
37349
|
affectsBuildInfo: true,
|
|
37358
37350
|
category: Diagnostics.Interop_Constraints,
|
|
37359
37351
|
description: Diagnostics.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,
|
|
37360
|
-
defaultValueDescription:
|
|
37352
|
+
defaultValueDescription: true
|
|
37361
37353
|
},
|
|
37362
37354
|
{
|
|
37363
37355
|
name: "esModuleInterop",
|
|
@@ -37368,7 +37360,7 @@ var commandOptionsWithoutBuild = [
|
|
|
37368
37360
|
showInSimplifiedHelpView: true,
|
|
37369
37361
|
category: Diagnostics.Interop_Constraints,
|
|
37370
37362
|
description: Diagnostics.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,
|
|
37371
|
-
defaultValueDescription:
|
|
37363
|
+
defaultValueDescription: true
|
|
37372
37364
|
},
|
|
37373
37365
|
{
|
|
37374
37366
|
name: "preserveSymlinks",
|
|
@@ -74401,7 +74393,7 @@ function createTypeChecker(host) {
|
|
|
74401
74393
|
}
|
|
74402
74394
|
function checkSpreadPropOverrides(type, props, spread) {
|
|
74403
74395
|
for (const right of getPropertiesOfType(type)) {
|
|
74404
|
-
if (!(right.flags & 16777216 /* Optional */)) {
|
|
74396
|
+
if (!(right.flags & 16777216 /* Optional */) && !(getCheckFlags(right) & 48 /* Partial */)) {
|
|
74405
74397
|
const left = props.get(right.escapedName);
|
|
74406
74398
|
if (left) {
|
|
74407
74399
|
const diagnostic = error(left.valueDeclaration, Diagnostics._0_is_specified_more_than_once_so_this_usage_will_be_overwritten, unescapeLeadingUnderscores(left.escapedName));
|
|
@@ -83964,18 +83956,19 @@ function createTypeChecker(host) {
|
|
|
83964
83956
|
}
|
|
83965
83957
|
function getIterationTypesOfIterable(type, use, errorNode) {
|
|
83966
83958
|
var _a, _b;
|
|
83967
|
-
|
|
83959
|
+
const reducedType = getReducedType(type);
|
|
83960
|
+
if (reducedType === silentNeverType) {
|
|
83968
83961
|
return silentNeverIterationTypes;
|
|
83969
83962
|
}
|
|
83970
|
-
if (isTypeAny(
|
|
83963
|
+
if (isTypeAny(reducedType)) {
|
|
83971
83964
|
return anyIterationTypes;
|
|
83972
83965
|
}
|
|
83973
|
-
if (!(
|
|
83966
|
+
if (!(reducedType.flags & 1048576 /* Union */)) {
|
|
83974
83967
|
const errorOutputContainer = errorNode ? { errors: void 0, skipLogging: true } : void 0;
|
|
83975
|
-
const iterationTypes2 = getIterationTypesOfIterableWorker(
|
|
83968
|
+
const iterationTypes2 = getIterationTypesOfIterableWorker(reducedType, use, errorNode, errorOutputContainer);
|
|
83976
83969
|
if (iterationTypes2 === noIterationTypes) {
|
|
83977
83970
|
if (errorNode) {
|
|
83978
|
-
const rootDiag = reportTypeNotIterableError(errorNode,
|
|
83971
|
+
const rootDiag = reportTypeNotIterableError(errorNode, reducedType, !!(use & 2 /* AllowsAsyncIterablesFlag */));
|
|
83979
83972
|
if (errorOutputContainer == null ? void 0 : errorOutputContainer.errors) {
|
|
83980
83973
|
addRelatedInfo(rootDiag, ...errorOutputContainer.errors);
|
|
83981
83974
|
}
|
|
@@ -83989,23 +83982,20 @@ function createTypeChecker(host) {
|
|
|
83989
83982
|
return iterationTypes2;
|
|
83990
83983
|
}
|
|
83991
83984
|
const cacheKey = use & 2 /* AllowsAsyncIterablesFlag */ ? "iterationTypesOfAsyncIterable" : "iterationTypesOfIterable";
|
|
83992
|
-
const cachedTypes2 = getCachedIterationTypes(
|
|
83985
|
+
const cachedTypes2 = getCachedIterationTypes(reducedType, cacheKey);
|
|
83993
83986
|
if (cachedTypes2) return cachedTypes2 === noIterationTypes ? void 0 : cachedTypes2;
|
|
83994
83987
|
let allIterationTypes;
|
|
83995
|
-
for (const constituent of
|
|
83996
|
-
if (!!(getReducedType(constituent).flags & 131072 /* Never */)) {
|
|
83997
|
-
continue;
|
|
83998
|
-
}
|
|
83988
|
+
for (const constituent of reducedType.types) {
|
|
83999
83989
|
const errorOutputContainer = errorNode ? { errors: void 0 } : void 0;
|
|
84000
83990
|
const iterationTypes2 = getIterationTypesOfIterableWorker(constituent, use, errorNode, errorOutputContainer);
|
|
84001
83991
|
if (iterationTypes2 === noIterationTypes) {
|
|
84002
83992
|
if (errorNode) {
|
|
84003
|
-
const rootDiag = reportTypeNotIterableError(errorNode,
|
|
83993
|
+
const rootDiag = reportTypeNotIterableError(errorNode, reducedType, !!(use & 2 /* AllowsAsyncIterablesFlag */));
|
|
84004
83994
|
if (errorOutputContainer == null ? void 0 : errorOutputContainer.errors) {
|
|
84005
83995
|
addRelatedInfo(rootDiag, ...errorOutputContainer.errors);
|
|
84006
83996
|
}
|
|
84007
83997
|
}
|
|
84008
|
-
setCachedIterationTypes(
|
|
83998
|
+
setCachedIterationTypes(reducedType, cacheKey, noIterationTypes);
|
|
84009
83999
|
return void 0;
|
|
84010
84000
|
} else if ((_b = errorOutputContainer == null ? void 0 : errorOutputContainer.errors) == null ? void 0 : _b.length) {
|
|
84011
84001
|
for (const diag2 of errorOutputContainer.errors) {
|
|
@@ -84015,7 +84005,7 @@ function createTypeChecker(host) {
|
|
|
84015
84005
|
allIterationTypes = append(allIterationTypes, iterationTypes2);
|
|
84016
84006
|
}
|
|
84017
84007
|
const iterationTypes = allIterationTypes ? combineIterationTypes(allIterationTypes) : noIterationTypes;
|
|
84018
|
-
setCachedIterationTypes(
|
|
84008
|
+
setCachedIterationTypes(reducedType, cacheKey, iterationTypes);
|
|
84019
84009
|
return iterationTypes === noIterationTypes ? void 0 : iterationTypes;
|
|
84020
84010
|
}
|
|
84021
84011
|
function getAsyncFromSyncIterationTypes(iterationTypes, errorNode) {
|
|
@@ -124727,6 +124717,26 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
124727
124717
|
Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashts6_for_migration_information
|
|
124728
124718
|
);
|
|
124729
124719
|
}
|
|
124720
|
+
if (options.esModuleInterop === false) {
|
|
124721
|
+
createDeprecatedDiagnostic(
|
|
124722
|
+
"esModuleInterop",
|
|
124723
|
+
"false",
|
|
124724
|
+
/*useInstead*/
|
|
124725
|
+
void 0,
|
|
124726
|
+
/*related*/
|
|
124727
|
+
void 0
|
|
124728
|
+
);
|
|
124729
|
+
}
|
|
124730
|
+
if (options.allowSyntheticDefaultImports === false) {
|
|
124731
|
+
createDeprecatedDiagnostic(
|
|
124732
|
+
"allowSyntheticDefaultImports",
|
|
124733
|
+
"false",
|
|
124734
|
+
/*useInstead*/
|
|
124735
|
+
void 0,
|
|
124736
|
+
/*related*/
|
|
124737
|
+
void 0
|
|
124738
|
+
);
|
|
124739
|
+
}
|
|
124730
124740
|
});
|
|
124731
124741
|
}
|
|
124732
124742
|
function verifyDeprecatedProjectReference(ref, parentFile, index) {
|
package/lib/typescript.js
CHANGED
|
@@ -2286,7 +2286,7 @@ module.exports = __toCommonJS(typescript_exports);
|
|
|
2286
2286
|
|
|
2287
2287
|
// src/compiler/corePublic.ts
|
|
2288
2288
|
var versionMajorMinor = "6.0";
|
|
2289
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
2289
|
+
var version = `${versionMajorMinor}.0-insiders.20251024`;
|
|
2290
2290
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2291
2291
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2292
2292
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -21990,29 +21990,21 @@ var _computedOptions = createComputedCompilerOptions({
|
|
|
21990
21990
|
}
|
|
21991
21991
|
},
|
|
21992
21992
|
esModuleInterop: {
|
|
21993
|
-
dependencies: [
|
|
21993
|
+
dependencies: [],
|
|
21994
21994
|
computeValue: (compilerOptions) => {
|
|
21995
21995
|
if (compilerOptions.esModuleInterop !== void 0) {
|
|
21996
21996
|
return compilerOptions.esModuleInterop;
|
|
21997
21997
|
}
|
|
21998
|
-
|
|
21999
|
-
case 100 /* Node16 */:
|
|
22000
|
-
case 101 /* Node18 */:
|
|
22001
|
-
case 102 /* Node20 */:
|
|
22002
|
-
case 199 /* NodeNext */:
|
|
22003
|
-
case 200 /* Preserve */:
|
|
22004
|
-
return true;
|
|
22005
|
-
}
|
|
22006
|
-
return false;
|
|
21998
|
+
return true;
|
|
22007
21999
|
}
|
|
22008
22000
|
},
|
|
22009
22001
|
allowSyntheticDefaultImports: {
|
|
22010
|
-
dependencies: [
|
|
22002
|
+
dependencies: [],
|
|
22011
22003
|
computeValue: (compilerOptions) => {
|
|
22012
22004
|
if (compilerOptions.allowSyntheticDefaultImports !== void 0) {
|
|
22013
22005
|
return compilerOptions.allowSyntheticDefaultImports;
|
|
22014
22006
|
}
|
|
22015
|
-
return
|
|
22007
|
+
return true;
|
|
22016
22008
|
}
|
|
22017
22009
|
},
|
|
22018
22010
|
resolvePackageJsonExports: {
|
|
@@ -41613,7 +41605,7 @@ var commandOptionsWithoutBuild = [
|
|
|
41613
41605
|
affectsBuildInfo: true,
|
|
41614
41606
|
category: Diagnostics.Interop_Constraints,
|
|
41615
41607
|
description: Diagnostics.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,
|
|
41616
|
-
defaultValueDescription:
|
|
41608
|
+
defaultValueDescription: true
|
|
41617
41609
|
},
|
|
41618
41610
|
{
|
|
41619
41611
|
name: "esModuleInterop",
|
|
@@ -41624,7 +41616,7 @@ var commandOptionsWithoutBuild = [
|
|
|
41624
41616
|
showInSimplifiedHelpView: true,
|
|
41625
41617
|
category: Diagnostics.Interop_Constraints,
|
|
41626
41618
|
description: Diagnostics.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,
|
|
41627
|
-
defaultValueDescription:
|
|
41619
|
+
defaultValueDescription: true
|
|
41628
41620
|
},
|
|
41629
41621
|
{
|
|
41630
41622
|
name: "preserveSymlinks",
|
|
@@ -79007,7 +78999,7 @@ function createTypeChecker(host) {
|
|
|
79007
78999
|
}
|
|
79008
79000
|
function checkSpreadPropOverrides(type, props, spread) {
|
|
79009
79001
|
for (const right of getPropertiesOfType(type)) {
|
|
79010
|
-
if (!(right.flags & 16777216 /* Optional */)) {
|
|
79002
|
+
if (!(right.flags & 16777216 /* Optional */) && !(getCheckFlags(right) & 48 /* Partial */)) {
|
|
79011
79003
|
const left = props.get(right.escapedName);
|
|
79012
79004
|
if (left) {
|
|
79013
79005
|
const diagnostic = error2(left.valueDeclaration, Diagnostics._0_is_specified_more_than_once_so_this_usage_will_be_overwritten, unescapeLeadingUnderscores(left.escapedName));
|
|
@@ -88570,18 +88562,19 @@ function createTypeChecker(host) {
|
|
|
88570
88562
|
}
|
|
88571
88563
|
function getIterationTypesOfIterable(type, use, errorNode) {
|
|
88572
88564
|
var _a, _b;
|
|
88573
|
-
|
|
88565
|
+
const reducedType = getReducedType(type);
|
|
88566
|
+
if (reducedType === silentNeverType) {
|
|
88574
88567
|
return silentNeverIterationTypes;
|
|
88575
88568
|
}
|
|
88576
|
-
if (isTypeAny(
|
|
88569
|
+
if (isTypeAny(reducedType)) {
|
|
88577
88570
|
return anyIterationTypes;
|
|
88578
88571
|
}
|
|
88579
|
-
if (!(
|
|
88572
|
+
if (!(reducedType.flags & 1048576 /* Union */)) {
|
|
88580
88573
|
const errorOutputContainer = errorNode ? { errors: void 0, skipLogging: true } : void 0;
|
|
88581
|
-
const iterationTypes2 = getIterationTypesOfIterableWorker(
|
|
88574
|
+
const iterationTypes2 = getIterationTypesOfIterableWorker(reducedType, use, errorNode, errorOutputContainer);
|
|
88582
88575
|
if (iterationTypes2 === noIterationTypes) {
|
|
88583
88576
|
if (errorNode) {
|
|
88584
|
-
const rootDiag = reportTypeNotIterableError(errorNode,
|
|
88577
|
+
const rootDiag = reportTypeNotIterableError(errorNode, reducedType, !!(use & 2 /* AllowsAsyncIterablesFlag */));
|
|
88585
88578
|
if (errorOutputContainer == null ? void 0 : errorOutputContainer.errors) {
|
|
88586
88579
|
addRelatedInfo(rootDiag, ...errorOutputContainer.errors);
|
|
88587
88580
|
}
|
|
@@ -88595,23 +88588,20 @@ function createTypeChecker(host) {
|
|
|
88595
88588
|
return iterationTypes2;
|
|
88596
88589
|
}
|
|
88597
88590
|
const cacheKey = use & 2 /* AllowsAsyncIterablesFlag */ ? "iterationTypesOfAsyncIterable" : "iterationTypesOfIterable";
|
|
88598
|
-
const cachedTypes2 = getCachedIterationTypes(
|
|
88591
|
+
const cachedTypes2 = getCachedIterationTypes(reducedType, cacheKey);
|
|
88599
88592
|
if (cachedTypes2) return cachedTypes2 === noIterationTypes ? void 0 : cachedTypes2;
|
|
88600
88593
|
let allIterationTypes;
|
|
88601
|
-
for (const constituent of
|
|
88602
|
-
if (!!(getReducedType(constituent).flags & 131072 /* Never */)) {
|
|
88603
|
-
continue;
|
|
88604
|
-
}
|
|
88594
|
+
for (const constituent of reducedType.types) {
|
|
88605
88595
|
const errorOutputContainer = errorNode ? { errors: void 0 } : void 0;
|
|
88606
88596
|
const iterationTypes2 = getIterationTypesOfIterableWorker(constituent, use, errorNode, errorOutputContainer);
|
|
88607
88597
|
if (iterationTypes2 === noIterationTypes) {
|
|
88608
88598
|
if (errorNode) {
|
|
88609
|
-
const rootDiag = reportTypeNotIterableError(errorNode,
|
|
88599
|
+
const rootDiag = reportTypeNotIterableError(errorNode, reducedType, !!(use & 2 /* AllowsAsyncIterablesFlag */));
|
|
88610
88600
|
if (errorOutputContainer == null ? void 0 : errorOutputContainer.errors) {
|
|
88611
88601
|
addRelatedInfo(rootDiag, ...errorOutputContainer.errors);
|
|
88612
88602
|
}
|
|
88613
88603
|
}
|
|
88614
|
-
setCachedIterationTypes(
|
|
88604
|
+
setCachedIterationTypes(reducedType, cacheKey, noIterationTypes);
|
|
88615
88605
|
return void 0;
|
|
88616
88606
|
} else if ((_b = errorOutputContainer == null ? void 0 : errorOutputContainer.errors) == null ? void 0 : _b.length) {
|
|
88617
88607
|
for (const diag2 of errorOutputContainer.errors) {
|
|
@@ -88621,7 +88611,7 @@ function createTypeChecker(host) {
|
|
|
88621
88611
|
allIterationTypes = append(allIterationTypes, iterationTypes2);
|
|
88622
88612
|
}
|
|
88623
88613
|
const iterationTypes = allIterationTypes ? combineIterationTypes(allIterationTypes) : noIterationTypes;
|
|
88624
|
-
setCachedIterationTypes(
|
|
88614
|
+
setCachedIterationTypes(reducedType, cacheKey, iterationTypes);
|
|
88625
88615
|
return iterationTypes === noIterationTypes ? void 0 : iterationTypes;
|
|
88626
88616
|
}
|
|
88627
88617
|
function getAsyncFromSyncIterationTypes(iterationTypes, errorNode) {
|
|
@@ -129572,6 +129562,26 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
129572
129562
|
Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashts6_for_migration_information
|
|
129573
129563
|
);
|
|
129574
129564
|
}
|
|
129565
|
+
if (options.esModuleInterop === false) {
|
|
129566
|
+
createDeprecatedDiagnostic(
|
|
129567
|
+
"esModuleInterop",
|
|
129568
|
+
"false",
|
|
129569
|
+
/*useInstead*/
|
|
129570
|
+
void 0,
|
|
129571
|
+
/*related*/
|
|
129572
|
+
void 0
|
|
129573
|
+
);
|
|
129574
|
+
}
|
|
129575
|
+
if (options.allowSyntheticDefaultImports === false) {
|
|
129576
|
+
createDeprecatedDiagnostic(
|
|
129577
|
+
"allowSyntheticDefaultImports",
|
|
129578
|
+
"false",
|
|
129579
|
+
/*useInstead*/
|
|
129580
|
+
void 0,
|
|
129581
|
+
/*related*/
|
|
129582
|
+
void 0
|
|
129583
|
+
);
|
|
129584
|
+
}
|
|
129575
129585
|
});
|
|
129576
129586
|
}
|
|
129577
129587
|
function verifyDeprecatedProjectReference(ref, parentFile, index) {
|
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-62661-
|
|
5
|
+
"version": "6.0.0-pr-62661-13",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|