|
| 1 | +# Scala XML Changes |
| 2 | + |
| 3 | +## 2.0.0-M1 (2019-10-21) |
| 4 | + |
| 5 | +Not binary compatible with Scala XML 1.2.0. |
| 6 | + |
| 7 | +Published for Scala 2.12, 2.13 and Scala.js 0.6, 1.0.0-M8. |
| 8 | +Artifacts are no longer published for Scala 2.11. |
| 9 | + |
| 10 | +There have been a number of deprecated elements that have been |
| 11 | +removed, see the "[Removed](#Removed)" section below. |
| 12 | + |
| 13 | +### Added |
| 14 | + |
| 15 | +- The `apiURL` is now published in ivy metadata so that hyperlinks |
| 16 | + exist in downstream projects that reference Scala XML in their |
| 17 | + Scaladocs. |
| 18 | + |
| 19 | +### Changed |
| 20 | + |
| 21 | +- Changed use of `scala.collection.mutable.Stack` in `FactoryAdapter` to a |
| 22 | + `scala.collection.immutable.List`. These members were affected. |
| 23 | + - `attribStack` |
| 24 | + - `hStack` |
| 25 | + - `tagStack` |
| 26 | + - `scopeStack` |
| 27 | +- The abstract class `FactoryAdapter`, see above, is used elsewhere |
| 28 | + within the library, as well, so the previous changes are also |
| 29 | + inherited by: |
| 30 | + - `scala.xml.parsing.NoBindingFactoryAdapter` implemented class |
| 31 | + - `scala.xml.factory.XMLLoader.adapter` static member |
| 32 | + |
| 33 | +### Fixed |
| 34 | + |
| 35 | +- Attribute order is preserved for XML elements, not reversed. |
| 36 | +- Don't escape quotes in `scala.xml.PCData` and `CDATA` as an XML `"` |
| 37 | + |
| 38 | +### Removed |
| 39 | + |
| 40 | +Most of these deletions are of vestigial code that is either unused, |
| 41 | +of poor quality or both. Very few users of Scala XML will even notice |
| 42 | +the removed parts. Most users will not be affected. |
| 43 | + |
| 44 | +The deletions represent about one thousand lines of code (sloc). By |
| 45 | +comparison Scala XML is 10,000 sloc, so this is about 10% reduction in |
| 46 | +sloc. The code that supports XML literals is maintained upstream in |
| 47 | +the Scala compiler, not in the Scala XML library. |
| 48 | + |
| 49 | +- Remove deprecated `scala.xml.pull.XMLEventReader` |
| 50 | +- Remove deprecated versions of `scala.xml.Elem` constructors |
| 51 | +- Remove deprecated `scala.xml.Elem.xmlToProcess` and |
| 52 | + `scala.xml.Elem.processXml` |
| 53 | +- Remove deprecated definitions under `scala.xml.persistent` |
| 54 | + - `CachedFileStorage` |
| 55 | + - `Index` |
| 56 | + - `SetStorage` |
| 57 | +- Remove `scala.xml.dtd.impl.PointedHedgeExp` |
| 58 | +- Remove `scala.xml.dtd.Scanner` |
| 59 | +- Remove `scala.xml.dtd.ContentModelParser` |
| 60 | +- Remove `scala.xml.factory.Binder` |
| 61 | +- Remove `scala.xml.parsing.ValidatingMarkupHandler` |
0 commit comments