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 +332 -324
- package/README.md +70 -42
- package/package.json +1 -2
- package/src/fxp.d.ts +19 -3
- package/src/ignoreAttributes.js +20 -0
- package/src/v5/OutputBuilders/JsArrBuilder.js +1 -1
- package/src/v5/OutputBuilders/JsMinArrBuilder.js +1 -1
- package/src/v5/OutputBuilders/JsObjBuilder.js +1 -1
- package/src/v5/OutputBuilders/ParserOptionsBuilder.js +4 -1
- package/src/v5/valueParsers/currency.js +12 -3
- package/src/xmlbuilder/json2xml.js +27 -13
- package/src/xmlparser/OrderedObjParser.js +6 -1
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
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
|
-
|
|
20
|
+
- code for v5 is added for experimental use
|
|
13
21
|
|
|
14
22
|
**4.3.4 / 2024-01-10**
|
|
15
|
-
|
|
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
|
-
|
|
26
|
+
- Remove unnecessary regex
|
|
19
27
|
|
|
20
28
|
**4.3.2 / 2023-10-02**
|
|
21
|
-
|
|
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
|
-
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
-
|
|
33
|
-
|
|
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
|
-
|
|
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
|
-
|
|
47
|
+
- change code implementation
|
|
40
48
|
|
|
41
49
|
**4.2.4 / 2023-06-06**
|
|
42
|
-
|
|
50
|
+
- fix security bug
|
|
43
51
|
|
|
44
52
|
**4.2.3 / 2023-06-05**
|
|
45
|
-
|
|
53
|
+
- fix security bug
|
|
46
54
|
|
|
47
55
|
**4.2.2 / 2023-04-18**
|
|
48
|
-
|
|
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
|
-
|
|
59
|
+
- fix: jpath after unpaired tags
|
|
52
60
|
|
|
53
61
|
**4.2.0 / 2023-04-09**
|
|
54
|
-
|
|
62
|
+
- support `updateTag` parser property
|
|
55
63
|
|
|
56
64
|
**4.1.4 / 2023-04-08**
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
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
|
-
|
|
70
|
+
- fix #546: Support complex entity value
|
|
63
71
|
|
|
64
72
|
**4.1.2 / 2023-02-12**
|
|
65
|
-
|
|
73
|
+
- Security Fix
|
|
66
74
|
|
|
67
75
|
**4.1.1 / 2023-02-03**
|
|
68
|
-
|
|
69
|
-
|
|
76
|
+
- Fix #540: ignoreAttributes breaks unpairedTags
|
|
77
|
+
- Refactor XML builder code
|
|
70
78
|
|
|
71
79
|
**4.1.0 / 2023-02-02**
|
|
72
|
-
|
|
73
|
-
|
|
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
|
-
|
|
84
|
+
- make "eNotation" optional
|
|
77
85
|
|
|
78
86
|
**4.0.14 / 2023-01-22**
|
|
79
|
-
|
|
87
|
+
- fixed: add missed typing "eNotation" to parse values
|
|
80
88
|
|
|
81
89
|
**4.0.13 / 2023-01-07**
|
|
82
|
-
|
|
83
|
-
|
|
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
|
-
|
|
94
|
+
- fix typescript
|
|
87
95
|
|
|
88
96
|
**4.0.11 / 2022-10-05**
|
|
89
|
-
|
|
97
|
+
- fix #501: parse for entities only once
|
|
90
98
|
|
|
91
99
|
**4.0.10 / 2022-09-14**
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
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
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
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
|
-
|
|
105
|
-
|
|
106
|
-
|
|
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
|
-
|
|
110
|
-
|
|
111
|
-
|
|
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
|
-
|
|
115
|
-
|
|
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
|
-
|
|
126
|
+
- fix #437: call tagValueProcessor from XML builder
|
|
119
127
|
|
|
120
128
|
**4.0.4 / 2022-03-03**
|
|
121
|
-
|
|
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
|
-
|
|
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
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
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
|
-
|
|
135
|
-
|
|
142
|
+
- fix builder for pi tag
|
|
143
|
+
- fix: support suppressBooleanAttrs by builder
|
|
136
144
|
|
|
137
145
|
**4.0.0 / 2022-01-06**
|
|
138
|
-
|
|
139
|
-
|
|
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
|
-
|
|
150
|
+
- call tagValueProcessor for stop nodes
|
|
143
151
|
|
|
144
152
|
**4.0.0-beta.7 / 2021-12-09**
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
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
|
-
|
|
153
|
-
|
|
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
|
-
|
|
164
|
+
- fix: when a tag with name "attributes"
|
|
157
165
|
|
|
158
166
|
**4.0.0-beta.4 / 2021-12-02**
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
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
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
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
|
-
|
|
173
|
-
|
|
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
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
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
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
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
|
-
|
|
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
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
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
|
-
|
|
230
|
+
- update strnum package
|
|
223
231
|
|
|
224
232
|
3.20.0 / 2021-09-10
|
|
225
|
-
|
|
226
|
-
|
|
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
|
-
|
|
230
|
-
|
|
237
|
+
- License changed to MIT original
|
|
238
|
+
- Fix #321 : namespace tag parsing
|
|
231
239
|
|
|
232
240
|
3.18.0 / 2021-02-05
|
|
233
|
-
|
|
234
|
-
|
|
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
|
-
|
|
238
|
-
|
|
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
|
-
|
|
242
|
-
|
|
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
|
-
|
|
246
|
-
|
|
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
|
-
|
|
257
|
+
- Fixed an issue in checking opening tag
|
|
250
258
|
|
|
251
259
|
3.17.0 / 2020-05-18
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
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
|
-
|
|
261
|
-
|
|
262
|
-
|
|
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
|
-
|
|
273
|
+
- validaor: fix multiple roots are not allowed
|
|
266
274
|
|
|
267
275
|
3.15.0 / 2019-11-23
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
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
|
-
|
|
281
|
+
- arrayMode for XML to JS obj parsing
|
|
274
282
|
|
|
275
283
|
3.13.0 / 2019-10-02
|
|
276
|
-
|
|
277
|
-
|
|
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
|
-
|
|
281
|
-
|
|
282
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
299
|
+
- remove configstore dependency
|
|
292
300
|
|
|
293
301
|
3.12.17 / 2019-07-14
|
|
294
|
-
|
|
302
|
+
- Fix #167: '>' in attribute value
|
|
295
303
|
|
|
296
304
|
3.12.16 / 2019-03-23
|
|
297
|
-
|
|
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
|
-
|
|
307
|
+
- Don't show post-install message
|
|
300
308
|
|
|
301
309
|
3.12.12 / 2019-01-11
|
|
302
|
-
|
|
310
|
+
- fix : IE parseInt, parseFloat error
|
|
303
311
|
|
|
304
312
|
3.12.11 / 2018-12-24
|
|
305
|
-
|
|
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
|
-
|
|
316
|
+
- fix #129 : validator should not fail when an atrribute name is 'length'
|
|
309
317
|
|
|
310
318
|
3.12.8 / 2018-11-22
|
|
311
|
-
|
|
319
|
+
- fix #128 : use 'attrValueProcessor' to process attribute value in json2xml parser
|
|
312
320
|
|
|
313
321
|
3.12.6 / 2018-11-10
|
|
314
|
-
|
|
322
|
+
- Fix #126: check for type
|
|
315
323
|
|
|
316
324
|
3.12.4 / 2018-09-12
|
|
317
|
-
|
|
325
|
+
- Fix: include tasks in npm package
|
|
318
326
|
|
|
319
327
|
3.12.3 / 2018-09-12
|
|
320
|
-
|
|
328
|
+
- Fix CLI issue raised in last PR
|
|
321
329
|
|
|
322
330
|
3.12.2 / 2018-09-11
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
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
|
-
|
|
329
|
-
|
|
336
|
+
- Support hexadecimal values
|
|
337
|
+
- Support true number parsing
|
|
330
338
|
|
|
331
339
|
3.11.2 / 2018-07-23
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
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
|
-
|
|
347
|
+
- fix #93: read the text after self closing tag
|
|
340
348
|
|
|
341
349
|
3.11.0 / 2018-05-20
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
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
|
-
|
|
356
|
+
- Added support of cyrillic characters in parsing XML to JSON
|
|
349
357
|
|
|
350
358
|
3.9.11 / 2018-05-09
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
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
|
-
|
|
360
|
-
|
|
361
|
-
|
|
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
|
-
|
|
372
|
+
- fix #74 : TS2314 TypeScript compiler error
|
|
365
373
|
|
|
366
374
|
3.3.8 / 2018-04-17
|
|
367
|
-
|
|
375
|
+
- fix #73 : IE doesn't support Object.assign
|
|
368
376
|
|
|
369
377
|
3.3.7 / 2018-04-14
|
|
370
|
-
|
|
371
|
-
|
|
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
|
-
|
|
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
|
-
|
|
388
|
+
- change arrow functions to full notation for IE compatibility
|
|
381
389
|
|
|
382
390
|
3.3.5 / 2018-03-15
|
|
383
|
-
|
|
384
|
-
|
|
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
|
-
|
|
388
|
-
|
|
389
|
-
|
|
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
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
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
|
-
|
|
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
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
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
|
-
|
|
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
|
-
|
|
423
|
-
|
|
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
|
-
|
|
434
|
+
- fix: empty attribute should be parsed
|
|
427
435
|
|
|
428
436
|
3.2.0 / 2018-02-16
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
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
|
-
|
|
445
|
-
|
|
446
|
-
|
|
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
|
-
|
|
457
|
+
- fix CRLF: replace it with single space in attributes value only.
|
|
450
458
|
|
|
451
459
|
3.0.0 / 2018-02-08
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
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
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
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
|
-
|
|
479
|
-
|
|
480
|
-
|
|
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
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
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
|
-
|
|
489
|
-
|
|
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
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
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
|
-
|
|
511
|
+
- Rewrite the validator to handle large files.
|
|
504
512
|
Ignore DOCTYPE validation.
|
|
505
|
-
|
|
513
|
+
- Fix: When attribute value has equal sign
|
|
506
514
|
|
|
507
515
|
2.8.3 / 2017-12-15
|
|
508
|
-
|
|
516
|
+
- Fix: when a tag has value along with subtags
|
|
509
517
|
|
|
510
518
|
2.8.2 / 2017-12-04
|
|
511
|
-
|
|
519
|
+
- Fix value parsing for IE
|
|
512
520
|
|
|
513
521
|
2.8.1 / 2017-12-01
|
|
514
|
-
|
|
522
|
+
- fix: validator should return false instead of err when invalid XML
|
|
515
523
|
|
|
516
524
|
2.8.0 / 2017-11-29
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
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
|
-
|
|
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
|
-
|
|
538
|
+
- fix: handle CDATA with regx
|
|
531
539
|
|
|
532
540
|
2.7.2 / 2017-07-30
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
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
|
-
|
|
546
|
+
- Fix: Handle val 0
|
|
539
547
|
|
|
540
548
|
2.7.0 / 2017-07-25
|
|
541
|
-
|
|
542
|
-
|
|
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
|
-
|
|
546
|
-
|
|
547
|
-
|
|
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
|
-
|
|
551
|
-
|
|
552
|
-
|
|
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
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
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
|
-
|
|
569
|
+
- Bug fix: when an attribute has single or double quote in value
|
|
562
570
|
|
|
563
571
|
2.4.3 / 2017-06-05
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
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
|
-
|
|
570
|
-
|
|
571
|
-
|
|
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
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
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
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
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
|
-
|
|
597
|
+
- Bug fix: CLI default option
|