Skip to content

Commit 59026d8

Browse files
Bump xml from 6.6.1 to 7.0.1 in /tooling/codelab_rebuild (#2389)
Bumps [xml](https://github.com/renggli/dart-xml) from 6.6.1 to 7.0.1. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/renggli/dart-xml/blob/main/CHANGELOG.md">xml's changelog</a>.</em></p> <blockquote> <h2>7.0.1</h2> <ul> <li>Better namespace support across all parts of the library: <ul> <li>Namespaces of <code>XmlDocument.parse</code> and <code>XmlDocumentFragment.parse</code> 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).</li> <li>Deprecate all <code>namespace</code> arguments and replace them with the more intention revealing <code>namespaceUri</code> and <code>namespacePrefix</code>.</li> <li>Lower-level parser and event APIs can now enable and disable the validation and resolution of namespaces with <code>validateNamespaces</code> and <code>withNamespaces</code>. This is a BREAKING CHANGE to existing code using these lower-level APIs, as namespaces are no longer available by default.</li> <li>Introduced <code>XmlNamespaceException</code> for error reporting of invalid namespaces.</li> <li><code>XmlName</code> is now immutable and the complexity with different states is gone.</li> <li>Added <code>XmlNamespace</code> node type and <code>XmlHasNamespaces</code> mixin to support reading in-scope namespaces on nodes.</li> </ul> </li> <li>Correctly move nodes from their previous parent when inserting them into a new location, rather than throwing an <code>XmlParentException</code>. This aligns with standard DOM behavior and improves usability and performance. <code>XmlDocumentFragment</code> nodes are automatically expanded and their children are moved as well.</li> <li>Improved performance and usability of <code>XmlBuilder</code>: <ul> <li>Significantly improve the performance of <code>XmlBuilder</code> as all namespace lookups are now in constant time.</li> <li>Deprecated <code>namespace(String uri, String? prefix)</code> and <code>namespaces(Map&lt;String, String?&gt; uriToPrefix)</code> accessors that have an unusually awkward API. Replaced with <code>namespaceUri(String? prefix, String? uri)</code> and <code>namespaceUris(Map&lt;String, String&gt; prefixToUri)</code> with a clear prefix-uri order.</li> <li>Deprecated <code>String? namespace</code> arguments when definition elements and attributes. Replaced with more flexible <code>String namespacePrefix</code> and <code>String namespaceUri</code>.</li> </ul> </li> <li>Comprehensive XPath 3.1 support: <ul> <li>Complete execution model supporting sequences of items (nodes, atomic values, functions, maps, and arrays).</li> <li>New expressions and operators: String concatenation (<code>||</code>), range (<code>to</code>), quantified (<code>some</code>/<code>every</code>), loops (<code>for</code>), simple map (<code>!</code>), lookup (<code>?</code>), and node comparison (<code>is</code>, <code>&lt;&lt;</code>, <code>&gt;&gt;</code>).</li> <li>Support for Higher-Order Functions: Inline, named, and arrow functions, inclusive of partial function application and dynamic binding with <code>fn:function-lookup</code>.</li> <li>Native support for XPath Data Model (XDM) maps and arrays, including associated JSON and sequence functions.</li> <li>Added support for EQName parsing (<code>Q{uri}name</code>).</li> <li>Add missing XPath name tests (namespace prefix, namespace URI, local name, and wildcards) and node tests (<code>attribute()</code>, <code>document-node()</code> and <code>element()</code>).</li> <li>Significantly improve XPath evaluation <a href="https://redirect.github.com/renggli/dart-xml/issues/194#issuecomment-3311509567">performance</a> for large documents (thanks to <a href="https://github.com/laishere">laishere</a>).</li> <li>Fix issues with XPath <a href="https://redirect.github.com/renggli/dart-xml/issues/193">axis parsing</a>, <a href="https://redirect.github.com/renggli/dart-xml/issues/194">reverse axis access</a>, and <a href="https://redirect.github.com/renggli/dart-xml/issues/194">predicate expressions</a> (thanks to <a href="https://github.com/laishere">laishere</a>).</li> </ul> </li> <li>Update to PetitParser 7.0.2.</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/renggli/dart-xml/commit/631ccbccef5cc4d82e043f36a147ddf43935925a"><code>631ccbc</code></a> Ready for 7.0.1</li> <li><a href="https://github.com/renggli/dart-xml/commit/cc9e6fb06c7d1e18cd1afd9b450c3ebd484cb4df"><code>cc9e6fb</code></a> Align documentation and DOM compliant behavior for XmlNodeList.</li> <li><a href="https://github.com/renggli/dart-xml/commit/735d88c9c34f3312dfef54d4d1bb1144efa6a2b6"><code>735d88c</code></a> Ready for 7.0.0</li> <li><a href="https://github.com/renggli/dart-xml/commit/da8cb431ed30e9baa2d17c726559d84d69b72549"><code>da8cb43</code></a> Bump codecov/codecov-action from 5 to 6</li> <li><a href="https://github.com/renggli/dart-xml/commit/e75cd466d563d38081ca25df53e32a38755b9b17"><code>e75cd46</code></a> Some fixes to README.md</li> <li><a href="https://github.com/renggli/dart-xml/commit/141091b51b315c0219ebc38cc4c6b3ccae3f1fee"><code>141091b</code></a> Update year in LICENSE</li> <li><a href="https://github.com/renggli/dart-xml/commit/9ef2ca5b01b78cf6bb85ca56f67d18eaa074e3f8"><code>9ef2ca5</code></a> [XPath] Fix timezone tests</li> <li><a href="https://github.com/renggli/dart-xml/commit/f562284b997f7e7dcd6d6e61edf01188c8904a33"><code>f562284</code></a> [XML] Fix various typos in documentation and code.</li> <li><a href="https://github.com/renggli/dart-xml/commit/b470f2f919527434e832e4fda91ea9842f7ae543"><code>b470f2f</code></a> [XML] Correctly move children out of <code>XmlDocumentFragment</code> when inserting it ...</li> <li><a href="https://github.com/renggli/dart-xml/commit/8a4f89b19b7f8b49281e92c665d9b5392438cd84"><code>8a4f89b</code></a> Fix README.md and some documentation hitchups.</li> <li>Additional commits viewable in <a href="https://github.com/renggli/dart-xml/compare/v6.6.1...v7.0.1">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=xml&package-manager=pub&previous-version=6.6.1&new-version=7.0.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 19e1067 commit 59026d8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tooling/codelab_rebuild/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependencies:
1111
json_annotation: ^4.9.0
1212
logging: ^1.0.2
1313
path: ^1.8.0
14-
xml: ^6.5.0
14+
xml: ^7.0.1
1515

1616
dev_dependencies:
1717
build_runner: ^2.3.3

0 commit comments

Comments
 (0)