Skip to content

feat(fmt): remove UTF-8 BOM instead of maintaining it #29796

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

Merged
merged 5 commits into from
Jun 28, 2025

Conversation

kingsword09
Copy link
Contributor

closes: #29790

@bartlomieju bartlomieju requested a review from dsherret June 18, 2025 07:55
@kingsword09
Copy link
Contributor Author

I have restored the FileContents struct as suggested. Please help review if this is the correct modification. Thank you!

@kingsword09 kingsword09 force-pushed the feat-fmt-remove-utf8-bom branch from 566f981 to 5e09624 Compare June 18, 2025 15:56
@dsherret dsherret self-requested a review June 18, 2025 22:14
Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! I don't believe the previous state of the fix addressed the issue when actually running with deno fmt and deno fmt --check. Due to time constraints and I want this in 2.4, I updated this PR to make it work in integration. I also added some integration tests.

@dsherret dsherret added this to the 2.4.0 milestone Jun 28, 2025
@dsherret dsherret merged commit 64525d2 into denoland:main Jun 28, 2025
30 of 35 checks passed
@kingsword09 kingsword09 deleted the feat-fmt-remove-utf8-bom branch June 28, 2025 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

deno fmt - remove UTF-8 BOM instead of maintaining it
2 participants