|
1 | 1 | ## 2.0.0 ## |
2 | 2 |
|
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 |
7 | 33 |
|
8 | 34 | ## 1.0.0 ## |
9 | 35 |
|
|
0 commit comments