Compare Versions - domhandler
npm / domhandler / Compare Versions
What's Changed
Full Changelog: https://github.com/fb55/domhandler/compare/v6.0.0...v6.0.1
What's Changed
BREAKING: domhandler is now ESM-only https://github.com/fb55/domhandler/pull/1867
Full Changelog: https://github.com/fb55/domhandler/compare/v5.0.3...v6.0.0
- fix: Allow
Documentto be aChildNode02387d3
- Fixed
ChildNodeas a tagged union d7f9a0f
- Fixed
isCommentreturn type b87ed12
Breaking:
- Removed the deprecated
normalizeWhitespaceoption (#614) 6503e2d - Updated nodes to use tagged unions for node types (#804) acc934b
- This might break some TypeScript code
Features:
- Added an ESM build (#806) 5582477
What's Changed
- fix(node): Correct parse5 location types (0fcbbb8)
Full Changelog: https://github.com/fb55/domhandler/compare/v4.3.0...v4.3.1
- Add missing
Nodeproperties from parse5, add docs 3be6f56
A breaking change was introduced in 4.2.1 that should have been a major version bump. This reverts this change.
- Revert "refactor: Remove deprecated
normalizeWhitespaceoption (#614)" a841df3
- BREAKING, REVERTED IN
4.2.2: Removed the deprecatednormalizeWhitespaceoption (#614) 018ddf9- This should not have been part of this release.
4.2.2adds the option again.
- This should not have been part of this release.
Fixes:
- fix: Update end index for text events (#621) d88e5b0
- fix: Have
isTextreturn whether the node is a text node c323224
Diverse:
- Add descriptions for Node classes 2475d2e
New features:
- Node improvements d5422c2
- feat(node): Add type check functions
- Eg.
isDocument,isTag. Useful for determining if a node matches a particular type.
- Eg.
- Make
cloneNodereturn the passed type- Eg.
cloneNodecalled with aTextnode will now return aTextnode.
- Eg.
- feat(node): Add type check functions
- fix: All elements should have
type: taginxmlMode3977aab - Bump domelementtype from 2.1.0 to 2.2.0 86a6f84
Features:
- Add parse5 DOM extensions to types and add support in
cloneNodebde2dc5 - Add dedicated
Documentclass de7c6d0 - Add a root element to tree 4b8d326
- BREAKING: Some nodes will now have a parent node where they did not have one before.
Refactors:
- Remove
_from private property names 340fcd8- BREAKING: This might break your code if you were using private properties previously, eg. in a custom handler.
Fixes:
- Clone indices as well (#352 by @neet) ea60538
Misc:
- Run test on ppc64le as well (#398 by @nageshlop) 3d3c278
- Add
cloneNodemethod & function 5babe0d
- Make DOM serializable by Jest
- Jest now properly renders the produced DOM in snapshots.
package.jsonimprovements:- Publish only lib folder (#263 by @TrySound)
- Add
typesentry (fixes #132) - Add
sideEffects: false(#232 by @ericjeney)
- Add access modifiers across the codebase
- Improve test coverage
- Update funding information
The withDomLvl1 option was removed. Instead, there are now three different types of nodes, which all have a backing class that adds all of the previously available DOM level 1 properties by default.
Exports were changed slightly.