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(type): Make iterators compatible with TS 5.6 --target ESNext #8279

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

andersk
Copy link
Contributor

@andersk andersk commented Oct 31, 2024

Summary

Use ReturnType<> to avoid explicitly naming the types of builtin iterators that have changed in 5.6, and convert manually implemented iterators to generators so they are compatible with builtin iterators under --target ESNext.

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@CLAassistant
Copy link

CLAassistant commented Oct 31, 2024

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot added the release: bug fix release: bug related release(mr only) label Oct 31, 2024
Copy link

netlify bot commented Oct 31, 2024

Deploy Preview for rspack canceled.

Built without sensitive environment variables

Name Link
🔨 Latest commit 433a989
🔍 Latest deploy log https://app.netlify.com/sites/rspack/deploys/6722ed7701b76800080755a0

@chenjiahan chenjiahan requested a review from SoonIter October 31, 2024 02:15
Use ReturnType<> to avoid explicitly naming the types of builtin
iterators that have changed in 5.6, and convert manually implemented
iterators to generators so they are compatible with builtin iterators
under --target ESNext.

Fixes part of web-infra-dev#8277.

Signed-off-by: Anders Kaseorg <[email protected]>
Copy link
Member

@SoonIter SoonIter left a comment

Choose a reason for hiding this comment

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

LGTM, thanks❤️️

@SoonIter SoonIter enabled auto-merge (squash) October 31, 2024 03:34
@SoonIter SoonIter merged commit dfde1fd into web-infra-dev:main Oct 31, 2024
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release: bug fix release: bug related release(mr only)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants