Skip to content

Commit 7f05451

Browse files
committed
Combine the 2.0 release notes
1 parent 13500ea commit 7f05451

File tree

1 file changed

+26
-47
lines changed

1 file changed

+26
-47
lines changed

CHANGELOG.md

Lines changed: 26 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -2,63 +2,39 @@
22

33
## 2.0.0 (2021-05-13)
44

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.
66

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.
109

11-
## 2.0.0-RC1 (2021-03-29)
10+
Artifacts are no longer published for Scala 2.11 and Scala.js 0.6.
1211

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.
5315

5416
### Added
5517

18+
- Add `scala.xml.transform.NestingTransformer`, to apply a single rule
19+
recursively, to give the original behavior of `RuleTransformer`, see
20+
below.
5621
- The `apiURL` is now published in ivy metadata so that hyperlinks
5722
exist in downstream projects that reference Scala XML in their
5823
Scaladocs.
24+
- Declare version policy of with early-semver in Mima with
25+
sbt-version-policy plugin
5926

6027
### Changed
6128

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`.
6238
- Changed use of `scala.collection.mutable.Stack` in `FactoryAdapter` to a
6339
`scala.collection.immutable.List`. These members were affected.
6440
- `attribStack`
@@ -82,8 +58,8 @@ Most of these deletions are of vestigial code that is either unused,
8258
of poor quality or both. Very few users of Scala XML will even notice
8359
the removed parts. Most users will not be affected.
8460

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
8763
sloc. The code that supports XML literals is maintained upstream in
8864
the Scala compiler, not in the Scala XML library.
8965

@@ -101,3 +77,6 @@ the Scala compiler, not in the Scala XML library.
10177
- Remove `scala.xml.dtd.ElementValidator`
10278
- Remove `scala.xml.factory.Binder`
10379
- 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

Comments
 (0)