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(yaml): remove filename option from parse() and stringify() #5223

Merged
merged 3 commits into from
Jul 1, 2024

Conversation

iuioiua
Copy link
Contributor

@iuioiua iuioiua commented Jul 1, 2024

What's changed

The ParseOptions.filename and StringifyOptions.filename options have been removed.

Motivation

These options were removed as, in most cases, their functionality is redundant - stating the filename in question, if defined. By default, this value is undefined.

Migration guide

This change only affects users who previously used these options. If you require this feature, use @std/[email protected], as this is the last version containing this feature.

@github-actions github-actions bot added the yaml label Jul 1, 2024
Copy link

codecov bot commented Jul 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.82%. Comparing base (335e073) to head (dde61ea).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5223   +/-   ##
=======================================
  Coverage   94.81%   94.82%           
=======================================
  Files         461      461           
  Lines       38099    38089   -10     
  Branches     5515     5514    -1     
=======================================
- Hits        36125    36118    -7     
+ Misses       1936     1933    -3     
  Partials       38       38           

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

@iuioiua iuioiua marked this pull request as ready for review July 1, 2024 07:17
@iuioiua iuioiua requested a review from kt3k as a code owner July 1, 2024 07:17
Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

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

Probably a redundant option to keep as our API only works with input strings, not input files. Let's remove.

LGTM

@iuioiua iuioiua merged commit 19be4f8 into main Jul 1, 2024
18 checks passed
@iuioiua iuioiua deleted the yaml-filename branch July 1, 2024 09:30
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