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

BREAKING(ini): reduce options for stringify, make FormattingOptions type private #5572

Merged
merged 4 commits into from
Jul 30, 2024

Conversation

kt3k
Copy link
Member

@kt3k kt3k commented Jul 29, 2024

This PR removes commentChar, assignment, and deduplicate options from stringfiy options.

  • deduplicate is no longer relevant as we dropped the support of IniMap, which was only meaningful with IniMap
  • commentChar is no longer relevant as stringify doesn't support comments in output.
  • Dropped assignment option as = seems the only common character for assignment in INI.

This PR also make FormattingOptions private as it's no longer reasonable to keep it public.

related #5562

@github-actions github-actions bot added the ini label Jul 29, 2024
@kt3k kt3k changed the title BREAKING(ini): reduce options for stringify, make FormattingOptions type private BREAKING(ini): reduce options for stringify, make FormattingOptions type private Jul 29, 2024
@kt3k kt3k marked this pull request as draft July 29, 2024 10:58
Copy link

codecov bot commented Jul 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.49%. Comparing base (7fa0c2d) to head (a0ebf32).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5572      +/-   ##
==========================================
- Coverage   96.49%   96.49%   -0.01%     
==========================================
  Files         465      465              
  Lines       37772    37770       -2     
  Branches     5580     5578       -2     
==========================================
- Hits        36447    36445       -2     
  Misses       1283     1283              
  Partials       42       42              

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

@kt3k kt3k marked this pull request as ready for review July 29, 2024 11:07
Copy link
Contributor

@iuioiua iuioiua left a comment

Choose a reason for hiding this comment

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

Nice. We should clean up any logic in IniMap, as a result of these changes, either in this PR or a follow-up.

ini/stringify.ts Outdated Show resolved Hide resolved
ini/stringify.ts Outdated Show resolved Hide resolved
kt3k and others added 2 commits July 30, 2024 11:27
Co-authored-by: Asher Gomez <[email protected]>
Co-authored-by: Asher Gomez <[email protected]>
@kt3k kt3k merged commit aa8bb2b into denoland:main Jul 30, 2024
13 checks passed
@kt3k kt3k deleted the reduce-stringify-options branch July 30, 2024 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants