typescript 5.6.0-dev.20240731 → 5.6.0-dev.20240802
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 +12 -9
- package/lib/typescript.js +12 -9
- 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 = "5.6";
|
|
21
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
21
|
+
var version = `${versionMajorMinor}.0-dev.20240802`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -17903,7 +17903,12 @@ function getJSXTransformEnabled(options) {
|
|
|
17903
17903
|
function getJSXImplicitImportBase(compilerOptions, file) {
|
|
17904
17904
|
const jsxImportSourcePragmas = file == null ? void 0 : file.pragmas.get("jsximportsource");
|
|
17905
17905
|
const jsxImportSourcePragma = isArray(jsxImportSourcePragmas) ? jsxImportSourcePragmas[jsxImportSourcePragmas.length - 1] : jsxImportSourcePragmas;
|
|
17906
|
-
|
|
17906
|
+
const jsxRuntimePragmas = file == null ? void 0 : file.pragmas.get("jsxruntime");
|
|
17907
|
+
const jsxRuntimePragma = isArray(jsxRuntimePragmas) ? jsxRuntimePragmas[jsxRuntimePragmas.length - 1] : jsxRuntimePragmas;
|
|
17908
|
+
if ((jsxRuntimePragma == null ? void 0 : jsxRuntimePragma.arguments.factory) === "classic") {
|
|
17909
|
+
return void 0;
|
|
17910
|
+
}
|
|
17911
|
+
return compilerOptions.jsx === 4 /* ReactJSX */ || compilerOptions.jsx === 5 /* ReactJSXDev */ || compilerOptions.jsxImportSource || jsxImportSourcePragma || (jsxRuntimePragma == null ? void 0 : jsxRuntimePragma.arguments.factory) === "automatic" ? (jsxImportSourcePragma == null ? void 0 : jsxImportSourcePragma.arguments.factory) || compilerOptions.jsxImportSource || "react" : void 0;
|
|
17907
17912
|
}
|
|
17908
17913
|
function getJSXRuntimeImport(base, options) {
|
|
17909
17914
|
return base ? `${base}/${options.jsx === 5 /* ReactJSXDev */ ? "jsx-dev-runtime" : "jsx-runtime"}` : void 0;
|
|
@@ -51650,6 +51655,8 @@ function createTypeChecker(host) {
|
|
|
51650
51655
|
}
|
|
51651
51656
|
introducesError = true;
|
|
51652
51657
|
return { introducesError, node, sym };
|
|
51658
|
+
} else {
|
|
51659
|
+
sym = symAtLocation;
|
|
51653
51660
|
}
|
|
51654
51661
|
}
|
|
51655
51662
|
if (sym) {
|
|
@@ -119444,13 +119451,9 @@ function getConfigFileParsingDiagnostics(configFileParseResult) {
|
|
|
119444
119451
|
return configFileParseResult.options.configFile ? [...configFileParseResult.options.configFile.parseDiagnostics, ...configFileParseResult.errors] : configFileParseResult.errors;
|
|
119445
119452
|
}
|
|
119446
119453
|
function getImpliedNodeFormatForFileWorker(fileName, packageJsonInfoCache, host, options) {
|
|
119447
|
-
|
|
119448
|
-
|
|
119449
|
-
|
|
119450
|
-
return fileExtensionIsOneOf(fileName, [".d.mts" /* Dmts */, ".mts" /* Mts */, ".mjs" /* Mjs */]) ? 99 /* ESNext */ : fileExtensionIsOneOf(fileName, [".d.cts" /* Dcts */, ".cts" /* Cts */, ".cjs" /* Cjs */]) ? 1 /* CommonJS */ : fileExtensionIsOneOf(fileName, [".d.ts" /* Dts */, ".ts" /* Ts */, ".tsx" /* Tsx */, ".js" /* Js */, ".jsx" /* Jsx */]) ? lookupFromPackageJson() : void 0;
|
|
119451
|
-
default:
|
|
119452
|
-
return void 0;
|
|
119453
|
-
}
|
|
119454
|
+
const moduleResolution = getEmitModuleResolutionKind(options);
|
|
119455
|
+
const shouldLookupFromPackageJson = 3 /* Node16 */ <= moduleResolution && moduleResolution <= 99 /* NodeNext */ || pathContainsNodeModules(fileName);
|
|
119456
|
+
return fileExtensionIsOneOf(fileName, [".d.mts" /* Dmts */, ".mts" /* Mts */, ".mjs" /* Mjs */]) ? 99 /* ESNext */ : fileExtensionIsOneOf(fileName, [".d.cts" /* Dcts */, ".cts" /* Cts */, ".cjs" /* Cjs */]) ? 1 /* CommonJS */ : shouldLookupFromPackageJson && fileExtensionIsOneOf(fileName, [".d.ts" /* Dts */, ".ts" /* Ts */, ".tsx" /* Tsx */, ".js" /* Js */, ".jsx" /* Jsx */]) ? lookupFromPackageJson() : void 0;
|
|
119454
119457
|
function lookupFromPackageJson() {
|
|
119455
119458
|
const state = getTemporaryModuleResolutionState(packageJsonInfoCache, host, options);
|
|
119456
119459
|
const packageJsonLocations = [];
|
package/lib/typescript.js
CHANGED
|
@@ -2260,7 +2260,7 @@ module.exports = __toCommonJS(typescript_exports);
|
|
|
2260
2260
|
|
|
2261
2261
|
// src/compiler/corePublic.ts
|
|
2262
2262
|
var versionMajorMinor = "5.6";
|
|
2263
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
2263
|
+
var version = `${versionMajorMinor}.0-dev.20240802`;
|
|
2264
2264
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2265
2265
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2266
2266
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -21867,7 +21867,12 @@ function getJSXTransformEnabled(options) {
|
|
|
21867
21867
|
function getJSXImplicitImportBase(compilerOptions, file) {
|
|
21868
21868
|
const jsxImportSourcePragmas = file == null ? void 0 : file.pragmas.get("jsximportsource");
|
|
21869
21869
|
const jsxImportSourcePragma = isArray(jsxImportSourcePragmas) ? jsxImportSourcePragmas[jsxImportSourcePragmas.length - 1] : jsxImportSourcePragmas;
|
|
21870
|
-
|
|
21870
|
+
const jsxRuntimePragmas = file == null ? void 0 : file.pragmas.get("jsxruntime");
|
|
21871
|
+
const jsxRuntimePragma = isArray(jsxRuntimePragmas) ? jsxRuntimePragmas[jsxRuntimePragmas.length - 1] : jsxRuntimePragmas;
|
|
21872
|
+
if ((jsxRuntimePragma == null ? void 0 : jsxRuntimePragma.arguments.factory) === "classic") {
|
|
21873
|
+
return void 0;
|
|
21874
|
+
}
|
|
21875
|
+
return compilerOptions.jsx === 4 /* ReactJSX */ || compilerOptions.jsx === 5 /* ReactJSXDev */ || compilerOptions.jsxImportSource || jsxImportSourcePragma || (jsxRuntimePragma == null ? void 0 : jsxRuntimePragma.arguments.factory) === "automatic" ? (jsxImportSourcePragma == null ? void 0 : jsxImportSourcePragma.arguments.factory) || compilerOptions.jsxImportSource || "react" : void 0;
|
|
21871
21876
|
}
|
|
21872
21877
|
function getJSXRuntimeImport(base, options) {
|
|
21873
21878
|
return base ? `${base}/${options.jsx === 5 /* ReactJSXDev */ ? "jsx-dev-runtime" : "jsx-runtime"}` : void 0;
|
|
@@ -56269,6 +56274,8 @@ function createTypeChecker(host) {
|
|
|
56269
56274
|
}
|
|
56270
56275
|
introducesError = true;
|
|
56271
56276
|
return { introducesError, node, sym };
|
|
56277
|
+
} else {
|
|
56278
|
+
sym = symAtLocation;
|
|
56272
56279
|
}
|
|
56273
56280
|
}
|
|
56274
56281
|
if (sym) {
|
|
@@ -124302,13 +124309,9 @@ function getImpliedNodeFormatForFile(fileName, packageJsonInfoCache, host, optio
|
|
|
124302
124309
|
return typeof result === "object" ? result.impliedNodeFormat : result;
|
|
124303
124310
|
}
|
|
124304
124311
|
function getImpliedNodeFormatForFileWorker(fileName, packageJsonInfoCache, host, options) {
|
|
124305
|
-
|
|
124306
|
-
|
|
124307
|
-
|
|
124308
|
-
return fileExtensionIsOneOf(fileName, [".d.mts" /* Dmts */, ".mts" /* Mts */, ".mjs" /* Mjs */]) ? 99 /* ESNext */ : fileExtensionIsOneOf(fileName, [".d.cts" /* Dcts */, ".cts" /* Cts */, ".cjs" /* Cjs */]) ? 1 /* CommonJS */ : fileExtensionIsOneOf(fileName, [".d.ts" /* Dts */, ".ts" /* Ts */, ".tsx" /* Tsx */, ".js" /* Js */, ".jsx" /* Jsx */]) ? lookupFromPackageJson() : void 0;
|
|
124309
|
-
default:
|
|
124310
|
-
return void 0;
|
|
124311
|
-
}
|
|
124312
|
+
const moduleResolution = getEmitModuleResolutionKind(options);
|
|
124313
|
+
const shouldLookupFromPackageJson = 3 /* Node16 */ <= moduleResolution && moduleResolution <= 99 /* NodeNext */ || pathContainsNodeModules(fileName);
|
|
124314
|
+
return fileExtensionIsOneOf(fileName, [".d.mts" /* Dmts */, ".mts" /* Mts */, ".mjs" /* Mjs */]) ? 99 /* ESNext */ : fileExtensionIsOneOf(fileName, [".d.cts" /* Dcts */, ".cts" /* Cts */, ".cjs" /* Cjs */]) ? 1 /* CommonJS */ : shouldLookupFromPackageJson && fileExtensionIsOneOf(fileName, [".d.ts" /* Dts */, ".ts" /* Ts */, ".tsx" /* Tsx */, ".js" /* Js */, ".jsx" /* Jsx */]) ? lookupFromPackageJson() : void 0;
|
|
124312
124315
|
function lookupFromPackageJson() {
|
|
124313
124316
|
const state = getTemporaryModuleResolutionState(packageJsonInfoCache, host, options);
|
|
124314
124317
|
const packageJsonLocations = [];
|
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.6.0-dev.
|
|
5
|
+
"version": "5.6.0-dev.20240802",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"node": "20.1.0",
|
|
115
115
|
"npm": "8.19.4"
|
|
116
116
|
},
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "8daac14aa4e4ab5b6426bc9f1ac88ff50104981b"
|
|
118
118
|
}
|