@typescript-deploys/pr-build 6.0.0-pr-62661-13 → 6.0.0-pr-62673-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 -38
- package/lib/typescript.d.ts +5 -0
- package/lib/typescript.js +76 -44
- 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.20251028`;
|
|
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
|
-
|
|
18003
|
-
|
|
18004
|
-
|
|
18005
|
-
|
|
18006
|
-
|
|
18007
|
-
|
|
18008
|
-
|
|
18009
|
-
|
|
18010
|
-
|
|
18011
|
-
|
|
18012
|
-
|
|
18013
|
-
|
|
18014
|
-
|
|
18015
|
-
default:
|
|
18016
|
-
moduleResolution = 1 /* Classic */;
|
|
18017
|
-
break;
|
|
18018
|
-
}
|
|
17999
|
+
if (compilerOptions.moduleResolution !== void 0) {
|
|
18000
|
+
return compilerOptions.moduleResolution;
|
|
18001
|
+
}
|
|
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 */;
|
|
18019
18014
|
}
|
|
18020
|
-
return
|
|
18015
|
+
return 100 /* Bundler */;
|
|
18021
18016
|
}
|
|
18022
18017
|
},
|
|
18023
18018
|
moduleDetection: {
|
|
@@ -18055,7 +18050,7 @@ var _computedOptions = createComputedCompilerOptions({
|
|
|
18055
18050
|
}
|
|
18056
18051
|
},
|
|
18057
18052
|
resolvePackageJsonExports: {
|
|
18058
|
-
dependencies: ["moduleResolution"],
|
|
18053
|
+
dependencies: ["moduleResolution", "module", "target"],
|
|
18059
18054
|
computeValue: (compilerOptions) => {
|
|
18060
18055
|
const moduleResolution = _computedOptions.moduleResolution.computeValue(compilerOptions);
|
|
18061
18056
|
if (!moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) {
|
|
@@ -18074,7 +18069,7 @@ var _computedOptions = createComputedCompilerOptions({
|
|
|
18074
18069
|
}
|
|
18075
18070
|
},
|
|
18076
18071
|
resolvePackageJsonImports: {
|
|
18077
|
-
dependencies: ["moduleResolution", "resolvePackageJsonExports"],
|
|
18072
|
+
dependencies: ["moduleResolution", "resolvePackageJsonExports", "module", "target"],
|
|
18078
18073
|
computeValue: (compilerOptions) => {
|
|
18079
18074
|
const moduleResolution = _computedOptions.moduleResolution.computeValue(compilerOptions);
|
|
18080
18075
|
if (!moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) {
|
|
@@ -36812,6 +36807,7 @@ var moduleOptionDeclaration = {
|
|
|
36812
36807
|
nodenext: 199 /* NodeNext */,
|
|
36813
36808
|
preserve: 200 /* Preserve */
|
|
36814
36809
|
})),
|
|
36810
|
+
deprecatedKeys: /* @__PURE__ */ new Set(["none", "amd", "system", "umd"]),
|
|
36815
36811
|
affectsSourceFile: true,
|
|
36816
36812
|
affectsModuleResolution: true,
|
|
36817
36813
|
affectsEmit: true,
|
|
@@ -37270,13 +37266,13 @@ var commandOptionsWithoutBuild = [
|
|
|
37270
37266
|
nodenext: 99 /* NodeNext */,
|
|
37271
37267
|
bundler: 100 /* Bundler */
|
|
37272
37268
|
})),
|
|
37273
|
-
deprecatedKeys: /* @__PURE__ */ new Set(["node"]),
|
|
37269
|
+
deprecatedKeys: /* @__PURE__ */ new Set(["node", "node10", "classic"]),
|
|
37274
37270
|
affectsSourceFile: true,
|
|
37275
37271
|
affectsModuleResolution: true,
|
|
37276
37272
|
paramType: Diagnostics.STRATEGY,
|
|
37277
37273
|
category: Diagnostics.Modules,
|
|
37278
37274
|
description: Diagnostics.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,
|
|
37279
|
-
defaultValueDescription: Diagnostics.
|
|
37275
|
+
defaultValueDescription: Diagnostics.nodenext_if_module_is_nodenext_node16_if_module_is_node16_or_node18_otherwise_bundler
|
|
37280
37276
|
},
|
|
37281
37277
|
{
|
|
37282
37278
|
name: "baseUrl",
|
|
@@ -71621,9 +71617,26 @@ function createTypeChecker(host) {
|
|
|
71621
71617
|
function markIdentifierAliasReferenced(location) {
|
|
71622
71618
|
const symbol = getResolvedSymbol(location);
|
|
71623
71619
|
if (symbol && symbol !== argumentsSymbol && symbol !== unknownSymbol && !isThisInTypeQuery(location)) {
|
|
71620
|
+
if (isIdentifierInAbstractMemberComputedPropertyName(location)) {
|
|
71621
|
+
return;
|
|
71622
|
+
}
|
|
71624
71623
|
markAliasReferenced(symbol, location);
|
|
71625
71624
|
}
|
|
71626
71625
|
}
|
|
71626
|
+
function isIdentifierInAbstractMemberComputedPropertyName(node) {
|
|
71627
|
+
let parent = node.parent;
|
|
71628
|
+
while (parent) {
|
|
71629
|
+
if (isComputedPropertyName(parent)) {
|
|
71630
|
+
const memberParent = parent.parent;
|
|
71631
|
+
if ((isMethodDeclaration(memberParent) || isMethodSignature(memberParent) || isPropertyDeclaration(memberParent) || isPropertySignature(memberParent)) && hasSyntacticModifier(memberParent, 64 /* Abstract */)) {
|
|
71632
|
+
return true;
|
|
71633
|
+
}
|
|
71634
|
+
return false;
|
|
71635
|
+
}
|
|
71636
|
+
parent = parent.parent;
|
|
71637
|
+
}
|
|
71638
|
+
return false;
|
|
71639
|
+
}
|
|
71627
71640
|
function markPropertyAliasReferenced(location, propSymbol, parentType) {
|
|
71628
71641
|
const left = isPropertyAccessExpression(location) ? location.expression : location.left;
|
|
71629
71642
|
if (isThisIdentifier(left) || !isIdentifier(left)) {
|
|
@@ -83956,19 +83969,18 @@ function createTypeChecker(host) {
|
|
|
83956
83969
|
}
|
|
83957
83970
|
function getIterationTypesOfIterable(type, use, errorNode) {
|
|
83958
83971
|
var _a, _b;
|
|
83959
|
-
|
|
83960
|
-
if (reducedType === silentNeverType) {
|
|
83972
|
+
if (type === silentNeverType) {
|
|
83961
83973
|
return silentNeverIterationTypes;
|
|
83962
83974
|
}
|
|
83963
|
-
if (isTypeAny(
|
|
83975
|
+
if (isTypeAny(type)) {
|
|
83964
83976
|
return anyIterationTypes;
|
|
83965
83977
|
}
|
|
83966
|
-
if (!(
|
|
83978
|
+
if (!(type.flags & 1048576 /* Union */)) {
|
|
83967
83979
|
const errorOutputContainer = errorNode ? { errors: void 0, skipLogging: true } : void 0;
|
|
83968
|
-
const iterationTypes2 = getIterationTypesOfIterableWorker(
|
|
83980
|
+
const iterationTypes2 = getIterationTypesOfIterableWorker(type, use, errorNode, errorOutputContainer);
|
|
83969
83981
|
if (iterationTypes2 === noIterationTypes) {
|
|
83970
83982
|
if (errorNode) {
|
|
83971
|
-
const rootDiag = reportTypeNotIterableError(errorNode,
|
|
83983
|
+
const rootDiag = reportTypeNotIterableError(errorNode, type, !!(use & 2 /* AllowsAsyncIterablesFlag */));
|
|
83972
83984
|
if (errorOutputContainer == null ? void 0 : errorOutputContainer.errors) {
|
|
83973
83985
|
addRelatedInfo(rootDiag, ...errorOutputContainer.errors);
|
|
83974
83986
|
}
|
|
@@ -83982,20 +83994,20 @@ function createTypeChecker(host) {
|
|
|
83982
83994
|
return iterationTypes2;
|
|
83983
83995
|
}
|
|
83984
83996
|
const cacheKey = use & 2 /* AllowsAsyncIterablesFlag */ ? "iterationTypesOfAsyncIterable" : "iterationTypesOfIterable";
|
|
83985
|
-
const cachedTypes2 = getCachedIterationTypes(
|
|
83997
|
+
const cachedTypes2 = getCachedIterationTypes(type, cacheKey);
|
|
83986
83998
|
if (cachedTypes2) return cachedTypes2 === noIterationTypes ? void 0 : cachedTypes2;
|
|
83987
83999
|
let allIterationTypes;
|
|
83988
|
-
for (const constituent of
|
|
84000
|
+
for (const constituent of type.types) {
|
|
83989
84001
|
const errorOutputContainer = errorNode ? { errors: void 0 } : void 0;
|
|
83990
84002
|
const iterationTypes2 = getIterationTypesOfIterableWorker(constituent, use, errorNode, errorOutputContainer);
|
|
83991
84003
|
if (iterationTypes2 === noIterationTypes) {
|
|
83992
84004
|
if (errorNode) {
|
|
83993
|
-
const rootDiag = reportTypeNotIterableError(errorNode,
|
|
84005
|
+
const rootDiag = reportTypeNotIterableError(errorNode, type, !!(use & 2 /* AllowsAsyncIterablesFlag */));
|
|
83994
84006
|
if (errorOutputContainer == null ? void 0 : errorOutputContainer.errors) {
|
|
83995
84007
|
addRelatedInfo(rootDiag, ...errorOutputContainer.errors);
|
|
83996
84008
|
}
|
|
83997
84009
|
}
|
|
83998
|
-
setCachedIterationTypes(
|
|
84010
|
+
setCachedIterationTypes(type, cacheKey, noIterationTypes);
|
|
83999
84011
|
return void 0;
|
|
84000
84012
|
} else if ((_b = errorOutputContainer == null ? void 0 : errorOutputContainer.errors) == null ? void 0 : _b.length) {
|
|
84001
84013
|
for (const diag2 of errorOutputContainer.errors) {
|
|
@@ -84005,7 +84017,7 @@ function createTypeChecker(host) {
|
|
|
84005
84017
|
allIterationTypes = append(allIterationTypes, iterationTypes2);
|
|
84006
84018
|
}
|
|
84007
84019
|
const iterationTypes = allIterationTypes ? combineIterationTypes(allIterationTypes) : noIterationTypes;
|
|
84008
|
-
setCachedIterationTypes(
|
|
84020
|
+
setCachedIterationTypes(type, cacheKey, iterationTypes);
|
|
84009
84021
|
return iterationTypes === noIterationTypes ? void 0 : iterationTypes;
|
|
84010
84022
|
}
|
|
84011
84023
|
function getAsyncFromSyncIterationTypes(iterationTypes, errorNode) {
|
|
@@ -124707,6 +124719,16 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
124707
124719
|
Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashts6_for_migration_information
|
|
124708
124720
|
);
|
|
124709
124721
|
}
|
|
124722
|
+
if (options.moduleResolution === 1 /* Classic */) {
|
|
124723
|
+
createDeprecatedDiagnostic(
|
|
124724
|
+
"moduleResolution",
|
|
124725
|
+
"classic",
|
|
124726
|
+
/*useInstead*/
|
|
124727
|
+
void 0,
|
|
124728
|
+
/*related*/
|
|
124729
|
+
void 0
|
|
124730
|
+
);
|
|
124731
|
+
}
|
|
124710
124732
|
if (options.baseUrl !== void 0) {
|
|
124711
124733
|
createDeprecatedDiagnostic(
|
|
124712
124734
|
"baseUrl",
|
|
@@ -124737,6 +124759,16 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
124737
124759
|
void 0
|
|
124738
124760
|
);
|
|
124739
124761
|
}
|
|
124762
|
+
if (options.module === 0 /* None */ || options.module === 2 /* AMD */ || options.module === 3 /* UMD */ || options.module === 4 /* System */) {
|
|
124763
|
+
createDeprecatedDiagnostic(
|
|
124764
|
+
"module",
|
|
124765
|
+
ModuleKind[options.module],
|
|
124766
|
+
/*useInstead*/
|
|
124767
|
+
void 0,
|
|
124768
|
+
/*related*/
|
|
124769
|
+
void 0
|
|
124770
|
+
);
|
|
124771
|
+
}
|
|
124740
124772
|
});
|
|
124741
124773
|
}
|
|
124742
124774
|
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.20251028`;
|
|
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: {
|
|
@@ -22008,7 +22003,7 @@ var _computedOptions = createComputedCompilerOptions({
|
|
|
22008
22003
|
}
|
|
22009
22004
|
},
|
|
22010
22005
|
resolvePackageJsonExports: {
|
|
22011
|
-
dependencies: ["moduleResolution"],
|
|
22006
|
+
dependencies: ["moduleResolution", "module", "target"],
|
|
22012
22007
|
computeValue: (compilerOptions) => {
|
|
22013
22008
|
const moduleResolution = _computedOptions.moduleResolution.computeValue(compilerOptions);
|
|
22014
22009
|
if (!moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) {
|
|
@@ -22027,7 +22022,7 @@ var _computedOptions = createComputedCompilerOptions({
|
|
|
22027
22022
|
}
|
|
22028
22023
|
},
|
|
22029
22024
|
resolvePackageJsonImports: {
|
|
22030
|
-
dependencies: ["moduleResolution", "resolvePackageJsonExports"],
|
|
22025
|
+
dependencies: ["moduleResolution", "resolvePackageJsonExports", "module", "target"],
|
|
22031
22026
|
computeValue: (compilerOptions) => {
|
|
22032
22027
|
const moduleResolution = _computedOptions.moduleResolution.computeValue(compilerOptions);
|
|
22033
22028
|
if (!moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) {
|
|
@@ -41068,6 +41063,7 @@ var moduleOptionDeclaration = {
|
|
|
41068
41063
|
nodenext: 199 /* NodeNext */,
|
|
41069
41064
|
preserve: 200 /* Preserve */
|
|
41070
41065
|
})),
|
|
41066
|
+
deprecatedKeys: /* @__PURE__ */ new Set(["none", "amd", "system", "umd"]),
|
|
41071
41067
|
affectsSourceFile: true,
|
|
41072
41068
|
affectsModuleResolution: true,
|
|
41073
41069
|
affectsEmit: true,
|
|
@@ -41526,13 +41522,13 @@ var commandOptionsWithoutBuild = [
|
|
|
41526
41522
|
nodenext: 99 /* NodeNext */,
|
|
41527
41523
|
bundler: 100 /* Bundler */
|
|
41528
41524
|
})),
|
|
41529
|
-
deprecatedKeys: /* @__PURE__ */ new Set(["node"]),
|
|
41525
|
+
deprecatedKeys: /* @__PURE__ */ new Set(["node", "node10", "classic"]),
|
|
41530
41526
|
affectsSourceFile: true,
|
|
41531
41527
|
affectsModuleResolution: true,
|
|
41532
41528
|
paramType: Diagnostics.STRATEGY,
|
|
41533
41529
|
category: Diagnostics.Modules,
|
|
41534
41530
|
description: Diagnostics.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,
|
|
41535
|
-
defaultValueDescription: Diagnostics.
|
|
41531
|
+
defaultValueDescription: Diagnostics.nodenext_if_module_is_nodenext_node16_if_module_is_node16_or_node18_otherwise_bundler
|
|
41536
41532
|
},
|
|
41537
41533
|
{
|
|
41538
41534
|
name: "baseUrl",
|
|
@@ -76227,9 +76223,26 @@ function createTypeChecker(host) {
|
|
|
76227
76223
|
function markIdentifierAliasReferenced(location) {
|
|
76228
76224
|
const symbol = getResolvedSymbol(location);
|
|
76229
76225
|
if (symbol && symbol !== argumentsSymbol && symbol !== unknownSymbol && !isThisInTypeQuery(location)) {
|
|
76226
|
+
if (isIdentifierInAbstractMemberComputedPropertyName(location)) {
|
|
76227
|
+
return;
|
|
76228
|
+
}
|
|
76230
76229
|
markAliasReferenced(symbol, location);
|
|
76231
76230
|
}
|
|
76232
76231
|
}
|
|
76232
|
+
function isIdentifierInAbstractMemberComputedPropertyName(node) {
|
|
76233
|
+
let parent2 = node.parent;
|
|
76234
|
+
while (parent2) {
|
|
76235
|
+
if (isComputedPropertyName(parent2)) {
|
|
76236
|
+
const memberParent = parent2.parent;
|
|
76237
|
+
if ((isMethodDeclaration(memberParent) || isMethodSignature(memberParent) || isPropertyDeclaration(memberParent) || isPropertySignature(memberParent)) && hasSyntacticModifier(memberParent, 64 /* Abstract */)) {
|
|
76238
|
+
return true;
|
|
76239
|
+
}
|
|
76240
|
+
return false;
|
|
76241
|
+
}
|
|
76242
|
+
parent2 = parent2.parent;
|
|
76243
|
+
}
|
|
76244
|
+
return false;
|
|
76245
|
+
}
|
|
76233
76246
|
function markPropertyAliasReferenced(location, propSymbol, parentType) {
|
|
76234
76247
|
const left = isPropertyAccessExpression(location) ? location.expression : location.left;
|
|
76235
76248
|
if (isThisIdentifier(left) || !isIdentifier(left)) {
|
|
@@ -88562,19 +88575,18 @@ function createTypeChecker(host) {
|
|
|
88562
88575
|
}
|
|
88563
88576
|
function getIterationTypesOfIterable(type, use, errorNode) {
|
|
88564
88577
|
var _a, _b;
|
|
88565
|
-
|
|
88566
|
-
if (reducedType === silentNeverType) {
|
|
88578
|
+
if (type === silentNeverType) {
|
|
88567
88579
|
return silentNeverIterationTypes;
|
|
88568
88580
|
}
|
|
88569
|
-
if (isTypeAny(
|
|
88581
|
+
if (isTypeAny(type)) {
|
|
88570
88582
|
return anyIterationTypes;
|
|
88571
88583
|
}
|
|
88572
|
-
if (!(
|
|
88584
|
+
if (!(type.flags & 1048576 /* Union */)) {
|
|
88573
88585
|
const errorOutputContainer = errorNode ? { errors: void 0, skipLogging: true } : void 0;
|
|
88574
|
-
const iterationTypes2 = getIterationTypesOfIterableWorker(
|
|
88586
|
+
const iterationTypes2 = getIterationTypesOfIterableWorker(type, use, errorNode, errorOutputContainer);
|
|
88575
88587
|
if (iterationTypes2 === noIterationTypes) {
|
|
88576
88588
|
if (errorNode) {
|
|
88577
|
-
const rootDiag = reportTypeNotIterableError(errorNode,
|
|
88589
|
+
const rootDiag = reportTypeNotIterableError(errorNode, type, !!(use & 2 /* AllowsAsyncIterablesFlag */));
|
|
88578
88590
|
if (errorOutputContainer == null ? void 0 : errorOutputContainer.errors) {
|
|
88579
88591
|
addRelatedInfo(rootDiag, ...errorOutputContainer.errors);
|
|
88580
88592
|
}
|
|
@@ -88588,20 +88600,20 @@ function createTypeChecker(host) {
|
|
|
88588
88600
|
return iterationTypes2;
|
|
88589
88601
|
}
|
|
88590
88602
|
const cacheKey = use & 2 /* AllowsAsyncIterablesFlag */ ? "iterationTypesOfAsyncIterable" : "iterationTypesOfIterable";
|
|
88591
|
-
const cachedTypes2 = getCachedIterationTypes(
|
|
88603
|
+
const cachedTypes2 = getCachedIterationTypes(type, cacheKey);
|
|
88592
88604
|
if (cachedTypes2) return cachedTypes2 === noIterationTypes ? void 0 : cachedTypes2;
|
|
88593
88605
|
let allIterationTypes;
|
|
88594
|
-
for (const constituent of
|
|
88606
|
+
for (const constituent of type.types) {
|
|
88595
88607
|
const errorOutputContainer = errorNode ? { errors: void 0 } : void 0;
|
|
88596
88608
|
const iterationTypes2 = getIterationTypesOfIterableWorker(constituent, use, errorNode, errorOutputContainer);
|
|
88597
88609
|
if (iterationTypes2 === noIterationTypes) {
|
|
88598
88610
|
if (errorNode) {
|
|
88599
|
-
const rootDiag = reportTypeNotIterableError(errorNode,
|
|
88611
|
+
const rootDiag = reportTypeNotIterableError(errorNode, type, !!(use & 2 /* AllowsAsyncIterablesFlag */));
|
|
88600
88612
|
if (errorOutputContainer == null ? void 0 : errorOutputContainer.errors) {
|
|
88601
88613
|
addRelatedInfo(rootDiag, ...errorOutputContainer.errors);
|
|
88602
88614
|
}
|
|
88603
88615
|
}
|
|
88604
|
-
setCachedIterationTypes(
|
|
88616
|
+
setCachedIterationTypes(type, cacheKey, noIterationTypes);
|
|
88605
88617
|
return void 0;
|
|
88606
88618
|
} else if ((_b = errorOutputContainer == null ? void 0 : errorOutputContainer.errors) == null ? void 0 : _b.length) {
|
|
88607
88619
|
for (const diag2 of errorOutputContainer.errors) {
|
|
@@ -88611,7 +88623,7 @@ function createTypeChecker(host) {
|
|
|
88611
88623
|
allIterationTypes = append(allIterationTypes, iterationTypes2);
|
|
88612
88624
|
}
|
|
88613
88625
|
const iterationTypes = allIterationTypes ? combineIterationTypes(allIterationTypes) : noIterationTypes;
|
|
88614
|
-
setCachedIterationTypes(
|
|
88626
|
+
setCachedIterationTypes(type, cacheKey, iterationTypes);
|
|
88615
88627
|
return iterationTypes === noIterationTypes ? void 0 : iterationTypes;
|
|
88616
88628
|
}
|
|
88617
88629
|
function getAsyncFromSyncIterationTypes(iterationTypes, errorNode) {
|
|
@@ -129552,6 +129564,16 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
129552
129564
|
Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashts6_for_migration_information
|
|
129553
129565
|
);
|
|
129554
129566
|
}
|
|
129567
|
+
if (options.moduleResolution === 1 /* Classic */) {
|
|
129568
|
+
createDeprecatedDiagnostic(
|
|
129569
|
+
"moduleResolution",
|
|
129570
|
+
"classic",
|
|
129571
|
+
/*useInstead*/
|
|
129572
|
+
void 0,
|
|
129573
|
+
/*related*/
|
|
129574
|
+
void 0
|
|
129575
|
+
);
|
|
129576
|
+
}
|
|
129555
129577
|
if (options.baseUrl !== void 0) {
|
|
129556
129578
|
createDeprecatedDiagnostic(
|
|
129557
129579
|
"baseUrl",
|
|
@@ -129582,6 +129604,16 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
129582
129604
|
void 0
|
|
129583
129605
|
);
|
|
129584
129606
|
}
|
|
129607
|
+
if (options.module === 0 /* None */ || options.module === 2 /* AMD */ || options.module === 3 /* UMD */ || options.module === 4 /* System */) {
|
|
129608
|
+
createDeprecatedDiagnostic(
|
|
129609
|
+
"module",
|
|
129610
|
+
ModuleKind[options.module],
|
|
129611
|
+
/*useInstead*/
|
|
129612
|
+
void 0,
|
|
129613
|
+
/*related*/
|
|
129614
|
+
void 0
|
|
129615
|
+
);
|
|
129616
|
+
}
|
|
129585
129617
|
});
|
|
129586
129618
|
}
|
|
129587
129619
|
function verifyDeprecatedProjectReference(ref, parentFile, index) {
|
|
@@ -166892,7 +166924,7 @@ var SymbolOriginInfoKind = /* @__PURE__ */ ((SymbolOriginInfoKind2) => {
|
|
|
166892
166924
|
SymbolOriginInfoKind2[SymbolOriginInfoKind2["Ignore"] = 256] = "Ignore";
|
|
166893
166925
|
SymbolOriginInfoKind2[SymbolOriginInfoKind2["ComputedPropertyName"] = 512] = "ComputedPropertyName";
|
|
166894
166926
|
SymbolOriginInfoKind2[SymbolOriginInfoKind2["SymbolMemberNoExport"] = 2 /* SymbolMember */] = "SymbolMemberNoExport";
|
|
166895
|
-
SymbolOriginInfoKind2[SymbolOriginInfoKind2["SymbolMemberExport"] =
|
|
166927
|
+
SymbolOriginInfoKind2[SymbolOriginInfoKind2["SymbolMemberExport"] = 34] = "SymbolMemberExport";
|
|
166896
166928
|
return SymbolOriginInfoKind2;
|
|
166897
166929
|
})(SymbolOriginInfoKind || {});
|
|
166898
166930
|
function originIsThisType(origin) {
|
|
@@ -166905,7 +166937,7 @@ function originIsExport(origin) {
|
|
|
166905
166937
|
return !!(origin && origin.kind & 4 /* Export */);
|
|
166906
166938
|
}
|
|
166907
166939
|
function originIsResolvedExport(origin) {
|
|
166908
|
-
return !!(origin && origin.kind
|
|
166940
|
+
return !!(origin && origin.kind & 32 /* ResolvedExport */);
|
|
166909
166941
|
}
|
|
166910
166942
|
function originIncludesSymbolName(origin) {
|
|
166911
166943
|
return originIsExport(origin) || originIsResolvedExport(origin) || originIsComputedPropertyName(origin);
|
|
@@ -168482,12 +168514,12 @@ function isRecommendedCompletionMatch(localSymbol, recommendedCompletion, checke
|
|
|
168482
168514
|
return localSymbol === recommendedCompletion || !!(localSymbol.flags & 1048576 /* ExportValue */) && checker.getExportSymbolOfSymbol(localSymbol) === recommendedCompletion;
|
|
168483
168515
|
}
|
|
168484
168516
|
function getSourceFromOrigin(origin) {
|
|
168485
|
-
if (originIsExport(origin)) {
|
|
168486
|
-
return stripQuotes(origin.moduleSymbol.name);
|
|
168487
|
-
}
|
|
168488
168517
|
if (originIsResolvedExport(origin)) {
|
|
168489
168518
|
return origin.moduleSpecifier;
|
|
168490
168519
|
}
|
|
168520
|
+
if (originIsExport(origin)) {
|
|
168521
|
+
return stripQuotes(origin.moduleSymbol.name);
|
|
168522
|
+
}
|
|
168491
168523
|
if ((origin == null ? void 0 : origin.kind) === 1 /* ThisType */) {
|
|
168492
168524
|
return "ThisProperty/" /* ThisProperty */;
|
|
168493
168525
|
}
|
|
@@ -169371,7 +169403,7 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position,
|
|
|
169371
169403
|
) || {};
|
|
169372
169404
|
if (moduleSpecifier) {
|
|
169373
169405
|
const origin = {
|
|
169374
|
-
kind: getNullableSymbolOriginInfoKind(
|
|
169406
|
+
kind: getNullableSymbolOriginInfoKind(34 /* SymbolMemberExport */),
|
|
169375
169407
|
moduleSymbol,
|
|
169376
169408
|
isDefaultExport: false,
|
|
169377
169409
|
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-62673-3",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|