microsoft / microsoft/TypeScript

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

オープン
#63,704 コメント 2 件 リアクション 6 件 担当者 1 名 GitHub で見る

@DanielRosenwasser がすでに取り組んでいます。

2026年8月28日 から。

Committed Domain: lib.d.ts ES Next Suggestion
主要言語
Go
スター
111k
フォーク
14.3k
平均マージ
2日 4時間
マージ済み PR(30日)
132

説明

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。