@typescript-deploys/pr-build 5.2.0-pr-54278-2 → 5.2.0-pr-54290-7
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 +34 -4773
- package/lib/tsserver.js +2371 -2370
- package/lib/tsserverlibrary.d.ts +1 -24
- package/lib/tsserverlibrary.js +2413 -144
- package/lib/typescript.d.ts +1 -24
- package/lib/typescript.js +6 -93
- package/lib/typingsInstaller.js +1 -11
- package/package.json +2 -2
- package/lib/tsclibrary.d.ts +0 -5824
package/lib/typescript.d.ts
CHANGED
|
@@ -3081,15 +3081,9 @@ declare namespace ts {
|
|
|
3081
3081
|
*/
|
|
3082
3082
|
Force = 3
|
|
3083
3083
|
}
|
|
3084
|
-
type PluginConfig = PluginImport | TransformerPluginImport;
|
|
3085
3084
|
interface PluginImport {
|
|
3086
|
-
type?: undefined;
|
|
3087
3085
|
name: string;
|
|
3088
3086
|
}
|
|
3089
|
-
interface TransformerPluginImport {
|
|
3090
|
-
type: "transformer";
|
|
3091
|
-
path: string;
|
|
3092
|
-
}
|
|
3093
3087
|
interface ProjectReference {
|
|
3094
3088
|
/** A normalized path on disk */
|
|
3095
3089
|
path: string;
|
|
@@ -3120,7 +3114,7 @@ declare namespace ts {
|
|
|
3120
3114
|
DynamicPriority = 2,
|
|
3121
3115
|
FixedChunkSize = 3
|
|
3122
3116
|
}
|
|
3123
|
-
type CompilerOptionsValue = string | number | boolean | (string | number)[] | string[] | MapLike<string[]> |
|
|
3117
|
+
type CompilerOptionsValue = string | number | boolean | (string | number)[] | string[] | MapLike<string[]> | PluginImport[] | ProjectReference[] | null | undefined;
|
|
3124
3118
|
interface CompilerOptions {
|
|
3125
3119
|
allowImportingTsExtensions?: boolean;
|
|
3126
3120
|
allowJs?: boolean;
|
|
@@ -3225,8 +3219,6 @@ declare namespace ts {
|
|
|
3225
3219
|
verbatimModuleSyntax?: boolean;
|
|
3226
3220
|
esModuleInterop?: boolean;
|
|
3227
3221
|
useDefineForClassFields?: boolean;
|
|
3228
|
-
customTransformers?: string[];
|
|
3229
|
-
allowPlugins?: boolean;
|
|
3230
3222
|
[option: string]: CompilerOptionsValue | TsConfigSourceFile | undefined;
|
|
3231
3223
|
}
|
|
3232
3224
|
interface WatchOptions {
|
|
@@ -4359,20 +4351,6 @@ declare namespace ts {
|
|
|
4359
4351
|
negative: boolean;
|
|
4360
4352
|
base10Value: string;
|
|
4361
4353
|
}
|
|
4362
|
-
type CustomTransformersModuleFactory = (mod: {
|
|
4363
|
-
typescript: typeof ts;
|
|
4364
|
-
}) => CustomTransformersModule;
|
|
4365
|
-
interface CustomTransformersModuleWithName {
|
|
4366
|
-
name: string;
|
|
4367
|
-
module: CustomTransformersModule;
|
|
4368
|
-
}
|
|
4369
|
-
interface CustomTransformersModule {
|
|
4370
|
-
create(createInfo: CustomTransformersCreateInfo): CustomTransformers;
|
|
4371
|
-
}
|
|
4372
|
-
interface CustomTransformersCreateInfo {
|
|
4373
|
-
program: Program;
|
|
4374
|
-
config: any;
|
|
4375
|
-
}
|
|
4376
4354
|
enum FileWatcherEventKind {
|
|
4377
4355
|
Created = 0,
|
|
4378
4356
|
Changed = 1,
|
|
@@ -5824,7 +5802,6 @@ declare namespace ts {
|
|
|
5824
5802
|
sourceMap?: boolean;
|
|
5825
5803
|
inlineSourceMap?: boolean;
|
|
5826
5804
|
traceResolution?: boolean;
|
|
5827
|
-
allowPlugins?: boolean;
|
|
5828
5805
|
[option: string]: CompilerOptionsValue | undefined;
|
|
5829
5806
|
}
|
|
5830
5807
|
type ReportEmitErrorSummary = (errorCount: number, filesInError: (ReportFileInError | undefined)[]) => void;
|
package/lib/typescript.js
CHANGED
|
@@ -35,7 +35,7 @@ var ts = (() => {
|
|
|
35
35
|
"src/compiler/corePublic.ts"() {
|
|
36
36
|
"use strict";
|
|
37
37
|
versionMajorMinor = "5.2";
|
|
38
|
-
version = `${versionMajorMinor}.0-insiders.
|
|
38
|
+
version = `${versionMajorMinor}.0-insiders.20230517`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -45,34 +45,6 @@ var ts = (() => {
|
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
47
|
|
|
48
|
-
// src/compiler/pluginUtilities.ts
|
|
49
|
-
function setTypeScriptNamespace(entrypoint, ts) {
|
|
50
|
-
if (currentEntrypoint !== void 0)
|
|
51
|
-
throw new Error("ts namespace already set");
|
|
52
|
-
currentEntrypoint = entrypoint;
|
|
53
|
-
currentTsNamespace = ts;
|
|
54
|
-
}
|
|
55
|
-
function getTypeScriptNamespace() {
|
|
56
|
-
if (currentTsNamespace === void 0)
|
|
57
|
-
throw new Error("ts namespace unset");
|
|
58
|
-
return currentTsNamespace;
|
|
59
|
-
}
|
|
60
|
-
function shouldAllowPlugins(options) {
|
|
61
|
-
switch (currentEntrypoint) {
|
|
62
|
-
case "tsserver":
|
|
63
|
-
case "tsserverlibrary":
|
|
64
|
-
case "typescript":
|
|
65
|
-
return true;
|
|
66
|
-
}
|
|
67
|
-
return options.allowPlugins ?? false;
|
|
68
|
-
}
|
|
69
|
-
var currentEntrypoint, currentTsNamespace;
|
|
70
|
-
var init_pluginUtilities = __esm({
|
|
71
|
-
"src/compiler/pluginUtilities.ts"() {
|
|
72
|
-
"use strict";
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
|
|
76
48
|
// src/compiler/core.ts
|
|
77
49
|
function length(array) {
|
|
78
50
|
return array ? array.length : 0;
|
|
@@ -8690,7 +8662,6 @@ ${lanes.join("\n")}
|
|
|
8690
8662
|
Compiles_the_current_project_with_additional_settings: diag(6929, 3 /* Message */, "Compiles_the_current_project_with_additional_settings_6929", "Compiles the current project, with additional settings."),
|
|
8691
8663
|
true_for_ES2022_and_above_including_ESNext: diag(6930, 3 /* Message */, "true_for_ES2022_and_above_including_ESNext_6930", "`true` for ES2022 and above, including ESNext."),
|
|
8692
8664
|
List_of_file_name_suffixes_to_search_when_resolving_a_module: diag(6931, 1 /* Error */, "List_of_file_name_suffixes_to_search_when_resolving_a_module_6931", "List of file name suffixes to search when resolving a module."),
|
|
8693
|
-
Option_allowPlugins_must_be_specified_when_compiler_plugins_are_present: diag(6932, 1 /* Error */, "Option_allowPlugins_must_be_specified_when_compiler_plugins_are_present_6932", "Option '--allowPlugins' must be specified when compiler plugins are present."),
|
|
8694
8665
|
Variable_0_implicitly_has_an_1_type: diag(7005, 1 /* Error */, "Variable_0_implicitly_has_an_1_type_7005", "Variable '{0}' implicitly has an '{1}' type."),
|
|
8695
8666
|
Parameter_0_implicitly_has_an_1_type: diag(7006, 1 /* Error */, "Parameter_0_implicitly_has_an_1_type_7006", "Parameter '{0}' implicitly has an '{1}' type."),
|
|
8696
8667
|
Member_0_implicitly_has_an_1_type: diag(7008, 1 /* Error */, "Member_0_implicitly_has_an_1_type_7008", "Member '{0}' implicitly has an '{1}' type."),
|
|
@@ -37585,15 +37556,6 @@ ${lanes.join("\n")}
|
|
|
37585
37556
|
isCommandLineOnly: true,
|
|
37586
37557
|
description: Diagnostics.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,
|
|
37587
37558
|
defaultValueDescription: Diagnostics.Platform_specific
|
|
37588
|
-
},
|
|
37589
|
-
{
|
|
37590
|
-
name: "allowPlugins",
|
|
37591
|
-
type: "boolean",
|
|
37592
|
-
affectsSemanticDiagnostics: true,
|
|
37593
|
-
affectsEmit: true,
|
|
37594
|
-
affectsBuildInfo: true,
|
|
37595
|
-
defaultValueDescription: void 0,
|
|
37596
|
-
isCommandLineOnly: true
|
|
37597
37559
|
}
|
|
37598
37560
|
];
|
|
37599
37561
|
targetOptionDeclaration = {
|
|
@@ -72151,7 +72113,7 @@ ${lanes.join("\n")}
|
|
|
72151
72113
|
}
|
|
72152
72114
|
const typeArgument = typeArgumentTypes[i];
|
|
72153
72115
|
if (!checkTypeAssignableTo(
|
|
72154
|
-
typeArgument,
|
|
72116
|
+
getTypeWithThisArgument(typeArgument, typeArgument),
|
|
72155
72117
|
getTypeWithThisArgument(instantiateType(constraint, mapper), typeArgument),
|
|
72156
72118
|
reportErrors2 ? typeArgumentNodes[i] : void 0,
|
|
72157
72119
|
typeArgumentHeadMessage,
|
|
@@ -72185,8 +72147,9 @@ ${lanes.join("\n")}
|
|
|
72185
72147
|
void 0,
|
|
72186
72148
|
checkMode
|
|
72187
72149
|
);
|
|
72150
|
+
const checkAttributesType = checkMode & 4 /* SkipContextSensitive */ ? getRegularTypeOfObjectLiteral(attributesType) : attributesType;
|
|
72188
72151
|
return checkTagNameDoesNotExpectTooManyArguments() && checkTypeRelatedToAndOptionallyElaborate(
|
|
72189
|
-
|
|
72152
|
+
checkAttributesType,
|
|
72190
72153
|
paramType,
|
|
72191
72154
|
relation,
|
|
72192
72155
|
reportErrors2 ? node.tagName : void 0,
|
|
@@ -109531,19 +109494,6 @@ ${lanes.join("\n")}
|
|
|
109531
109494
|
declarationTransformers: getDeclarationTransformers(customTransformers)
|
|
109532
109495
|
};
|
|
109533
109496
|
}
|
|
109534
|
-
function mergeCustomTransformers(...customTransformers) {
|
|
109535
|
-
if (!some(customTransformers))
|
|
109536
|
-
return void 0;
|
|
109537
|
-
const result = {};
|
|
109538
|
-
for (const transformer of customTransformers) {
|
|
109539
|
-
if (!transformer)
|
|
109540
|
-
continue;
|
|
109541
|
-
result.before = concatenate(result.before, transformer.before);
|
|
109542
|
-
result.after = concatenate(result.after, transformer.after);
|
|
109543
|
-
result.afterDeclarations = concatenate(result.afterDeclarations, transformer.afterDeclarations);
|
|
109544
|
-
}
|
|
109545
|
-
return result;
|
|
109546
|
-
}
|
|
109547
109497
|
function getScriptTransformers(compilerOptions, customTransformers, emitOnly) {
|
|
109548
109498
|
if (emitOnly)
|
|
109549
109499
|
return emptyArray;
|
|
@@ -116064,8 +116014,7 @@ ${lanes.join("\n")}
|
|
|
116064
116014
|
realpath,
|
|
116065
116015
|
readDirectory: (path, extensions, include, exclude, depth) => system.readDirectory(path, extensions, include, exclude, depth),
|
|
116066
116016
|
createDirectory: (d) => system.createDirectory(d),
|
|
116067
|
-
createHash: maybeBind(system, system.createHash)
|
|
116068
|
-
require: maybeBind(system, system.require)
|
|
116017
|
+
createHash: maybeBind(system, system.createHash)
|
|
116069
116018
|
};
|
|
116070
116019
|
return compilerHost;
|
|
116071
116020
|
}
|
|
@@ -117628,26 +117577,6 @@ ${lanes.join("\n")}
|
|
|
117628
117577
|
function isEmitBlocked(emitFileName) {
|
|
117629
117578
|
return hasEmitBlockingDiagnostics.has(toPath3(emitFileName));
|
|
117630
117579
|
}
|
|
117631
|
-
function getCustomTransformers() {
|
|
117632
|
-
if (!host.require) {
|
|
117633
|
-
return emptyArray;
|
|
117634
|
-
}
|
|
117635
|
-
const compilerOptions = program.getCompilerOptions();
|
|
117636
|
-
if (!shouldAllowPlugins(compilerOptions)) {
|
|
117637
|
-
return emptyArray;
|
|
117638
|
-
}
|
|
117639
|
-
const customTransformers = mapDefined(compilerOptions.plugins, (config) => {
|
|
117640
|
-
if (config.type !== "transformer")
|
|
117641
|
-
return void 0;
|
|
117642
|
-
const result = host.require(program.getCurrentDirectory(), config.path);
|
|
117643
|
-
Debug.assertIsDefined(result.module);
|
|
117644
|
-
const factory2 = result.module;
|
|
117645
|
-
Debug.assert(typeof factory2 === "function");
|
|
117646
|
-
const plugin = factory2({ typescript: getTypeScriptNamespace() });
|
|
117647
|
-
return plugin.create({ program, config });
|
|
117648
|
-
});
|
|
117649
|
-
return customTransformers ?? emptyArray;
|
|
117650
|
-
}
|
|
117651
117580
|
function emitWorker(program2, sourceFile, writeFileCallback, cancellationToken, emitOnly, customTransformers, forceDtsEmit) {
|
|
117652
117581
|
if (!forceDtsEmit) {
|
|
117653
117582
|
const result = handleNoEmitOptions(program2, sourceFile, writeFileCallback, cancellationToken);
|
|
@@ -117656,12 +117585,11 @@ ${lanes.join("\n")}
|
|
|
117656
117585
|
}
|
|
117657
117586
|
const emitResolver = getTypeChecker().getEmitResolver(outFile(options) ? void 0 : sourceFile, cancellationToken);
|
|
117658
117587
|
mark("beforeEmit");
|
|
117659
|
-
const mergedCustomTransformers = mergeCustomTransformers(...getCustomTransformers(), customTransformers);
|
|
117660
117588
|
const emitResult = emitFiles(
|
|
117661
117589
|
emitResolver,
|
|
117662
117590
|
getEmitHost(writeFileCallback),
|
|
117663
117591
|
sourceFile,
|
|
117664
|
-
getTransformers(options,
|
|
117592
|
+
getTransformers(options, customTransformers, emitOnly),
|
|
117665
117593
|
emitOnly,
|
|
117666
117594
|
/*onlyBuildInfo*/
|
|
117667
117595
|
false,
|
|
@@ -119115,14 +119043,6 @@ ${lanes.join("\n")}
|
|
|
119115
119043
|
verifyEmitFilePath(emitFileNames.declarationFilePath, emitFilesSeen);
|
|
119116
119044
|
});
|
|
119117
119045
|
}
|
|
119118
|
-
if (options.plugins && !shouldAllowPlugins(options)) {
|
|
119119
|
-
for (const plugin of options.plugins) {
|
|
119120
|
-
if (plugin.type === void 0)
|
|
119121
|
-
continue;
|
|
119122
|
-
programDiagnostics.add(createCompilerDiagnostic(Diagnostics.Option_allowPlugins_must_be_specified_when_compiler_plugins_are_present));
|
|
119123
|
-
break;
|
|
119124
|
-
}
|
|
119125
|
-
}
|
|
119126
119046
|
function verifyEmitFilePath(emitFileName, emitFilesSeen) {
|
|
119127
119047
|
if (emitFileName) {
|
|
119128
119048
|
const emitFilePath = toPath3(emitFileName);
|
|
@@ -126211,7 +126131,6 @@ ${lanes.join("\n")}
|
|
|
126211
126131
|
"src/compiler/_namespaces/ts.ts"() {
|
|
126212
126132
|
"use strict";
|
|
126213
126133
|
init_corePublic();
|
|
126214
|
-
init_pluginUtilities();
|
|
126215
126134
|
init_core();
|
|
126216
126135
|
init_debug();
|
|
126217
126136
|
init_semver();
|
|
@@ -170566,7 +170485,6 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
170566
170485
|
getTypeNodeIfAccessible: () => getTypeNodeIfAccessible,
|
|
170567
170486
|
getTypeParameterFromJsDoc: () => getTypeParameterFromJsDoc,
|
|
170568
170487
|
getTypeParameterOwner: () => getTypeParameterOwner,
|
|
170569
|
-
getTypeScriptNamespace: () => getTypeScriptNamespace,
|
|
170570
170488
|
getTypesPackageName: () => getTypesPackageName,
|
|
170571
170489
|
getUILocale: () => getUILocale,
|
|
170572
170490
|
getUniqueName: () => getUniqueName,
|
|
@@ -171350,7 +171268,6 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
171350
171268
|
memoizeCached: () => memoizeCached,
|
|
171351
171269
|
memoizeOne: () => memoizeOne,
|
|
171352
171270
|
memoizeWeak: () => memoizeWeak,
|
|
171353
|
-
mergeCustomTransformers: () => mergeCustomTransformers,
|
|
171354
171271
|
metadataHelper: () => metadataHelper,
|
|
171355
171272
|
min: () => min,
|
|
171356
171273
|
minAndMax: () => minAndMax,
|
|
@@ -171582,11 +171499,9 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
171582
171499
|
setTextRangePosWidth: () => setTextRangePosWidth,
|
|
171583
171500
|
setTokenSourceMapRange: () => setTokenSourceMapRange,
|
|
171584
171501
|
setTypeNode: () => setTypeNode,
|
|
171585
|
-
setTypeScriptNamespace: () => setTypeScriptNamespace,
|
|
171586
171502
|
setUILocale: () => setUILocale,
|
|
171587
171503
|
setValueDeclaration: () => setValueDeclaration,
|
|
171588
171504
|
shouldAllowImportingTsExtension: () => shouldAllowImportingTsExtension,
|
|
171589
|
-
shouldAllowPlugins: () => shouldAllowPlugins,
|
|
171590
171505
|
shouldPreserveConstEnums: () => shouldPreserveConstEnums,
|
|
171591
171506
|
shouldResolveJsRequire: () => shouldResolveJsRequire,
|
|
171592
171507
|
shouldUseUriStyleNodeCoreModules: () => shouldUseUriStyleNodeCoreModules,
|
|
@@ -171808,8 +171723,6 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
171808
171723
|
init_ts3();
|
|
171809
171724
|
init_ts4();
|
|
171810
171725
|
init_ts5();
|
|
171811
|
-
init_ts6();
|
|
171812
|
-
setTypeScriptNamespace("typescript", ts_exports2);
|
|
171813
171726
|
}
|
|
171814
171727
|
});
|
|
171815
171728
|
|
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.2";
|
|
57
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
57
|
+
var version = `${versionMajorMinor}.0-insiders.20230517`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
|
@@ -6722,7 +6722,6 @@ var Diagnostics = {
|
|
|
6722
6722
|
Compiles_the_current_project_with_additional_settings: diag(6929, 3 /* Message */, "Compiles_the_current_project_with_additional_settings_6929", "Compiles the current project, with additional settings."),
|
|
6723
6723
|
true_for_ES2022_and_above_including_ESNext: diag(6930, 3 /* Message */, "true_for_ES2022_and_above_including_ESNext_6930", "`true` for ES2022 and above, including ESNext."),
|
|
6724
6724
|
List_of_file_name_suffixes_to_search_when_resolving_a_module: diag(6931, 1 /* Error */, "List_of_file_name_suffixes_to_search_when_resolving_a_module_6931", "List of file name suffixes to search when resolving a module."),
|
|
6725
|
-
Option_allowPlugins_must_be_specified_when_compiler_plugins_are_present: diag(6932, 1 /* Error */, "Option_allowPlugins_must_be_specified_when_compiler_plugins_are_present_6932", "Option '--allowPlugins' must be specified when compiler plugins are present."),
|
|
6726
6725
|
Variable_0_implicitly_has_an_1_type: diag(7005, 1 /* Error */, "Variable_0_implicitly_has_an_1_type_7005", "Variable '{0}' implicitly has an '{1}' type."),
|
|
6727
6726
|
Parameter_0_implicitly_has_an_1_type: diag(7006, 1 /* Error */, "Parameter_0_implicitly_has_an_1_type_7006", "Parameter '{0}' implicitly has an '{1}' type."),
|
|
6728
6727
|
Member_0_implicitly_has_an_1_type: diag(7008, 1 /* Error */, "Member_0_implicitly_has_an_1_type_7008", "Member '{0}' implicitly has an '{1}' type."),
|
|
@@ -25671,15 +25670,6 @@ var commonOptionsWithBuild = [
|
|
|
25671
25670
|
isCommandLineOnly: true,
|
|
25672
25671
|
description: Diagnostics.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,
|
|
25673
25672
|
defaultValueDescription: Diagnostics.Platform_specific
|
|
25674
|
-
},
|
|
25675
|
-
{
|
|
25676
|
-
name: "allowPlugins",
|
|
25677
|
-
type: "boolean",
|
|
25678
|
-
affectsSemanticDiagnostics: true,
|
|
25679
|
-
affectsEmit: true,
|
|
25680
|
-
affectsBuildInfo: true,
|
|
25681
|
-
defaultValueDescription: void 0,
|
|
25682
|
-
isCommandLineOnly: true
|
|
25683
25673
|
}
|
|
25684
25674
|
];
|
|
25685
25675
|
var targetOptionDeclaration = {
|
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": "5.2.0-pr-
|
|
5
|
+
"version": "5.2.0-pr-54290-7",
|
|
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": "3c09ef8d3d79da4855445a72635bedf36080857b"
|
|
118
118
|
}
|