From 21b4ac5862dba11c89255e2f0a8082bf63eac53a Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Fri, 22 Jul 2022 17:16:59 -0400 Subject: [PATCH] version bump to v1.13.8 --- CHANGELOG.md | 17 +++++++++++++++++ lib/nokogiri/version/constant.rb | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 95180cc1d6a..90e15d242ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,23 @@ Nokogiri follows [Semantic Versioning](https://semver.org/), please see the [REA --- +## 1.13.8 / 2022-07-23 + +### Deprecated + +- `XML::Reader#attribute_nodes` is deprecated due to incompatibility between libxml2's `xmlReader` memory semantics and Ruby's garbage collector. Although this method continues to exist for backwards compatibility, it is unsafe to call and may segfault. This method will be removed in a future version of Nokogiri, and callers should use `#attribute_hash` instead. [[#2598](https://github.com/sparklemotion/nokogiri/issues/2598)] + + +### Improvements + +- `XML::Reader#attribute_hash` is a new method to safely retrieve the attributes of a node from `XML::Reader`. [[#2598](https://github.com/sparklemotion/nokogiri/issues/2598), [#2599](https://github.com/sparklemotion/nokogiri/issues/2599)] + + +### Fixed + +- [CRuby] Calling `XML::Reader#attributes` is now safe to call. In Nokogiri <= 1.13.7 this method may segfault. [[#2598](https://github.com/sparklemotion/nokogiri/issues/2598), [#2599](https://github.com/sparklemotion/nokogiri/issues/2599)] + + ## 1.13.7 / 2022-07-12 ### Fixed diff --git a/lib/nokogiri/version/constant.rb b/lib/nokogiri/version/constant.rb index e5fea14fbdb..09f6faabd8e 100644 --- a/lib/nokogiri/version/constant.rb +++ b/lib/nokogiri/version/constant.rb @@ -2,5 +2,5 @@ module Nokogiri # The version of Nokogiri you are using - VERSION = "1.13.7" + VERSION = "1.13.8" end