Repository navigation
v2.1.41
Update dependency cheerio to v1.1.2
Notable changes
- Fix fromURL baseURI issues by @fb55 in #4696
- Fix Undici issues (#4689)
91a2b3d - fix(attributes): support
.propon document nodes by @fb55 in #4320 - fix(types): fix ExtractedValue type by @ben-tilden in #4334
- Add a field
browsertopackage.jsonroot by @UNIDY2002 in #4033 - Upgraded dependencies
- docs(blog): fix loading documents url by @TonyRL in #4002
- docs: fix function load() link by @ya-luotao in #4013
- docs: correct loadBuffer() name in example by @arichardsmith in #4270
- Update attr setter jsdoc by @thyming in #4469
- docs: use code block for install, mention yarn and bun by @Electroid in #4454
- docs: Replace
.htmlwith.propfor outerHTML by @fb55 in #4321 - @TonyRL made their first contribution in #4002
- @ya-luotao made their first contribution in #4013
- @arichardsmith made their first contribution in #4270
- @UNIDY2002 made their first contribution in #4033
- @AzeemSup made their first contribution in #4189
- @ben-tilden made their first contribution in #4334
- @Electroid made their first contribution in #4454
- @thyming made their first contribution in #4469
- The minimum NodeJS version is now 18.17 or higher #3959
- Import paths were simplified. For example, use
cheerio/sliminstead of - The deprecated default Cheerio instance and static methods were removed. #3974
- Node types previously re-exported by Cheerio must now be imported directly
- htmlparser2 options now reside exclusively under the
xmlkey (#2916): - Add functions to load buffers, streams & URLs in NodeJS by @fb55 in #2857
- Add extract method by @fb55 in #2750
- Allow imports of
cheerio/utilsby @blixt in #2601 - Allow empty string in
data, and simplify by @fb55 in #2818 - Make
closestbe able to start from text nodes by @Qualtagh in #2811 - Fix potential github action smells by @ceddy4395 in #3826
- Cheerio has a new website, featuring updated API docs and guides! #2950
cheeriojs/cheerio (cheerio)
v1.1.2
What's Changed
Full Changelog: cheeriojs/cheerio@v1.1.1...v1.1.2
v1.1.1
v1.1.0
What's Changed
- fix(attributes): support
.propon document nodes by @fb55 in #4320 - fix(types): fix ExtractedValue type by @ben-tilden in #4334
- Add a field
browsertopackage.jsonroot by @UNIDY2002 in #4033 - Upgraded dependencies
Doc Improvements
- docs(blog): fix loading documents url by @TonyRL in #4002
- docs: fix function load() link by @ya-luotao in #4013
- docs: correct loadBuffer() name in example by @arichardsmith in #4270
- Update attr setter jsdoc by @thyming in #4469
- docs: use code block for install, mention yarn and bun by @Electroid in #4454
- docs: Replace
.htmlwith.propfor outerHTML by @fb55 in #4321
New Contributors
- @TonyRL made their first contribution in #4002
- @ya-luotao made their first contribution in #4013
- @arichardsmith made their first contribution in #4270
- @UNIDY2002 made their first contribution in #4033
- @AzeemSup made their first contribution in #4189
- @ben-tilden made their first contribution in #4334
- @Electroid made their first contribution in #4454
- @thyming made their first contribution in #4469
Full Changelog: cheeriojs/cheerio@v1.0.0...v1.1.0
v1.0.0
Cheerio 1.0 is here! 🎉
Announcement Blog Post
Breaking Changes
-
The minimum NodeJS version is now 18.17 or higher #3959
-
Import paths were simplified. For example, use
cheerio/sliminstead of
cheerio/lib/slim. #3970 -
The deprecated default Cheerio instance and static methods were removed. #3974
Before, it was possible to write code like this:
import cheerio, { html } from 'cheerio'; html(cheerio('<test></test>')); // ~ '<test></test>' -- NO LONGER WORKS
Make sure to always load documents first:
import * as cheerio from 'cheerio'; cheerio.load('<test></test>').html();
-
Node types previously re-exported by Cheerio must now be imported directly
from (domhandler)(https://github.com/fb55/domhandler). #3969 -
htmlparser2 options now reside exclusively under the
xmlkey (#2916):const $ = cheerio.load('<html>', { xml: { withStartIndices: true, }, });
New Features
- Add functions to load buffers, streams & URLs in NodeJS by @fb55 in #2857
- Add extract method by @fb55 in #2750
Fixes
- Allow imports of
cheerio/utilsby @blixt in #2601 - Allow empty string in
data, and simplify by @fb55 in #2818 - Make
closestbe able to start from text nodes by @Qualtagh in #2811 - Fix potential github action smells by @ceddy4395 in #3826
Other
- Cheerio has a new website, featuring updated API docs and guides! #2950
Full Changelog: cheeriojs/cheerio@v1.0.0-rc.12...v1.0.0
List of commits
d54d37d (Update dependency cheerio to v1.1.2, 2025-09-28)