@typescript-deploys/pr-build 6.0.0-pr-62661-9 → 6.0.0-pr-62669-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 +70 -45
- package/lib/typescript.d.ts +5 -0
- package/lib/typescript.js +76 -51
- 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 = [];
|
|
@@ -7537,13 +7537,12 @@ var Diagnostics = {
|
|
|
7537
7537
|
one_or_more_Colon: diag(6901, 3 /* Message */, "one_or_more_Colon_6901", "one or more:"),
|
|
7538
7538
|
type_Colon: diag(6902, 3 /* Message */, "type_Colon_6902", "type:"),
|
|
7539
7539
|
default_Colon: diag(6903, 3 /* Message */, "default_Colon_6903", "default:"),
|
|
7540
|
-
module_system_or_esModuleInterop: diag(6904, 3 /* Message */, "module_system_or_esModuleInterop_6904", 'module === "system" or esModuleInterop'),
|
|
7541
7540
|
false_unless_strict_is_set: diag(6905, 3 /* Message */, "false_unless_strict_is_set_6905", "`false`, unless `strict` is set"),
|
|
7542
7541
|
false_unless_composite_is_set: diag(6906, 3 /* Message */, "false_unless_composite_is_set_6906", "`false`, unless `composite` is set"),
|
|
7543
7542
|
node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified: diag(6907, 3 /* Message */, "node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907", '`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),
|
|
7544
7543
|
if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk: diag(6908, 3 /* Message */, "if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908", '`[]` if `files` is specified, otherwise `["**/*"]`'),
|
|
7545
7544
|
true_if_composite_false_otherwise: diag(6909, 3 /* Message */, "true_if_composite_false_otherwise_6909", "`true` if `composite`, `false` otherwise"),
|
|
7546
|
-
|
|
7545
|
+
nodenext_if_module_is_nodenext_node16_if_module_is_node16_or_node18_otherwise_bundler: diag(69010, 3 /* Message */, "nodenext_if_module_is_nodenext_node16_if_module_is_node16_or_node18_otherwise_bundler_69010", "`nodenext` if `module` is `nodenext`; `node16` if `module` is `node16` or `node18`; otherwise, `bundler`."),
|
|
7547
7546
|
Computed_from_the_list_of_input_files: diag(6911, 3 /* Message */, "Computed_from_the_list_of_input_files_6911", "Computed from the list of input files"),
|
|
7548
7547
|
Platform_specific: diag(6912, 3 /* Message */, "Platform_specific_6912", "Platform specific"),
|
|
7549
7548
|
You_can_learn_about_all_of_the_compiler_options_at_0: diag(6913, 3 /* Message */, "You_can_learn_about_all_of_the_compiler_options_at_0_6913", "You can learn about all of the compiler options at {0}"),
|
|
@@ -17997,27 +17996,23 @@ var _computedOptions = createComputedCompilerOptions({
|
|
|
17997
17996
|
moduleResolution: {
|
|
17998
17997
|
dependencies: ["module", "target"],
|
|
17999
17998
|
computeValue: (compilerOptions) => {
|
|
18000
|
-
|
|
18001
|
-
|
|
18002
|
-
switch (_computedOptions.module.computeValue(compilerOptions)) {
|
|
18003
|
-
case 100 /* Node16 */:
|
|
18004
|
-
case 101 /* Node18 */:
|
|
18005
|
-
case 102 /* Node20 */:
|
|
18006
|
-
moduleResolution = 3 /* Node16 */;
|
|
18007
|
-
break;
|
|
18008
|
-
case 199 /* NodeNext */:
|
|
18009
|
-
moduleResolution = 99 /* NodeNext */;
|
|
18010
|
-
break;
|
|
18011
|
-
case 1 /* CommonJS */:
|
|
18012
|
-
case 200 /* Preserve */:
|
|
18013
|
-
moduleResolution = 100 /* Bundler */;
|
|
18014
|
-
break;
|
|
18015
|
-
default:
|
|
18016
|
-
moduleResolution = 1 /* Classic */;
|
|
18017
|
-
break;
|
|
18018
|
-
}
|
|
17999
|
+
if (compilerOptions.moduleResolution !== void 0) {
|
|
18000
|
+
return compilerOptions.moduleResolution;
|
|
18019
18001
|
}
|
|
18020
|
-
|
|
18002
|
+
const moduleKind = _computedOptions.module.computeValue(compilerOptions);
|
|
18003
|
+
switch (moduleKind) {
|
|
18004
|
+
case 0 /* None */:
|
|
18005
|
+
case 2 /* AMD */:
|
|
18006
|
+
case 3 /* UMD */:
|
|
18007
|
+
case 4 /* System */:
|
|
18008
|
+
return 1 /* Classic */;
|
|
18009
|
+
case 199 /* NodeNext */:
|
|
18010
|
+
return 99 /* NodeNext */;
|
|
18011
|
+
}
|
|
18012
|
+
if (100 /* Node16 */ <= moduleKind && moduleKind < 199 /* NodeNext */) {
|
|
18013
|
+
return 3 /* Node16 */;
|
|
18014
|
+
}
|
|
18015
|
+
return 100 /* Bundler */;
|
|
18021
18016
|
}
|
|
18022
18017
|
},
|
|
18023
18018
|
moduleDetection: {
|
|
@@ -18037,33 +18032,25 @@ var _computedOptions = createComputedCompilerOptions({
|
|
|
18037
18032
|
}
|
|
18038
18033
|
},
|
|
18039
18034
|
esModuleInterop: {
|
|
18040
|
-
dependencies: [
|
|
18035
|
+
dependencies: [],
|
|
18041
18036
|
computeValue: (compilerOptions) => {
|
|
18042
18037
|
if (compilerOptions.esModuleInterop !== void 0) {
|
|
18043
18038
|
return compilerOptions.esModuleInterop;
|
|
18044
18039
|
}
|
|
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;
|
|
18040
|
+
return true;
|
|
18054
18041
|
}
|
|
18055
18042
|
},
|
|
18056
18043
|
allowSyntheticDefaultImports: {
|
|
18057
|
-
dependencies: [
|
|
18044
|
+
dependencies: [],
|
|
18058
18045
|
computeValue: (compilerOptions) => {
|
|
18059
18046
|
if (compilerOptions.allowSyntheticDefaultImports !== void 0) {
|
|
18060
18047
|
return compilerOptions.allowSyntheticDefaultImports;
|
|
18061
18048
|
}
|
|
18062
|
-
return
|
|
18049
|
+
return true;
|
|
18063
18050
|
}
|
|
18064
18051
|
},
|
|
18065
18052
|
resolvePackageJsonExports: {
|
|
18066
|
-
dependencies: ["moduleResolution"],
|
|
18053
|
+
dependencies: ["moduleResolution", "module", "target"],
|
|
18067
18054
|
computeValue: (compilerOptions) => {
|
|
18068
18055
|
const moduleResolution = _computedOptions.moduleResolution.computeValue(compilerOptions);
|
|
18069
18056
|
if (!moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) {
|
|
@@ -18082,7 +18069,7 @@ var _computedOptions = createComputedCompilerOptions({
|
|
|
18082
18069
|
}
|
|
18083
18070
|
},
|
|
18084
18071
|
resolvePackageJsonImports: {
|
|
18085
|
-
dependencies: ["moduleResolution", "resolvePackageJsonExports"],
|
|
18072
|
+
dependencies: ["moduleResolution", "resolvePackageJsonExports", "module", "target"],
|
|
18086
18073
|
computeValue: (compilerOptions) => {
|
|
18087
18074
|
const moduleResolution = _computedOptions.moduleResolution.computeValue(compilerOptions);
|
|
18088
18075
|
if (!moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) {
|
|
@@ -36820,6 +36807,7 @@ var moduleOptionDeclaration = {
|
|
|
36820
36807
|
nodenext: 199 /* NodeNext */,
|
|
36821
36808
|
preserve: 200 /* Preserve */
|
|
36822
36809
|
})),
|
|
36810
|
+
deprecatedKeys: /* @__PURE__ */ new Set(["none", "amd", "system", "umd"]),
|
|
36823
36811
|
affectsSourceFile: true,
|
|
36824
36812
|
affectsModuleResolution: true,
|
|
36825
36813
|
affectsEmit: true,
|
|
@@ -37278,13 +37266,13 @@ var commandOptionsWithoutBuild = [
|
|
|
37278
37266
|
nodenext: 99 /* NodeNext */,
|
|
37279
37267
|
bundler: 100 /* Bundler */
|
|
37280
37268
|
})),
|
|
37281
|
-
deprecatedKeys: /* @__PURE__ */ new Set(["node"]),
|
|
37269
|
+
deprecatedKeys: /* @__PURE__ */ new Set(["node", "node10", "classic"]),
|
|
37282
37270
|
affectsSourceFile: true,
|
|
37283
37271
|
affectsModuleResolution: true,
|
|
37284
37272
|
paramType: Diagnostics.STRATEGY,
|
|
37285
37273
|
category: Diagnostics.Modules,
|
|
37286
37274
|
description: Diagnostics.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,
|
|
37287
|
-
defaultValueDescription: Diagnostics.
|
|
37275
|
+
defaultValueDescription: Diagnostics.nodenext_if_module_is_nodenext_node16_if_module_is_node16_or_node18_otherwise_bundler
|
|
37288
37276
|
},
|
|
37289
37277
|
{
|
|
37290
37278
|
name: "baseUrl",
|
|
@@ -37357,7 +37345,7 @@ var commandOptionsWithoutBuild = [
|
|
|
37357
37345
|
affectsBuildInfo: true,
|
|
37358
37346
|
category: Diagnostics.Interop_Constraints,
|
|
37359
37347
|
description: Diagnostics.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,
|
|
37360
|
-
defaultValueDescription:
|
|
37348
|
+
defaultValueDescription: true
|
|
37361
37349
|
},
|
|
37362
37350
|
{
|
|
37363
37351
|
name: "esModuleInterop",
|
|
@@ -37368,7 +37356,7 @@ var commandOptionsWithoutBuild = [
|
|
|
37368
37356
|
showInSimplifiedHelpView: true,
|
|
37369
37357
|
category: Diagnostics.Interop_Constraints,
|
|
37370
37358
|
description: Diagnostics.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,
|
|
37371
|
-
defaultValueDescription:
|
|
37359
|
+
defaultValueDescription: true
|
|
37372
37360
|
},
|
|
37373
37361
|
{
|
|
37374
37362
|
name: "preserveSymlinks",
|
|
@@ -74401,7 +74389,7 @@ function createTypeChecker(host) {
|
|
|
74401
74389
|
}
|
|
74402
74390
|
function checkSpreadPropOverrides(type, props, spread) {
|
|
74403
74391
|
for (const right of getPropertiesOfType(type)) {
|
|
74404
|
-
if (!(right.flags & 16777216 /* Optional */)) {
|
|
74392
|
+
if (!(right.flags & 16777216 /* Optional */) && !(getCheckFlags(right) & 48 /* Partial */)) {
|
|
74405
74393
|
const left = props.get(right.escapedName);
|
|
74406
74394
|
if (left) {
|
|
74407
74395
|
const diagnostic = error(left.valueDeclaration, Diagnostics._0_is_specified_more_than_once_so_this_usage_will_be_overwritten, unescapeLeadingUnderscores(left.escapedName));
|
|
@@ -83993,9 +83981,6 @@ function createTypeChecker(host) {
|
|
|
83993
83981
|
if (cachedTypes2) return cachedTypes2 === noIterationTypes ? void 0 : cachedTypes2;
|
|
83994
83982
|
let allIterationTypes;
|
|
83995
83983
|
for (const constituent of type.types) {
|
|
83996
|
-
if (!!(getReducedType(constituent).flags & 131072 /* Never */)) {
|
|
83997
|
-
continue;
|
|
83998
|
-
}
|
|
83999
83984
|
const errorOutputContainer = errorNode ? { errors: void 0 } : void 0;
|
|
84000
83985
|
const iterationTypes2 = getIterationTypesOfIterableWorker(constituent, use, errorNode, errorOutputContainer);
|
|
84001
83986
|
if (iterationTypes2 === noIterationTypes) {
|
|
@@ -124717,6 +124702,16 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
124717
124702
|
Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashts6_for_migration_information
|
|
124718
124703
|
);
|
|
124719
124704
|
}
|
|
124705
|
+
if (options.moduleResolution === 1 /* Classic */) {
|
|
124706
|
+
createDeprecatedDiagnostic(
|
|
124707
|
+
"moduleResolution",
|
|
124708
|
+
"classic",
|
|
124709
|
+
/*useInstead*/
|
|
124710
|
+
void 0,
|
|
124711
|
+
/*related*/
|
|
124712
|
+
void 0
|
|
124713
|
+
);
|
|
124714
|
+
}
|
|
124720
124715
|
if (options.baseUrl !== void 0) {
|
|
124721
124716
|
createDeprecatedDiagnostic(
|
|
124722
124717
|
"baseUrl",
|
|
@@ -124727,6 +124722,36 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
124727
124722
|
Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashts6_for_migration_information
|
|
124728
124723
|
);
|
|
124729
124724
|
}
|
|
124725
|
+
if (options.esModuleInterop === false) {
|
|
124726
|
+
createDeprecatedDiagnostic(
|
|
124727
|
+
"esModuleInterop",
|
|
124728
|
+
"false",
|
|
124729
|
+
/*useInstead*/
|
|
124730
|
+
void 0,
|
|
124731
|
+
/*related*/
|
|
124732
|
+
void 0
|
|
124733
|
+
);
|
|
124734
|
+
}
|
|
124735
|
+
if (options.allowSyntheticDefaultImports === false) {
|
|
124736
|
+
createDeprecatedDiagnostic(
|
|
124737
|
+
"allowSyntheticDefaultImports",
|
|
124738
|
+
"false",
|
|
124739
|
+
/*useInstead*/
|
|
124740
|
+
void 0,
|
|
124741
|
+
/*related*/
|
|
124742
|
+
void 0
|
|
124743
|
+
);
|
|
124744
|
+
}
|
|
124745
|
+
if (options.module === 0 /* None */ || options.module === 2 /* AMD */ || options.module === 3 /* UMD */ || options.module === 4 /* System */) {
|
|
124746
|
+
createDeprecatedDiagnostic(
|
|
124747
|
+
"module",
|
|
124748
|
+
ModuleKind[options.module],
|
|
124749
|
+
/*useInstead*/
|
|
124750
|
+
void 0,
|
|
124751
|
+
/*related*/
|
|
124752
|
+
void 0
|
|
124753
|
+
);
|
|
124754
|
+
}
|
|
124730
124755
|
});
|
|
124731
124756
|
}
|
|
124732
124757
|
function verifyDeprecatedProjectReference(ref, parentFile, index) {
|
package/lib/typescript.d.ts
CHANGED
|
@@ -6944,6 +6944,7 @@ declare namespace ts {
|
|
|
6944
6944
|
Message = 3,
|
|
6945
6945
|
}
|
|
6946
6946
|
enum ModuleResolutionKind {
|
|
6947
|
+
/** @deprecated */
|
|
6947
6948
|
Classic = 1,
|
|
6948
6949
|
/**
|
|
6949
6950
|
* @deprecated
|
|
@@ -7147,10 +7148,14 @@ declare namespace ts {
|
|
|
7147
7148
|
[option: string]: CompilerOptionsValue | undefined;
|
|
7148
7149
|
}
|
|
7149
7150
|
enum ModuleKind {
|
|
7151
|
+
/** @deprecated */
|
|
7150
7152
|
None = 0,
|
|
7151
7153
|
CommonJS = 1,
|
|
7154
|
+
/** @deprecated */
|
|
7152
7155
|
AMD = 2,
|
|
7156
|
+
/** @deprecated */
|
|
7153
7157
|
UMD = 3,
|
|
7158
|
+
/** @deprecated */
|
|
7154
7159
|
System = 4,
|
|
7155
7160
|
ES2015 = 5,
|
|
7156
7161
|
ES2020 = 6,
|
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";
|
|
@@ -10924,13 +10924,12 @@ var Diagnostics = {
|
|
|
10924
10924
|
one_or_more_Colon: diag(6901, 3 /* Message */, "one_or_more_Colon_6901", "one or more:"),
|
|
10925
10925
|
type_Colon: diag(6902, 3 /* Message */, "type_Colon_6902", "type:"),
|
|
10926
10926
|
default_Colon: diag(6903, 3 /* Message */, "default_Colon_6903", "default:"),
|
|
10927
|
-
module_system_or_esModuleInterop: diag(6904, 3 /* Message */, "module_system_or_esModuleInterop_6904", 'module === "system" or esModuleInterop'),
|
|
10928
10927
|
false_unless_strict_is_set: diag(6905, 3 /* Message */, "false_unless_strict_is_set_6905", "`false`, unless `strict` is set"),
|
|
10929
10928
|
false_unless_composite_is_set: diag(6906, 3 /* Message */, "false_unless_composite_is_set_6906", "`false`, unless `composite` is set"),
|
|
10930
10929
|
node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified: diag(6907, 3 /* Message */, "node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907", '`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),
|
|
10931
10930
|
if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk: diag(6908, 3 /* Message */, "if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908", '`[]` if `files` is specified, otherwise `["**/*"]`'),
|
|
10932
10931
|
true_if_composite_false_otherwise: diag(6909, 3 /* Message */, "true_if_composite_false_otherwise_6909", "`true` if `composite`, `false` otherwise"),
|
|
10933
|
-
|
|
10932
|
+
nodenext_if_module_is_nodenext_node16_if_module_is_node16_or_node18_otherwise_bundler: diag(69010, 3 /* Message */, "nodenext_if_module_is_nodenext_node16_if_module_is_node16_or_node18_otherwise_bundler_69010", "`nodenext` if `module` is `nodenext`; `node16` if `module` is `node16` or `node18`; otherwise, `bundler`."),
|
|
10934
10933
|
Computed_from_the_list_of_input_files: diag(6911, 3 /* Message */, "Computed_from_the_list_of_input_files_6911", "Computed from the list of input files"),
|
|
10935
10934
|
Platform_specific: diag(6912, 3 /* Message */, "Platform_specific_6912", "Platform specific"),
|
|
10936
10935
|
You_can_learn_about_all_of_the_compiler_options_at_0: diag(6913, 3 /* Message */, "You_can_learn_about_all_of_the_compiler_options_at_0_6913", "You can learn about all of the compiler options at {0}"),
|
|
@@ -21950,27 +21949,23 @@ var _computedOptions = createComputedCompilerOptions({
|
|
|
21950
21949
|
moduleResolution: {
|
|
21951
21950
|
dependencies: ["module", "target"],
|
|
21952
21951
|
computeValue: (compilerOptions) => {
|
|
21953
|
-
|
|
21954
|
-
|
|
21955
|
-
switch (_computedOptions.module.computeValue(compilerOptions)) {
|
|
21956
|
-
case 100 /* Node16 */:
|
|
21957
|
-
case 101 /* Node18 */:
|
|
21958
|
-
case 102 /* Node20 */:
|
|
21959
|
-
moduleResolution = 3 /* Node16 */;
|
|
21960
|
-
break;
|
|
21961
|
-
case 199 /* NodeNext */:
|
|
21962
|
-
moduleResolution = 99 /* NodeNext */;
|
|
21963
|
-
break;
|
|
21964
|
-
case 1 /* CommonJS */:
|
|
21965
|
-
case 200 /* Preserve */:
|
|
21966
|
-
moduleResolution = 100 /* Bundler */;
|
|
21967
|
-
break;
|
|
21968
|
-
default:
|
|
21969
|
-
moduleResolution = 1 /* Classic */;
|
|
21970
|
-
break;
|
|
21971
|
-
}
|
|
21952
|
+
if (compilerOptions.moduleResolution !== void 0) {
|
|
21953
|
+
return compilerOptions.moduleResolution;
|
|
21972
21954
|
}
|
|
21973
|
-
|
|
21955
|
+
const moduleKind = _computedOptions.module.computeValue(compilerOptions);
|
|
21956
|
+
switch (moduleKind) {
|
|
21957
|
+
case 0 /* None */:
|
|
21958
|
+
case 2 /* AMD */:
|
|
21959
|
+
case 3 /* UMD */:
|
|
21960
|
+
case 4 /* System */:
|
|
21961
|
+
return 1 /* Classic */;
|
|
21962
|
+
case 199 /* NodeNext */:
|
|
21963
|
+
return 99 /* NodeNext */;
|
|
21964
|
+
}
|
|
21965
|
+
if (100 /* Node16 */ <= moduleKind && moduleKind < 199 /* NodeNext */) {
|
|
21966
|
+
return 3 /* Node16 */;
|
|
21967
|
+
}
|
|
21968
|
+
return 100 /* Bundler */;
|
|
21974
21969
|
}
|
|
21975
21970
|
},
|
|
21976
21971
|
moduleDetection: {
|
|
@@ -21990,33 +21985,25 @@ var _computedOptions = createComputedCompilerOptions({
|
|
|
21990
21985
|
}
|
|
21991
21986
|
},
|
|
21992
21987
|
esModuleInterop: {
|
|
21993
|
-
dependencies: [
|
|
21988
|
+
dependencies: [],
|
|
21994
21989
|
computeValue: (compilerOptions) => {
|
|
21995
21990
|
if (compilerOptions.esModuleInterop !== void 0) {
|
|
21996
21991
|
return compilerOptions.esModuleInterop;
|
|
21997
21992
|
}
|
|
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;
|
|
21993
|
+
return true;
|
|
22007
21994
|
}
|
|
22008
21995
|
},
|
|
22009
21996
|
allowSyntheticDefaultImports: {
|
|
22010
|
-
dependencies: [
|
|
21997
|
+
dependencies: [],
|
|
22011
21998
|
computeValue: (compilerOptions) => {
|
|
22012
21999
|
if (compilerOptions.allowSyntheticDefaultImports !== void 0) {
|
|
22013
22000
|
return compilerOptions.allowSyntheticDefaultImports;
|
|
22014
22001
|
}
|
|
22015
|
-
return
|
|
22002
|
+
return true;
|
|
22016
22003
|
}
|
|
22017
22004
|
},
|
|
22018
22005
|
resolvePackageJsonExports: {
|
|
22019
|
-
dependencies: ["moduleResolution"],
|
|
22006
|
+
dependencies: ["moduleResolution", "module", "target"],
|
|
22020
22007
|
computeValue: (compilerOptions) => {
|
|
22021
22008
|
const moduleResolution = _computedOptions.moduleResolution.computeValue(compilerOptions);
|
|
22022
22009
|
if (!moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) {
|
|
@@ -22035,7 +22022,7 @@ var _computedOptions = createComputedCompilerOptions({
|
|
|
22035
22022
|
}
|
|
22036
22023
|
},
|
|
22037
22024
|
resolvePackageJsonImports: {
|
|
22038
|
-
dependencies: ["moduleResolution", "resolvePackageJsonExports"],
|
|
22025
|
+
dependencies: ["moduleResolution", "resolvePackageJsonExports", "module", "target"],
|
|
22039
22026
|
computeValue: (compilerOptions) => {
|
|
22040
22027
|
const moduleResolution = _computedOptions.moduleResolution.computeValue(compilerOptions);
|
|
22041
22028
|
if (!moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) {
|
|
@@ -41076,6 +41063,7 @@ var moduleOptionDeclaration = {
|
|
|
41076
41063
|
nodenext: 199 /* NodeNext */,
|
|
41077
41064
|
preserve: 200 /* Preserve */
|
|
41078
41065
|
})),
|
|
41066
|
+
deprecatedKeys: /* @__PURE__ */ new Set(["none", "amd", "system", "umd"]),
|
|
41079
41067
|
affectsSourceFile: true,
|
|
41080
41068
|
affectsModuleResolution: true,
|
|
41081
41069
|
affectsEmit: true,
|
|
@@ -41534,13 +41522,13 @@ var commandOptionsWithoutBuild = [
|
|
|
41534
41522
|
nodenext: 99 /* NodeNext */,
|
|
41535
41523
|
bundler: 100 /* Bundler */
|
|
41536
41524
|
})),
|
|
41537
|
-
deprecatedKeys: /* @__PURE__ */ new Set(["node"]),
|
|
41525
|
+
deprecatedKeys: /* @__PURE__ */ new Set(["node", "node10", "classic"]),
|
|
41538
41526
|
affectsSourceFile: true,
|
|
41539
41527
|
affectsModuleResolution: true,
|
|
41540
41528
|
paramType: Diagnostics.STRATEGY,
|
|
41541
41529
|
category: Diagnostics.Modules,
|
|
41542
41530
|
description: Diagnostics.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,
|
|
41543
|
-
defaultValueDescription: Diagnostics.
|
|
41531
|
+
defaultValueDescription: Diagnostics.nodenext_if_module_is_nodenext_node16_if_module_is_node16_or_node18_otherwise_bundler
|
|
41544
41532
|
},
|
|
41545
41533
|
{
|
|
41546
41534
|
name: "baseUrl",
|
|
@@ -41613,7 +41601,7 @@ var commandOptionsWithoutBuild = [
|
|
|
41613
41601
|
affectsBuildInfo: true,
|
|
41614
41602
|
category: Diagnostics.Interop_Constraints,
|
|
41615
41603
|
description: Diagnostics.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,
|
|
41616
|
-
defaultValueDescription:
|
|
41604
|
+
defaultValueDescription: true
|
|
41617
41605
|
},
|
|
41618
41606
|
{
|
|
41619
41607
|
name: "esModuleInterop",
|
|
@@ -41624,7 +41612,7 @@ var commandOptionsWithoutBuild = [
|
|
|
41624
41612
|
showInSimplifiedHelpView: true,
|
|
41625
41613
|
category: Diagnostics.Interop_Constraints,
|
|
41626
41614
|
description: Diagnostics.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,
|
|
41627
|
-
defaultValueDescription:
|
|
41615
|
+
defaultValueDescription: true
|
|
41628
41616
|
},
|
|
41629
41617
|
{
|
|
41630
41618
|
name: "preserveSymlinks",
|
|
@@ -79007,7 +78995,7 @@ function createTypeChecker(host) {
|
|
|
79007
78995
|
}
|
|
79008
78996
|
function checkSpreadPropOverrides(type, props, spread) {
|
|
79009
78997
|
for (const right of getPropertiesOfType(type)) {
|
|
79010
|
-
if (!(right.flags & 16777216 /* Optional */)) {
|
|
78998
|
+
if (!(right.flags & 16777216 /* Optional */) && !(getCheckFlags(right) & 48 /* Partial */)) {
|
|
79011
78999
|
const left = props.get(right.escapedName);
|
|
79012
79000
|
if (left) {
|
|
79013
79001
|
const diagnostic = error2(left.valueDeclaration, Diagnostics._0_is_specified_more_than_once_so_this_usage_will_be_overwritten, unescapeLeadingUnderscores(left.escapedName));
|
|
@@ -88599,9 +88587,6 @@ function createTypeChecker(host) {
|
|
|
88599
88587
|
if (cachedTypes2) return cachedTypes2 === noIterationTypes ? void 0 : cachedTypes2;
|
|
88600
88588
|
let allIterationTypes;
|
|
88601
88589
|
for (const constituent of type.types) {
|
|
88602
|
-
if (!!(getReducedType(constituent).flags & 131072 /* Never */)) {
|
|
88603
|
-
continue;
|
|
88604
|
-
}
|
|
88605
88590
|
const errorOutputContainer = errorNode ? { errors: void 0 } : void 0;
|
|
88606
88591
|
const iterationTypes2 = getIterationTypesOfIterableWorker(constituent, use, errorNode, errorOutputContainer);
|
|
88607
88592
|
if (iterationTypes2 === noIterationTypes) {
|
|
@@ -129562,6 +129547,16 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
129562
129547
|
Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashts6_for_migration_information
|
|
129563
129548
|
);
|
|
129564
129549
|
}
|
|
129550
|
+
if (options.moduleResolution === 1 /* Classic */) {
|
|
129551
|
+
createDeprecatedDiagnostic(
|
|
129552
|
+
"moduleResolution",
|
|
129553
|
+
"classic",
|
|
129554
|
+
/*useInstead*/
|
|
129555
|
+
void 0,
|
|
129556
|
+
/*related*/
|
|
129557
|
+
void 0
|
|
129558
|
+
);
|
|
129559
|
+
}
|
|
129565
129560
|
if (options.baseUrl !== void 0) {
|
|
129566
129561
|
createDeprecatedDiagnostic(
|
|
129567
129562
|
"baseUrl",
|
|
@@ -129572,6 +129567,36 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
129572
129567
|
Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashts6_for_migration_information
|
|
129573
129568
|
);
|
|
129574
129569
|
}
|
|
129570
|
+
if (options.esModuleInterop === false) {
|
|
129571
|
+
createDeprecatedDiagnostic(
|
|
129572
|
+
"esModuleInterop",
|
|
129573
|
+
"false",
|
|
129574
|
+
/*useInstead*/
|
|
129575
|
+
void 0,
|
|
129576
|
+
/*related*/
|
|
129577
|
+
void 0
|
|
129578
|
+
);
|
|
129579
|
+
}
|
|
129580
|
+
if (options.allowSyntheticDefaultImports === false) {
|
|
129581
|
+
createDeprecatedDiagnostic(
|
|
129582
|
+
"allowSyntheticDefaultImports",
|
|
129583
|
+
"false",
|
|
129584
|
+
/*useInstead*/
|
|
129585
|
+
void 0,
|
|
129586
|
+
/*related*/
|
|
129587
|
+
void 0
|
|
129588
|
+
);
|
|
129589
|
+
}
|
|
129590
|
+
if (options.module === 0 /* None */ || options.module === 2 /* AMD */ || options.module === 3 /* UMD */ || options.module === 4 /* System */) {
|
|
129591
|
+
createDeprecatedDiagnostic(
|
|
129592
|
+
"module",
|
|
129593
|
+
ModuleKind[options.module],
|
|
129594
|
+
/*useInstead*/
|
|
129595
|
+
void 0,
|
|
129596
|
+
/*related*/
|
|
129597
|
+
void 0
|
|
129598
|
+
);
|
|
129599
|
+
}
|
|
129575
129600
|
});
|
|
129576
129601
|
}
|
|
129577
129602
|
function verifyDeprecatedProjectReference(ref, parentFile, index) {
|
|
@@ -166882,7 +166907,7 @@ var SymbolOriginInfoKind = /* @__PURE__ */ ((SymbolOriginInfoKind2) => {
|
|
|
166882
166907
|
SymbolOriginInfoKind2[SymbolOriginInfoKind2["Ignore"] = 256] = "Ignore";
|
|
166883
166908
|
SymbolOriginInfoKind2[SymbolOriginInfoKind2["ComputedPropertyName"] = 512] = "ComputedPropertyName";
|
|
166884
166909
|
SymbolOriginInfoKind2[SymbolOriginInfoKind2["SymbolMemberNoExport"] = 2 /* SymbolMember */] = "SymbolMemberNoExport";
|
|
166885
|
-
SymbolOriginInfoKind2[SymbolOriginInfoKind2["SymbolMemberExport"] =
|
|
166910
|
+
SymbolOriginInfoKind2[SymbolOriginInfoKind2["SymbolMemberExport"] = 34] = "SymbolMemberExport";
|
|
166886
166911
|
return SymbolOriginInfoKind2;
|
|
166887
166912
|
})(SymbolOriginInfoKind || {});
|
|
166888
166913
|
function originIsThisType(origin) {
|
|
@@ -166895,7 +166920,7 @@ function originIsExport(origin) {
|
|
|
166895
166920
|
return !!(origin && origin.kind & 4 /* Export */);
|
|
166896
166921
|
}
|
|
166897
166922
|
function originIsResolvedExport(origin) {
|
|
166898
|
-
return !!(origin && origin.kind
|
|
166923
|
+
return !!(origin && origin.kind & 32 /* ResolvedExport */);
|
|
166899
166924
|
}
|
|
166900
166925
|
function originIncludesSymbolName(origin) {
|
|
166901
166926
|
return originIsExport(origin) || originIsResolvedExport(origin) || originIsComputedPropertyName(origin);
|
|
@@ -168472,12 +168497,12 @@ function isRecommendedCompletionMatch(localSymbol, recommendedCompletion, checke
|
|
|
168472
168497
|
return localSymbol === recommendedCompletion || !!(localSymbol.flags & 1048576 /* ExportValue */) && checker.getExportSymbolOfSymbol(localSymbol) === recommendedCompletion;
|
|
168473
168498
|
}
|
|
168474
168499
|
function getSourceFromOrigin(origin) {
|
|
168475
|
-
if (originIsExport(origin)) {
|
|
168476
|
-
return stripQuotes(origin.moduleSymbol.name);
|
|
168477
|
-
}
|
|
168478
168500
|
if (originIsResolvedExport(origin)) {
|
|
168479
168501
|
return origin.moduleSpecifier;
|
|
168480
168502
|
}
|
|
168503
|
+
if (originIsExport(origin)) {
|
|
168504
|
+
return stripQuotes(origin.moduleSymbol.name);
|
|
168505
|
+
}
|
|
168481
168506
|
if ((origin == null ? void 0 : origin.kind) === 1 /* ThisType */) {
|
|
168482
168507
|
return "ThisProperty/" /* ThisProperty */;
|
|
168483
168508
|
}
|
|
@@ -169361,7 +169386,7 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position,
|
|
|
169361
169386
|
) || {};
|
|
169362
169387
|
if (moduleSpecifier) {
|
|
169363
169388
|
const origin = {
|
|
169364
|
-
kind: getNullableSymbolOriginInfoKind(
|
|
169389
|
+
kind: getNullableSymbolOriginInfoKind(34 /* SymbolMemberExport */),
|
|
169365
169390
|
moduleSymbol,
|
|
169366
169391
|
isDefaultExport: false,
|
|
169367
169392
|
symbolName: firstAccessibleSymbol.name,
|
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-62669-3",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|