microsoft / microsoft/TypeScript

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

Aperta
#63,704 2 commenti 6 reazioni 1 assegnatario Vedi su GitHub

@DanielRosenwasser ci sta già lavorando.

Dal 28/8/2026.

Committed Domain: lib.d.ts ES Next Suggestion
Lingua principale
Go
Stelle
111k
Fork
14.3k
Merge medio
2g 4h
PR unite (30g)
132

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.