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