-
Notifications
You must be signed in to change notification settings - Fork 13.8k
feat: add es2026 as a valid target and lib #64096
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Oleksandr Tarasiuk (a-tarasyuk)
wants to merge
14
commits into
microsoft:main
Choose a base branch
from
a-tarasyuk:feat/63704
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+7,189
−5,182
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
a022dd9
feat: add es2026 as a valid target and lib
a-tarasyuk 6d0205a
Merge branch 'main' into feat/63704
a-tarasyuk 2bba2a4
Merge branch 'main' of https://github.com/microsoft/TypeScript into f…
a-tarasyuk fb73068
Merge branch 'main' into feat/63704
a-tarasyuk 43135e9
restore spec wording for Error.isError
a-tarasyuk 2099baf
clean up es2026 lib
a-tarasyuk 97f4eae
Merge branch 'feat/63704' of https://github.com/a-tarasyuk/TypeScript…
a-tarasyuk bba9bbb
update baseline
a-tarasyuk 4e61768
Merge branch 'main' of https://github.com/microsoft/TypeScript into f…
a-tarasyuk 3d4c1c1
add a private field to RawJSON
a-tarasyuk acabd00
Merge branch 'main' of https://github.com/microsoft/TypeScript into f…
a-tarasyuk 5af4a72
update baseline
a-tarasyuk c6f0b6e
use a plain interface for RawJSON
a-tarasyuk 565aad9
Merge branch 'main' of https://github.com/microsoft/TypeScript into f…
a-tarasyuk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| /*! ***************************************************************************** | ||
| Copyright (c) Microsoft Corporation. All rights reserved. | ||
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use | ||
| this file except in compliance with the License. You may obtain a copy of the | ||
| License at http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED | ||
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, | ||
| MERCHANTABILITY OR NON-INFRINGEMENT. | ||
|
|
||
| See the Apache Version 2.0 License for specific language governing permissions | ||
| and limitations under the License. | ||
| ***************************************************************************** */ | ||
|
|
||
|
|
||
| /// <reference lib="es2025" /> | ||
| /// <reference lib="es2026.array" /> | ||
| /// <reference lib="es2026.collection" /> | ||
| /// <reference lib="es2026.error" /> | ||
| /// <reference lib="es2026.iterator" /> | ||
| /// <reference lib="es2026.json" /> | ||
| /// <reference lib="es2026.math" /> | ||
| /// <reference lib="es2026.typedarrays" /> |
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| /*! ***************************************************************************** | ||
| Copyright (c) Microsoft Corporation. All rights reserved. | ||
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use | ||
| this file except in compliance with the License. You may obtain a copy of the | ||
| License at http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED | ||
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, | ||
| MERCHANTABILITY OR NON-INFRINGEMENT. | ||
|
|
||
| See the Apache Version 2.0 License for specific language governing permissions | ||
| and limitations under the License. | ||
| ***************************************************************************** */ | ||
|
|
||
|
|
||
| /// <reference lib="es2026" /> | ||
| /// <reference lib="dom" /> | ||
| /// <reference lib="webworker.importscripts" /> | ||
| /// <reference lib="scripthost" /> | ||
| /// <reference lib="dom.iterable" /> | ||
| /// <reference lib="dom.asynciterable" /> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| /*! ***************************************************************************** | ||
| Copyright (c) Microsoft Corporation. All rights reserved. | ||
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use | ||
| this file except in compliance with the License. You may obtain a copy of the | ||
| License at http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED | ||
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, | ||
| MERCHANTABILITY OR NON-INFRINGEMENT. | ||
|
|
||
| See the Apache Version 2.0 License for specific language governing permissions | ||
| and limitations under the License. | ||
| ***************************************************************************** */ | ||
|
|
||
|
|
||
| /// <reference lib="es2025.iterator" /> | ||
|
|
||
| interface IteratorConstructor { | ||
| /** | ||
| * Creates an iterator that yields the values of each iterable in sequence. | ||
| * @param iterables Iterable objects to concatenate. | ||
| */ | ||
| concat<T extends readonly unknown[] | []>(...iterables: { -readonly [K in keyof T]: Iterable<T[K]> & object }): IteratorObject<T[number], undefined, unknown>; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| /*! ***************************************************************************** | ||
| Copyright (c) Microsoft Corporation. All rights reserved. | ||
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use | ||
| this file except in compliance with the License. You may obtain a copy of the | ||
| License at http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED | ||
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, | ||
| MERCHANTABILITY OR NON-INFRINGEMENT. | ||
|
|
||
| See the Apache Version 2.0 License for specific language governing permissions | ||
| and limitations under the License. | ||
| ***************************************************************************** */ | ||
|
|
||
|
|
||
| /** | ||
| * A frozen object containing JSON text for a primitive value, created by `JSON.rawJSON()`. | ||
| */ | ||
| interface RawJSON { | ||
| readonly rawJSON: string; | ||
| } | ||
|
|
||
| interface JSON { | ||
| /** | ||
| * Converts a JavaScript Object Notation (JSON) string into an object. | ||
| * @param text A valid JSON string. | ||
| * @param reviver A function that transforms the results. This function is called for each member of the object. | ||
| * If a member contains nested objects, the nested objects are transformed before the parent object is. | ||
| * The context object has a `source` property when the property is unmodified and its value is primitive. | ||
| * @throws {SyntaxError} If `text` is not valid JSON. | ||
| */ | ||
| parse(text: string, reviver: (this: any, key: string, value: any, context: { source?: string }) => any): any; | ||
|
|
||
| /** | ||
| * Creates a frozen object containing JSON text for a primitive value. | ||
| * @param text Valid JSON text representing a string, number, boolean, or null value. | ||
| * @throws {SyntaxError} If `text` is not valid JSON text for a primitive value. | ||
| */ | ||
| rawJSON(text: string): RawJSON; | ||
|
|
||
| /** | ||
| * Indicates whether the provided value is an object returned by `JSON.rawJSON()`. | ||
| * @param value The value to test. | ||
| */ | ||
| isRawJSON(value: unknown): value is RawJSON; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| /*! ***************************************************************************** | ||
| Copyright (c) Microsoft Corporation. All rights reserved. | ||
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use | ||
| this file except in compliance with the License. You may obtain a copy of the | ||
| License at http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED | ||
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, | ||
| MERCHANTABILITY OR NON-INFRINGEMENT. | ||
|
|
||
| See the Apache Version 2.0 License for specific language governing permissions | ||
| and limitations under the License. | ||
| ***************************************************************************** */ | ||
|
|
||
|
|
||
| /// <reference lib="es2015.iterable" /> | ||
|
|
||
| interface Math { | ||
| /** | ||
| * Sums the values in an iterable while minimizing loss of precision. | ||
| * @param items An iterable of numbers to sum. | ||
| * @throws {TypeError} If `items` is not iterable or contains a value that is not a number. | ||
| * @throws {RangeError} If `items` contains 2^53 or more values. | ||
| */ | ||
| sumPrecise(items: Iterable<number>): number; | ||
| } |
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note to myself, we need a CI / generate check to verify the contents of these
.fullfiles now, I think?