Changed REXML::Functions to a REXML::FunctionsClass instance for thread safety and removed unused REXML::Functions.text, .processing_instruction, .variables, and .namespace_context
Fixed XPath name functions (name(), local-name(), namespace-uri())
Uses the first node in document order without skipping unnamed nodes (e.g. name(root/node()) returns "" instead of "node" when a text node comes first)
This PR contains the following updates:
| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [rexml](https://github.com/ruby/rexml) ([changelog](https://github.com/ruby/rexml/releases/tag/v3.4.5)) | `3.4.4` → `3.4.5` |  |  |
---
### Release Notes
<details>
<summary>ruby/rexml (rexml)</summary>
### [`v3.4.5`](https://github.com/ruby/rexml/releases/tag/v3.4.5): REXML 3.4.5 - 2026-12-04
[Compare Source](https://github.com/ruby/rexml/compare/v3.4.4...v3.4.5)
##### Incompatible changes
- Dropped support for Ruby 2.5 (Ruby 2.6 or later is now required)
- [GH-271](https://github.com/ruby/rexml/issues/271)
- [GH-347](https://github.com/ruby/rexml/issues/347)
- Patch by NAITOH Jun
- Reported by pboling
- Removed unused `REXML::QuickPath` (`rexml/quickpath`)
- [GH-250](https://github.com/ruby/rexml/issues/250)
- [GH-362](https://github.com/ruby/rexml/issues/362)
- Patch by Sutou Kouhei
- Reported by NAITOH Jun
- Changed `REXML::Functions` to a `REXML::FunctionsClass` instance for thread safety and removed unused `REXML::Functions.text`, `.processing_instruction`, `.variables`, and `.namespace_context`
- [GH-327](https://github.com/ruby/rexml/issues/327)
- [GH-329](https://github.com/ruby/rexml/issues/329)
- [GH-368](https://github.com/ruby/rexml/issues/368)
- Patch by tomoya ishida
- Switched available XPath function checks from a denylist to an allowlist
- Monkey-patching custom XPath functions onto `REXML::Functions` is no longer supported
- [GH-369](https://github.com/ruby/rexml/issues/369)
- Patch by tomoya ishida, Sutou Kouhei
- Stopped falling back to `XPath.match` for unregistered XPath functions in `FunctionsClass#send` (now returns `[]`)
- [GH-364](https://github.com/ruby/rexml/issues/364)
- Patch by tomoya ishida
- Changed XPath to always return node-sets in document order
- Changes the returned order of `XPath.match` / `XPath.first` for reverse axes such as `ancestor::` and `preceding::` to match the XPath 1.0 specification
- [GH-319](https://github.com/ruby/rexml/issues/319)
- [GH-320](https://github.com/ruby/rexml/issues/320)
- [GH-356](https://github.com/ruby/rexml/issues/356)
- Patch by tomoya ishida, NAITOH Jun
- Reported by tomoya ishida
- Stopped matching prefixed attributes by their local name only
- `Attributes#[]`, `#get_attribute`, and `Element#attribute` no longer return `x:b` for `"b"`; use the qualified name (`"x:b"`) or a namespace
- `Attributes#keys` now returns qualified names (e.g. `"xmlns:x"`, `"x:b"`)
- [GH-335](https://github.com/ruby/rexml/issues/335)
- Patch by tomoya ishida
- Validated XPath variable values and fixed `id()` return value
- Unsupported variable value types now raise `TypeError`, predicates on non-nodeset variables return `[]`, and unimplemented `id()` returns `[]` instead of `nil`
- [GH-15](https://github.com/ruby/rexml/issues/15)
- [GH-342](https://github.com/ruby/rexml/issues/342)
- Patch by tomoya ishida
- Reported by Sutou Kouhei
- Removed non-working XPath `namespace::` axis handling
- Emits a warning and returns `[]` instead of raising `NoMethodError`
- [GH-323](https://github.com/ruby/rexml/issues/323)
- Patch by tomoya ishida
- Changed XPath `mod` operator to use truncating remainder (`Numeric#remainder`) and return `NaN` for `mod 0`
- Matches XPath 1.0 for negative operands and no longer raises `ZeroDivisionError` for a zero divisor
- [GH-385](https://github.com/ruby/rexml/issues/385)
- [GH-386](https://github.com/ruby/rexml/issues/386)
- Patch by Sourya Singh
- Reported by bardrop
- Returned `Infinity` / `NaN` from XPath `string()`, `floor()`, and `ceiling()` instead of raising `FloatDomainError`
- [GH-374](https://github.com/ruby/rexml/issues/374)
- Patch by KBS
##### Improvements
- Improved performance
- [GH-299](https://github.com/ruby/rexml/issues/299)
- [GH-300](https://github.com/ruby/rexml/issues/300)
- [GH-303](https://github.com/ruby/rexml/issues/303)
- [GH-310](https://github.com/ruby/rexml/issues/310)
- [GH-311](https://github.com/ruby/rexml/issues/311)
- [GH-313](https://github.com/ruby/rexml/issues/313)
- [GH-315](https://github.com/ruby/rexml/issues/315)
- [GH-325](https://github.com/ruby/rexml/issues/325)
- [GH-330](https://github.com/ruby/rexml/issues/330)
- [GH-333](https://github.com/ruby/rexml/issues/333)
- [GH-339](https://github.com/ruby/rexml/issues/339)
- [GH-341](https://github.com/ruby/rexml/issues/341)
- [GH-359](https://github.com/ruby/rexml/issues/359)
- [GH-391](https://github.com/ruby/rexml/issues/391)
- Patch by NAITOH Jun, tomoya ishida, Gal Be
- Made REXML Ractor-compatible
- [GH-344](https://github.com/ruby/rexml/issues/344)
- Patch by John Hawthorn
- Deprecated unused `REXML::Text.read_with_substitution` (use `REXML::Text.unnormalize` instead)
- [GH-363](https://github.com/ruby/rexml/issues/363)
- Patch by Sutou Kouhei
- Supported parenthesized XPath expressions and `abbreviate` of parentheses
- [GH-316](https://github.com/ruby/rexml/issues/316)
- [GH-317](https://github.com/ruby/rexml/issues/317)
- [GH-322](https://github.com/ruby/rexml/issues/322)
- [GH-328](https://github.com/ruby/rexml/issues/328)
- Patch by tomoya ishida
- Reported by tomoya ishida
- Supported `string-length()` XPath function without an argument
- [GH-337](https://github.com/ruby/rexml/issues/337)
- Patch by Sai Asish Y
- Accepted processing instructions in the internal DTD subset
- [GH-377](https://github.com/ruby/rexml/issues/377)
- Patch by Wleeaf
- Accepted non-ASCII names, combining characters, and extenders in DOCTYPE, processing instructions, DTD declarations, elements, and attributes
- [GH-378](https://github.com/ruby/rexml/issues/378)
- [GH-379](https://github.com/ruby/rexml/issues/379)
- Patch by Wleeaf
- Accepted any XML whitespace around XPath operators `and`, `or`, `div`, and `mod`
- [GH-399](https://github.com/ruby/rexml/issues/399)
- Patch by Moksh Upadhyay
- Rejected underscored XPath function names (e.g. `local_name()`) in strict mode (default mode keeps the alias for backward compatibility)
- [GH-352](https://github.com/ruby/rexml/issues/352)
- [GH-366](https://github.com/ruby/rexml/issues/366)
- Patch by JinHyuk Sung
- Reported by tomoya ishida
- Improved documentation
- [GH-151](https://github.com/ruby/rexml/issues/151)
- [GH-307](https://github.com/ruby/rexml/issues/307)
- [GH-308](https://github.com/ruby/rexml/issues/308)
- [GH-348](https://github.com/ruby/rexml/issues/348)
- [GH-360](https://github.com/ruby/rexml/issues/360)
- [GH-367](https://github.com/ruby/rexml/issues/367)
- Patch by Burdette Lamar, NAITOH Jun
- Reported by Hiroya Fujinami
##### Fixes
- Fixed an issue when executing `REXML::Parsers::SAX2Parser#parse` without specifying `#listen`
- [GH-302](https://github.com/ruby/rexml/issues/302)
- Patch by NAITOH Jun
- Fixed infinite entity expansion by detecting circular references
- Circular entity references now raise `REXML::ParseException` instead of `SystemStackError`
- [GH-312](https://github.com/ruby/rexml/issues/312)
- Patch by NAITOH Jun
- Fixed parsing XPath expressions with string literals containing parentheses and brackets
- [GH-318](https://github.com/ruby/rexml/issues/318)
- Patch by tomoya ishida
- Fixed XPath `normalize-space()` function
- [GH-324](https://github.com/ruby/rexml/issues/324)
- Patch by tomoya ishida
- Fixed XPath functions not to return a primitive value wrapped in an array
- [GH-326](https://github.com/ruby/rexml/issues/326)
- Patch by tomoya ishida
- Fixed XPath `self` axis nodeset position
- [GH-336](https://github.com/ruby/rexml/issues/336)
- Patch by tomoya ishida
- Fixed `XMLDecl` being included in XPath `descendant::node()` results
- [GH-331](https://github.com/ruby/rexml/issues/331)
- [GH-341](https://github.com/ruby/rexml/issues/341)
- Patch by tomoya ishida
- Reported by tomoya ishida
- Fixed XPath name functions (`name()`, `local-name()`, `namespace-uri()`)
- Uses the first node in document order without skipping unnamed nodes (e.g. `name(root/node())` returns `""` instead of `"node"` when a text node comes first)
- [GH-343](https://github.com/ruby/rexml/issues/343)
- Patch by tomoya ishida, NAITOH Jun
- Fixed `substring-after()` XPath function not to use Regexp match
- [GH-355](https://github.com/ruby/rexml/issues/355)
- Patch by Vít Ondruch
- Fixed `REXML::Element#attribute` when a namespace URI has multiple bindings
- [GH-346](https://github.com/ruby/rexml/issues/346)
- [GH-357](https://github.com/ruby/rexml/issues/357)
- Patch by JinHyuk Sung
- Reported by tomoya ishida
- Avoided stack exhaustion in `REXML::Formatters::Default#write_element` for deeply nested documents
- [GH-354](https://github.com/ruby/rexml/issues/354)
- [GH-358](https://github.com/ruby/rexml/issues/358)
- Patch by NAITOH Jun
- Reported by Brian
- Explicitly required `"set"` in `xpath_parser.rb`
- [GH-361](https://github.com/ruby/rexml/issues/361)
- Patch by tomoya ishida
- Stopped substituting entities with an empty value
- Entities declared with an empty value are no longer inserted between every character during text/attribute normalization
- [GH-370](https://github.com/ruby/rexml/issues/370)
- Patch by NAITOH Jun
- Fixed `REXML::Formatters::Pretty` mutating text nodes while pretty printing
- [GH-371](https://github.com/ruby/rexml/issues/371)
- Patch by KBS
- Rejected invalid character references in entity expansion
- Invalid XML character references inside entity values now raise `REXML::ParseException`
- [GH-372](https://github.com/ruby/rexml/issues/372)
- Patch by Sutou Kouhei
- Fixed XPath `lang()` not to match a language prefix that is not a sublanguage
- [GH-373](https://github.com/ruby/rexml/issues/373)
- Patch by KBS
- Fixed RELAX NG validation of documents with XML declarations
- [GH-241](https://github.com/ruby/rexml/issues/241)
- [GH-380](https://github.com/ruby/rexml/issues/380)
- Patch by FFspiky
- Reported by gemmaro
- Fixed XPath `substring()` with a start before the first character and `round()` for negative halves
- e.g. `substring('12345', 0)` now returns `"12345"` instead of `"1234"`, and `round(-2.5)` returns `-2` instead of `-3`
- [GH-382](https://github.com/ruby/rexml/issues/382)
- Patch by bardrop
- Fixed XPath comparisons between a node-set and a boolean, number, or string
- Fixes reversed relational operators when the node-set is on the right (e.g. `10 > @price`), boolean comparisons, and string comparisons
- [GH-383](https://github.com/ruby/rexml/issues/383)
- Patch by bardrop
- Preserved whitespace before word operators after XPath predicates
- [GH-384](https://github.com/ruby/rexml/issues/384)
- [GH-387](https://github.com/ruby/rexml/issues/387)
- Patch by FFspiky
- Reported by bardrop
- Fixed XPath unary minus parsing with leading or separating spaces
- Unary minus without an operand (e.g. `"-"`, `" - - "`) now raises `REXML::ParseException`
- [GH-393](https://github.com/ruby/rexml/issues/393)
- Patch by NAITOH Jun
- Renamed the XPath test fixture `xp.tst` to `xp.txt`
- [GH-394](https://github.com/ruby/rexml/issues/394)
- Patch by botamochi0x12
- Formatted small floats without scientific notation in XPath `string()`
- e.g. `string(0.00001)` now returns `"0.00001"` instead of `"1.0e-05"`
- [GH-395](https://github.com/ruby/rexml/issues/395)
- Patch by Moksh Upadhyay
- Fixed XPath parsing of expressions and literals containing line breaks
- [GH-397](https://github.com/ruby/rexml/issues/397)
- Patch by Moksh Upadhyay
- Fixed XPath matching for the predefined `xml` namespace and empty strings
- [GH-396](https://github.com/ruby/rexml/issues/396)
- [GH-398](https://github.com/ruby/rexml/issues/398)
- Patch by Akshay Kumar Sharma
- Reported by Dickson Wu
##### Thanks
- NAITOH Jun
- Sutou Kouhei
- tomoya ishida
- Burdette Lamar
- John Hawthorn
- Sai Asish Y
- Vít Ondruch
- JinHyuk Sung
- KBS
- Wleeaf
- FFspiky
- Sourya Singh
- Gal Be
- bardrop
- Moksh Upadhyay
- Akshay Kumar Sharma
- botamochi0x12
- Hiroya Fujinami
- Brian
- pboling
- gemmaro
- Dickson Wu
</details>
---
### Configuration
📅 **Schedule**: (in timezone Europe/Bratislava)
- Branch creation
- At any time (no schedule defined)
- Automerge
- At any time (no schedule defined)
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NS40LjAiLCJ1cGRhdGVkSW5WZXIiOiI0NS40LjAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=-->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This PR contains the following updates:
3.4.4→3.4.5Release Notes
ruby/rexml (rexml)
v3.4.5: REXML 3.4.5 - 2026-12-04Compare Source
Incompatible changes
Dropped support for Ruby 2.5 (Ruby 2.6 or later is now required)
Removed unused
REXML::QuickPath(rexml/quickpath)Changed
REXML::Functionsto aREXML::FunctionsClassinstance for thread safety and removed unusedREXML::Functions.text,.processing_instruction,.variables, and.namespace_contextSwitched available XPath function checks from a denylist to an allowlist
REXML::Functionsis no longer supportedStopped falling back to
XPath.matchfor unregistered XPath functions inFunctionsClass#send(now returns[])Changed XPath to always return node-sets in document order
XPath.match/XPath.firstfor reverse axes such asancestor::andpreceding::to match the XPath 1.0 specificationStopped matching prefixed attributes by their local name only
Attributes#[],#get_attribute, andElement#attributeno longer returnx:bfor"b"; use the qualified name ("x:b") or a namespaceAttributes#keysnow returns qualified names (e.g."xmlns:x","x:b")Validated XPath variable values and fixed
id()return valueTypeError, predicates on non-nodeset variables return[], and unimplementedid()returns[]instead ofnilRemoved non-working XPath
namespace::axis handling[]instead of raisingNoMethodErrorChanged XPath
modoperator to use truncating remainder (Numeric#remainder) and returnNaNformod 0ZeroDivisionErrorfor a zero divisorReturned
Infinity/NaNfrom XPathstring(),floor(), andceiling()instead of raisingFloatDomainErrorImprovements
Improved performance
Made REXML Ractor-compatible
Deprecated unused
REXML::Text.read_with_substitution(useREXML::Text.unnormalizeinstead)Supported parenthesized XPath expressions and
abbreviateof parenthesesSupported
string-length()XPath function without an argumentAccepted processing instructions in the internal DTD subset
Accepted non-ASCII names, combining characters, and extenders in DOCTYPE, processing instructions, DTD declarations, elements, and attributes
Accepted any XML whitespace around XPath operators
and,or,div, andmodRejected underscored XPath function names (e.g.
local_name()) in strict mode (default mode keeps the alias for backward compatibility)Improved documentation
Fixes
Fixed an issue when executing
REXML::Parsers::SAX2Parser#parsewithout specifying#listenFixed infinite entity expansion by detecting circular references
REXML::ParseExceptioninstead ofSystemStackErrorFixed parsing XPath expressions with string literals containing parentheses and brackets
Fixed XPath
normalize-space()functionFixed XPath functions not to return a primitive value wrapped in an array
Fixed XPath
selfaxis nodeset positionFixed
XMLDeclbeing included in XPathdescendant::node()resultsFixed XPath name functions (
name(),local-name(),namespace-uri())name(root/node())returns""instead of"node"when a text node comes first)Fixed
substring-after()XPath function not to use Regexp matchFixed
REXML::Element#attributewhen a namespace URI has multiple bindingsAvoided stack exhaustion in
REXML::Formatters::Default#write_elementfor deeply nested documentsExplicitly required
"set"inxpath_parser.rbStopped substituting entities with an empty value
Fixed
REXML::Formatters::Prettymutating text nodes while pretty printingRejected invalid character references in entity expansion
REXML::ParseExceptionFixed XPath
lang()not to match a language prefix that is not a sublanguageFixed RELAX NG validation of documents with XML declarations
Fixed XPath
substring()with a start before the first character andround()for negative halvessubstring('12345', 0)now returns"12345"instead of"1234", andround(-2.5)returns-2instead of-3Fixed XPath comparisons between a node-set and a boolean, number, or string
10 > @price), boolean comparisons, and string comparisonsPreserved whitespace before word operators after XPath predicates
Fixed XPath unary minus parsing with leading or separating spaces
"-"," - - ") now raisesREXML::ParseExceptionRenamed the XPath test fixture
xp.tsttoxp.txtFormatted small floats without scientific notation in XPath
string()string(0.00001)now returns"0.00001"instead of"1.0e-05"Fixed XPath parsing of expressions and literals containing line breaks
Fixed XPath matching for the predefined
xmlnamespace and empty stringsThanks
NAITOH Jun
Sutou Kouhei
tomoya ishida
Burdette Lamar
John Hawthorn
Sai Asish Y
Vít Ondruch
JinHyuk Sung
KBS
Wleeaf
FFspiky
Sourya Singh
Gal Be
bardrop
Moksh Upadhyay
Akshay Kumar Sharma
botamochi0x12
Hiroya Fujinami
Brian
pboling
gemmaro
Dickson Wu
Configuration
📅 Schedule: (in timezone Europe/Bratislava)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate CLI.