microsoft / microsoft/TypeScript

Add `es2026` as valid `target` and `lib`

Abierto
#63,704 2 comentarios 6 reacciones 1 asignado Ver en GitHub

@DanielRosenwasser ya está trabajando en esto.

Desde el 28/8/2026.

Committed Domain: lib.d.ts ES Next Suggestion
Lenguaje dominante
Go
Estrellas
111k
Forks
14.3k
Merge medio
2 d 4 h
PR fusionados (30 d)
132

Descripción

To quote the spec:

ECMAScript 2026, the 17th edition, added Math.sumPrecise for summing an iterable of Numbers of varying magnitude while minimizing precision loss; Iterator.concat for sequencing iterators; Array.fromAsync for constructing Arrays from async iterables and other async sources; Error.isError for identifying error objects; methods to Map.prototype and WeakMap.prototype for providing a default value to use during retrieval when a key is not already present; methods to Uint8Array for converting to and from Strings of hexadecimal- and base64-encoded binary data; a parameter to JSON.parse revivers to access the matched segment of JSON source; and JSON.rawJSON for fine control over JSON.stringify output for primitive values.

We need to add the following:

  • Math.sumPrecise
  • Iterator.concat
  • JSON.rawJSON
  • An overload(?) for JSON.stringify

The following must be moved to an es2026 lib:

  • Error.isError
  • Map.prototype.*
    • getOrInsert
    • getOrInsertComputed
  • WeakMap.prototype.*
    • getOrInsert
    • getOrInsertComputed
  • Uint8Array.prototype.*
    • toBase64
    • setFromBase64
    • toHex
    • setFromHex
  • Uint8Array.fromHex
  • Uint8Array.fromBase64
  • Array.fromAsync

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.