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 ParseOptions.legacy option #5229

Merged
merged 1 commit into from
Jul 2, 2024
Merged

Conversation

iuioiua
Copy link
Collaborator

@iuioiua iuioiua commented Jul 1, 2024

What's changed

The ParseOptions.legacy option has been removed.

Motivation

Setting this option to true allowed documents adhering to versions <1.2 of the YAML specification. v1.2 of the YAML spec was published in 2009 (15 years ago). It's fair to say that most, if not, all, YAML use these days adheres to >=v1.2 of the spec, making this option redundant.

Migration guide

This option only affected those who have the option set to true and are adhering to YAML spec version <1.2. If you require this feature, use @std/yaml@0.224.3, as this is the last version containing this feature. Otherwise, we recommend updating your document to use the latest version of the YAML spec.

@iuioiua iuioiua requested a review from kt3k as a code owner July 1, 2024 09:50
@iuioiua iuioiua changed the title BREAKING(yaml): remove ParseOptions.legacy BREAKING(yaml): remove ParseOptions.legacy option Jul 1, 2024
@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 (19be4f8) to head (cce31e4).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5229      +/-   ##
==========================================
- Coverage   94.82%   94.82%   -0.01%     
==========================================
  Files         461      461              
  Lines       38089    38086       -3     
  Branches     5514     5514              
==========================================
- Hits        36118    36115       -3     
  Misses       1933     1933              
  Partials       38       38              

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

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.

LGTM

@iuioiua iuioiua merged commit cadf85c into main Jul 2, 2024
17 checks passed
@iuioiua iuioiua deleted the yaml-remove-legacy branch July 2, 2024 01:58
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