Skip to content

fix(deps): update dependency xml to v7#3215

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/xml-7.x
Open

fix(deps): update dependency xml to v7#3215
renovate[bot] wants to merge 1 commit intomainfrom
renovate/xml-7.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Apr 25, 2026

This PR contains the following updates:

Package Type Update Change
xml dependencies major ^6.0.0^7.0.1

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

renggli/dart-xml (xml)

v7.0.1

Compare Source

  • Better namespace support across all parts of the library:
    • Namespaces of XmlDocument.parse and XmlDocumentFragment.parse are now resolved at parse-time and constant when manipulating the DOM (this aligns with other XML libraries and removes surprising behavior when moving nodes around).
    • Deprecate all namespace arguments and replace them with the more intention revealing namespaceUri and namespacePrefix.
    • Lower-level parser and event APIs can now enable and disable the validation and resolution of namespaces with validateNamespaces and withNamespaces. This is a BREAKING CHANGE to existing code using these lower-level APIs, as namespaces are no longer available by default.
    • Introduced XmlNamespaceException for error reporting of invalid namespaces.
    • XmlName is now immutable and the complexity with different states is gone.
    • Added XmlNamespace node type and XmlHasNamespaces mixin to support reading in-scope namespaces on nodes.
  • Correctly move nodes from their previous parent when inserting them into a new location, rather than throwing an XmlParentException. This aligns with standard DOM behavior and improves usability and performance. XmlDocumentFragment nodes are automatically expanded and their children are moved as well.
  • Improved performance and usability of XmlBuilder:
    • Significantly improve the performance of XmlBuilder as all namespace lookups are now in constant time.
    • Deprecated namespace(String uri, String? prefix) and namespaces(Map<String, String?> uriToPrefix) accessors that have an unusually awkward API. Replaced with namespaceUri(String? prefix, String? uri) and namespaceUris(Map<String, String> prefixToUri) with a clear prefix-uri order.
    • Deprecated String? namespace arguments when definition elements and attributes. Replaced with more flexible String namespacePrefix and String namespaceUri.
  • Comprehensive XPath 3.1 support:
    • Complete execution model supporting sequences of items (nodes, atomic values, functions, maps, and arrays).
    • New expressions and operators: String concatenation (||), range (to), quantified (some/every), loops (for), simple map (!), lookup (?), and node comparison (is, <<, >>).
    • Support for Higher-Order Functions: Inline, named, and arrow functions, inclusive of partial function application and dynamic binding with fn:function-lookup.
    • Native support for XPath Data Model (XDM) maps and arrays, including associated JSON and sequence functions.
    • Added support for EQName parsing (Q{uri}name).
    • Add missing XPath name tests (namespace prefix, namespace URI, local name, and wildcards) and node tests (attribute(), document-node() and element()).
    • Significantly improve XPath evaluation performance for large documents (thanks to laishere).
    • Fix issues with XPath axis parsing, reverse axis access, and predicate expressions (thanks to laishere).
  • Update to PetitParser 7.0.2.

v7.0.0

Compare Source

v6.6.1

Compare Source

  • Dart and Flutter 3.9 compatibility.
  • Minor optimization to eliminate unused namespaces.

v6.6.0

Compare Source

  • Dart 3.8 and PetitParser 7.0 requirement.
  • Correct decoding of names with surrogate characters.

v6.5.0

Compare Source

  • Add support for most XPath 1.0 functions, including set-operations and ensuring document order for node-sets.
  • Add support for XPath expression evaluation, user-defined variables, and user-defined functions.
  • Add XmlNode.xpathGenerate to create a readable XPath for all nodes.
  • Add support for node comparison: XmlNode.isEqualNode and XmlNode.compareNodePosition.

v6.4.2

Compare Source

v6.4.1

Compare Source

v6.4.0

Compare Source

  • Dart 3.0 and PetitParser 6.0 requirement.
  • Add RSS feed reader example.

v6.3.0

Compare Source

  • Upgrade to Dart 2.19 and PetitParser 5.4.
  • Add XmlElement.tag constructor that greatly simplifies the creation of elements, i.e. XmlElement(XmlName('br'), [], [], true) becomes XmlElement.tag('br', isSelfClosing: true).
  • Deprecate the ambiguous XmlNode.text: Replace with XmlNode.value to access the textual contents of the node, or XmlNode.innerText to access the textual contents of its descendants.
  • Fix XmlNode.siblings and various related methods to also work correctly on XmlAttribute nodes, make the method return a mutable list.
  • Improve XmlNode.replace(XmlNode) and add XmlNode.remove() for easy removal of a node.
  • Improve error position propagation when building the XML DOM.
  • Make the parser more forgiving when reading attributes.
  • Experimental support of a subset of XPath.
  • Add new-line normalization support.

v6.2.2

Compare Source

v6.2.1

Compare Source

v6.2.0

Compare Source

  • Upgrade to PetitParser 5.1 brings a 10% speed improvement (typed sequences).
  • Add the ability to tap into a stream of XmlEvent with tapEachEvent (similar to forEachEvent).
  • Remove XmlName equality operator == and hashCode. This is inconsistent with the other DOM nodes, and the provided implementation might not have the desired behavior.
  • Improved error reporting when accessing innerText or innerXml on DOM nodes that cannot have children.

v6.1.0

Compare Source

  • Dart 2.17 requirement.
  • Validate the presence and order of root nodes when parsing; this got lost in 6.0.0 and can now also optionally be enabled for streaming and iterable parsers.
  • Add support for basic document type parsing. The contents of the XmlDoctype can now be accessed through name, externalId and internalSubset.

v6.0.1

Compare Source


Configuration

📅 Schedule: (UTC)

  • 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot force-pushed the renovate/xml-7.x branch from d7a3c23 to 7d74514 Compare April 25, 2026 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants