Skip to content

Commit 19b73e2

Browse files
Update changelog
1 parent 0a24dee commit 19b73e2

1 file changed

Lines changed: 30 additions & 4 deletions

File tree

CHANGES.md

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,35 @@
11
## 2.0.0 ##
22

3-
* Re-write to use node-xmlcreate module
4-
* Add support for document type definitions
5-
* Add support for CDATA handlers
6-
* Standardize option formats
3+
* Re-write in TypeScript
4+
* Re-write to use xmlcreate (greatly simplifies module source)
5+
* Added support for the ECMAScript 2015 Map and Set objects
6+
* New method of calling module:
7+
```javascript
8+
var js2xmlparser = require("js2xmlparser");
9+
10+
var root = "root";
11+
var data = { hello: "world" };
12+
var options = {};
13+
14+
// old method (no longer works):
15+
// js2xmlparser(root, data, options);
16+
17+
// new method:
18+
js2xmlparser.parse(root, data, options);
19+
```
20+
* New options and changes to functionality of some existing options:
21+
* `declaration` contains additional options
22+
* `attributeString` has additional functionality
23+
* `valueString` has additional functionality
24+
* The functionality provided by `prettyPrinting` is now provided by the new
25+
`format` option, which contains additional options
26+
* `arrayMap` is now `wrapHandlers` to reflect the fact that wrapping is
27+
provided for both arrays and ES2015 sets
28+
* `convertMap` is now `typeHandlers` to match the name change to `arrayMap`
29+
* The functionality provided by `useCDATA` is now provided by the new
30+
`cdataInvalidChars` and `cdataKeys` options, which also provide additional
31+
functionality
32+
* Added support for document type definitions using the `dtd` option
733

834
## 1.0.0 ##
935

0 commit comments

Comments
 (0)