@depup/fast-xml-parser 5.5.6-depup.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.
Files changed (54) hide show
  1. package/CHANGELOG.md +752 -0
  2. package/LICENSE +21 -0
  3. package/README.md +31 -0
  4. package/changes.json +10 -0
  5. package/lib/fxbuilder.min.js +2 -0
  6. package/lib/fxbuilder.min.js.map +1 -0
  7. package/lib/fxp.cjs +1 -0
  8. package/lib/fxp.d.cts +595 -0
  9. package/lib/fxp.min.js +2 -0
  10. package/lib/fxp.min.js.map +1 -0
  11. package/lib/fxparser.min.js +2 -0
  12. package/lib/fxparser.min.js.map +1 -0
  13. package/lib/fxvalidator.min.js +2 -0
  14. package/lib/fxvalidator.min.js.map +1 -0
  15. package/package.json +112 -0
  16. package/src/cli/cli.js +97 -0
  17. package/src/cli/man.js +17 -0
  18. package/src/cli/read.js +43 -0
  19. package/src/fxp.d.ts +577 -0
  20. package/src/fxp.js +14 -0
  21. package/src/ignoreAttributes.js +18 -0
  22. package/src/util.js +61 -0
  23. package/src/v6/CharsSymbol.js +16 -0
  24. package/src/v6/EntitiesParser.js +106 -0
  25. package/src/v6/OptionsBuilder.js +61 -0
  26. package/src/v6/OutputBuilders/BaseOutputBuilder.js +69 -0
  27. package/src/v6/OutputBuilders/JsArrBuilder.js +103 -0
  28. package/src/v6/OutputBuilders/JsMinArrBuilder.js +100 -0
  29. package/src/v6/OutputBuilders/JsObjBuilder.js +154 -0
  30. package/src/v6/OutputBuilders/ParserOptionsBuilder.js +94 -0
  31. package/src/v6/Report.js +0 -0
  32. package/src/v6/TagPath.js +81 -0
  33. package/src/v6/TagPathMatcher.js +13 -0
  34. package/src/v6/XMLParser.js +83 -0
  35. package/src/v6/Xml2JsParser.js +235 -0
  36. package/src/v6/XmlPartReader.js +210 -0
  37. package/src/v6/XmlSpecialTagsReader.js +111 -0
  38. package/src/v6/inputSource/BufferSource.js +116 -0
  39. package/src/v6/inputSource/StringSource.js +121 -0
  40. package/src/v6/valueParsers/EntitiesParser.js +105 -0
  41. package/src/v6/valueParsers/booleanParser.js +22 -0
  42. package/src/v6/valueParsers/booleanParserExt.js +19 -0
  43. package/src/v6/valueParsers/currency.js +38 -0
  44. package/src/v6/valueParsers/join.js +13 -0
  45. package/src/v6/valueParsers/number.js +14 -0
  46. package/src/v6/valueParsers/trim.js +6 -0
  47. package/src/validator.js +425 -0
  48. package/src/xmlbuilder/json2xml.js +6 -0
  49. package/src/xmlparser/DocTypeReader.js +401 -0
  50. package/src/xmlparser/OptionsBuilder.js +159 -0
  51. package/src/xmlparser/OrderedObjParser.js +905 -0
  52. package/src/xmlparser/XMLParser.js +71 -0
  53. package/src/xmlparser/node2json.js +174 -0
  54. package/src/xmlparser/xmlNode.js +40 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,752 @@
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
+ Note: Due to some last quick changes on v4, detail of v4.5.3 & v4.5.4 are not updated here. v4.5.4x is the last tag of v4 in github repository. I'm extremely sorry for the confusion
4
+
5
+ **5.5.6 / 2026-03-16**
6
+ - update builder dependency
7
+ - fix incorrect regex to replace \. in entity name
8
+ - fix check for entitiy expansion for lastEntities and html entities too
9
+
10
+ **5.5.5 / 2026-03-13**
11
+ - sanitize dangerous tag or attribute name
12
+ - error on critical property name
13
+ - support onDangerousProperty option
14
+
15
+ **5.5.4 / 2026-03-13**
16
+ - declare Matcher & Expression as unknown so user is not forced to install path-expression-matcher
17
+
18
+
19
+ **5.5.3 / 2026-03-11**
20
+ - upgrade builder
21
+
22
+ **5.5.2 / 2026-03-11**
23
+ - update dependency to fix typings
24
+
25
+ **5.5.1 / 2026-03-10**
26
+ - fix dependency
27
+
28
+ **5.5.0 / 2026-03-10**
29
+ - support path-expression-matcher
30
+ - fix: stopNode should not be parsed
31
+ - performance improvement for stopNode checking
32
+
33
+ **5.4.2 / 2026-03-03**
34
+ - support maxEntityCount option
35
+
36
+ **5.4.1 / 2026-02-25**
37
+ - fix (#785) unpairedTag node should not have tag content
38
+
39
+ **5.4.0 / 2026-02-25**
40
+ - migrate to fast-xml-builder
41
+
42
+ **5.3.9 / 2026-02-25**
43
+ - support strictReservedNames
44
+
45
+ **5.3.8 / 2026-02-25**
46
+ - support maxNestedTags
47
+ - handle non-array input for XML builder when preserveOrder is true (By [Angelo Coetzee](https://github.com/Angelopvtac))
48
+ - save use of js properies
49
+
50
+ **5.3.7 / 2026-02-20**
51
+ - fix typings for CJS (By [Corentin Girard](https://github.com/Drarig29))
52
+
53
+
54
+
55
+ **5.3.6 / 2026-02-14**
56
+ - Improve security and performance of entity processing
57
+ - new options `maxEntitySize`, `maxExpansionDepth`, `maxTotalExpansions`, `maxExpandedLength`, `allowedTags`,`tagFilter`
58
+ - fast return when no edtity is present
59
+ - improvement replacement logic to reduce number of calls
60
+
61
+
62
+ **5.3.5 / 2026-02-08**
63
+ - fix: Escape regex char in entity name
64
+ - update strnum to 2.1.2
65
+ - add missing exports in CJS typings
66
+
67
+
68
+ **5.3.4 / 2026-01-30**
69
+ - fix: handle HTML numeric and hex entities when out of range
70
+
71
+
72
+ **5.3.3 / 2025-12-12**
73
+ - fix #775: transformTagName with allowBooleanAttributes adds an unnecessary attribute
74
+
75
+ **5.3.2 / 2025-11-14**
76
+ - fix for import statement for v6
77
+
78
+ **5.3.1 / 2025-11-03**
79
+ - Performance improvement for stopNodes (By [Maciek Lamberski](https://github.com/macieklamberski))
80
+
81
+ **5.3.0 / 2025-10-03**
82
+ - Use `Uint8Array` in place of `Buffer` in Parser
83
+
84
+ **5.2.5 / 2025-06-08**
85
+ - Inform user to use [fxp-cli](https://github.com/NaturalIntelligence/fxp-cli) instead of in-built CLI feature
86
+ - Export typings for direct use
87
+
88
+ **5.2.4 / 2025-06-06**
89
+ - fix (#747): fix EMPTY and ANY with ELEMENT in DOCTYPE
90
+
91
+ **5.2.3 / 2025-05-11**
92
+ - fix (#747): support EMPTY and ANY with ELEMENT in DOCTYPE
93
+
94
+ **5.2.2 / 2025-05-05**
95
+ - fix (#746): update strnum to fix parsing issues related to enotations
96
+
97
+ **5.2.1 / 2025-04-22**
98
+ - fix: read DOCTYPE entity value correctly
99
+ - read DOCTYPE NOTATION, ELEMENT exp but not using read values
100
+
101
+
102
+ **5.2.0 / 2025-04-03**
103
+ - feat: support metadata on nodes (#593) (By [Steven R. Loomis](https://github.com/srl295))
104
+
105
+ **5.1.0 / 2025-04-02**
106
+ - feat: declare package as side-effect free (#738) (By [Thomas Bouffard](https://github.com/tbouffard))
107
+ - fix cjs build mode
108
+ - fix builder return type to string
109
+ -
110
+
111
+ **5.0.9 / 2025-03-14**
112
+ - fix: support numeric entities with values over 0xFFFF (#726) (By [Marc Durdin](https://github.com/mcdurdin))
113
+ - fix: update strnum to fix parsing 0 if skiplike option is used
114
+
115
+ **5.0.8 / 2025-02-27**
116
+ - fix parsing 0 if skiplike option is used.
117
+ - updating strnum dependency
118
+
119
+ **5.0.7 / 2025-02-25**
120
+ - fix (#724) typings for cjs.
121
+
122
+ **5.0.6 / 2025-02-20**
123
+ - fix cli output (By [Angel Delgado](https://github.com/angeld7))
124
+ - remove multiple JSON parsing
125
+
126
+ **5.0.5 / 2025-02-20**
127
+ - fix parsing of string starting with 'e' or 'E' by updating strnum
128
+
129
+ **5.0.4 / 2025-02-20**
130
+ - fix CLI to support all the versions of node js when displaying library version.
131
+ - fix CJS import in v5
132
+ - by fixing webpack config
133
+
134
+ **5.0.3 / 2025-02-20**
135
+ - Using strnum ESM module
136
+ - new fixes in strum may break your experience
137
+
138
+ **5.0.2 / 2025-02-20**
139
+ - fix: include CommonJS resources in the npm package #714 (By [Thomas Bouffard](https://github.com/tbouffard))
140
+ - fix: move babel deps to dev deps
141
+
142
+ **5.0.1 / 2025-02-19**
143
+ - fix syntax error for CLI command
144
+
145
+ **5.0.0 / 2025-02-19**
146
+ - ESM support
147
+ - no change in the functionality, syntax, APIs, options, or documentation.
148
+
149
+ **4.5.2 / 2025-02-18**
150
+ - Fix null CDATA to comply with undefined behavior (#701) (By [Matthieu BOHEAS](https://github.com/Kelgors))
151
+ - Fix(performance): Update check for leaf node in saveTextToParentTag function in OrderedObjParser.js (#707) (By [...](https://github.com/tomingtoming))
152
+ - Fix: emit full JSON string from CLI when no output filename specified (#710) (By [Matt Benson](https://github.com/mbenson))
153
+
154
+ **4.5.1 / 2024-12-15**
155
+ - Fix empty tag key name for v5 (#697). no impact on v4
156
+ - Fixes entity parsing when used in strict mode (#699)
157
+
158
+ **4.5.0 / 2024-09-03**
159
+ - feat #666: ignoreAttributes support function, and array of string or regex (By [ArtemM](https://github.com/mav-rik))
160
+
161
+ **4.4.1 / 2024-07-28**
162
+ - v5 fix: maximum length limit to currency value
163
+ - fix #634: build attributes with oneListGroup and attributesGroupName (#653)(By [Andreas Naziris](https://github.com/a-rasin))
164
+ - fix: get oneListGroup to work as expected for array of strings (#662)(By [Andreas Naziris](https://github.com/a-rasin))
165
+
166
+ **4.4.0 / 2024-05-18**
167
+ - fix #654: parse attribute list correctly for self closing stop node.
168
+ - fix: validator bug when closing tag is not opened. (#647) (By [Ryosuke Fukatani](https://github.com/RyosukeFukatani))
169
+ - fix #581: typings; return type of `tagValueProcessor` & `attributeValueProcessor` (#582) (By [monholm]())
170
+
171
+ **4.3.6 / 2024-03-16**
172
+ - Add support for parsing HTML numeric entities (#645) (By [Jonas Schade ](https://github.com/DerZade))
173
+
174
+ **4.3.5 / 2024-02-24**
175
+ - code for v5 is added for experimental use
176
+
177
+ **4.3.4 / 2024-01-10**
178
+ - fix: Don't escape entities in CDATA sections (#633) (By [wackbyte](https://github.com/wackbyte))
179
+
180
+ **4.3.3 / 2024-01-10**
181
+ - Remove unnecessary regex
182
+
183
+ **4.3.2 / 2023-10-02**
184
+ - fix `jObj.hasOwnProperty` when give input is null (By [Arda TANRIKULU](https://github.com/ardatan))
185
+
186
+ **4.3.1 / 2023-09-24**
187
+ - 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.
188
+
189
+ **4.3.0 / 2023-09-20**
190
+ - Fix stopNodes to work with removeNSPrefix (#607) (#608) (By [Craig Andrews]https://github.com/candrews))
191
+ - Fix #610 ignore properties set to Object.prototype
192
+ - Fix typings for builder and parser to make return type generic (By [Sarah Dayan](https://github.com/sarahdayan))
193
+
194
+ **4.2.7 / 2023-07-30**
195
+ - Fix: builder should set text node correctly when only textnode is present (#589) (By [qianqing](https://github.com/joneqian))
196
+ - 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))
197
+
198
+ **4.2.6 / 2023-07-17**
199
+ - Fix: Remove trailing slash from jPath for self-closing tags (#595) (By [Maciej Radzikowski](https://github.com/m-radzikowski))
200
+
201
+ **4.2.5 / 2023-06-22**
202
+ - change code implementation
203
+
204
+ **4.2.4 / 2023-06-06**
205
+ - fix security bug
206
+
207
+ **4.2.3 / 2023-06-05**
208
+ - fix security bug
209
+
210
+ **4.2.2 / 2023-04-18**
211
+ - 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
212
+
213
+ **4.2.1 / 2023-04-18**
214
+ - fix: jpath after unpaired tags
215
+
216
+ **4.2.0 / 2023-04-09**
217
+ - support `updateTag` parser property
218
+
219
+ **4.1.4 / 2023-04-08**
220
+ - update typings to let user create XMLBuilder instance without options (#556) (By [Patrick](https://github.com/omggga))
221
+ - fix: IsArray option isn't parsing tags with 0 as value correctly #490 (#557) (By [Aleksandr Murashkin](https://github.com/p-kuen))
222
+ - feature: support `oneListGroup` to group repeated children tags udder single group
223
+
224
+ **4.1.3 / 2023-02-26**
225
+ - fix #546: Support complex entity value
226
+
227
+ **4.1.2 / 2023-02-12**
228
+ - Security Fix
229
+
230
+ **4.1.1 / 2023-02-03**
231
+ - Fix #540: ignoreAttributes breaks unpairedTags
232
+ - Refactor XML builder code
233
+
234
+ **4.1.0 / 2023-02-02**
235
+ - Fix '<' or '>' in DTD comment throwing an error. (#533) (By [Adam Baker](https://github.com/Cwazywierdo))
236
+ - Set "eNotation" to 'true' as default
237
+
238
+ **4.0.15 / 2023-01-25**
239
+ - make "eNotation" optional
240
+
241
+ **4.0.14 / 2023-01-22**
242
+ - fixed: add missed typing "eNotation" to parse values
243
+
244
+ **4.0.13 / 2023-01-07**
245
+ - preserveorder formatting (By [mdeknowis](https://github.com/mdeknowis))
246
+ - support `transformAttributeName` (By [Erik Rothoff Andersson](https://github.com/erkie))
247
+
248
+ **4.0.12 / 2022-11-19**
249
+ - fix typescript
250
+
251
+ **4.0.11 / 2022-10-05**
252
+ - fix #501: parse for entities only once
253
+
254
+ **4.0.10 / 2022-09-14**
255
+ - fix broken links in demo site (By [Yannick Lang](https://github.com/layaxx))
256
+ - fix #491: tagValueProcessor type definition (By [Andrea Francesco Speziale](https://github.com/andreafspeziale))
257
+ - Add jsdocs for tagValueProcessor
258
+
259
+
260
+ **4.0.9 / 2022-07-10**
261
+ - fix #470: stop-tag can have self-closing tag with same name
262
+ - fix #472: stopNode can have any special tag inside
263
+ - Allow !ATTLIST and !NOTATION with DOCTYPE
264
+ - Add transformTagName option to transform tag names when parsing (#469) (By [Erik Rothoff Andersson](https://github.com/erkie))
265
+
266
+ **4.0.8 / 2022-05-28**
267
+ - Fix CDATA parsing returning empty string when value = 0 (#451) (By [ndelanou](https://github.com/ndelanou))
268
+ - Fix stopNodes when same tag appears inside node (#456) (By [patrickshipe](https://github.com/patrickshipe))
269
+ - fix #468: prettify own properties only
270
+
271
+ **4.0.7 / 2022-03-18**
272
+ - support CDATA even if tag order is not preserved
273
+ - support Comments even if tag order is not preserved
274
+ - fix #446: XMLbuilder should not indent XML declaration
275
+
276
+ **4.0.6 / 2022-03-08**
277
+ - fix: call tagValueProcessor only once for array items
278
+ - fix: missing changed for #437
279
+
280
+ **4.0.5 / 2022-03-06**
281
+ - fix #437: call tagValueProcessor from XML builder
282
+
283
+ **4.0.4 / 2022-03-03**
284
+ - fix #435: should skip unpaired and self-closing nodes when set as stopnodes
285
+
286
+ **4.0.3 / 2022-02-15**
287
+ - fix: ReferenceError when Bundled with Strict (#431) (By [Andreas Heissenberger](https://github.com/aheissenberger))
288
+
289
+
290
+ **4.0.2 / 2022-02-04**
291
+ - builder supports `suppressUnpairedNode`
292
+ - parser supports `ignoreDeclaration` and `ignorePiTags`
293
+ - fix: when comment is parsed as text value if given as `<!--> ...` #423
294
+ - builder supports decoding `&`
295
+
296
+ **4.0.1 / 2022-01-08**
297
+ - fix builder for pi tag
298
+ - fix: support suppressBooleanAttrs by builder
299
+
300
+ **4.0.0 / 2022-01-06**
301
+ - Generating different combined, parser only, builder only, validator only browser bundles
302
+ - Keeping cjs modules as they can be imported in cjs and esm modules both. Otherwise refer `esm` branch.
303
+
304
+ **4.0.0-beta.8 / 2021-12-13**
305
+ - call tagValueProcessor for stop nodes
306
+
307
+ **4.0.0-beta.7 / 2021-12-09**
308
+ - fix Validator bug when an attribute has no value but '=' only
309
+ - XML Builder should suppress unpaired tags by default.
310
+ - documents update for missing features
311
+ - refactoring to use Object.assign
312
+ - refactoring to remove repeated code
313
+
314
+ **4.0.0-beta.6 / 2021-12-05**
315
+ - Support PI Tags processing
316
+ - Support `suppressBooleanAttributes` by XML Builder for attributes with value `true`.
317
+
318
+ **4.0.0-beta.5 / 2021-12-04**
319
+ - fix: when a tag with name "attributes"
320
+
321
+ **4.0.0-beta.4 / 2021-12-02**
322
+ - Support HTML document parsing
323
+ - skip stop nodes parsing when building the XML from JS object
324
+ - Support external entites without DOCTYPE
325
+ - update dev dependency: strnum v1.0.5 to fix long number issue
326
+
327
+ **4.0.0-beta.3 / 2021-11-30**
328
+ - support global stopNodes expression like "*.stop"
329
+ - support self-closing and paired unpaired tags
330
+ - fix: CDATA should not be parsed.
331
+ - Fix typings for XMLBuilder (#396)(By [Anders Emil Salvesen](https://github.com/andersem))
332
+ - supports XML entities, HTML entities, DOCTYPE entities
333
+
334
+ **⚠️ 4.0.0-beta.2 / 2021-11-19**
335
+ - rename `attrMap` to `attibutes` in parser output when `preserveOrder:true`
336
+ - supports unpairedTags
337
+
338
+ **⚠️ 4.0.0-beta.1 / 2021-11-18**
339
+ - Parser returns an array now
340
+ - to make the structure common
341
+ - and to return root level detail
342
+ - renamed `cdataTagName` to `cdataPropName`
343
+ - Added `commentPropName`
344
+ - fix typings
345
+
346
+ **⚠️ 4.0.0-beta.0 / 2021-11-16**
347
+ - Name change of many configuration properties.
348
+ - `attrNodeName` to `attributesGroupName`
349
+ - `attrValueProcessor` to `attributeValueProcessor`
350
+ - `parseNodeValue` to `parseTagValue`
351
+ - `ignoreNameSpace` to `removeNSPrefix`
352
+ - `numParseOptions` to `numberParseOptions`
353
+ - spelling correction for `suppressEmptyNode`
354
+ - Name change of cli and browser bundle to **fxparser**
355
+ - `isArray` option is added to parse a tag into array
356
+ - `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.
357
+ - Processing behaviour of `tagValueProcessor` and `attributeValueProcessor` are changes with extra input parameters
358
+ - j2xparser is renamed to XMLBuilder.
359
+ - You need to build XML parser instance for given options first before parsing XML.
360
+ - fix #327, #336: throw error when extra text after XML content
361
+ - fix #330: attribute value can have '\n',
362
+ - fix #350: attrbiutes can be separated by '\n' from tagname
363
+
364
+ 3.21.1 / 2021-10-31
365
+ - Correctly format JSON elements with a text prop but no attribute props ( By [haddadnj](https://github.com/haddadnj) )
366
+
367
+ 3.21.0 / 2021-10-25
368
+ - feat: added option `rootNodeName` to set tag name for array input when converting js object to XML.
369
+ - feat: added option `alwaysCreateTextNode` to force text node creation (by: *@massimo-ua*)
370
+ - ⚠️ feat: Better error location for unclosed tags. (by *@Gei0r*)
371
+ - Some error messages would be changed when validating XML. Eg
372
+ - `{ InvalidXml: "Invalid '[ \"rootNode\"]' found." }` → `{InvalidTag: "Unclosed tag 'rootNode'."}`
373
+ - `{ InvalidTag: "Closing tag 'rootNode' is expected inplace of 'rootnode'." }` → `{ InvalidTag: "Expected closing tag 'rootNode' (opened in line 1) instead of closing tag 'rootnode'."}`
374
+ - ⚠️ feat: Column in error response when validating XML
375
+ ```js
376
+ {
377
+ "code": "InvalidAttr",
378
+ "msg": "Attribute 'abc' is repeated.",
379
+ "line": 1,
380
+ "col": 22
381
+ }
382
+ ```
383
+
384
+ 3.20.1 / 2021-09-25
385
+ - update strnum package
386
+
387
+ 3.20.0 / 2021-09-10
388
+ - Use strnum npm package to parse string to number
389
+ - breaking change: long number will be parsed to scientific notation.
390
+
391
+ 3.19.0 / 2021-03-14
392
+ - License changed to MIT original
393
+ - Fix #321 : namespace tag parsing
394
+
395
+ 3.18.0 / 2021-02-05
396
+ - Support RegEx and function in arrayMode option
397
+ - Fix #317 : validate nested PI tags
398
+
399
+ 3.17.4 / 2020-06-07
400
+ - Refactor some code to support IE11
401
+ - Fix: `<tag >` space as attribute string
402
+
403
+ 3.17.3 / 2020-05-23
404
+ - Fix: tag name separated by \n \t
405
+ - Fix: throw error for unclosed tags
406
+
407
+ 3.17.2 / 2020-05-23
408
+ - Fixed an issue in processing doctype tag
409
+ - Fixed tagName where it should not have whitespace chars
410
+
411
+ 3.17.1 / 2020-05-19
412
+ - Fixed an issue in checking opening tag
413
+
414
+ 3.17.0 / 2020-05-18
415
+ - parser: fix '<' issue when it comes in aatr value
416
+ - parser: refactoring to remove dependency from regex
417
+ - validator: fix IE 11 issue for error messages
418
+ - updated dev dependencies
419
+ - separated benchmark module to sub-module
420
+ - breaking change: comments will not be removed from CDATA data
421
+
422
+ 3.16.0 / 2020-01-12
423
+ - validaor: fix for ampersand characters (#215)
424
+ - refactoring to support unicode chars in tag name
425
+ - update typing for validator error
426
+
427
+ 3.15.1 / 2019-12-09
428
+ - validaor: fix multiple roots are not allowed
429
+
430
+ 3.15.0 / 2019-11-23
431
+ - validaor: improve error messaging
432
+ - validator: add line number in case of error
433
+ - validator: add more error scenarios to make it more descriptive
434
+
435
+ 3.14.0 / 2019-10-25
436
+ - arrayMode for XML to JS obj parsing
437
+
438
+ 3.13.0 / 2019-10-02
439
+ - pass tag/attr name to tag/attr value processor
440
+ - inbuilt optional validation with XML parser
441
+
442
+ 3.12.21 / 2019-10-02
443
+ - Fix validator for unclosed XMLs
444
+ - move nimnjs dependency to dev dependency
445
+ - update dependencies
446
+
447
+ 3.12.20 / 2019-08-16
448
+ - Revert: Fix #167: '>' in attribute value as it is causing high performance degrade.
449
+
450
+ 3.12.19 / 2019-07-28
451
+ - Fix js to xml parser should work for date values. (broken: `tagValueProcessor` will receive the original value instead of string always) (breaking change)
452
+
453
+ 3.12.18 / 2019-07-27
454
+ - remove configstore dependency
455
+
456
+ 3.12.17 / 2019-07-14
457
+ - Fix #167: '>' in attribute value
458
+
459
+ 3.12.16 / 2019-03-23
460
+ - Support a new option "stopNodes". (#150)
461
+ Accept the list of tags which are not required to be parsed. Instead, all the nested tag and data will be assigned as string.
462
+ - Don't show post-install message
463
+
464
+ 3.12.12 / 2019-01-11
465
+ - fix : IE parseInt, parseFloat error
466
+
467
+ 3.12.11 / 2018-12-24
468
+ - fix #132: "/" should not be parsed as boolean attr in case of self closing tags
469
+
470
+ 3.12.9 / 2018-11-23
471
+ - fix #129 : validator should not fail when an atrribute name is 'length'
472
+
473
+ 3.12.8 / 2018-11-22
474
+ - fix #128 : use 'attrValueProcessor' to process attribute value in json2xml parser
475
+
476
+ 3.12.6 / 2018-11-10
477
+ - Fix #126: check for type
478
+
479
+ 3.12.4 / 2018-09-12
480
+ - Fix: include tasks in npm package
481
+
482
+ 3.12.3 / 2018-09-12
483
+ - Fix CLI issue raised in last PR
484
+
485
+ 3.12.2 / 2018-09-11
486
+ - Fix formatting for JSON to XML output
487
+ - Migrate to webpack (PR merged)
488
+ - fix cli (PR merged)
489
+
490
+ 3.12.0 / 2018-08-06
491
+ - Support hexadecimal values
492
+ - Support true number parsing
493
+
494
+ 3.11.2 / 2018-07-23
495
+ - Update Demo for more options
496
+ - Update license information
497
+ - Update readme for formatting, users, and spelling mistakes
498
+ - Add missing typescript definition for j2xParser
499
+ - refactoring: change filenames
500
+
501
+ 3.11.1 / 2018-06-05
502
+ - fix #93: read the text after self closing tag
503
+
504
+ 3.11.0 / 2018-05-20
505
+ - return defaultOptions if there are not options in buildOptions function
506
+ - added localeRange declaration in parser.d.ts
507
+ - Added support of cyrillic characters in validator XML
508
+ - fixed bug in validator work when XML data with byte order marker
509
+
510
+ 3.10.0 / 2018-05-13
511
+ - Added support of cyrillic characters in parsing XML to JSON
512
+
513
+ 3.9.11 / 2018-05-09
514
+ - fix https://github.com/NaturalIntelligence/fast-xml-parser/issues/80 fix nimn chars
515
+ - update package information
516
+ - 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.
517
+ - update online demo
518
+ - revert zombiejs to old version to support old version of node
519
+ - update dependencies
520
+
521
+ 3.3.10 / 2018-04-23
522
+ - fix #77 : parse even if closing tag has space before '>'
523
+ - include all css & js lib in demo app
524
+ - remove babel dependencies until needed
525
+
526
+ 3.3.9 / 2018-04-18
527
+ - fix #74 : TS2314 TypeScript compiler error
528
+
529
+ 3.3.8 / 2018-04-17
530
+ - fix #73 : IE doesn't support Object.assign
531
+
532
+ 3.3.7 / 2018-04-14
533
+ - fix: use let insted of const in for loop of validator
534
+ - Merge pull request
535
+ https://github.com/NaturalIntelligence/fast-xml-parser/issues/71 from bb/master
536
+ first draft of typings for typescript
537
+ https://github.com/NaturalIntelligence/fast-xml-parser/issues/69
538
+ - Merge pull request
539
+ https://github.com/NaturalIntelligence/fast-xml-parser/issues/70 from bb/patch-1
540
+ fix some typos in readme
541
+
542
+ 3.3.6 / 2018-03-21
543
+ - change arrow functions to full notation for IE compatibility
544
+
545
+ 3.3.5 / 2018-03-15
546
+ - fix https://github.com/NaturalIntelligence/fast-xml-parser/issues/67 : attrNodeName invalid behavior
547
+ - fix: remove decodeHTML char condition
548
+
549
+ 3.3.4 / 2018-03-14
550
+ - remove dependency on "he" package
551
+ - refactor code to separate methods in separate files.
552
+ - draft code for transforming XML to json string. It is not officially documented due to performance issue.
553
+
554
+ 3.3.0 / 2018-03-05
555
+ - use common default options for XML parsing for consistency. And add `parseToNimn` method.
556
+ - update nexttodo
557
+ - update README about XML to Nimn transformation and remove special notes about 3.x release
558
+ - update CONTRIBUTING.ms mentioning nexttodo
559
+ - add negative case for XML PIs
560
+ - validate xml processing instruction tags https://github.com/NaturalIntelligence/fast-xml-parser/issues/62
561
+ - nimndata: handle array with object
562
+ - nimndata: node with nested node and text node
563
+ - nimndata: handle attributes and text node
564
+ - nimndata: add options, handle array
565
+ - add xml to nimn data converter
566
+ - x2j: direct access property with tagname
567
+ - update changelog
568
+ - fix validator when single quote presents in value enclosed with double quotes or vice versa
569
+ - Revert "remove unneded nimnjs dependency, move opencollective to devDependencies and replace it
570
+ with more light opencollective-postinstall"
571
+ This reverts commit d47aa7181075d82db4fee97fd8ea32b056fe3f46.
572
+ - Merge pull request: https://github.com/NaturalIntelligence/fast-xml-parser/issues/63 from HaroldPutman/suppress-undefined
573
+ Keep undefined nodes out of the XML output : This is useful when you are deleting nodes from the JSON and rewriting XML.
574
+
575
+ 3.2.4 / 2018-03-01
576
+ - fix #59 fix in validator when open quote presents in attribute value
577
+ - Create nexttodo.md
578
+ - exclude static from bitHound tests
579
+ - add package lock
580
+
581
+ 3.2.3 / 2018-02-28
582
+ - Merge pull request from Delagen/master: fix namespaces can contain the same characters as xml names
583
+
584
+ 3.2.2 / 2018-02-22
585
+ - fix: attribute xmlns should not be removed if ignoreNameSpace is false
586
+ - create CONTRIBUTING.md
587
+
588
+ 3.2.1 / 2018-02-17
589
+ - fix: empty attribute should be parsed
590
+
591
+ 3.2.0 / 2018-02-16
592
+ - Merge pull request : Dev to Master
593
+ - Update README and version
594
+ - j2x:add performance test
595
+ - j2x: Remove extra empty line before closing tag
596
+ - j2x: suppress empty nodes to self closing node if configured
597
+ - j2x: provide option to give indentation depth
598
+ - j2x: make optional formatting
599
+ - j2x: encodeHTMLchat
600
+ - j2x: handle cdata tag
601
+ - j2x: handle grouped attributes
602
+ - convert json to xml
603
+ - nested object
604
+ - array
605
+ - attributes
606
+ - text value
607
+ - small refactoring
608
+ - Merge pull request: Update cli.js to let user validate XML file or data
609
+ - Add option for rendering CDATA as separate property
610
+
611
+ 3.0.1 / 2018-02-09
612
+ - fix CRLF: replace it with single space in attributes value only.
613
+
614
+ 3.0.0 / 2018-02-08
615
+ - change online tool with new changes
616
+ - update info about new options
617
+ - separate tag value processing to separate function
618
+ - make HTML decoding optional
619
+ - give an option to allow boolean attributes
620
+ - change cli options as per v3
621
+ - Correct comparison table format on README
622
+ - update v3 information
623
+ - some performance improvement changes
624
+ - Make regex object local to the method and move some common methods to util
625
+ - Change parser to
626
+ - handle multiple instances of CDATA
627
+ - make triming of value optionals
628
+ - HTML decode attribute and text value
629
+ - refactor code to separate files
630
+ - Ignore newline chars without RE (in validator)
631
+ - validate for XML prolog
632
+ - Validate DOCTYPE without RE
633
+ - Update validator to return error response
634
+ - Update README to add detail about V3
635
+ - Separate xmlNode model class
636
+ - include vscode debug config
637
+ - fix for repeated object
638
+ - fix attribute regex for boolean attributes
639
+ - Fix validator for invalid attributes
640
+ 2.9.4 / 2018-02-02
641
+ - Merge pull request: Decode HTML characters
642
+ - refactor source folder name
643
+ - ignore bundle / browser js to be published to npm
644
+ 2.9.3 / 2018-01-26
645
+ - Merge pull request: Correctly remove CRLF line breaks
646
+ - Enable to parse attribute in online editor
647
+ - Fix testing demo app test
648
+ - Describe parsing options
649
+ - Add options for online demo
650
+ 2.9.2 / 2018-01-18
651
+ - Remove check if tag starting with "XML"
652
+ - Fix: when there are spaces before / after CDATA
653
+
654
+ 2.9.1 / 2018-01-16
655
+ - Fix: newline should be replaced with single space
656
+ - Fix: for single and multiline comments
657
+ - validate xml with CDATA
658
+ - Fix: the issue when there is no space between 2 attributes
659
+ - Fix: https://github.com/NaturalIntelligence/fast-xml-parser/issues/33: when there is newline char in attr val, it doesn't parse
660
+ - Merge pull request: fix ignoreNamespace
661
+ - fix: don't wrap attributes if only namespace attrs
662
+ - fix: use portfinder for run tests, update deps
663
+ - fix: don't treat namespaces as attributes when ignoreNamespace enabled
664
+
665
+ 2.9.0 / 2018-01-10
666
+ - Rewrite the validator to handle large files.
667
+ Ignore DOCTYPE validation.
668
+ - Fix: When attribute value has equal sign
669
+
670
+ 2.8.3 / 2017-12-15
671
+ - Fix: when a tag has value along with subtags
672
+
673
+ 2.8.2 / 2017-12-04
674
+ - Fix value parsing for IE
675
+
676
+ 2.8.1 / 2017-12-01
677
+ - fix: validator should return false instead of err when invalid XML
678
+
679
+ 2.8.0 / 2017-11-29
680
+ - Add CLI option to ignore value conversion
681
+ - Fix variable name when filename is given on CLI
682
+ - Update CLI help text
683
+ - Merge pull request: xml2js: Accept standard input
684
+ - Test Node 8
685
+ - Update dependencies
686
+ - Bundle readToEnd
687
+ - Add ability to read from standard input
688
+
689
+ 2.7.4 / 2017-09-22
690
+ - Merge pull request: Allow wrap attributes with subobject to compatible with other parsers output
691
+
692
+ 2.7.3 / 2017-08-02
693
+ - fix: handle CDATA with regx
694
+
695
+ 2.7.2 / 2017-07-30
696
+ - Change travis config for yarn caching
697
+ - fix validator: when tag property is same as array property
698
+ - Merge pull request: Failing test case in validator for valid SVG
699
+
700
+ 2.7.1 / 2017-07-26
701
+ - Fix: Handle val 0
702
+
703
+ 2.7.0 / 2017-07-25
704
+ - Fix test for arrayMode
705
+ - Merge pull request: Add arrayMode option to parse any nodes as arrays
706
+
707
+ 2.6.0 / 2017-07-14
708
+ - code improvement
709
+ - Add unit tests for value conversion for attr
710
+ - 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.
711
+
712
+ 2.5.1 / 2017-07-01
713
+ - Fix XML element name pattern
714
+ - Fix XML element name pattern while parsing
715
+ - Fix validation for xml tag element
716
+
717
+ 2.5.0 / 2017-06-25
718
+ - Improve Validator performance
719
+ - update attr matching regex
720
+ - Add perf tests
721
+ - Improve atrr regex to handle all cases
722
+
723
+ 2.4.4 / 2017-06-08
724
+ - Bug fix: when an attribute has single or double quote in value
725
+
726
+ 2.4.3 / 2017-06-05
727
+ - Bug fix: when multiple CDATA tags are given
728
+ - Merge pull request: add option "textNodeConversion"
729
+ - add option "textNodeConversion"
730
+
731
+ 2.4.1 / 2017-04-14
732
+ - fix tests
733
+ - Bug fix: preserve initial space of node value
734
+ - Handle CDATA
735
+
736
+ 2.3.1 / 2017-03-15
737
+ - Bug fix: when single self closing tag
738
+ - Merge pull request: fix .codeclimate.yml
739
+ - Update .codeclimate.yml - Fixed config so it does not error anymore.
740
+ - Update .codeclimate.yml
741
+
742
+ 2.3.0 / 2017-02-26
743
+ - Code improvement
744
+ - add bithound config
745
+ - Update usage
746
+ - Update travis to generate bundle js before running tests
747
+ - 1.Browserify, 2. add more tests for validator
748
+ - Add validator
749
+ - Fix CLI default parameter bug
750
+
751
+ 2.2.1 / 2017-02-05
752
+ - Bug fix: CLI default option