You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+27Lines changed: 27 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,36 @@
1
1
# Mercury Parser Changelog
2
2
3
+
### 2.2.0 (Sept 10, 2019)
4
+
5
+
##### Commits
6
+
7
+
-[[`e12c916499`](https://github.com/postlight/mercury-parser/commit/e12c916499)] - **feat**: ability to add custom extractors via api (#484) (Michael Ashley)
-[[`2422e4717d`](https://github.com/postlight/mercury-parser/commit/2422e4717d)] - **fix**: incorrect parsing on medium.com (#477) (Michael Ashley)
10
+
-[[`2bed238b68`](https://github.com/postlight/mercury-parser/commit/2bed238b68)] - chore(package): update inquirer to version 7.0.0 (#479) (greenkeeper[bot])
11
+
-[[`869e44a69f`](https://github.com/postlight/mercury-parser/commit/869e44a69f)] - chore(package): update karma-chrome-launcher to version 3.0.0 (#458) (greenkeeper[bot])
12
+
-[[`e4a7a288e5`](https://github.com/postlight/mercury-parser/commit/e4a7a288e5)] - chore(package): update eslint-config-prettier to version 6.1.0 (#476) (greenkeeper[bot])
-[[`398cba4d66`](https://github.com/postlight/mercury-parser/commit/398cba4d66)] - chore(deps): bump lodash.merge from 4.6.1 to 4.6.2 (#456) (dependabot[bot])
20
+
-[[`90e208ea13`](https://github.com/postlight/mercury-parser/commit/90e208ea13)] - chore(deps): bump cached-path-relative from 1.0.0 to 1.0.2 (#472) (dependabot[bot])
21
+
-[[`5bb7c58e95`](https://github.com/postlight/mercury-parser/commit/5bb7c58e95)] - chore(deps): bump merge from 1.2.0 to 1.2.1 (#473) (dependabot[bot])
22
+
-[[`ce572f3a28`](https://github.com/postlight/mercury-parser/commit/ce572f3a28)] - chore(package): update brfs-babel to version 2.0.0 (#461) (greenkeeper[bot])
23
+
-[[`6f65702a6c`](https://github.com/postlight/mercury-parser/commit/6f65702a6c)] - Update moment-timezone to the latest version 🚀 (#455) (greenkeeper[bot])
24
+
-[[`c764cebc0c`](https://github.com/postlight/mercury-parser/commit/c764cebc0c)] - chore(package): update remark-cli to version 7.0.0 (#460) (greenkeeper[bot])
25
+
-[[`853e041d84`](https://github.com/postlight/mercury-parser/commit/853e041d84)] - **deps**: update husky to the latest version 🚀 (#450) (greenkeeper[bot])
26
+
-[[`f42f81218b`](https://github.com/postlight/mercury-parser/commit/f42f81218b)] - **deps**: update iconv-lite to the latest version 🚀 (#447) (greenkeeper[bot])
27
+
-[[`592f175270`](https://github.com/postlight/mercury-parser/commit/592f175270)] - **tests**: remove a duplicate test (#448) (Kirill Danshin)
-[[`c11b85f405`](https://github.com/postlight/mercury-parser/commit/c11b85f405)] - **deps**: update eslint-config-prettier to version 5.0.0 (#441) (greenkeeper[bot])
8
35
-[[`3b0d5fed69`](https://github.com/postlight/mercury-parser/commit/3b0d5fed69)] - **chore**: prevent adding phantomjs-prebuilt as a dependency in CI. (#412) (Jaen)
9
36
-[[`939d181951`](https://github.com/postlight/mercury-parser/commit/939d181951)] - **fix**: support query strings in lazy-loaded srcsets (#387) (Toufic Mouallem)
_opts$fetchAllPages=opts.fetchAllPages,fetchAllPages=_opts$fetchAllPages===void0 ? true : _opts$fetchAllPages,_opts$fallback=opts.fallback,fallback=_opts$fallback===void0 ? true : _opts$fallback,_opts$contentType=opts.contentType,contentType=_opts$contentType===void0 ? 'html' : _opts$contentType,_opts$headers=opts.headers,headers=_opts$headers===void0 ? {} : _opts$headers,extend=opts.extend;// if no url was passed and this is the browser version,
7629
+
_opts$fetchAllPages=opts.fetchAllPages,fetchAllPages=_opts$fetchAllPages===void0 ? true : _opts$fetchAllPages,_opts$fallback=opts.fallback,fallback=_opts$fallback===void0 ? true : _opts$fallback,_opts$contentType=opts.contentType,contentType=_opts$contentType===void0 ? 'html' : _opts$contentType,_opts$headers=opts.headers,headers=_opts$headers===void0 ? {} : _opts$headers,extend=opts.extend,customExtractor=opts.customExtractor;// if no url was passed and this is the browser version,
7550
7630
// set url to window.location.href and load the html
7551
7631
// from the current page
7552
7632
@@ -7583,6 +7663,11 @@ var Mercury = {
7583
7663
return_context.abrupt("return",$);
7584
7664
7585
7665
case11:
7666
+
// Add custom extractor via cli.
7667
+
if(customExtractor){
7668
+
addExtractor(customExtractor);
7669
+
}
7670
+
7586
7671
Extractor=getExtractor(url,parsedUrl,$);// console.log(`Using extractor for ${Extractor.domain}`);
7587
7672
// if html still has not been set (i.e., url passed to Mercury.parse),
7588
7673
// set html from the response of Resource.create
@@ -7618,11 +7703,11 @@ var Mercury = {
7618
7703
_result=result,title=_result.title,next_page_url=_result.next_page_url;// Fetch more pages if next_page_url found
Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "@postlight/mercury-parser",
3
-
"version": "2.1.1",
3
+
"version": "2.2.0",
4
4
"description": "Mercury transforms web pages into clean text. Publishers and programmers use it to make the web make sense, and readers use it to read any web article comfortably.",
0 commit comments