Skip to content

feat: add es2026 as a valid target and lib - #64096

Open
Oleksandr Tarasiuk (a-tarasyuk) wants to merge 1 commit into
microsoft:mainfrom
a-tarasyuk:feat/63704
Open

feat: add es2026 as a valid target and lib#64096
Oleksandr Tarasiuk (a-tarasyuk) wants to merge 1 commit into
microsoft:mainfrom
a-tarasyuk:feat/63704

Conversation

@a-tarasyuk

Copy link
Copy Markdown
Contributor

Fixes #63704

@typescript-automation typescript-automation Bot added the For Milestone Bug PRs that fix a bug with a specific milestone label Aug 30, 2026
@a-tarasyuk
Oleksandr Tarasiuk (a-tarasyuk) marked this pull request as ready for review August 31, 2026 21:27
Copilot AI balanced review requested due to automatic review settings August 31, 2026 21:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds ES2026 compiler-target and standard-library support, including the APIs requested by #63704.

Changes:

  • Registers es2026 as a target, default standard target, and library.
  • Adds ES2026 API declarations and preserves esnext.* aliases.
  • Adds conformance tests and refreshes generated baselines.

Reviewed changes

Copilot reviewed 136 out of 540 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/typescript/src/enums/scriptTarget*.ts Exposes ES2026 publicly.
packages/typescript/test/{async,sync}/api.test.ts Updates target diagnostics.
tsc/internal/core/{compileroptions,scripttarget_stringer_generated}.go Defines and formats the target.
tsc/internal/tsoptions/enummaps.go Registers target, libraries, and compatibility aliases.
tsc/internal/transformers/estransforms/definitions.go Selects the ES2026 transform pipeline.
tsc/internal/checker/utilities.go Adds ES2026 library suggestions.
tsc/internal/bundled/libs/lib.es2026*.d.ts Defines the ES2026 library and APIs.
tsc/internal/bundled/libs/lib.esnext.d.ts Makes ESNext inherit ES2026.
tsc/internal/bundled/{embed_generated,libs_generated}.go Embeds and registers new libraries.
tsc/internal/compiler/program_test.go Updates expected ESNext library ordering.
tsc/testdata/fixtures/compiler/*.ts Synchronizes compiler fixtures.
tsc/testdata/tests/cases/conformance/es2026/*.ts Tests ES2026 APIs and diagnostics.
tsc/testdata/baselines/reference/** Refreshes generated compiler, build, watch, API, and conformance baselines.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

For Milestone Bug PRs that fix a bug with a specific milestone

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add es2026 as valid target and lib

3 participants