fast-xml-parser 4.4.0 → 4.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,214 +1,222 @@
1
- Note: If you find missing information about particular minor version, that version must have been changed without any functional change in this library.
1
+ <small>Note: If you find missing information about particular minor version, that version must have been changed without any functional change in this library.</small>
2
+
3
+ **4.5.0 / 2024-09-03**
4
+ - feat #666: ignoreAttributes support function, and array of string or regex (By [ArtemM](https://github.com/mav-rik))
5
+
6
+ **4.4.1 / 2024-07-28**
7
+ - v5 fix: maximum length limit to currency value
8
+ - fix #634: build attributes with oneListGroup and attributesGroupName (#653)(By [Andreas Naziris](https://github.com/a-rasin))
9
+ - fix: get oneListGroup to work as expected for array of strings (#662)(By [Andreas Naziris](https://github.com/a-rasin))
2
10
 
3
11
  **4.4.0 / 2024-05-18**
4
- * fix #654: parse attribute list correctly for self closing stop node.
5
- * fix: validator bug when closing tag is not opened. (#647) (By [Ryosuke Fukatani](https://github.com/RyosukeFukatani))
6
- * fix #581: typings; return type of `tagValueProcessor` & `attributeValueProcessor` (#582) (By [monholm]())
12
+ - fix #654: parse attribute list correctly for self closing stop node.
13
+ - fix: validator bug when closing tag is not opened. (#647) (By [Ryosuke Fukatani](https://github.com/RyosukeFukatani))
14
+ - fix #581: typings; return type of `tagValueProcessor` & `attributeValueProcessor` (#582) (By [monholm]())
7
15
 
8
16
  **4.3.6 / 2024-03-16**
9
- * Add support for parsing HTML numeric entities (#645) (By [Jonas Schade ](https://github.com/DerZade))
17
+ - Add support for parsing HTML numeric entities (#645) (By [Jonas Schade ](https://github.com/DerZade))
10
18
 
11
19
  **4.3.5 / 2024-02-24**
12
- * code for v5 is added for experimental use
20
+ - code for v5 is added for experimental use
13
21
 
14
22
  **4.3.4 / 2024-01-10**
15
- * fix: Don't escape entities in CDATA sections (#633) (By [wackbyte](https://github.com/wackbyte))
23
+ - fix: Don't escape entities in CDATA sections (#633) (By [wackbyte](https://github.com/wackbyte))
16
24
 
17
25
  **4.3.3 / 2024-01-10**
18
- * Remove unnecessary regex
26
+ - Remove unnecessary regex
19
27
 
20
28
  **4.3.2 / 2023-10-02**
21
- * fix `jObj.hasOwnProperty` when give input is null (By [Arda TANRIKULU](https://github.com/ardatan))
29
+ - fix `jObj.hasOwnProperty` when give input is null (By [Arda TANRIKULU](https://github.com/ardatan))
22
30
 
23
31
  **4.3.1 / 2023-09-24**
24
- * revert back "Fix typings for builder and parser to make return type generic" to avoid failure of existing projects. Need to decide a common approach.
32
+ - revert back "Fix typings for builder and parser to make return type generic" to avoid failure of existing projects. Need to decide a common approach.
25
33
 
26
34
  **4.3.0 / 2023-09-20**
27
- * Fix stopNodes to work with removeNSPrefix (#607) (#608) (By [Craig Andrews]https://github.com/candrews))
28
- * Fix #610 ignore properties set to Object.prototype
29
- * Fix typings for builder and parser to make return type generic (By [Sarah Dayan](https://github.com/sarahdayan))
35
+ - Fix stopNodes to work with removeNSPrefix (#607) (#608) (By [Craig Andrews]https://github.com/candrews))
36
+ - Fix #610 ignore properties set to Object.prototype
37
+ - Fix typings for builder and parser to make return type generic (By [Sarah Dayan](https://github.com/sarahdayan))
30
38
 
31
39
  **4.2.7 / 2023-07-30**
32
- * Fix: builder should set text node correctly when only textnode is present (#589) (By [qianqing](https://github.com/joneqian))
33
- * Fix: Fix for null and undefined attributes when building xml (#585) (#598). A null or undefined value should be ignored. (By [Eugenio Ceschia](https://github.com/cecia234))
40
+ - Fix: builder should set text node correctly when only textnode is present (#589) (By [qianqing](https://github.com/joneqian))
41
+ - Fix: Fix for null and undefined attributes when building xml (#585) (#598). A null or undefined value should be ignored. (By [Eugenio Ceschia](https://github.com/cecia234))
34
42
 
35
43
  **4.2.6 / 2023-07-17**
36
- * Fix: Remove trailing slash from jPath for self-closing tags (#595) (By [Maciej Radzikowski](https://github.com/m-radzikowski))
44
+ - Fix: Remove trailing slash from jPath for self-closing tags (#595) (By [Maciej Radzikowski](https://github.com/m-radzikowski))
37
45
 
38
46
  **4.2.5 / 2023-06-22**
39
- * change code implementation
47
+ - change code implementation
40
48
 
41
49
  **4.2.4 / 2023-06-06**
42
- * fix security bug
50
+ - fix security bug
43
51
 
44
52
  **4.2.3 / 2023-06-05**
45
- * fix security bug
53
+ - fix security bug
46
54
 
47
55
  **4.2.2 / 2023-04-18**
48
- * fix #562: fix unpaired tag when it comes in last of a nested tag. Also throw error when unpaired tag is used as closing tag
56
+ - fix #562: fix unpaired tag when it comes in last of a nested tag. Also throw error when unpaired tag is used as closing tag
49
57
 
50
58
  **4.2.1 / 2023-04-18**
51
- * fix: jpath after unpaired tags
59
+ - fix: jpath after unpaired tags
52
60
 
53
61
  **4.2.0 / 2023-04-09**
54
- * support `updateTag` parser property
62
+ - support `updateTag` parser property
55
63
 
56
64
  **4.1.4 / 2023-04-08**
57
- * update typings to let user create XMLBuilder instance without options (#556) (By [Patrick](https://github.com/omggga))
58
- * fix: IsArray option isn't parsing tags with 0 as value correctly #490 (#557) (By [Aleksandr Murashkin](https://github.com/p-kuen))
59
- * feature: support `oneListGroup` to group repeated children tags udder single group
65
+ - update typings to let user create XMLBuilder instance without options (#556) (By [Patrick](https://github.com/omggga))
66
+ - fix: IsArray option isn't parsing tags with 0 as value correctly #490 (#557) (By [Aleksandr Murashkin](https://github.com/p-kuen))
67
+ - feature: support `oneListGroup` to group repeated children tags udder single group
60
68
 
61
69
  **4.1.3 / 2023-02-26**
62
- * fix #546: Support complex entity value
70
+ - fix #546: Support complex entity value
63
71
 
64
72
  **4.1.2 / 2023-02-12**
65
- * Security Fix
73
+ - Security Fix
66
74
 
67
75
  **4.1.1 / 2023-02-03**
68
- * Fix #540: ignoreAttributes breaks unpairedTags
69
- * Refactor XML builder code
76
+ - Fix #540: ignoreAttributes breaks unpairedTags
77
+ - Refactor XML builder code
70
78
 
71
79
  **4.1.0 / 2023-02-02**
72
- * Fix '<' or '>' in DTD comment throwing an error. (#533) (By [Adam Baker](https://github.com/Cwazywierdo))
73
- * Set "eNotation" to 'true' as default
80
+ - Fix '<' or '>' in DTD comment throwing an error. (#533) (By [Adam Baker](https://github.com/Cwazywierdo))
81
+ - Set "eNotation" to 'true' as default
74
82
 
75
83
  **4.0.15 / 2023-01-25**
76
- * make "eNotation" optional
84
+ - make "eNotation" optional
77
85
 
78
86
  **4.0.14 / 2023-01-22**
79
- * fixed: add missed typing "eNotation" to parse values
87
+ - fixed: add missed typing "eNotation" to parse values
80
88
 
81
89
  **4.0.13 / 2023-01-07**
82
- * preserveorder formatting (By [mdeknowis](https://github.com/mdeknowis))
83
- * support `transformAttributeName` (By [Erik Rothoff Andersson](https://github.com/erkie))
90
+ - preserveorder formatting (By [mdeknowis](https://github.com/mdeknowis))
91
+ - support `transformAttributeName` (By [Erik Rothoff Andersson](https://github.com/erkie))
84
92
 
85
93
  **4.0.12 / 2022-11-19**
86
- * fix typescript
94
+ - fix typescript
87
95
 
88
96
  **4.0.11 / 2022-10-05**
89
- * fix #501: parse for entities only once
97
+ - fix #501: parse for entities only once
90
98
 
91
99
  **4.0.10 / 2022-09-14**
92
- * fix broken links in demo site (By [Yannick Lang](https://github.com/layaxx))
93
- * fix #491: tagValueProcessor type definition (By [Andrea Francesco Speziale](https://github.com/andreafspeziale))
94
- * Add jsdocs for tagValueProcessor
100
+ - fix broken links in demo site (By [Yannick Lang](https://github.com/layaxx))
101
+ - fix #491: tagValueProcessor type definition (By [Andrea Francesco Speziale](https://github.com/andreafspeziale))
102
+ - Add jsdocs for tagValueProcessor
95
103
 
96
104
 
97
105
  **4.0.9 / 2022-07-10**
98
- * fix #470: stop-tag can have self-closing tag with same name
99
- * fix #472: stopNode can have any special tag inside
100
- * Allow !ATTLIST and !NOTATION with DOCTYPE
101
- * Add transformTagName option to transform tag names when parsing (#469) (By [Erik Rothoff Andersson](https://github.com/erkie))
106
+ - fix #470: stop-tag can have self-closing tag with same name
107
+ - fix #472: stopNode can have any special tag inside
108
+ - Allow !ATTLIST and !NOTATION with DOCTYPE
109
+ - Add transformTagName option to transform tag names when parsing (#469) (By [Erik Rothoff Andersson](https://github.com/erkie))
102
110
 
103
111
  **4.0.8 / 2022-05-28**
104
- * Fix CDATA parsing returning empty string when value = 0 (#451) (By [ndelanou](https://github.com/ndelanou))
105
- * Fix stopNodes when same tag appears inside node (#456) (By [patrickshipe](https://github.com/patrickshipe))
106
- * fix #468: prettify own properties only
112
+ - Fix CDATA parsing returning empty string when value = 0 (#451) (By [ndelanou](https://github.com/ndelanou))
113
+ - Fix stopNodes when same tag appears inside node (#456) (By [patrickshipe](https://github.com/patrickshipe))
114
+ - fix #468: prettify own properties only
107
115
 
108
116
  **4.0.7 / 2022-03-18**
109
- * support CDATA even if tag order is not preserved
110
- * support Comments even if tag order is not preserved
111
- * fix #446: XMLbuilder should not indent XML declaration
117
+ - support CDATA even if tag order is not preserved
118
+ - support Comments even if tag order is not preserved
119
+ - fix #446: XMLbuilder should not indent XML declaration
112
120
 
113
121
  **4.0.6 / 2022-03-08**
114
- * fix: call tagValueProcessor only once for array items
115
- * fix: missing changed for #437
122
+ - fix: call tagValueProcessor only once for array items
123
+ - fix: missing changed for #437
116
124
 
117
125
  **4.0.5 / 2022-03-06**
118
- * fix #437: call tagValueProcessor from XML builder
126
+ - fix #437: call tagValueProcessor from XML builder
119
127
 
120
128
  **4.0.4 / 2022-03-03**
121
- * fix #435: should skip unpaired and self-closing nodes when set as stopnodes
129
+ - fix #435: should skip unpaired and self-closing nodes when set as stopnodes
122
130
 
123
131
  **4.0.3 / 2022-02-15**
124
- * fix: ReferenceError when Bundled with Strict (#431) (By [Andreas Heissenberger](https://github.com/aheissenberger))
132
+ - fix: ReferenceError when Bundled with Strict (#431) (By [Andreas Heissenberger](https://github.com/aheissenberger))
125
133
 
126
134
 
127
135
  **4.0.2 / 2022-02-04**
128
- * builder supports `suppressUnpairedNode`
129
- * parser supports `ignoreDeclaration` and `ignorePiTags`
130
- * fix: when comment is parsed as text value if given as `<!--> ...` #423
131
- * builder supports decoding `&`
136
+ - builder supports `suppressUnpairedNode`
137
+ - parser supports `ignoreDeclaration` and `ignorePiTags`
138
+ - fix: when comment is parsed as text value if given as `<!--> ...` #423
139
+ - builder supports decoding `&`
132
140
 
133
141
  **4.0.1 / 2022-01-08**
134
- * fix builder for pi tag
135
- * fix: support suppressBooleanAttrs by builder
142
+ - fix builder for pi tag
143
+ - fix: support suppressBooleanAttrs by builder
136
144
 
137
145
  **4.0.0 / 2022-01-06**
138
- * Generating different combined, parser only, builder only, validator only browser bundles
139
- * Keeping cjs modules as they can be imported in cjs and esm modules both. Otherwise refer `esm` branch.
146
+ - Generating different combined, parser only, builder only, validator only browser bundles
147
+ - Keeping cjs modules as they can be imported in cjs and esm modules both. Otherwise refer `esm` branch.
140
148
 
141
149
  **4.0.0-beta.8 / 2021-12-13**
142
- * call tagValueProcessor for stop nodes
150
+ - call tagValueProcessor for stop nodes
143
151
 
144
152
  **4.0.0-beta.7 / 2021-12-09**
145
- * fix Validator bug when an attribute has no value but '=' only
146
- * XML Builder should suppress unpaired tags by default.
147
- * documents update for missing features
148
- * refactoring to use Object.assign
149
- * refactoring to remove repeated code
153
+ - fix Validator bug when an attribute has no value but '=' only
154
+ - XML Builder should suppress unpaired tags by default.
155
+ - documents update for missing features
156
+ - refactoring to use Object.assign
157
+ - refactoring to remove repeated code
150
158
 
151
159
  **4.0.0-beta.6 / 2021-12-05**
152
- * Support PI Tags processing
153
- * Support `suppressBooleanAttributes` by XML Builder for attributes with value `true`.
160
+ - Support PI Tags processing
161
+ - Support `suppressBooleanAttributes` by XML Builder for attributes with value `true`.
154
162
 
155
163
  **4.0.0-beta.5 / 2021-12-04**
156
- * fix: when a tag with name "attributes"
164
+ - fix: when a tag with name "attributes"
157
165
 
158
166
  **4.0.0-beta.4 / 2021-12-02**
159
- * Support HTML document parsing
160
- * skip stop nodes parsing when building the XML from JS object
161
- * Support external entites without DOCTYPE
162
- * update dev dependency: strnum v1.0.5 to fix long number issue
167
+ - Support HTML document parsing
168
+ - skip stop nodes parsing when building the XML from JS object
169
+ - Support external entites without DOCTYPE
170
+ - update dev dependency: strnum v1.0.5 to fix long number issue
163
171
 
164
172
  **4.0.0-beta.3 / 2021-11-30**
165
- * support global stopNodes expression like "*.stop"
166
- * support self-closing and paired unpaired tags
167
- * fix: CDATA should not be parsed.
168
- * Fix typings for XMLBuilder (#396)(By [Anders Emil Salvesen](https://github.com/andersem))
169
- * supports XML entities, HTML entities, DOCTYPE entities
173
+ - support global stopNodes expression like "*.stop"
174
+ - support self-closing and paired unpaired tags
175
+ - fix: CDATA should not be parsed.
176
+ - Fix typings for XMLBuilder (#396)(By [Anders Emil Salvesen](https://github.com/andersem))
177
+ - supports XML entities, HTML entities, DOCTYPE entities
170
178
 
171
179
  **⚠️ 4.0.0-beta.2 / 2021-11-19**
172
- * rename `attrMap` to `attibutes` in parser output when `preserveOrder:true`
173
- * supports unpairedTags
180
+ - rename `attrMap` to `attibutes` in parser output when `preserveOrder:true`
181
+ - supports unpairedTags
174
182
 
175
183
  **⚠️ 4.0.0-beta.1 / 2021-11-18**
176
- * Parser returns an array now
177
- * to make the structure common
178
- * and to return root level detail
179
- * renamed `cdataTagName` to `cdataPropName`
180
- * Added `commentPropName`
181
- * fix typings
184
+ - Parser returns an array now
185
+ - to make the structure common
186
+ - and to return root level detail
187
+ - renamed `cdataTagName` to `cdataPropName`
188
+ - Added `commentPropName`
189
+ - fix typings
182
190
 
183
191
  **⚠️ 4.0.0-beta.0 / 2021-11-16**
184
- * Name change of many configuration properties.
185
- * `attrNodeName` to `attributesGroupName`
186
- * `attrValueProcessor` to `attributeValueProcessor`
187
- * `parseNodeValue` to `parseTagValue`
188
- * `ignoreNameSpace` to `removeNSPrefix`
189
- * `numParseOptions` to `numberParseOptions`
190
- * spelling correction for `suppressEmptyNode`
191
- * Name change of cli and browser bundle to **fxparser**
192
- * `isArray` option is added to parse a tag into array
193
- * `preserveOrder` option is added to render XML in such a way that the result js Object maintains the order of properties same as in XML.
194
- * Processing behaviour of `tagValueProcessor` and `attributeValueProcessor` are changes with extra input parameters
195
- * j2xparser is renamed to XMLBuilder.
196
- * You need to build XML parser instance for given options first before parsing XML.
197
- * fix #327, #336: throw error when extra text after XML content
198
- * fix #330: attribute value can have '\n',
199
- * fix #350: attrbiutes can be separated by '\n' from tagname
192
+ - Name change of many configuration properties.
193
+ - `attrNodeName` to `attributesGroupName`
194
+ - `attrValueProcessor` to `attributeValueProcessor`
195
+ - `parseNodeValue` to `parseTagValue`
196
+ - `ignoreNameSpace` to `removeNSPrefix`
197
+ - `numParseOptions` to `numberParseOptions`
198
+ - spelling correction for `suppressEmptyNode`
199
+ - Name change of cli and browser bundle to **fxparser**
200
+ - `isArray` option is added to parse a tag into array
201
+ - `preserveOrder` option is added to render XML in such a way that the result js Object maintains the order of properties same as in XML.
202
+ - Processing behaviour of `tagValueProcessor` and `attributeValueProcessor` are changes with extra input parameters
203
+ - j2xparser is renamed to XMLBuilder.
204
+ - You need to build XML parser instance for given options first before parsing XML.
205
+ - fix #327, #336: throw error when extra text after XML content
206
+ - fix #330: attribute value can have '\n',
207
+ - fix #350: attrbiutes can be separated by '\n' from tagname
200
208
 
201
209
  3.21.1 / 2021-10-31
202
- * Correctly format JSON elements with a text prop but no attribute props ( By [haddadnj](https://github.com/haddadnj) )
210
+ - Correctly format JSON elements with a text prop but no attribute props ( By [haddadnj](https://github.com/haddadnj) )
203
211
 
204
212
  3.21.0 / 2021-10-25
205
- * feat: added option `rootNodeName` to set tag name for array input when converting js object to XML.
206
- * feat: added option `alwaysCreateTextNode` to force text node creation (by: *@massimo-ua*)
207
- * ⚠️ feat: Better error location for unclosed tags. (by *@Gei0r*)
208
- * Some error messages would be changed when validating XML. Eg
209
- * `{ InvalidXml: "Invalid '[ \"rootNode\"]' found." }` → `{InvalidTag: "Unclosed tag 'rootNode'."}`
210
- * `{ InvalidTag: "Closing tag 'rootNode' is expected inplace of 'rootnode'." }` → `{ InvalidTag: "Expected closing tag 'rootNode' (opened in line 1) instead of closing tag 'rootnode'."}`
211
- * ⚠️ feat: Column in error response when validating XML
213
+ - feat: added option `rootNodeName` to set tag name for array input when converting js object to XML.
214
+ - feat: added option `alwaysCreateTextNode` to force text node creation (by: *@massimo-ua*)
215
+ - ⚠️ feat: Better error location for unclosed tags. (by *@Gei0r*)
216
+ - Some error messages would be changed when validating XML. Eg
217
+ - `{ InvalidXml: "Invalid '[ \"rootNode\"]' found." }` → `{InvalidTag: "Unclosed tag 'rootNode'."}`
218
+ - `{ InvalidTag: "Closing tag 'rootNode' is expected inplace of 'rootnode'." }` → `{ InvalidTag: "Expected closing tag 'rootNode' (opened in line 1) instead of closing tag 'rootnode'."}`
219
+ - ⚠️ feat: Column in error response when validating XML
212
220
  ```js
213
221
  {
214
222
  "code": "InvalidAttr",
@@ -219,371 +227,371 @@ Note: If you find missing information about particular minor version, that versi
219
227
  ```
220
228
 
221
229
  3.20.1 / 2021-09-25
222
- * update strnum package
230
+ - update strnum package
223
231
 
224
232
  3.20.0 / 2021-09-10
225
- * Use strnum npm package to parse string to number
226
- * breaking change: long number will be parsed to scientific notation.
233
+ - Use strnum npm package to parse string to number
234
+ - breaking change: long number will be parsed to scientific notation.
227
235
 
228
236
  3.19.0 / 2021-03-14
229
- * License changed to MIT original
230
- * Fix #321 : namespace tag parsing
237
+ - License changed to MIT original
238
+ - Fix #321 : namespace tag parsing
231
239
 
232
240
  3.18.0 / 2021-02-05
233
- * Support RegEx and function in arrayMode option
234
- * Fix #317 : validate nested PI tags
241
+ - Support RegEx and function in arrayMode option
242
+ - Fix #317 : validate nested PI tags
235
243
 
236
244
  3.17.4 / 2020-06-07
237
- * Refactor some code to support IE11
238
- * Fix: `<tag >` space as attribute string
245
+ - Refactor some code to support IE11
246
+ - Fix: `<tag >` space as attribute string
239
247
 
240
248
  3.17.3 / 2020-05-23
241
- * Fix: tag name separated by \n \t
242
- * Fix: throw error for unclosed tags
249
+ - Fix: tag name separated by \n \t
250
+ - Fix: throw error for unclosed tags
243
251
 
244
252
  3.17.2 / 2020-05-23
245
- * Fixed an issue in processing doctype tag
246
- * Fixed tagName where it should not have whitespace chars
253
+ - Fixed an issue in processing doctype tag
254
+ - Fixed tagName where it should not have whitespace chars
247
255
 
248
256
  3.17.1 / 2020-05-19
249
- * Fixed an issue in checking opening tag
257
+ - Fixed an issue in checking opening tag
250
258
 
251
259
  3.17.0 / 2020-05-18
252
- * parser: fix '<' issue when it comes in aatr value
253
- * parser: refactoring to remove dependency from regex
254
- * validator: fix IE 11 issue for error messages
255
- * updated dev dependencies
256
- * separated benchmark module to sub-module
257
- * breaking change: comments will not be removed from CDATA data
260
+ - parser: fix '<' issue when it comes in aatr value
261
+ - parser: refactoring to remove dependency from regex
262
+ - validator: fix IE 11 issue for error messages
263
+ - updated dev dependencies
264
+ - separated benchmark module to sub-module
265
+ - breaking change: comments will not be removed from CDATA data
258
266
 
259
267
  3.16.0 / 2020-01-12
260
- * validaor: fix for ampersand characters (#215)
261
- * refactoring to support unicode chars in tag name
262
- * update typing for validator error
268
+ - validaor: fix for ampersand characters (#215)
269
+ - refactoring to support unicode chars in tag name
270
+ - update typing for validator error
263
271
 
264
272
  3.15.1 / 2019-12-09
265
- * validaor: fix multiple roots are not allowed
273
+ - validaor: fix multiple roots are not allowed
266
274
 
267
275
  3.15.0 / 2019-11-23
268
- * validaor: improve error messaging
269
- * validator: add line number in case of error
270
- * validator: add more error scenarios to make it more descriptive
276
+ - validaor: improve error messaging
277
+ - validator: add line number in case of error
278
+ - validator: add more error scenarios to make it more descriptive
271
279
 
272
280
  3.14.0 / 2019-10-25
273
- * arrayMode for XML to JS obj parsing
281
+ - arrayMode for XML to JS obj parsing
274
282
 
275
283
  3.13.0 / 2019-10-02
276
- * pass tag/attr name to tag/attr value processor
277
- * inbuilt optional validation with XML parser
284
+ - pass tag/attr name to tag/attr value processor
285
+ - inbuilt optional validation with XML parser
278
286
 
279
287
  3.12.21 / 2019-10-02
280
- * Fix validator for unclosed XMLs
281
- * move nimnjs dependency to dev dependency
282
- * update dependencies
288
+ - Fix validator for unclosed XMLs
289
+ - move nimnjs dependency to dev dependency
290
+ - update dependencies
283
291
 
284
292
  3.12.20 / 2019-08-16
285
- * Revert: Fix #167: '>' in attribute value as it is causing high performance degrade.
293
+ - Revert: Fix #167: '>' in attribute value as it is causing high performance degrade.
286
294
 
287
295
  3.12.19 / 2019-07-28
288
- * Fix js to xml parser should work for date values. (broken: `tagValueProcessor` will receive the original value instead of string always) (breaking change)
296
+ - Fix js to xml parser should work for date values. (broken: `tagValueProcessor` will receive the original value instead of string always) (breaking change)
289
297
 
290
298
  3.12.18 / 2019-07-27
291
- * remove configstore dependency
299
+ - remove configstore dependency
292
300
 
293
301
  3.12.17 / 2019-07-14
294
- * Fix #167: '>' in attribute value
302
+ - Fix #167: '>' in attribute value
295
303
 
296
304
  3.12.16 / 2019-03-23
297
- * Support a new option "stopNodes". (#150)
305
+ - Support a new option "stopNodes". (#150)
298
306
  Accept the list of tags which are not required to be parsed. Instead, all the nested tag and data will be assigned as string.
299
- * Don't show post-install message
307
+ - Don't show post-install message
300
308
 
301
309
  3.12.12 / 2019-01-11
302
- * fix : IE parseInt, parseFloat error
310
+ - fix : IE parseInt, parseFloat error
303
311
 
304
312
  3.12.11 / 2018-12-24
305
- * fix #132: "/" should not be parsed as boolean attr in case of self closing tags
313
+ - fix #132: "/" should not be parsed as boolean attr in case of self closing tags
306
314
 
307
315
  3.12.9 / 2018-11-23
308
- * fix #129 : validator should not fail when an atrribute name is 'length'
316
+ - fix #129 : validator should not fail when an atrribute name is 'length'
309
317
 
310
318
  3.12.8 / 2018-11-22
311
- * fix #128 : use 'attrValueProcessor' to process attribute value in json2xml parser
319
+ - fix #128 : use 'attrValueProcessor' to process attribute value in json2xml parser
312
320
 
313
321
  3.12.6 / 2018-11-10
314
- * Fix #126: check for type
322
+ - Fix #126: check for type
315
323
 
316
324
  3.12.4 / 2018-09-12
317
- * Fix: include tasks in npm package
325
+ - Fix: include tasks in npm package
318
326
 
319
327
  3.12.3 / 2018-09-12
320
- * Fix CLI issue raised in last PR
328
+ - Fix CLI issue raised in last PR
321
329
 
322
330
  3.12.2 / 2018-09-11
323
- * Fix formatting for JSON to XML output
324
- * Migrate to webpack (PR merged)
325
- * fix cli (PR merged)
331
+ - Fix formatting for JSON to XML output
332
+ - Migrate to webpack (PR merged)
333
+ - fix cli (PR merged)
326
334
 
327
335
  3.12.0 / 2018-08-06
328
- * Support hexadecimal values
329
- * Support true number parsing
336
+ - Support hexadecimal values
337
+ - Support true number parsing
330
338
 
331
339
  3.11.2 / 2018-07-23
332
- * Update Demo for more options
333
- * Update license information
334
- * Update readme for formatting, users, and spelling mistakes
335
- * Add missing typescript definition for j2xParser
336
- * refactoring: change filenames
340
+ - Update Demo for more options
341
+ - Update license information
342
+ - Update readme for formatting, users, and spelling mistakes
343
+ - Add missing typescript definition for j2xParser
344
+ - refactoring: change filenames
337
345
 
338
346
  3.11.1 / 2018-06-05
339
- * fix #93: read the text after self closing tag
347
+ - fix #93: read the text after self closing tag
340
348
 
341
349
  3.11.0 / 2018-05-20
342
- * return defaultOptions if there are not options in buildOptions function
343
- * added localeRange declaration in parser.d.ts
344
- * Added support of cyrillic characters in validator XML
345
- * fixed bug in validator work when XML data with byte order marker
350
+ - return defaultOptions if there are not options in buildOptions function
351
+ - added localeRange declaration in parser.d.ts
352
+ - Added support of cyrillic characters in validator XML
353
+ - fixed bug in validator work when XML data with byte order marker
346
354
 
347
355
  3.10.0 / 2018-05-13
348
- * Added support of cyrillic characters in parsing XML to JSON
356
+ - Added support of cyrillic characters in parsing XML to JSON
349
357
 
350
358
  3.9.11 / 2018-05-09
351
- * fix https://github.com/NaturalIntelligence/fast-xml-parser/issues/80 fix nimn chars
352
- * update package information
353
- * fix https://github.com/NaturalIntelligence/fast-xml-parser/issues/86: json 2 xml parser : property with null value should be parsed to self closing tag.
354
- * update online demo
355
- * revert zombiejs to old version to support old version of node
356
- * update dependencies
359
+ - fix https://github.com/NaturalIntelligence/fast-xml-parser/issues/80 fix nimn chars
360
+ - update package information
361
+ - fix https://github.com/NaturalIntelligence/fast-xml-parser/issues/86: json 2 xml parser : property with null value should be parsed to self closing tag.
362
+ - update online demo
363
+ - revert zombiejs to old version to support old version of node
364
+ - update dependencies
357
365
 
358
366
  3.3.10 / 2018-04-23
359
- * fix #77 : parse even if closing tag has space before '>'
360
- * include all css & js lib in demo app
361
- * remove babel dependencies until needed
367
+ - fix #77 : parse even if closing tag has space before '>'
368
+ - include all css & js lib in demo app
369
+ - remove babel dependencies until needed
362
370
 
363
371
  3.3.9 / 2018-04-18
364
- * fix #74 : TS2314 TypeScript compiler error
372
+ - fix #74 : TS2314 TypeScript compiler error
365
373
 
366
374
  3.3.8 / 2018-04-17
367
- * fix #73 : IE doesn't support Object.assign
375
+ - fix #73 : IE doesn't support Object.assign
368
376
 
369
377
  3.3.7 / 2018-04-14
370
- * fix: use let insted of const in for loop of validator
371
- * Merge pull request
378
+ - fix: use let insted of const in for loop of validator
379
+ - Merge pull request
372
380
  https://github.com/NaturalIntelligence/fast-xml-parser/issues/71 from bb/master
373
381
  first draft of typings for typescript
374
382
  https://github.com/NaturalIntelligence/fast-xml-parser/issues/69
375
- * Merge pull request
383
+ - Merge pull request
376
384
  https://github.com/NaturalIntelligence/fast-xml-parser/issues/70 from bb/patch-1
377
385
  fix some typos in readme
378
386
 
379
387
  3.3.6 / 2018-03-21
380
- * change arrow functions to full notation for IE compatibility
388
+ - change arrow functions to full notation for IE compatibility
381
389
 
382
390
  3.3.5 / 2018-03-15
383
- * fix https://github.com/NaturalIntelligence/fast-xml-parser/issues/67 : attrNodeName invalid behavior
384
- * fix: remove decodeHTML char condition
391
+ - fix https://github.com/NaturalIntelligence/fast-xml-parser/issues/67 : attrNodeName invalid behavior
392
+ - fix: remove decodeHTML char condition
385
393
 
386
394
  3.3.4 / 2018-03-14
387
- * remove dependency on "he" package
388
- * refactor code to separate methods in separate files.
389
- * draft code for transforming XML to json string. It is not officially documented due to performance issue.
395
+ - remove dependency on "he" package
396
+ - refactor code to separate methods in separate files.
397
+ - draft code for transforming XML to json string. It is not officially documented due to performance issue.
390
398
 
391
399
  3.3.0 / 2018-03-05
392
- * use common default options for XML parsing for consistency. And add `parseToNimn` method.
393
- * update nexttodo
394
- * update README about XML to Nimn transformation and remove special notes about 3.x release
395
- * update CONTRIBUTING.ms mentioning nexttodo
396
- * add negative case for XML PIs
397
- * validate xml processing instruction tags https://github.com/NaturalIntelligence/fast-xml-parser/issues/62
398
- * nimndata: handle array with object
399
- * nimndata: node with nested node and text node
400
- * nimndata: handle attributes and text node
401
- * nimndata: add options, handle array
402
- * add xml to nimn data converter
403
- * x2j: direct access property with tagname
404
- * update changelog
405
- * fix validator when single quote presents in value enclosed with double quotes or vice versa
406
- * Revert "remove unneded nimnjs dependency, move opencollective to devDependencies and replace it
400
+ - use common default options for XML parsing for consistency. And add `parseToNimn` method.
401
+ - update nexttodo
402
+ - update README about XML to Nimn transformation and remove special notes about 3.x release
403
+ - update CONTRIBUTING.ms mentioning nexttodo
404
+ - add negative case for XML PIs
405
+ - validate xml processing instruction tags https://github.com/NaturalIntelligence/fast-xml-parser/issues/62
406
+ - nimndata: handle array with object
407
+ - nimndata: node with nested node and text node
408
+ - nimndata: handle attributes and text node
409
+ - nimndata: add options, handle array
410
+ - add xml to nimn data converter
411
+ - x2j: direct access property with tagname
412
+ - update changelog
413
+ - fix validator when single quote presents in value enclosed with double quotes or vice versa
414
+ - Revert "remove unneded nimnjs dependency, move opencollective to devDependencies and replace it
407
415
  with more light opencollective-postinstall"
408
416
  This reverts commit d47aa7181075d82db4fee97fd8ea32b056fe3f46.
409
- * Merge pull request: https://github.com/NaturalIntelligence/fast-xml-parser/issues/63 from HaroldPutman/suppress-undefined
417
+ - Merge pull request: https://github.com/NaturalIntelligence/fast-xml-parser/issues/63 from HaroldPutman/suppress-undefined
410
418
  Keep undefined nodes out of the XML output : This is useful when you are deleting nodes from the JSON and rewriting XML.
411
419
 
412
420
  3.2.4 / 2018-03-01
413
- * fix #59 fix in validator when open quote presents in attribute value
414
- * Create nexttodo.md
415
- * exclude static from bitHound tests
416
- * add package lock
421
+ - fix #59 fix in validator when open quote presents in attribute value
422
+ - Create nexttodo.md
423
+ - exclude static from bitHound tests
424
+ - add package lock
417
425
 
418
426
  3.2.3 / 2018-02-28
419
- * Merge pull request from Delagen/master: fix namespaces can contain the same characters as xml names
427
+ - Merge pull request from Delagen/master: fix namespaces can contain the same characters as xml names
420
428
 
421
429
  3.2.2 / 2018-02-22
422
- * fix: attribute xmlns should not be removed if ignoreNameSpace is false
423
- * create CONTRIBUTING.md
430
+ - fix: attribute xmlns should not be removed if ignoreNameSpace is false
431
+ - create CONTRIBUTING.md
424
432
 
425
433
  3.2.1 / 2018-02-17
426
- * fix: empty attribute should be parsed
434
+ - fix: empty attribute should be parsed
427
435
 
428
436
  3.2.0 / 2018-02-16
429
- * Merge pull request : Dev to Master
430
- * Update README and version
431
- * j2x:add performance test
432
- * j2x: Remove extra empty line before closing tag
433
- * j2x: suppress empty nodes to self closing node if configured
434
- * j2x: provide option to give indentation depth
435
- * j2x: make optional formatting
436
- * j2x: encodeHTMLchat
437
- * j2x: handle cdata tag
438
- * j2x: handle grouped attributes
439
- * convert json to xml
437
+ - Merge pull request : Dev to Master
438
+ - Update README and version
439
+ - j2x:add performance test
440
+ - j2x: Remove extra empty line before closing tag
441
+ - j2x: suppress empty nodes to self closing node if configured
442
+ - j2x: provide option to give indentation depth
443
+ - j2x: make optional formatting
444
+ - j2x: encodeHTMLchat
445
+ - j2x: handle cdata tag
446
+ - j2x: handle grouped attributes
447
+ - convert json to xml
440
448
  - nested object
441
449
  - array
442
450
  - attributes
443
451
  - text value
444
- * small refactoring
445
- * Merge pull request: Update cli.js to let user validate XML file or data
446
- * Add option for rendering CDATA as separate property
452
+ - small refactoring
453
+ - Merge pull request: Update cli.js to let user validate XML file or data
454
+ - Add option for rendering CDATA as separate property
447
455
 
448
456
  3.0.1 / 2018-02-09
449
- * fix CRLF: replace it with single space in attributes value only.
457
+ - fix CRLF: replace it with single space in attributes value only.
450
458
 
451
459
  3.0.0 / 2018-02-08
452
- * change online tool with new changes
453
- * update info about new options
454
- * separate tag value processing to separate function
455
- * make HTML decoding optional
456
- * give an option to allow boolean attributes
457
- * change cli options as per v3
458
- * Correct comparison table format on README
459
- * update v3 information
460
- * some performance improvement changes
461
- * Make regex object local to the method and move some common methods to util
462
- * Change parser to
460
+ - change online tool with new changes
461
+ - update info about new options
462
+ - separate tag value processing to separate function
463
+ - make HTML decoding optional
464
+ - give an option to allow boolean attributes
465
+ - change cli options as per v3
466
+ - Correct comparison table format on README
467
+ - update v3 information
468
+ - some performance improvement changes
469
+ - Make regex object local to the method and move some common methods to util
470
+ - Change parser to
463
471
  - handle multiple instances of CDATA
464
472
  - make triming of value optionals
465
473
  - HTML decode attribute and text value
466
474
  - refactor code to separate files
467
- * Ignore newline chars without RE (in validator)
468
- * validate for XML prolog
469
- * Validate DOCTYPE without RE
470
- * Update validator to return error response
471
- * Update README to add detail about V3
472
- * Separate xmlNode model class
473
- * include vscode debug config
474
- * fix for repeated object
475
- * fix attribute regex for boolean attributes
476
- * Fix validator for invalid attributes
475
+ - Ignore newline chars without RE (in validator)
476
+ - validate for XML prolog
477
+ - Validate DOCTYPE without RE
478
+ - Update validator to return error response
479
+ - Update README to add detail about V3
480
+ - Separate xmlNode model class
481
+ - include vscode debug config
482
+ - fix for repeated object
483
+ - fix attribute regex for boolean attributes
484
+ - Fix validator for invalid attributes
477
485
  2.9.4 / 2018-02-02
478
- * Merge pull request: Decode HTML characters
479
- * refactor source folder name
480
- * ignore bundle / browser js to be published to npm
486
+ - Merge pull request: Decode HTML characters
487
+ - refactor source folder name
488
+ - ignore bundle / browser js to be published to npm
481
489
  2.9.3 / 2018-01-26
482
- * Merge pull request: Correctly remove CRLF line breaks
483
- * Enable to parse attribute in online editor
484
- * Fix testing demo app test
485
- * Describe parsing options
486
- * Add options for online demo
490
+ - Merge pull request: Correctly remove CRLF line breaks
491
+ - Enable to parse attribute in online editor
492
+ - Fix testing demo app test
493
+ - Describe parsing options
494
+ - Add options for online demo
487
495
  2.9.2 / 2018-01-18
488
- * Remove check if tag starting with "XML"
489
- * Fix: when there are spaces before / after CDATA
496
+ - Remove check if tag starting with "XML"
497
+ - Fix: when there are spaces before / after CDATA
490
498
 
491
499
  2.9.1 / 2018-01-16
492
- * Fix: newline should be replaced with single space
493
- * Fix: for single and multiline comments
494
- * validate xml with CDATA
495
- * Fix: the issue when there is no space between 2 attributes
496
- * Fix: https://github.com/NaturalIntelligence/fast-xml-parser/issues/33: when there is newline char in attr val, it doesn't parse
497
- * Merge pull request: fix ignoreNamespace
498
- * fix: don't wrap attributes if only namespace attrs
499
- * fix: use portfinder for run tests, update deps
500
- * fix: don't treat namespaces as attributes when ignoreNamespace enabled
500
+ - Fix: newline should be replaced with single space
501
+ - Fix: for single and multiline comments
502
+ - validate xml with CDATA
503
+ - Fix: the issue when there is no space between 2 attributes
504
+ - Fix: https://github.com/NaturalIntelligence/fast-xml-parser/issues/33: when there is newline char in attr val, it doesn't parse
505
+ - Merge pull request: fix ignoreNamespace
506
+ - fix: don't wrap attributes if only namespace attrs
507
+ - fix: use portfinder for run tests, update deps
508
+ - fix: don't treat namespaces as attributes when ignoreNamespace enabled
501
509
 
502
510
  2.9.0 / 2018-01-10
503
- * Rewrite the validator to handle large files.
511
+ - Rewrite the validator to handle large files.
504
512
  Ignore DOCTYPE validation.
505
- * Fix: When attribute value has equal sign
513
+ - Fix: When attribute value has equal sign
506
514
 
507
515
  2.8.3 / 2017-12-15
508
- * Fix: when a tag has value along with subtags
516
+ - Fix: when a tag has value along with subtags
509
517
 
510
518
  2.8.2 / 2017-12-04
511
- * Fix value parsing for IE
519
+ - Fix value parsing for IE
512
520
 
513
521
  2.8.1 / 2017-12-01
514
- * fix: validator should return false instead of err when invalid XML
522
+ - fix: validator should return false instead of err when invalid XML
515
523
 
516
524
  2.8.0 / 2017-11-29
517
- * Add CLI option to ignore value conversion
518
- * Fix variable name when filename is given on CLI
519
- * Update CLI help text
520
- * Merge pull request: xml2js: Accept standard input
521
- * Test Node 8
522
- * Update dependencies
523
- * Bundle readToEnd
524
- * Add ability to read from standard input
525
+ - Add CLI option to ignore value conversion
526
+ - Fix variable name when filename is given on CLI
527
+ - Update CLI help text
528
+ - Merge pull request: xml2js: Accept standard input
529
+ - Test Node 8
530
+ - Update dependencies
531
+ - Bundle readToEnd
532
+ - Add ability to read from standard input
525
533
 
526
534
  2.7.4 / 2017-09-22
527
- * Merge pull request: Allow wrap attributes with subobject to compatible with other parsers output
535
+ - Merge pull request: Allow wrap attributes with subobject to compatible with other parsers output
528
536
 
529
537
  2.7.3 / 2017-08-02
530
- * fix: handle CDATA with regx
538
+ - fix: handle CDATA with regx
531
539
 
532
540
  2.7.2 / 2017-07-30
533
- * Change travis config for yarn caching
534
- * fix validator: when tag property is same as array property
535
- * Merge pull request: Failing test case in validator for valid SVG
541
+ - Change travis config for yarn caching
542
+ - fix validator: when tag property is same as array property
543
+ - Merge pull request: Failing test case in validator for valid SVG
536
544
 
537
545
  2.7.1 / 2017-07-26
538
- * Fix: Handle val 0
546
+ - Fix: Handle val 0
539
547
 
540
548
  2.7.0 / 2017-07-25
541
- * Fix test for arrayMode
542
- * Merge pull request: Add arrayMode option to parse any nodes as arrays
549
+ - Fix test for arrayMode
550
+ - Merge pull request: Add arrayMode option to parse any nodes as arrays
543
551
 
544
552
  2.6.0 / 2017-07-14
545
- * code improvement
546
- * Add unit tests for value conversion for attr
547
- * Merge pull request: option of an attribute value conversion to a number (textAttrConversion) the same way as the textNodeConversion option does. Default value is false.
553
+ - code improvement
554
+ - Add unit tests for value conversion for attr
555
+ - Merge pull request: option of an attribute value conversion to a number (textAttrConversion) the same way as the textNodeConversion option does. Default value is false.
548
556
 
549
557
  2.5.1 / 2017-07-01
550
- * Fix XML element name pattern
551
- * Fix XML element name pattern while parsing
552
- * Fix validation for xml tag element
558
+ - Fix XML element name pattern
559
+ - Fix XML element name pattern while parsing
560
+ - Fix validation for xml tag element
553
561
 
554
562
  2.5.0 / 2017-06-25
555
- * Improve Validator performance
556
- * update attr matching regex
557
- * Add perf tests
558
- * Improve atrr regex to handle all cases
563
+ - Improve Validator performance
564
+ - update attr matching regex
565
+ - Add perf tests
566
+ - Improve atrr regex to handle all cases
559
567
 
560
568
  2.4.4 / 2017-06-08
561
- * Bug fix: when an attribute has single or double quote in value
569
+ - Bug fix: when an attribute has single or double quote in value
562
570
 
563
571
  2.4.3 / 2017-06-05
564
- * Bug fix: when multiple CDATA tags are given
565
- * Merge pull request: add option "textNodeConversion"
566
- * add option "textNodeConversion"
572
+ - Bug fix: when multiple CDATA tags are given
573
+ - Merge pull request: add option "textNodeConversion"
574
+ - add option "textNodeConversion"
567
575
 
568
576
  2.4.1 / 2017-04-14
569
- * fix tests
570
- * Bug fix: preserve initial space of node value
571
- * Handle CDATA
577
+ - fix tests
578
+ - Bug fix: preserve initial space of node value
579
+ - Handle CDATA
572
580
 
573
581
  2.3.1 / 2017-03-15
574
- * Bug fix: when single self closing tag
575
- * Merge pull request: fix .codeclimate.yml
576
- * Update .codeclimate.yml - Fixed config so it does not error anymore.
577
- * Update .codeclimate.yml
582
+ - Bug fix: when single self closing tag
583
+ - Merge pull request: fix .codeclimate.yml
584
+ - Update .codeclimate.yml - Fixed config so it does not error anymore.
585
+ - Update .codeclimate.yml
578
586
 
579
587
  2.3.0 / 2017-02-26
580
- * Code improvement
581
- * add bithound config
582
- * Update usage
583
- * Update travis to generate bundle js before running tests
584
- * 1.Browserify, 2. add more tests for validator
585
- * Add validator
586
- * Fix CLI default parameter bug
588
+ - Code improvement
589
+ - add bithound config
590
+ - Update usage
591
+ - Update travis to generate bundle js before running tests
592
+ - 1.Browserify, 2. add more tests for validator
593
+ - Add validator
594
+ - Fix CLI default parameter bug
587
595
 
588
596
  2.2.1 / 2017-02-05
589
- * Bug fix: CLI default option
597
+ - Bug fix: CLI default option