Release Notes for v0.11.0 (2024-12-10) π
π Check out examples
β¨ New Features
-
Atomic Feature:
Added theatomic
feature, which replacesNodeData
's use ofStrTendril
withTendril<tendril::fmt::UTF8, tendril::Atomic>
.
This enablesNodeData
and related structures, includingDocument
, to implement theSend
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
andNodeRef::after_html
for inserting HTML content before or after a specific node.
- Introduced
-
Selection Enhancements:
- Introduced
Selection::set_text
to set the content of each node in the selection to specified content. - Introduced
Selection::before_html
andSelection::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.
- Introduced
π¨ Improvements
- Internal code changes reduce calls to
RefCell::borrow
andRefCell::borrow_mut
.
Full Changelog: 0.10.0...0.11.0