typescript 6.0.0-dev.20250922 → 6.0.0-dev.20250923
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 +13 -6
- package/lib/typescript.js +13 -6
- package/package.json +2 -2
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-dev.
|
21
|
+
var version = `${versionMajorMinor}.0-dev.20250923`;
|
22
22
|
|
23
23
|
// src/compiler/core.ts
|
24
24
|
var emptyArray = [];
|
@@ -6832,6 +6832,7 @@ var Diagnostics = {
|
|
6832
6832
|
Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found: diag(2879, 1 /* Error */, "Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879", "Using JSX fragments requires fragment factory '{0}' to be in scope, but it could not be found."),
|
6833
6833
|
Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert: diag(2880, 1 /* Error */, "Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880", "Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'."),
|
6834
6834
|
This_expression_is_never_nullish: diag(2881, 1 /* Error */, "This_expression_is_never_nullish_2881", "This expression is never nullish."),
|
6835
|
+
Cannot_find_module_or_type_declarations_for_side_effect_import_of_0: diag(2882, 1 /* Error */, "Cannot_find_module_or_type_declarations_for_side_effect_import_of_0_2882", "Cannot find module or type declarations for side-effect import of '{0}'."),
|
6835
6836
|
Import_declaration_0_is_using_private_name_1: diag(4e3, 1 /* Error */, "Import_declaration_0_is_using_private_name_1_4000", "Import declaration '{0}' is using private name '{1}'."),
|
6836
6837
|
Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: diag(4002, 1 /* Error */, "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002", "Type parameter '{0}' of exported class has or is using private name '{1}'."),
|
6837
6838
|
Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: diag(4004, 1 /* Error */, "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004", "Type parameter '{0}' of exported interface has or is using private name '{1}'."),
|
@@ -37421,7 +37422,7 @@ var commandOptionsWithoutBuild = [
|
|
37421
37422
|
affectsBuildInfo: true,
|
37422
37423
|
category: Diagnostics.Modules,
|
37423
37424
|
description: Diagnostics.Check_side_effect_imports,
|
37424
|
-
defaultValueDescription:
|
37425
|
+
defaultValueDescription: true
|
37425
37426
|
},
|
37426
37427
|
// Source Maps
|
37427
37428
|
{
|
@@ -46435,7 +46436,7 @@ function createTypeChecker(host) {
|
|
46435
46436
|
var noImplicitThis = getStrictOptionValue(compilerOptions, "noImplicitThis");
|
46436
46437
|
var useUnknownInCatchVariables = getStrictOptionValue(compilerOptions, "useUnknownInCatchVariables");
|
46437
46438
|
var exactOptionalPropertyTypes = compilerOptions.exactOptionalPropertyTypes;
|
46438
|
-
var noUncheckedSideEffectImports =
|
46439
|
+
var noUncheckedSideEffectImports = compilerOptions.noUncheckedSideEffectImports !== false;
|
46439
46440
|
var checkBinaryExpression = createCheckBinaryExpression();
|
46440
46441
|
var emitResolver = createResolver();
|
46441
46442
|
var nodeBuilder = createNodeBuilder();
|
@@ -49411,9 +49412,9 @@ function createTypeChecker(host) {
|
|
49411
49412
|
}
|
49412
49413
|
}
|
49413
49414
|
}
|
49414
|
-
function resolveExternalModuleName(location, moduleReferenceExpression, ignoreErrors) {
|
49415
|
+
function resolveExternalModuleName(location, moduleReferenceExpression, ignoreErrors, errorMessage) {
|
49415
49416
|
const isClassic = getEmitModuleResolutionKind(compilerOptions) === 1 /* Classic */;
|
49416
|
-
|
49417
|
+
errorMessage ?? (errorMessage = isClassic ? Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option : Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations);
|
49417
49418
|
return resolveExternalModuleNameWorker(location, moduleReferenceExpression, ignoreErrors ? void 0 : errorMessage, ignoreErrors);
|
49418
49419
|
}
|
49419
49420
|
function resolveExternalModuleNameWorker(location, moduleReferenceExpression, moduleNotFoundError, ignoreErrors = false, isForAugmentation = false) {
|
@@ -86051,7 +86052,13 @@ function createTypeChecker(host) {
|
|
86051
86052
|
error(node.moduleSpecifier, Diagnostics.Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0, ModuleKind[moduleKind]);
|
86052
86053
|
}
|
86053
86054
|
} else if (noUncheckedSideEffectImports && !importClause) {
|
86054
|
-
void resolveExternalModuleName(
|
86055
|
+
void resolveExternalModuleName(
|
86056
|
+
node,
|
86057
|
+
node.moduleSpecifier,
|
86058
|
+
/*ignoreErrors*/
|
86059
|
+
void 0,
|
86060
|
+
Diagnostics.Cannot_find_module_or_type_declarations_for_side_effect_import_of_0
|
86061
|
+
);
|
86055
86062
|
}
|
86056
86063
|
}
|
86057
86064
|
checkImportAttributes(node);
|
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-dev.
|
2289
|
+
var version = `${versionMajorMinor}.0-dev.20250923`;
|
2290
2290
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
2291
2291
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
2292
2292
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
@@ -10219,6 +10219,7 @@ var Diagnostics = {
|
|
10219
10219
|
Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found: diag(2879, 1 /* Error */, "Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879", "Using JSX fragments requires fragment factory '{0}' to be in scope, but it could not be found."),
|
10220
10220
|
Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert: diag(2880, 1 /* Error */, "Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880", "Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'."),
|
10221
10221
|
This_expression_is_never_nullish: diag(2881, 1 /* Error */, "This_expression_is_never_nullish_2881", "This expression is never nullish."),
|
10222
|
+
Cannot_find_module_or_type_declarations_for_side_effect_import_of_0: diag(2882, 1 /* Error */, "Cannot_find_module_or_type_declarations_for_side_effect_import_of_0_2882", "Cannot find module or type declarations for side-effect import of '{0}'."),
|
10222
10223
|
Import_declaration_0_is_using_private_name_1: diag(4e3, 1 /* Error */, "Import_declaration_0_is_using_private_name_1_4000", "Import declaration '{0}' is using private name '{1}'."),
|
10223
10224
|
Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: diag(4002, 1 /* Error */, "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002", "Type parameter '{0}' of exported class has or is using private name '{1}'."),
|
10224
10225
|
Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: diag(4004, 1 /* Error */, "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004", "Type parameter '{0}' of exported interface has or is using private name '{1}'."),
|
@@ -41680,7 +41681,7 @@ var commandOptionsWithoutBuild = [
|
|
41680
41681
|
affectsBuildInfo: true,
|
41681
41682
|
category: Diagnostics.Modules,
|
41682
41683
|
description: Diagnostics.Check_side_effect_imports,
|
41683
|
-
defaultValueDescription:
|
41684
|
+
defaultValueDescription: true
|
41684
41685
|
},
|
41685
41686
|
// Source Maps
|
41686
41687
|
{
|
@@ -51044,7 +51045,7 @@ function createTypeChecker(host) {
|
|
51044
51045
|
var noImplicitThis = getStrictOptionValue(compilerOptions, "noImplicitThis");
|
51045
51046
|
var useUnknownInCatchVariables = getStrictOptionValue(compilerOptions, "useUnknownInCatchVariables");
|
51046
51047
|
var exactOptionalPropertyTypes = compilerOptions.exactOptionalPropertyTypes;
|
51047
|
-
var noUncheckedSideEffectImports =
|
51048
|
+
var noUncheckedSideEffectImports = compilerOptions.noUncheckedSideEffectImports !== false;
|
51048
51049
|
var checkBinaryExpression = createCheckBinaryExpression();
|
51049
51050
|
var emitResolver = createResolver();
|
51050
51051
|
var nodeBuilder = createNodeBuilder();
|
@@ -54020,9 +54021,9 @@ function createTypeChecker(host) {
|
|
54020
54021
|
}
|
54021
54022
|
}
|
54022
54023
|
}
|
54023
|
-
function resolveExternalModuleName(location, moduleReferenceExpression, ignoreErrors) {
|
54024
|
+
function resolveExternalModuleName(location, moduleReferenceExpression, ignoreErrors, errorMessage) {
|
54024
54025
|
const isClassic = getEmitModuleResolutionKind(compilerOptions) === 1 /* Classic */;
|
54025
|
-
|
54026
|
+
errorMessage ?? (errorMessage = isClassic ? Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option : Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations);
|
54026
54027
|
return resolveExternalModuleNameWorker(location, moduleReferenceExpression, ignoreErrors ? void 0 : errorMessage, ignoreErrors);
|
54027
54028
|
}
|
54028
54029
|
function resolveExternalModuleNameWorker(location, moduleReferenceExpression, moduleNotFoundError, ignoreErrors = false, isForAugmentation = false) {
|
@@ -90660,7 +90661,13 @@ function createTypeChecker(host) {
|
|
90660
90661
|
error2(node.moduleSpecifier, Diagnostics.Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0, ModuleKind[moduleKind]);
|
90661
90662
|
}
|
90662
90663
|
} else if (noUncheckedSideEffectImports && !importClause) {
|
90663
|
-
void resolveExternalModuleName(
|
90664
|
+
void resolveExternalModuleName(
|
90665
|
+
node,
|
90666
|
+
node.moduleSpecifier,
|
90667
|
+
/*ignoreErrors*/
|
90668
|
+
void 0,
|
90669
|
+
Diagnostics.Cannot_find_module_or_type_declarations_for_side_effect_import_of_0
|
90670
|
+
);
|
90664
90671
|
}
|
90665
90672
|
}
|
90666
90673
|
checkImportAttributes(node);
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "typescript",
|
3
3
|
"author": "Microsoft Corp.",
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
5
|
-
"version": "6.0.0-dev.
|
5
|
+
"version": "6.0.0-dev.20250923",
|
6
6
|
"license": "Apache-2.0",
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
8
8
|
"keywords": [
|
@@ -115,5 +115,5 @@
|
|
115
115
|
"node": "20.1.0",
|
116
116
|
"npm": "8.19.4"
|
117
117
|
},
|
118
|
-
"gitHead": "
|
118
|
+
"gitHead": "904e7dd97dc8da1352c8e05d70829dff17c73214"
|
119
119
|
}
|