cheerio icon indicating copy to clipboard operation
cheerio copied to clipboard

Please do not tag release candidate as latest

Open clayrisser opened this issue 6 years ago • 4 comments

1.0.0-rc.2 has bugs and should not be tagged as latest. Please tag it as next, and tag 0.22.0 as latest.

This issue is in response to #1260

clayrisser avatar Dec 14 '18 09:12 clayrisser

I agree. Only stable releases should be tagged as latest. This tiny detail was breaking our new project when installing latest from npm.

pgarciacamou avatar Dec 15 '18 09:12 pgarciacamou

Hey folks,

Apologies for the issues during this transition period. Parse5 will solve a lot of outstanding bugs since it behaves more like the browser, but it is a breaking change for sure.

We're going to continue to support htmlparser2 because there are lots of cases where the browser/Parse5's "tree correction" is not what you want or expect. If you prefer to use htmlparser2's parser you can do:

const dom = htmlparser2.parseDOM(file.contents, options)
const $ = cheerio.load(dom)

matthewmueller avatar Dec 27 '18 10:12 matthewmueller

Can anyone help with how to configure Enzyme to accept the htmlparser2: true option?

astrotim avatar Mar 28 '19 05:03 astrotim

@astrotim I opened an issue with enzyme about this as it seemed noone had yet: https://github.com/airbnb/enzyme/issues/2299

0xdevalias avatar Nov 28 '19 20:11 0xdevalias