microsoft / microsoft/TypeScript
Add `es2026` as valid `target` and `lib`
@DanielRosenwasser ci sta già lavorando.
Dal 28/8/2026.
- 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.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
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.