@@ -146,7 +146,8 @@ export const inverseJsxOptionMap: Map<string, string> = new Map(mapIterator(jsxO
146
146
// augmented in another lib.
147
147
// NOTE: We must reevaluate the target for upcoming features when each successive TC39 edition is ratified in
148
148
// June of each year. This includes changes to `LanguageFeatureMinimumTarget`, `ScriptTarget`,
149
- // transformers/esnext.ts, commandLineParser.ts, and the contents of each lib/esnext.*.d.ts file.
149
+ // `ScriptTargetFeatures` transformers/esnext.ts, compiler/commandLineParser.ts and the contents of each
150
+ // lib/esnext.*.d.ts file.
150
151
const libEntries : [ string , string ] [ ] = [
151
152
// JavaScript only
152
153
[ "es5" , "lib.es5.d.ts" ] ,
@@ -161,6 +162,7 @@ const libEntries: [string, string][] = [
161
162
[ "es2021" , "lib.es2021.d.ts" ] ,
162
163
[ "es2022" , "lib.es2022.d.ts" ] ,
163
164
[ "es2023" , "lib.es2023.d.ts" ] ,
165
+ [ "es2024" , "lib.es2024.d.ts" ] ,
164
166
[ "esnext" , "lib.esnext.d.ts" ] ,
165
167
// Host only
166
168
[ "dom" , "lib.dom.d.ts" ] ,
@@ -183,6 +185,7 @@ const libEntries: [string, string][] = [
183
185
[ "es2015.symbol.wellknown" , "lib.es2015.symbol.wellknown.d.ts" ] ,
184
186
[ "es2016.array.include" , "lib.es2016.array.include.d.ts" ] ,
185
187
[ "es2016.intl" , "lib.es2016.intl.d.ts" ] ,
188
+ [ "es2017.arraybuffer" , "lib.es2017.arraybuffer.d.ts" ] ,
186
189
[ "es2017.date" , "lib.es2017.date.d.ts" ] ,
187
190
[ "es2017.object" , "lib.es2017.object.d.ts" ] ,
188
191
[ "es2017.sharedmemory" , "lib.es2017.sharedmemory.d.ts" ] ,
@@ -215,12 +218,18 @@ const libEntries: [string, string][] = [
215
218
[ "es2022.error" , "lib.es2022.error.d.ts" ] ,
216
219
[ "es2022.intl" , "lib.es2022.intl.d.ts" ] ,
217
220
[ "es2022.object" , "lib.es2022.object.d.ts" ] ,
218
- [ "es2022.sharedmemory" , "lib.es2022.sharedmemory.d.ts" ] ,
219
221
[ "es2022.string" , "lib.es2022.string.d.ts" ] ,
220
222
[ "es2022.regexp" , "lib.es2022.regexp.d.ts" ] ,
221
223
[ "es2023.array" , "lib.es2023.array.d.ts" ] ,
222
224
[ "es2023.collection" , "lib.es2023.collection.d.ts" ] ,
223
225
[ "es2023.intl" , "lib.es2023.intl.d.ts" ] ,
226
+ [ "es2024.arraybuffer" , "lib.es2024.arraybuffer.d.ts" ] ,
227
+ [ "es2024.collection" , "lib.es2024.collection.d.ts" ] ,
228
+ [ "es2024.object" , "lib.es2024.object.d.ts" ] ,
229
+ [ "es2024.promise" , "lib.es2024.promise.d.ts" ] ,
230
+ [ "es2024.regexp" , "lib.es2024.regexp.d.ts" ] ,
231
+ [ "es2024.sharedmemory" , "lib.es2024.sharedmemory.d.ts" ] ,
232
+ [ "es2024.string" , "lib.es2024.string.d.ts" ] ,
224
233
[ "esnext.array" , "lib.es2023.array.d.ts" ] ,
225
234
[ "esnext.collection" , "lib.esnext.collection.d.ts" ] ,
226
235
[ "esnext.symbol" , "lib.es2019.symbol.d.ts" ] ,
@@ -229,13 +238,13 @@ const libEntries: [string, string][] = [
229
238
[ "esnext.disposable" , "lib.esnext.disposable.d.ts" ] ,
230
239
[ "esnext.bigint" , "lib.es2020.bigint.d.ts" ] ,
231
240
[ "esnext.string" , "lib.es2022.string.d.ts" ] ,
232
- [ "esnext.promise" , "lib.esnext .promise.d.ts" ] ,
241
+ [ "esnext.promise" , "lib.es2024 .promise.d.ts" ] ,
233
242
[ "esnext.weakref" , "lib.es2021.weakref.d.ts" ] ,
234
243
[ "esnext.decorators" , "lib.esnext.decorators.d.ts" ] ,
235
- [ "esnext.object" , "lib.esnext .object.d.ts" ] ,
244
+ [ "esnext.object" , "lib.es2024 .object.d.ts" ] ,
236
245
[ "esnext.array" , "lib.esnext.array.d.ts" ] ,
237
- [ "esnext.regexp" , "lib.esnext .regexp.d.ts" ] ,
238
- [ "esnext.string" , "lib.esnext .string.d.ts" ] ,
246
+ [ "esnext.regexp" , "lib.es2024 .regexp.d.ts" ] ,
247
+ [ "esnext.string" , "lib.es2024 .string.d.ts" ] ,
239
248
[ "esnext.iterator" , "lib.esnext.iterator.d.ts" ] ,
240
249
[ "decorators" , "lib.decorators.d.ts" ] ,
241
250
[ "decorators.legacy" , "lib.decorators.legacy.d.ts" ] ,
@@ -558,6 +567,7 @@ export const targetOptionDeclaration: CommandLineOptionOfCustomType = {
558
567
es2021 : ScriptTarget . ES2021 ,
559
568
es2022 : ScriptTarget . ES2022 ,
560
569
es2023 : ScriptTarget . ES2023 ,
570
+ es2024 : ScriptTarget . ES2024 ,
561
571
esnext : ScriptTarget . ESNext ,
562
572
} ) ) ,
563
573
affectsSourceFile : true ,
0 commit comments