typescript 5.3.0-dev.20230919 → 5.3.0-dev.20230921
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/lib.dom.d.ts +4 -0
- package/lib/lib.webworker.d.ts +2 -0
- package/lib/tsc.js +114 -132
- package/lib/tsserver.js +489 -204
- package/lib/typescript.js +490 -200
- package/lib/typingsInstaller.js +17 -6
- package/package.json +2 -2
package/lib/typingsInstaller.js
CHANGED
|
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
|
|
|
54
54
|
|
|
55
55
|
// src/compiler/corePublic.ts
|
|
56
56
|
var versionMajorMinor = "5.3";
|
|
57
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
57
|
+
var version = `${versionMajorMinor}.0-dev.20230921`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
|
@@ -15692,7 +15692,6 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
15692
15692
|
node.imports = void 0;
|
|
15693
15693
|
node.moduleAugmentations = void 0;
|
|
15694
15694
|
node.ambientModuleNames = void 0;
|
|
15695
|
-
node.resolvedModules = void 0;
|
|
15696
15695
|
node.classifiableNames = void 0;
|
|
15697
15696
|
node.impliedNodeFormat = void 0;
|
|
15698
15697
|
return node;
|
|
@@ -25913,6 +25912,7 @@ var moduleOptionDeclaration = {
|
|
|
25913
25912
|
node16: 100 /* Node16 */,
|
|
25914
25913
|
nodenext: 199 /* NodeNext */
|
|
25915
25914
|
})),
|
|
25915
|
+
affectsSourceFile: true,
|
|
25916
25916
|
affectsModuleResolution: true,
|
|
25917
25917
|
affectsEmit: true,
|
|
25918
25918
|
affectsBuildInfo: true,
|
|
@@ -26005,7 +26005,8 @@ var commandOptionsWithoutBuild = [
|
|
|
26005
26005
|
{
|
|
26006
26006
|
name: "allowJs",
|
|
26007
26007
|
type: "boolean",
|
|
26008
|
-
|
|
26008
|
+
allowJsFlag: true,
|
|
26009
|
+
affectsBuildInfo: true,
|
|
26009
26010
|
showInSimplifiedHelpView: true,
|
|
26010
26011
|
category: Diagnostics.JavaScript_Support,
|
|
26011
26012
|
description: Diagnostics.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,
|
|
@@ -26015,6 +26016,8 @@ var commandOptionsWithoutBuild = [
|
|
|
26015
26016
|
name: "checkJs",
|
|
26016
26017
|
type: "boolean",
|
|
26017
26018
|
affectsModuleResolution: true,
|
|
26019
|
+
affectsSemanticDiagnostics: true,
|
|
26020
|
+
affectsBuildInfo: true,
|
|
26018
26021
|
showInSimplifiedHelpView: true,
|
|
26019
26022
|
category: Diagnostics.JavaScript_Support,
|
|
26020
26023
|
description: Diagnostics.Enable_error_reporting_in_type_checked_JavaScript_files,
|
|
@@ -26027,6 +26030,10 @@ var commandOptionsWithoutBuild = [
|
|
|
26027
26030
|
affectsEmit: true,
|
|
26028
26031
|
affectsBuildInfo: true,
|
|
26029
26032
|
affectsModuleResolution: true,
|
|
26033
|
+
// The checker emits an error when it sees JSX but this option is not set in compilerOptions.
|
|
26034
|
+
// This is effectively a semantic error, so mark this option as affecting semantic diagnostics
|
|
26035
|
+
// so we know to refresh errors when this option is changed.
|
|
26036
|
+
affectsSemanticDiagnostics: true,
|
|
26030
26037
|
paramType: Diagnostics.KIND,
|
|
26031
26038
|
showInSimplifiedHelpView: true,
|
|
26032
26039
|
category: Diagnostics.Language_and_Environment,
|
|
@@ -26342,6 +26349,7 @@ var commandOptionsWithoutBuild = [
|
|
|
26342
26349
|
bundler: 100 /* Bundler */
|
|
26343
26350
|
})),
|
|
26344
26351
|
deprecatedKeys: /* @__PURE__ */ new Set(["node"]),
|
|
26352
|
+
affectsSourceFile: true,
|
|
26345
26353
|
affectsModuleResolution: true,
|
|
26346
26354
|
paramType: Diagnostics.STRATEGY,
|
|
26347
26355
|
category: Diagnostics.Modules,
|
|
@@ -26884,6 +26892,7 @@ var commandOptionsWithoutBuild = [
|
|
|
26884
26892
|
legacy: 1 /* Legacy */,
|
|
26885
26893
|
force: 3 /* Force */
|
|
26886
26894
|
})),
|
|
26895
|
+
affectsSourceFile: true,
|
|
26887
26896
|
affectsModuleResolution: true,
|
|
26888
26897
|
description: Diagnostics.Control_what_method_is_used_to_detect_module_format_JS_files,
|
|
26889
26898
|
category: Diagnostics.Language_and_Environment,
|
|
@@ -26903,7 +26912,7 @@ var semanticDiagnosticsOptionDeclarations = optionDeclarations.filter((option) =
|
|
|
26903
26912
|
var affectsEmitOptionDeclarations = optionDeclarations.filter((option) => !!option.affectsEmit);
|
|
26904
26913
|
var affectsDeclarationPathOptionDeclarations = optionDeclarations.filter((option) => !!option.affectsDeclarationPath);
|
|
26905
26914
|
var moduleResolutionOptionDeclarations = optionDeclarations.filter((option) => !!option.affectsModuleResolution);
|
|
26906
|
-
var sourceFileAffectingCompilerOptions = optionDeclarations.filter((option) => !!option.affectsSourceFile || !!option.
|
|
26915
|
+
var sourceFileAffectingCompilerOptions = optionDeclarations.filter((option) => !!option.affectsSourceFile || !!option.affectsBindDiagnostics);
|
|
26907
26916
|
var optionsAffectingProgramStructure = optionDeclarations.filter((option) => !!option.affectsProgramStructure);
|
|
26908
26917
|
var transpileOptionValueCompilerOptions = optionDeclarations.filter((option) => hasProperty(option, "transpileOptionValue"));
|
|
26909
26918
|
var optionsForBuild = [
|
|
@@ -30925,6 +30934,7 @@ var BuilderState;
|
|
|
30925
30934
|
return toPath(program.getProjectReferenceRedirect(fileName) || fileName, sourceFileDirectory, getCanonicalFileName);
|
|
30926
30935
|
}
|
|
30927
30936
|
function getReferencedFiles(program, sourceFile, getCanonicalFileName) {
|
|
30937
|
+
var _a;
|
|
30928
30938
|
let referencedFiles;
|
|
30929
30939
|
if (sourceFile.imports && sourceFile.imports.length > 0) {
|
|
30930
30940
|
const checker = program.getTypeChecker();
|
|
@@ -30940,8 +30950,9 @@ var BuilderState;
|
|
|
30940
30950
|
addReferencedFile(referencedPath);
|
|
30941
30951
|
}
|
|
30942
30952
|
}
|
|
30943
|
-
|
|
30944
|
-
|
|
30953
|
+
const resolvedTypeReferenceDirectiveNames = (_a = program.resolvedTypeReferenceDirectiveNames) == null ? void 0 : _a.get(sourceFile.path);
|
|
30954
|
+
if (resolvedTypeReferenceDirectiveNames) {
|
|
30955
|
+
resolvedTypeReferenceDirectiveNames.forEach(({ resolvedTypeReferenceDirective }) => {
|
|
30945
30956
|
if (!resolvedTypeReferenceDirective) {
|
|
30946
30957
|
return;
|
|
30947
30958
|
}
|
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": "5.3.0-dev.
|
|
5
|
+
"version": "5.3.0-dev.20230921",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -113,5 +113,5 @@
|
|
|
113
113
|
"node": "20.1.0",
|
|
114
114
|
"npm": "8.19.4"
|
|
115
115
|
},
|
|
116
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "f3dad2a07d007c40d260f13d6b087a2d5685d12d"
|
|
117
117
|
}
|