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
(#760)
- Scala 2.13 changed the default
scala.Seq
alias toimmutable.Seq
, but the scala-xml library continued to usecollection.Seq
. This often results in.toSeq
conversions when using scala-xml in Scala 3 or 2.13. - scala-xml was always immutable in spirit,
NodeSeq
extendsimmutable.Seq
- A related change to the Scala compiler is under review to encode XML literals as
Vector[Node]
Other Changes
Full Changelog: v2.3.0...v2.4.0