UNPKG

3.59 kBMarkdownView Raw
1## 5.0.0
2
3- Allow typeHandlers to be used with bare text and attribute values
4- Clarify that typeHandlers cannot be used with aliases in documentation
5
6## 4.0.2
7
8- Update dependencies
9- Export options interfaces in main module
10- Update example to include root attribute
11
12## 4.0.1
13
14- Update dependencies
15- Use ESLint instead of TSLint
16- Use npm instead of gulp
17
18## 4.0.0
19
20- Do not indent multi-line strings
21- Use self-closing tags, unless otherwise specified
22- Add option to automatically replace invalid characters with U+FFFD
23- Add option to suppress certain values from output
24- Add support for adding to existing xmlcreate object
25- Remove certain unnecessary validation rules
26- Bug fixes
27- Correct errors in documentation
28
29## 3.0.0
30
31- Bug fixes
32- Add null and undefined in type declarations
33- Remove explicit engines requirement
34
35## 2.0.2
36
37- Bug fixes
38
39## 2.0.1
40
41- Remove unnecessary development dependencies from npm shrinkwrap
42
43## 2.0.0
44
45- Re-write in TypeScript
46- Re-write to use xmlcreate (greatly simplifies module source)
47- Added support for the ECMAScript 2015 Map and Set objects
48- New method of calling module:
49
50 ```javascript
51 var js2xmlparser = require("js2xmlparser");
52
53 var root = "root";
54 var data = {hello: "world"};
55 var options = {};
56
57 // old method (no longer works):
58 // js2xmlparser(root, data, options);
59
60 // new method:
61 js2xmlparser.parse(root, data, options);
62 ```
63
64- New options and changes to functionality of some existing options:
65 - `declaration` contains additional options
66 - `attributeString` has additional functionality
67 - `valueString` has additional functionality
68 - The functionality provided by `prettyPrinting` is now provided by the new
69 `format` option, which contains additional options
70 - `arrayMap` is now `wrapHandlers` to reflect the fact that wrapping is
71 provided for both arrays and ES2015 sets
72 - `convertMap` is now `typeHandlers` to match the name change to `arrayMap`
73 - The functionality provided by `useCDATA` is now provided by the new
74 `cdataInvalidChars` and `cdataKeys` options, which also provide additional
75 functionality
76 - Added support for document type definitions using the `dtd` option
77
78## 1.0.0
79
80- First stable release
81- Add arrayMap feature
82- Switch to semantic versioning
83- Switch to Apache 2.0 license
84
85## 0.1.9
86
87- Fix error in example.js
88
89## 0.1.8
90
91- Reconcile readme and tests with examples
92
93## 0.1.7
94
95- Added .gitattributes to .gitignore file
96- Minor tweaks to examples
97
98## 0.1.6
99
100- Addition of alias string option
101- Minor changes to examples
102- Minor fixes to tests
103
104## 0.1.5
105
106- Bug fixes
107- Minor changes to examples
108
109## 0.1.4
110
111- Removed callFunctions option (functionality already provided by convertMap option)
112- Removed wrapArray option (functionality already provided by existing array functionality)
113- Escape numbers when at tbe beginning of an element name
114- Edits to documentation
115- Added tests
116- Added copyright headers to individual JS files
117
118## 0.1.3
119
120- Fixed crash when undefined objects are converted to strings
121- Added callFunctions option
122- Added wrapArray option
123- Added useCDATA option
124- Added convertMap option
125- Added copyright year and "and other contributors" to license
126
127## 0.1.2
128
129- Fixed crash when null objects are converted to strings
130
131## 0.1.1
132
133- Fixed accidental truncation of XML when pretty-printing is disabled
134- Removed copyright year from license
135
136## 0.1.0
137
138- Initial release