Skip to content

Commit

Permalink
Upgrade to cheerio v1
Browse files Browse the repository at this point in the history
This version of cheerio already 1 year published with latest tag.

Here are changes
https://github.com/cheeriojs/cheerio/blob/v1.0.0-rc.3/History.md#100-rc2--2017-07-02
  • Loading branch information
TrySound committed Jul 8, 2020
1 parent ec41c65 commit 0ea9842
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 86 deletions.
4 changes: 2 additions & 2 deletions lib/cheerio.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ var cheerio = require('cheerio');
var utils = require('./utils');

var cheerioLoad = function(html, options, encodeEntities) {
options = Object.assign({decodeEntities: false}, options);
options = Object.assign({decodeEntities: false, _useHtmlParser2:true}, options);
html = encodeEntities(html);
return cheerio.load(html,options);
return cheerio.load(html, options);
};

var createEntityConverters = function () {
Expand Down
122 changes: 39 additions & 83 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"types": "juice.d.ts",
"dependencies": {
"cheerio": "^0.22.0",
"cheerio": "^1.0.0-rc.3",
"commander": "^2.15.1",
"mensch": "^0.3.4",
"slick": "^1.12.2",
Expand Down

0 comments on commit 0ea9842

Please sign in to comment.