Skip to content
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

Fix library inclusions for ES2024 target #60622

Merged
merged 5 commits into from
Dec 3, 2024

Conversation

billyjanitsch
Copy link
Contributor

Fixes #60621.

@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Nov 26, 2024
@typescript-bot typescript-bot added For Milestone Bug PRs that fix a bug with a specific milestone and removed For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Nov 27, 2024
@billyjanitsch
Copy link
Contributor Author

@microsoft-github-policy-service agree

Copy link
Member

@jakebailey jakebailey left a comment

Choose a reason for hiding this comment

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

Seems correct to me.

Comment on lines 148 to +151
// NOTE: We must reevaluate the target for upcoming features when each successive TC39 edition is ratified in
// June of each year. This includes changes to `LanguageFeatureMinimumTarget`, `ScriptTarget`,
// `ScriptTargetFeatures` transformers/esnext.ts, compiler/commandLineParser.ts and the contents of each
// lib/esnext.*.d.ts file.
// `ScriptTargetFeatures` transformers/esnext.ts, compiler/commandLineParser.ts,
// compiler/utilitiesPublic.ts, and the contents of each lib/esnext.*.d.ts file.
Copy link
Contributor

@petamoriken petamoriken Nov 28, 2024

Choose a reason for hiding this comment

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

@billyjanitsch Sorry for the lack of information 🙇

NOTE comments exist in multiple files and I would like to have them updated as well:

  • src/compiler/types.ts (two places)
  • src/compiler/utilities.ts
  • src/compiler/transformers/esnext.ts

Also, please add these comments to src/compiler/utilitiesPublic.ts.

@rbuckton
Copy link
Member

rbuckton commented Dec 3, 2024

@DanielRosenwasser should we take this as part of a patch to 5.7 or leave it for 5.8?

@rbuckton rbuckton merged commit 6f75783 into microsoft:main Dec 3, 2024
32 checks passed
@jakebailey
Copy link
Member

I definitely think we should backport this, given ES2024 is not functional without it.

@typescript-bot cherry-pick this to release-5.7

@typescript-bot
Copy link
Collaborator

typescript-bot commented Dec 4, 2024

Starting jobs; this comment will be updated as builds start and complete.

Command Status Results
cherry-pick this to release-5.7 ✅ Started ✅ Results

@typescript-bot
Copy link
Collaborator

Hey, @jakebailey! I've created #60681 for you. This involved updating baselines; please check the diff.

DanielRosenwasser pushed a commit that referenced this pull request Dec 6, 2024
…e-5.7 (#60681)

Co-authored-by: Billy Janitsch <billyjanitsch@gmail.com>
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
Status: Done
Development

Successfully merging this pull request may close these issues.

target: 'ES2024' does not include library definitions
5 participants