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(build): update to support strictBuiltinIteratorReturn #10394

Merged
merged 3 commits into from
Aug 20, 2024

Conversation

rbuckton
Copy link
Contributor

Please describe the changes this PR makes and why it should be merged:

This updates the build to be forwards compatible with microsoft/TypeScript#58243, which uses a stricter return type for built-in iterators under the new strictBuiltinIteratorReturn option, which is enabled by default when building with strict.

Status and versioning classification:

  • Code changes have been tested against the Discord API, or there are no code changes
  • I know how to update typings and have done so, or typings don't need updating

Copy link

vercel bot commented Jul 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
discord-js ⬜️ Ignored (Inspect) Visit Preview Aug 20, 2024 10:14am
discord-js-guide ⬜️ Ignored (Inspect) Visit Preview Aug 20, 2024 10:14am

@rbuckton
Copy link
Contributor Author

I've filed this as a Draft PR in the event there are any other changes to microsoft/TypeScript#58243 that must be addressed. Once that PR has merged, I will mark this PR as "Ready for review".

@Renegade334
Copy link
Contributor

Duplicate of #10260. I don't mind which is kept.

Copy link

codecov bot commented Jul 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 50.91%. Comparing base (1b1ae2f) to head (a81adc1).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #10394   +/-   ##
=======================================
  Coverage   50.91%   50.91%           
=======================================
  Files         228      228           
  Lines       20750    20750           
  Branches     1258     1258           
=======================================
  Hits        10565    10565           
  Misses      10141    10141           
  Partials       44       44           
Flag Coverage Δ
collection 100.00% <100.00%> (ø)
proxy 78.52% <ø> (ø)
rest 92.68% <ø> (ø)
ws 51.82% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rbuckton rbuckton marked this pull request as ready for review July 19, 2024 21:02
@rbuckton rbuckton requested a review from a team as a code owner July 19, 2024 21:02
didinele

This comment was marked as resolved.

Co-authored-by: René <9092381+Renegade334@users.noreply.github.com>
@almeidx almeidx added this to the collection 2.2.0 milestone Aug 20, 2024
@kodiakhq kodiakhq bot merged commit bf83db9 into discordjs:main Aug 20, 2024
24 checks passed
nyapat pushed a commit to nyapat/discord.js that referenced this pull request Sep 9, 2024
…10394)

* fix(build): update to support strictBuiltinIteratorReturn

* types: assert Value to be identical to InitialValue

Co-authored-by: René <9092381+Renegade334@users.noreply.github.com>

---------

Co-authored-by: ckohen <chaikohen@gmail.com>
Co-authored-by: René <9092381+Renegade334@users.noreply.github.com>
Co-authored-by: Almeida <github@almeidx.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

9 participants