typescript 5.6.0-dev.20240619 → 5.6.0-dev.20240621
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 +65 -14
- package/lib/typescript.js +67 -15
- package/package.json +3 -3
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.20240621`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -12834,7 +12834,11 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
12834
12834
|
],
|
|
12835
12835
|
es2023: [
|
|
12836
12836
|
"findLastIndex",
|
|
12837
|
-
"findLast"
|
|
12837
|
+
"findLast",
|
|
12838
|
+
"toReversed",
|
|
12839
|
+
"toSorted",
|
|
12840
|
+
"toSpliced",
|
|
12841
|
+
"with"
|
|
12838
12842
|
]
|
|
12839
12843
|
})),
|
|
12840
12844
|
Iterator: new Map(Object.entries({
|
|
@@ -13111,7 +13115,11 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
13111
13115
|
],
|
|
13112
13116
|
es2023: [
|
|
13113
13117
|
"findLastIndex",
|
|
13114
|
-
"findLast"
|
|
13118
|
+
"findLast",
|
|
13119
|
+
"toReversed",
|
|
13120
|
+
"toSorted",
|
|
13121
|
+
"toSpliced",
|
|
13122
|
+
"with"
|
|
13115
13123
|
]
|
|
13116
13124
|
})),
|
|
13117
13125
|
Uint8Array: new Map(Object.entries({
|
|
@@ -13120,7 +13128,11 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
13120
13128
|
],
|
|
13121
13129
|
es2023: [
|
|
13122
13130
|
"findLastIndex",
|
|
13123
|
-
"findLast"
|
|
13131
|
+
"findLast",
|
|
13132
|
+
"toReversed",
|
|
13133
|
+
"toSorted",
|
|
13134
|
+
"toSpliced",
|
|
13135
|
+
"with"
|
|
13124
13136
|
]
|
|
13125
13137
|
})),
|
|
13126
13138
|
Uint8ClampedArray: new Map(Object.entries({
|
|
@@ -13129,7 +13141,11 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
13129
13141
|
],
|
|
13130
13142
|
es2023: [
|
|
13131
13143
|
"findLastIndex",
|
|
13132
|
-
"findLast"
|
|
13144
|
+
"findLast",
|
|
13145
|
+
"toReversed",
|
|
13146
|
+
"toSorted",
|
|
13147
|
+
"toSpliced",
|
|
13148
|
+
"with"
|
|
13133
13149
|
]
|
|
13134
13150
|
})),
|
|
13135
13151
|
Int16Array: new Map(Object.entries({
|
|
@@ -13138,7 +13154,11 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
13138
13154
|
],
|
|
13139
13155
|
es2023: [
|
|
13140
13156
|
"findLastIndex",
|
|
13141
|
-
"findLast"
|
|
13157
|
+
"findLast",
|
|
13158
|
+
"toReversed",
|
|
13159
|
+
"toSorted",
|
|
13160
|
+
"toSpliced",
|
|
13161
|
+
"with"
|
|
13142
13162
|
]
|
|
13143
13163
|
})),
|
|
13144
13164
|
Uint16Array: new Map(Object.entries({
|
|
@@ -13147,7 +13167,11 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
13147
13167
|
],
|
|
13148
13168
|
es2023: [
|
|
13149
13169
|
"findLastIndex",
|
|
13150
|
-
"findLast"
|
|
13170
|
+
"findLast",
|
|
13171
|
+
"toReversed",
|
|
13172
|
+
"toSorted",
|
|
13173
|
+
"toSpliced",
|
|
13174
|
+
"with"
|
|
13151
13175
|
]
|
|
13152
13176
|
})),
|
|
13153
13177
|
Int32Array: new Map(Object.entries({
|
|
@@ -13156,7 +13180,11 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
13156
13180
|
],
|
|
13157
13181
|
es2023: [
|
|
13158
13182
|
"findLastIndex",
|
|
13159
|
-
"findLast"
|
|
13183
|
+
"findLast",
|
|
13184
|
+
"toReversed",
|
|
13185
|
+
"toSorted",
|
|
13186
|
+
"toSpliced",
|
|
13187
|
+
"with"
|
|
13160
13188
|
]
|
|
13161
13189
|
})),
|
|
13162
13190
|
Uint32Array: new Map(Object.entries({
|
|
@@ -13165,7 +13193,11 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
13165
13193
|
],
|
|
13166
13194
|
es2023: [
|
|
13167
13195
|
"findLastIndex",
|
|
13168
|
-
"findLast"
|
|
13196
|
+
"findLast",
|
|
13197
|
+
"toReversed",
|
|
13198
|
+
"toSorted",
|
|
13199
|
+
"toSpliced",
|
|
13200
|
+
"with"
|
|
13169
13201
|
]
|
|
13170
13202
|
})),
|
|
13171
13203
|
Float32Array: new Map(Object.entries({
|
|
@@ -13174,7 +13206,11 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
13174
13206
|
],
|
|
13175
13207
|
es2023: [
|
|
13176
13208
|
"findLastIndex",
|
|
13177
|
-
"findLast"
|
|
13209
|
+
"findLast",
|
|
13210
|
+
"toReversed",
|
|
13211
|
+
"toSorted",
|
|
13212
|
+
"toSpliced",
|
|
13213
|
+
"with"
|
|
13178
13214
|
]
|
|
13179
13215
|
})),
|
|
13180
13216
|
Float64Array: new Map(Object.entries({
|
|
@@ -13183,7 +13219,11 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
13183
13219
|
],
|
|
13184
13220
|
es2023: [
|
|
13185
13221
|
"findLastIndex",
|
|
13186
|
-
"findLast"
|
|
13222
|
+
"findLast",
|
|
13223
|
+
"toReversed",
|
|
13224
|
+
"toSorted",
|
|
13225
|
+
"toSpliced",
|
|
13226
|
+
"with"
|
|
13187
13227
|
]
|
|
13188
13228
|
})),
|
|
13189
13229
|
BigInt64Array: new Map(Object.entries({
|
|
@@ -13193,7 +13233,11 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
13193
13233
|
],
|
|
13194
13234
|
es2023: [
|
|
13195
13235
|
"findLastIndex",
|
|
13196
|
-
"findLast"
|
|
13236
|
+
"findLast",
|
|
13237
|
+
"toReversed",
|
|
13238
|
+
"toSorted",
|
|
13239
|
+
"toSpliced",
|
|
13240
|
+
"with"
|
|
13197
13241
|
]
|
|
13198
13242
|
})),
|
|
13199
13243
|
BigUint64Array: new Map(Object.entries({
|
|
@@ -13203,7 +13247,11 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
13203
13247
|
],
|
|
13204
13248
|
es2023: [
|
|
13205
13249
|
"findLastIndex",
|
|
13206
|
-
"findLast"
|
|
13250
|
+
"findLast",
|
|
13251
|
+
"toReversed",
|
|
13252
|
+
"toSorted",
|
|
13253
|
+
"toSpliced",
|
|
13254
|
+
"with"
|
|
13207
13255
|
]
|
|
13208
13256
|
})),
|
|
13209
13257
|
Error: new Map(Object.entries({
|
|
@@ -120143,7 +120191,10 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
120143
120191
|
if (!options.lib) {
|
|
120144
120192
|
return equalityComparer(file.fileName, getDefaultLibraryFileName());
|
|
120145
120193
|
} else {
|
|
120146
|
-
return some(options.lib, (libFileName) =>
|
|
120194
|
+
return some(options.lib, (libFileName) => {
|
|
120195
|
+
const resolvedLib = resolvedLibReferences.get(libFileName);
|
|
120196
|
+
return !!resolvedLib && equalityComparer(file.fileName, resolvedLib.actual);
|
|
120197
|
+
});
|
|
120147
120198
|
}
|
|
120148
120199
|
}
|
|
120149
120200
|
function getTypeChecker() {
|
package/lib/typescript.js
CHANGED
|
@@ -2377,7 +2377,7 @@ module.exports = __toCommonJS(typescript_exports);
|
|
|
2377
2377
|
|
|
2378
2378
|
// src/compiler/corePublic.ts
|
|
2379
2379
|
var versionMajorMinor = "5.6";
|
|
2380
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
2380
|
+
var version = `${versionMajorMinor}.0-dev.20240621`;
|
|
2381
2381
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2382
2382
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2383
2383
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -16668,7 +16668,11 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
16668
16668
|
],
|
|
16669
16669
|
es2023: [
|
|
16670
16670
|
"findLastIndex",
|
|
16671
|
-
"findLast"
|
|
16671
|
+
"findLast",
|
|
16672
|
+
"toReversed",
|
|
16673
|
+
"toSorted",
|
|
16674
|
+
"toSpliced",
|
|
16675
|
+
"with"
|
|
16672
16676
|
]
|
|
16673
16677
|
})),
|
|
16674
16678
|
Iterator: new Map(Object.entries({
|
|
@@ -16945,7 +16949,11 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
16945
16949
|
],
|
|
16946
16950
|
es2023: [
|
|
16947
16951
|
"findLastIndex",
|
|
16948
|
-
"findLast"
|
|
16952
|
+
"findLast",
|
|
16953
|
+
"toReversed",
|
|
16954
|
+
"toSorted",
|
|
16955
|
+
"toSpliced",
|
|
16956
|
+
"with"
|
|
16949
16957
|
]
|
|
16950
16958
|
})),
|
|
16951
16959
|
Uint8Array: new Map(Object.entries({
|
|
@@ -16954,7 +16962,11 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
16954
16962
|
],
|
|
16955
16963
|
es2023: [
|
|
16956
16964
|
"findLastIndex",
|
|
16957
|
-
"findLast"
|
|
16965
|
+
"findLast",
|
|
16966
|
+
"toReversed",
|
|
16967
|
+
"toSorted",
|
|
16968
|
+
"toSpliced",
|
|
16969
|
+
"with"
|
|
16958
16970
|
]
|
|
16959
16971
|
})),
|
|
16960
16972
|
Uint8ClampedArray: new Map(Object.entries({
|
|
@@ -16963,7 +16975,11 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
16963
16975
|
],
|
|
16964
16976
|
es2023: [
|
|
16965
16977
|
"findLastIndex",
|
|
16966
|
-
"findLast"
|
|
16978
|
+
"findLast",
|
|
16979
|
+
"toReversed",
|
|
16980
|
+
"toSorted",
|
|
16981
|
+
"toSpliced",
|
|
16982
|
+
"with"
|
|
16967
16983
|
]
|
|
16968
16984
|
})),
|
|
16969
16985
|
Int16Array: new Map(Object.entries({
|
|
@@ -16972,7 +16988,11 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
16972
16988
|
],
|
|
16973
16989
|
es2023: [
|
|
16974
16990
|
"findLastIndex",
|
|
16975
|
-
"findLast"
|
|
16991
|
+
"findLast",
|
|
16992
|
+
"toReversed",
|
|
16993
|
+
"toSorted",
|
|
16994
|
+
"toSpliced",
|
|
16995
|
+
"with"
|
|
16976
16996
|
]
|
|
16977
16997
|
})),
|
|
16978
16998
|
Uint16Array: new Map(Object.entries({
|
|
@@ -16981,7 +17001,11 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
16981
17001
|
],
|
|
16982
17002
|
es2023: [
|
|
16983
17003
|
"findLastIndex",
|
|
16984
|
-
"findLast"
|
|
17004
|
+
"findLast",
|
|
17005
|
+
"toReversed",
|
|
17006
|
+
"toSorted",
|
|
17007
|
+
"toSpliced",
|
|
17008
|
+
"with"
|
|
16985
17009
|
]
|
|
16986
17010
|
})),
|
|
16987
17011
|
Int32Array: new Map(Object.entries({
|
|
@@ -16990,7 +17014,11 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
16990
17014
|
],
|
|
16991
17015
|
es2023: [
|
|
16992
17016
|
"findLastIndex",
|
|
16993
|
-
"findLast"
|
|
17017
|
+
"findLast",
|
|
17018
|
+
"toReversed",
|
|
17019
|
+
"toSorted",
|
|
17020
|
+
"toSpliced",
|
|
17021
|
+
"with"
|
|
16994
17022
|
]
|
|
16995
17023
|
})),
|
|
16996
17024
|
Uint32Array: new Map(Object.entries({
|
|
@@ -16999,7 +17027,11 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
16999
17027
|
],
|
|
17000
17028
|
es2023: [
|
|
17001
17029
|
"findLastIndex",
|
|
17002
|
-
"findLast"
|
|
17030
|
+
"findLast",
|
|
17031
|
+
"toReversed",
|
|
17032
|
+
"toSorted",
|
|
17033
|
+
"toSpliced",
|
|
17034
|
+
"with"
|
|
17003
17035
|
]
|
|
17004
17036
|
})),
|
|
17005
17037
|
Float32Array: new Map(Object.entries({
|
|
@@ -17008,7 +17040,11 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
17008
17040
|
],
|
|
17009
17041
|
es2023: [
|
|
17010
17042
|
"findLastIndex",
|
|
17011
|
-
"findLast"
|
|
17043
|
+
"findLast",
|
|
17044
|
+
"toReversed",
|
|
17045
|
+
"toSorted",
|
|
17046
|
+
"toSpliced",
|
|
17047
|
+
"with"
|
|
17012
17048
|
]
|
|
17013
17049
|
})),
|
|
17014
17050
|
Float64Array: new Map(Object.entries({
|
|
@@ -17017,7 +17053,11 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
17017
17053
|
],
|
|
17018
17054
|
es2023: [
|
|
17019
17055
|
"findLastIndex",
|
|
17020
|
-
"findLast"
|
|
17056
|
+
"findLast",
|
|
17057
|
+
"toReversed",
|
|
17058
|
+
"toSorted",
|
|
17059
|
+
"toSpliced",
|
|
17060
|
+
"with"
|
|
17021
17061
|
]
|
|
17022
17062
|
})),
|
|
17023
17063
|
BigInt64Array: new Map(Object.entries({
|
|
@@ -17027,7 +17067,11 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
17027
17067
|
],
|
|
17028
17068
|
es2023: [
|
|
17029
17069
|
"findLastIndex",
|
|
17030
|
-
"findLast"
|
|
17070
|
+
"findLast",
|
|
17071
|
+
"toReversed",
|
|
17072
|
+
"toSorted",
|
|
17073
|
+
"toSpliced",
|
|
17074
|
+
"with"
|
|
17031
17075
|
]
|
|
17032
17076
|
})),
|
|
17033
17077
|
BigUint64Array: new Map(Object.entries({
|
|
@@ -17037,7 +17081,11 @@ var getScriptTargetFeatures = /* @__PURE__ */ memoize(
|
|
|
17037
17081
|
],
|
|
17038
17082
|
es2023: [
|
|
17039
17083
|
"findLastIndex",
|
|
17040
|
-
"findLast"
|
|
17084
|
+
"findLast",
|
|
17085
|
+
"toReversed",
|
|
17086
|
+
"toSorted",
|
|
17087
|
+
"toSpliced",
|
|
17088
|
+
"with"
|
|
17041
17089
|
]
|
|
17042
17090
|
})),
|
|
17043
17091
|
Error: new Map(Object.entries({
|
|
@@ -125262,7 +125310,10 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
125262
125310
|
if (!options.lib) {
|
|
125263
125311
|
return equalityComparer(file.fileName, getDefaultLibraryFileName());
|
|
125264
125312
|
} else {
|
|
125265
|
-
return some(options.lib, (libFileName) =>
|
|
125313
|
+
return some(options.lib, (libFileName) => {
|
|
125314
|
+
const resolvedLib = resolvedLibReferences.get(libFileName);
|
|
125315
|
+
return !!resolvedLib && equalityComparer(file.fileName, resolvedLib.actual);
|
|
125316
|
+
});
|
|
125266
125317
|
}
|
|
125267
125318
|
}
|
|
125268
125319
|
function getTypeChecker() {
|
|
@@ -141758,8 +141809,9 @@ interface Symbol {
|
|
|
141758
141809
|
readonly [Symbol.toStringTag]: string;
|
|
141759
141810
|
}`;
|
|
141760
141811
|
var barebonesLibName = "lib.d.ts";
|
|
141761
|
-
var barebonesLibSourceFile
|
|
141812
|
+
var barebonesLibSourceFile;
|
|
141762
141813
|
function transpileWorker(input, transpileOptions, declaration) {
|
|
141814
|
+
barebonesLibSourceFile ?? (barebonesLibSourceFile = createSourceFile(barebonesLibName, barebonesLibContent, { languageVersion: 99 /* Latest */ }));
|
|
141763
141815
|
const diagnostics = [];
|
|
141764
141816
|
const options = transpileOptions.compilerOptions ? fixupCompilerOptions(transpileOptions.compilerOptions, diagnostics) : {};
|
|
141765
141817
|
const defaultOptions = getDefaultCompilerOptions2();
|
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.20240621",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"playwright": "^1.44.1",
|
|
77
77
|
"source-map-support": "^0.5.21",
|
|
78
78
|
"tslib": "^2.6.3",
|
|
79
|
-
"typescript": "^5.
|
|
79
|
+
"typescript": "^5.5.2",
|
|
80
80
|
"which": "^3.0.1"
|
|
81
81
|
},
|
|
82
82
|
"overrides": {
|
|
@@ -110,5 +110,5 @@
|
|
|
110
110
|
"node": "20.1.0",
|
|
111
111
|
"npm": "8.19.4"
|
|
112
112
|
},
|
|
113
|
-
"gitHead": "
|
|
113
|
+
"gitHead": "327bd0990f2ce3a7062f4c9bf0b8027cc44b2f4f"
|
|
114
114
|
}
|