Skip to content

0.11.0

Latest
Compare
Choose a tag to compare
@niklak niklak released this 11 Dec 09:32
· 15 commits to main since this release

Release Notes for v0.11.0 (2024-12-10) πŸš€

πŸ“š Check out examples

✨ New Features

  • Atomic Feature:
    Added the atomic feature, which replaces NodeData's use of StrTendril with Tendril<tendril::fmt::UTF8, tendril::Atomic>.
    This enables NodeData and related structures, including Document, to implement the Send trait.

  • NodeRef Enhancements:

    • Introduced NodeRef::insert_siblings_after, enabling the insertion of a node along with its siblings after a selected node.
    • Introduced NodeRef::before_html and NodeRef::after_html for inserting HTML content before or after a specific node.
  • Selection Enhancements:

    • Introduced Selection::set_text to set the content of each node in the selection to specified content.
    • Introduced Selection::before_html and Selection::after_html to insert HTML content before or after each node in a selection.
    • Introduced Selection::prepend_selection, allowing nodes from one selection to be prepended to the current selection.

πŸ”¨ Improvements

  • Internal code changes reduce calls to RefCell::borrow and RefCell::borrow_mut.

Changelog

Full Changelog: 0.10.0...0.11.0