v5.2.0
Added
- Cache results for subtrees to speed up :contains and :has
- Add support for :read-only and :read-write pseudos
Changed
- Improve support for large documents
Fixed
- Allow whitespace in :empty
- Filter queried elements inside template element
- Handle template tags in selectOne
New Features
- Cache results for subtrees; vastly speeds up
:containsand:has#1025 – by @fb55 - Add support for
:read-onlyand:read-writepseudos #1497 – by @jed - Improved support for large documents #1132 – by @fb55
Fixes
- Allow whitespace in
:empty#795 – by @fb55 - Filter queried elements inside template element #981 – by @andolf
- Handle template tags in
selectOne#1001 – by @fb55
New Contributors
- @andolf made their first contribution in https://github.com/fb55/css-select/pull/981
- @EFord36 made their first contribution in https://github.com/fb55/css-select/pull/1107
- @jed made their first contribution in https://github.com/fb55/css-select/pull/1497
Full Changelog: https://github.com/fb55/css-select/compare/v5.1.0...v5.2.0