Skip to content

2.4.0

Latest
Compare
Choose a tag to compare
@lrytz lrytz released this 27 May 09:27
c2c76c8

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 to immutable.Seq, but the scala-xml library continued to use collection.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 extends immutable.Seq
  • A related change to the Scala compiler is under review to encode XML literals as Vector[Node]

Other Changes

  • Fix code point for darr entity (#729)
  • NodeBuffer.&+ returns this.type (#744)

Full Changelog: v2.3.0...v2.4.0