Releases: sparklemotion/nokogiri
Releases · sparklemotion/nokogiri
1.10.2 / 2019-03-24
1.10.1 / 2019-01-13
1.10.1 / 2019-01-13
Features
- [MRI] During installation, handle Xcode 10's new library pathOS. [#1801, #1851] (Thanks, @mlj and @deepj!)
- Avoid unnecessary creation of
Procs in many methods. [#1776] (Thanks, @chopraanmol1!)
Bug fixes
- CSS selector
:has()now correctly matches against any descendant. Previously this selector matched against only direct children). [#350] (Thanks, @Phrogz!) NodeSet#attrnow returnsnilif it's empty. Previously this raised a NoMethodError.- [MRI] XPath errors are no longer suppressed during
XSLT::Stylesheet#transform. Previously these errors were suppressed which led to silent failures and a subsequent segfault. [#1802]
1.10.0 / 2019-01-04
1.10.0 / 2019-01-04
Features
Backwards incompatibilities
This release ends support for:
- Ruby 2.2, for which official support ended on 2018-03-31 [#1841]
- JRuby 1.7, for which official support ended on 2017-11-21 [#1741]
Dependencies
- [MRI] libxml2 is updated from 2.9.8 to 2.9.9
- [MRI] libxslt is updated from 1.1.32 to 1.1.33
version bump to v1.10.0.rc1
[skip ci]
1.9.1 / 2018-12-17
1.9.1 / 2018-12-17
Bug fixes
- Fix a bug introduced in v1.9.0 where
XML::DocumentFragment#dupno longer returned an instance of the callee's class, instead always returning anXML::DocumentFragment. This notably broke any subclass ofXML::DocumentFragmentincludingHTML::DocumentFragmentas well as the Loofah gem'sLoofah::HTML::DocumentFragment. [#1846]
1.9.0 / 2018-12-17
1.9.0 / 2018-12-17
Security Notes
- [JRuby] Upgrade Xerces dependency from 2.11.0 to 2.12.0 to address upstream vulnerability CVE-2012-0881 [#1831] (Thanks @grajagandev for reporting.)
Notable non-functional changes
- Decrease installation size by removing many unneeded files (e.g.,
/test) from the packaged gems. [#1719] (Thanks, @stevecrozz!)
Features
XML::Attr#value=allows HTML node attribute values to be set to either a blank string or an empty boolean attribute. [#1800]- Introduce
XML::Node#wrapwhich does whatXML::NodeSet#wraphas always done, but for a single node. [#1531] (Thanks, @ethirajsrinivasan!) - [MRI] Improve installation experience on macOS High Sierra (Darwin). [#1812, #1813] (Thanks, @gpakosz and @nurse!)
- [MRI] Node#dup supports copying a node directly to a new document. See the method documentation for details.
- [MRI] DocumentFragment#dup is now more memory-efficient, avoiding making unnecessary copies. [#1063]
- [JRuby] NodeSet has been rewritten to improve performance! [#1795]
Bug fixes
NodeSet#eachnow returnsselfinstead of zero. [#1822] (Thanks, @olehif!)- [MRI] Address a memory leak when using XML::Builder to create nodes with namespaces. [#1810]
- [MRI] Address a memory leak when unparenting a DTD. [#1784] (Thanks, @stevecheckoway!)
- [MRI] Use RbConfig::CONFIG instead of ::MAKEFILE_CONFIG to fix installations that use Makefile macros. [#1820] (Thanks, @nobu!)
- [JRuby] Decrease large memory usage when making nested XPath queries. [#1749]
- [JRuby] Fix failing tests on JRuby 9.2.x
- [JRuby] Fix default namespaces in nodes reparented into a different document [#1774]
- [JRuby] Fix support for Java 9. [#1759] (Thanks, @Taywee!)
Dependencies
- [MRI] Upgrade mini_portile2 dependency from
~> 2.3.0to~> 2.4.0
1.9.0.rc1 / 2018-12-10
1.9.0.rc1 / 2018-12-10
Security Notes
- [JRuby] Upgrade Xerces dependency from 2.11.0 to 2.12.0 to address upstream vulnerability CVE-2012-0881 [#1831] (Thanks @grajagandev for reporting.)
Features
XML::Attr#value=allows HTML node attribute values to be set to either a blank string or an empty boolean attribute. [#1800]- Introduce
XML::Node#wrapwhich does whatXML::NodeSet#wraphas always done, but for a single node. [#1531] (Thanks, @ethirajsrinivasan!) - [MRI] Improve installation experience on macOS High Sierra (Darwin). [#1812, #1813] (Thanks, @gpakosz and @nurse!)
- [MRI] Node#dup supports copying a node directly to a new document. See the method documentation for details.
- [MRI] DocumentFragment#dup is now more memory-efficient, avoiding making unnecessary copies. [#1063]
- [JRuby] NodeSet has been rewritten to improve performance! [#1795]
Bug fixes
NodeSet#eachnow returnsselfinstead of zero. [#1822] (Thanks, @olehif!)- [MRI] Address a memory leak when using XML::Builder to create nodes with namespaces. [#1810]
- [MRI] Address a memory leak when unparenting a DTD. [#1784] (Thanks, @stevecheckoway!)
- [MRI] Decrease large memory usage when making nested XPath queries. [#1749]
- [MRI] Use RbConfig::CONFIG instead of ::MAKEFILE_CONFIG to fix installations that use Makefile macros. [#1820] (Thanks, @nobu!)
- [JRuby] Fix failing tests on JRuby 9.2.x
- [JRuby] Fix default namespaces in nodes reparented into a different document [#1774]
- [JRuby] Fix support for Java 9. [#1759] (Thanks, @Taywee!)
Dependencies
- [MRI] Upgrade mini_portile2 dependency from
~> 2.3.0to~> 2.4.0