2
2
3
3
## 2.0.0 (2021-05-13)
4
4
5
- Published for Scala 2.12 and 2.13, Scala 3.0.0 (and -RC3), Scala.js 1.5, and Scala Native 0.4 .
5
+ Not binary compatible with Scala XML 1.3.0 .
6
6
7
- - Support Scala 3.0.0
8
- - Drop `scala.xml.Properties
9
- - Remove deprecated logging
7
+ Published for Scala 2.12, 2.13, and 3.0 (and 3.0.0-RC3), Scala.js 1.5,
8
+ and Scala Native 0.4.
10
9
11
- ## 2.0.0-RC1 (2021-03-29)
10
+ Artifacts are no longer published for Scala 2.11 and Scala.js 0.6.
12
11
13
- NOTICE: The safe-defaults change may be a breaking change for some users. Details on PR.
14
-
15
- - Set safe defaults for parser settings
16
- - Use a ` ThreadLocal ` to allow reusing parser instances
17
- - Declare version policy
18
-
19
- Published for Scala 2.12 and 2.13, Scala 3.0.0-RC2 and -RC1, Scala.js 1.5, and Scala Native 0.4.
20
-
21
- ## 2.0.0-M4 (2021-02-16)
22
-
23
- Published for Scala 2.12 and 2.13, Scala 3.0.0-RC1 and -M3, Scala.js 1.5, and Scala Native 0.4.
24
-
25
- - Support Scala 3.0.0-RC1 (and drop 3.0.0-M2)
26
- - Upgrade Scala.js to 1.5.0
27
-
28
- ## 2.0.0-M3 (2021-01-30)
29
-
30
- Published for Scala 2.12 and 2.13, Scala 3.0.0-M2 and -M3, Scala.js 1.4, and Scala Native 0.4.
31
-
32
- - Add support for Scala Native 0.4
33
- - Make RuleTransformer fully recursive
34
- - Fix invalid comment edge case
35
-
36
- ## 2.0.0-M2 (2020-09-15)
37
-
38
- Published for Scala 2.12 and 2.13, Scala.js 1.2.0,
39
- and Dotty 0.27.0-RC1.
40
-
41
- ### Removed
42
-
43
- - Removed ` scala.xml.dtd.ElementValidator `
44
-
45
- ## 2.0.0-M1 (2019-10-21)
46
-
47
- Not binary compatible with Scala XML 1.2.0.
48
-
49
- Published for Scala 2.12, 2.13 and Scala.js 0.6, 1.0.0-M8.
50
- Artifacts are no longer published for Scala 2.11.
51
-
52
- Some deprecated elements have been removed; see the "[ Removed] ( #Removed ) " section below.
12
+ A number of deprecated elements have been removed from the library;
13
+ see the "[ Removed] ( #Removed ) " section below. The library's JAR byte
14
+ size is about 15% smaller.
53
15
54
16
### Added
55
17
18
+ - Add ` scala.xml.transform.NestingTransformer ` , to apply a single rule
19
+ recursively, to give the original behavior of ` RuleTransformer ` , see
20
+ below.
56
21
- The ` apiURL ` is now published in ivy metadata so that hyperlinks
57
22
exist in downstream projects that reference Scala XML in their
58
23
Scaladocs.
24
+ - Declare version policy of with early-semver in Mima with
25
+ sbt-version-policy plugin
59
26
60
27
### Changed
61
28
29
+ - Changes to the default parser settings for the JDK SAXParser, see
30
+ [ Safe parser defaults] ( https://github.com/scala/scala-xml/wiki/Safer-parser-defaults )
31
+ page on the wiki.
32
+ - The parser used by the load methods from ` scala.xml.XML ` and from
33
+ ` scala.xml.factory.XMLLoader ` is now a ` ThreadLocal ` instance of
34
+ SAXParser to reuse the parser instance and avoid repeatedly
35
+ allocating one on every file load.
36
+ - Improve ` scala.xml.transform.RuleTransformer ` to apply all rules recursively.
37
+ - Reject invalid comment text that ends in a dash (-) in ` scala.xml.Comment ` .
62
38
- Changed use of ` scala.collection.mutable.Stack ` in ` FactoryAdapter ` to a
63
39
` scala.collection.immutable.List ` . These members were affected.
64
40
- ` attribStack `
@@ -82,8 +58,8 @@ Most of these deletions are of vestigial code that is either unused,
82
58
of poor quality or both. Very few users of Scala XML will even notice
83
59
the removed parts. Most users will not be affected.
84
60
85
- The deletions represent about one thousand lines of code (sloc). By
86
- comparison Scala XML is 10,000 sloc, so this is about 10 % reduction in
61
+ The deletions represent about 1500 lines of code (sloc). By
62
+ comparison Scala XML is 10,000 sloc, so this is about 15 % reduction in
87
63
sloc. The code that supports XML literals is maintained upstream in
88
64
the Scala compiler, not in the Scala XML library.
89
65
@@ -101,3 +77,6 @@ the Scala compiler, not in the Scala XML library.
101
77
- Remove ` scala.xml.dtd.ElementValidator `
102
78
- Remove ` scala.xml.factory.Binder `
103
79
- Remove ` scala.xml.parsing.ValidatingMarkupHandler `
80
+ - Remove ` scala.xml.Properties `
81
+ - Remove ` scala.xml.factory.LoggedNodeFactory `
82
+ - Remove ` scala.xml.parsing.MarkupHandler.log `
0 commit comments