Upgrading cheerio 0.2 to 0.3
Breaking0.2.2 → 0.3.2Breaking1Changed1Fixed1Other2
BreakingUpgrade verdict
1 breaking change.
In plain terms
- The .dom() method on selections is gone; use .get() instead. The global $.dom() is unchanged.
Must act 1 item needs code or config changes
Adds cheerio-soupselect 0.0.x, htmlparser2 1.x.
Drops htmlparser, soupselect.
Installs 7 packages in all (was 237).
Also installs domelementtype, domhandler, domutils.
No longer installs @babel/code-frame, @babel/generator, @babel/helper-globals, @babel/helper-string-parser, @babel/helper-validator-identifier, @babel/parser, @babel/template, @babel/traverse, @babel/types, @jridgewell/gen-mapping, @jridgewell/resolve-uri, @jridgewell/sourcemap-codec, @jridgewell/trace-mapping, ajv, ansi-regex and 205 more.
What you must change
Breaking1
Removes $('...').dom() in favor of $('...').get(); $.dom() still works the same.
$('...').dom()$('...').get()$.dom()