unifiedjs / unified

☔️ interface for parsing, inspecting, transforming, and serializing content through syntax trees
https://unifiedjs.com
MIT License
4.49k stars 110 forks source link

Fix to set `vfile.value` if a vfile@5 is given #143

Closed wooorm closed 3 years ago

wooorm commented 3 years ago

Initial checklist

Description of changes

vfile@5 changed from the contents to the value field. Given that not all of the ecosystem has updated yet, and that some version mismatches will occur for the foreseeable future, setting bothcontents*and*value` in those cases will hopefully alleviate some of the struggles with updating.

Related to remarkjs/remark-frontmatter#16.

codecov-commenter commented 3 years ago

Codecov Report

Merging #143 (2244176) into v9 (60de570) will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##                v9      #143   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines          456       460    +4     
=========================================
+ Hits           456       460    +4     
Impacted Files Coverage Δ
index.js 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 60de570...2244176. Read the comment docs.