Changelog History
-
v2.0.1 Changes
July 21, 2021Binary compatible with Scala XML 2.0.0.
Published for Scala 2.12 and 2.13, Scala 3, Scala.js 1.6, and Scala Native 0.4.
โ Added
- No new functionality.
๐ Fixed
- ๐ Fixed runtime error for
MarkupParser
on Scala 3 by changing the access modifier of internal class,WithLookAhead
(#542)
-
v2.0.0 Changes
May 13, 2021Not binary compatible with Scala XML 1.3.0.
Published for Scala 2.12, 2.13, and 3.0, Scala.js 1.5, and Scala Native 0.4.
Artifacts are no longer published for Scala 2.11 and Scala.js 0.6.
๐ A number of deprecated elements have been removed from the library; ๐ see the "Removed" section below. The library's JAR byte size is about 15% smaller.
โ Added
- โ Add
scala.xml.transform.NestingTransformer
, to apply a single rule recursively, to give the original behavior ofRuleTransformer
, see below. - ๐ The
apiURL
is now published in ivy metadata so that hyperlinks exist in downstream projects that reference Scala XML in their Scaladocs. - Declare version policy of with early-semver in Mima with sbt-version-policy plugin
๐ Changed
- ๐ Changes to the default parser settings for the JDK SAXParser, see Safe parser defaults page on the wiki.
- ๐ The parser used by the load methods from
scala.xml.XML
and fromscala.xml.factory.XMLLoader
is now aThreadLocal
instance of SAXParser to reuse the parser instance and avoid repeatedly allocating one on every file load. - ๐ Improve
scala.xml.transform.RuleTransformer
to apply all rules recursively. - Reject invalid comment text that ends in a dash (-) in
scala.xml.Comment
. - ๐ Changed use of
scala.collection.mutable.Stack
inFactoryAdapter
to ascala.collection.immutable.List
. These members were affected.attribStack
hStack
tagStack
scopeStack
- ๐ The abstract class
FactoryAdapter
, see above, is used elsewhere within the library, as well, so the previous changes are also inherited by:scala.xml.parsing.NoBindingFactoryAdapter
implemented classscala.xml.factory.XMLLoader.adapter
static member
๐ Fixed
- Attribute order is preserved for XML elements, not reversed.
- Don't escape quotes in
scala.xml.PCData
andCDATA
as an XML"
โ Removed
Most of these deletions are of vestigial code that is either unused, of poor quality or both. Very few users of Scala XML will even notice ๐ the removed parts. Most users will not be affected.
The deletions represent about 1500 lines of code (sloc). By comparison Scala XML is 10,000 sloc, so this is about 15% reduction in ๐ sloc. The code that supports XML literals is maintained upstream in the Scala compiler, not in the Scala XML library.
- โ Remove deprecated
scala.xml.pull.XMLEventReader
- โ Remove deprecated versions of
scala.xml.Elem
constructors - โ Remove deprecated
scala.xml.Elem.xmlToProcess
andscala.xml.Elem.processXml
- โ Remove deprecated definitions under
scala.xml.persistent
CachedFileStorage
Index
SetStorage
- โ Remove
scala.xml.dtd.impl.PointedHedgeExp
- โ Remove
scala.xml.dtd.Scanner
- โ Remove
scala.xml.dtd.ContentModelParser
- โ Remove
scala.xml.dtd.ElementValidator
- โ Remove
scala.xml.factory.Binder
- โ Remove
scala.xml.parsing.ValidatingMarkupHandler
- โ Remove
scala.xml.Properties
- โ Remove
scala.xml.factory.LoggedNodeFactory
- โ Remove
scala.xml.parsing.MarkupHandler.log
- โ Add
-
v2.0.0-M3 Changes
November 26, 2020Published for Scala 2.12 and 2.13, Scala 3.0.0-M2, and Scala.js 1.3.1.
๐ (Build changes only โ no code changes since 2.0.0-M2.)
๐ Thank you @isomarcte for contributing Scala 3 support!
-
v2.0.0-M2 Changes
September 15, 2020Targets
Published for Scala 2.12 and 2.13, Scala.js 1.2.0, and Dotty 0.27.0-RC1.
โ Removed
- โ Removed
scala.xml.dtd.ElementValidator
- โ Removed
-
v2.0.0-M1 Changes
October 21, 2019Not binary compatible with Scala XML 1.2.0.
Published for Scala 2.12, 2.13 and Scala.js 0.6, 1.0.0-M8. Artifacts are no longer published for Scala 2.11.
๐ Some deprecated elements have been removed; see the "Removed" section below.
โ Added
- ๐ The
apiURL
is now published in ivy metadata so that hyperlinks exist in downstream projects that reference Scala XML in their Scaladocs.
๐ Changed
- ๐ Changed use of
scala.collection.mutable.Stack
inFactoryAdapter
to ascala.collection.immutable.List
. These members were affected.attribStack
hStack
tagStack
scopeStack
- ๐ The abstract class
FactoryAdapter
, see above, is used elsewhere within the library, as well, so the previous changes are also inherited by:scala.xml.parsing.NoBindingFactoryAdapter
implemented classscala.xml.factory.XMLLoader.adapter
static member
๐ Fixed
- Attribute order is preserved for XML elements, not reversed.
- Don't escape quotes in
scala.xml.PCData
andCDATA
as an XML"
โ Removed
Most of these deletions are of vestigial code that is either unused, of poor quality or both. Very few users of Scala XML will even notice ๐ the removed parts. Most users will not be affected.
The deletions represent about one thousand lines of code (sloc). By comparison Scala XML is 10,000 sloc, so this is about 10% reduction in ๐ sloc. The code that supports XML literals is maintained upstream in the Scala compiler, not in the Scala XML library.
- โ Remove deprecated
scala.xml.pull.XMLEventReader
- โ Remove deprecated versions of
scala.xml.Elem
constructors - โ Remove deprecated
scala.xml.Elem.xmlToProcess
andscala.xml.Elem.processXml
- โ Remove deprecated definitions under
scala.xml.persistent
CachedFileStorage
Index
SetStorage
- โ Remove
scala.xml.dtd.impl.PointedHedgeExp
- โ Remove
scala.xml.dtd.Scanner
- โ Remove
scala.xml.dtd.ContentModelParser
- โ Remove
scala.xml.dtd.ElementValidator
- โ Remove
scala.xml.factory.Binder
- โ Remove
scala.xml.parsing.ValidatingMarkupHandler
- ๐ The
-
v1.3.0 Changes
March 17, 2020- ๐ Fixes regression on Scala 2.13, issue #392, concerning the collections implementation for
NodeSeq
- Publish for Scala.js 1.0
- โก๏ธ Update Scala.js to 0.6.32
- โก๏ธ Update Scala to 2.12.10 and 2.13.1
- ๐ Various unused public classes and methods are deprecated
- Deprecate definitions under
scala.xml.persistent
CachedFileStorage
Index
SetStorage
- Deprecate
scala.xml.dtd.impl.PointedHedgeExp
- Deprecate
scala.xml.dtd.Scanner
- Deprecate
scala.xml.dtd.ContentModelParser
- Deprecate
scala.xml.dtd.ElementValidator
- Deprecate
scala.xml.factory.Binder
- Deprecate
scala.xml.parsing.ValidatingMarkupHandler
- Deprecate definitions under
๐ The items deprecated above are already deleted in the 2.0.0-M1 milestone release, which see https://github.com/scala/scala-xml/blob/v2.0.0-M1/CHANGELOG.md
- ๐ Fixes regression on Scala 2.13, issue #392, concerning the collections implementation for
-
v1.2.0 Changes
June 07, 20192019-05-30