Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

[chore] Use marked v4 #2731

Open
wants to merge 1 commit into
base: dependabot/npm_and_yarn/marked-4.0.10
Choose a base branch
from

Conversation

icecream17
Copy link
Contributor

@icecream17 icecream17 commented Jan 15, 2022

Please be sure to read the contributor's guide to the GitHub package before submitting any pull requests.

Requirements

  • Filling out the template is required. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.

Description of the Change

Copied from icecream17#2

Actually updating to v4.0.10
The only relevant breaking change: https://github.com/markedjs/marked/releases/tag/v4.0.0
is that the default export is removed: ({marked} = require('marked'))

Parens are required to make it not a SyntaxError.

Only other change is that the docs: https://marked.js.org/using_advanced
recommend using sanitize on the output instead of in the options

The tests should pass (except for the ones that failed in #2724): icecream17#2

Although I don't know why there's more coverage

Screenshot or Gif

Applicable Issues

Copied from #2

Actually updating to v4.0.10
The only relevant breaking change: https://github.com/markedjs/marked/releases/tag/v4.0.0 
is that the default export is removed: `({marked} = require('marked'))`

Parens are required to make it not a SyntaxError.

Only other change is that the docs: https://marked.js.org/using_advanced
recommend using sanitize on the output instead of in the options
@codecov
Copy link

codecov bot commented Jan 15, 2022

Codecov Report

Merging #2731 (02e6dda) into dependabot/npm_and_yarn/marked-4.0.10 (b5629b6) will increase coverage by 0.04%.
The diff coverage is 100.00%.

Impacted file tree graph

@@                            Coverage Diff                            @@
##           dependabot/npm_and_yarn/marked-4.0.10    #2731      +/-   ##
=========================================================================
+ Coverage                                  93.43%   93.47%   +0.04%     
=========================================================================
  Files                                        237      237              
  Lines                                      13213    13212       -1     
  Branches                                    1900     1900              
=========================================================================
+ Hits                                       12345    12350       +5     
+ Misses                                       868      862       -6     
Impacted Files Coverage Δ
lib/helpers.js 89.25% <100.00%> (+0.36%) ⬆️
lib/git-shell-out-strategy.js 100.00% <0.00%> (+0.18%) ⬆️
lib/controllers/reviews-controller.js 100.00% <0.00%> (+1.75%) ⬆️
lib/views/github-dotcom-markdown.js 100.00% <0.00%> (+1.85%) ⬆️
lib/atom/gutter.js 92.85% <0.00%> (+2.38%) ⬆️

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 b5629b6...02e6dda. Read the comment docs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant