microsoft / microsoft/TypeScript
Add `es2026` as valid `target` and `lib`
@DanielRosenwasser ya está trabajando en esto.
Desde el 28/8/2026.
- 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.sumPrecisefor summing an iterable of Numbers of varying magnitude while minimizing precision loss;Iterator.concatfor sequencing iterators;Array.fromAsyncfor constructing Arrays from async iterables and other async sources;Error.isErrorfor identifying error objects; methods toMap.prototypeandWeakMap.prototypefor providing a default value to use during retrieval when a key is not already present; methods toUint8Arrayfor converting to and from Strings of hexadecimal- and base64-encoded binary data; a parameter toJSON.parserevivers to access the matched segment of JSON source; andJSON.rawJSONfor fine control overJSON.stringifyoutput for primitive values.
We need to add the following:
Math.sumPreciseIterator.concatJSON.rawJSON- An overload(?) for
JSON.stringify
The following must be moved to an es2026 lib:
Error.isErrorMap.prototype.*getOrInsertgetOrInsertComputed
WeakMap.prototype.*getOrInsertgetOrInsertComputed
Uint8Array.prototype.*toBase64setFromBase64toHexsetFromHex
Uint8Array.fromHexUint8Array.fromBase64Array.fromAsync
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Evaluación
Este issue todavía no se ha evaluado.