New
2.4.0
Notable Changes
Use immutable.Seq: for Scala 3 and 2.13, the result type of Node.child / Node.nonEmptyChildren / Node.attribute is changed from collection.Seq to immutable.Seq (https://github.com/scala/scala-xml/pull/760)
- Scala 2.13 changed the default
scala.Seqalias toimmutable.Seq, but the scala-xml library continued to usecollection.Seq. This often results in.toSeqconversions when using scala-xml in Scala 3 or 2.13. - scala-xml was always immutable in spirit,
NodeSeqextendsimmutable.Seq - A related change to the Scala compiler is under review to encode XML literals as
Vector[Node]
Other Changes
- Fix code point for
darrentity (https://github.com/scala/scala-xml/pull/729) NodeBuffer.&+returnsthis.type(https://github.com/scala/scala-xml/pull/744)
Full Changelog: https://github.com/scala/scala-xml/compare/v2.3.0...v2.4.0