Skip to content

Commit b044cfa

Browse files
authored
release: 2.0.0 (#275)
1 parent 2afd8c9 commit b044cfa

4 files changed

Lines changed: 20 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# Mercury Parser Changelog
22

3+
### 2.0.0 (Feb 13, 2019)
4+
5+
##### Commits
6+
7+
- [[`2afd8c9fa8`](https://github.com/postlight/mercury-parser/commit/2afd8c9fa8)] - **fix**: jquery doesn't like the case insensitive selector (#274) (Adam Pash)
8+
- [[`9bf88b0ba3`](https://github.com/postlight/mercury-parser/commit/9bf88b0ba3)] - **chore**: refactor format output adjustments (#272) (Adam Pash)
9+
- [[`867623ab33`](https://github.com/postlight/mercury-parser/commit/867623ab33)] - **chore**: add files to package.json (#269) (David Brownman)
10+
- [[`ab56ce0de3`](https://github.com/postlight/mercury-parser/commit/ab56ce0de3)] - **fix**: custom parser generator (#271) (Adam Pash)
11+
- [[`0e27448866`](https://github.com/postlight/mercury-parser/commit/0e27448866)] - **feat**: Various Character Encoding Improvements (#270) (Ben Ubois)
12+
- [[`b3fa18b6d9`](https://github.com/postlight/mercury-parser/commit/b3fa18b6d9)] - **docs**: delete extra semicolon (#266) (Madison Kanna)
13+
- [[`e033835c72`](https://github.com/postlight/mercury-parser/commit/e033835c72)] - **fix**: parse signature in cli (#259) (Adam Pash)
14+
- [[`32748ad4c5`](https://github.com/postlight/mercury-parser/commit/32748ad4c5)] - **dx**: add .prettierignore (#258) (Adam Pash)
15+
- [[`2d0f10a888`](https://github.com/postlight/mercury-parser/commit/2d0f10a888)] - **dx**: add .prettierignore (#257) (Adam Pash)
16+
- [[`9b0664bc91`](https://github.com/postlight/mercury-parser/commit/9b0664bc91)] - **feat**: add content format output options (#256) (Adam Pash)
17+
- [[`a57f29eec3`](https://github.com/postlight/mercury-parser/commit/a57f29eec3)] - **release**: 1.1.1 (#254) (Adam Pash)
18+
319
### 1.1.1 (Feb 7, 2019)
420

521
##### Commits

dist/mercury.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1705,7 +1705,8 @@ var Resource = {
17051705
var decodedContent = iconv.decode(content, encoding);
17061706
var $ = cheerio.load(decodedContent); // after first cheerio.load, check to see if encoding matches
17071707

1708-
var metaContentType = $('meta[http-equiv=content-type i]').attr('content') || $('meta[charset]').attr('charset');
1708+
var contentTypeSelector = cheerio.browser ? 'meta[http-equiv=content-type]' : 'meta[http-equiv=content-type i]';
1709+
var metaContentType = $(contentTypeSelector).attr('content') || $('meta[charset]').attr('charset');
17091710
var properEncoding = getEncoding(metaContentType); // if encodings in the header/body dont match, use the one in the body
17101711

17111712
if (metaContentType && properEncoding !== encoding) {

dist/mercury.web.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@postlight/mercury-parser",
3-
"version": "1.1.1",
3+
"version": "2.0.0",
44
"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.",
55
"author": "Postlight <mercury@postlight.com>",
66
"homepage": "https://mercury.postlight.com",

0 commit comments

Comments
 (0)