Skip to content

Commit

Permalink
update package to publish
Browse files Browse the repository at this point in the history
  • Loading branch information
amitguptagwl committed Nov 30, 2021
1 parent d3eb2aa commit 7439272
Show file tree
Hide file tree
Showing 10 changed files with 1,048 additions and 1,378 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
Note: If you find missing information about particular minor version, that version must have been changed without any functional change in this library.

** 4.0.0-beta.3 / 2021-11-30**
* support global stopNodes expression like "*.stop"
* support self-closing and paired unpaired tags
* fix: CDATA should not be parsed.
* Fix typings for XMLBuilder (#396)(By [Anders Emil Salvesen](https://github.com/andersem))
* supports XML entities, HTML entities, DOCTYPE entities

**⚠️ 4.0.0-beta.2 / 2021-11-19**
* rename `attrMap` to `attibutes` in parser output when `preserveOrder:true`
* supports unpairedTags
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ Check the list of all known users [here](./USERs.md);
* Faster than any pure JS implementation.
* It can handle big files (tested up to 100mb).
* Controlled parsing using various options
* XML Entities, HTML entities, and DOCTYPE entites are supported.
* unpaired tags (Eg `<br>` in HTML), stop nodes (Eg `<script>` in HTML) are supported.
* You can restore almost same XML from JSON
* Supports comments
* It can preserve Order of tags in JS object
* You can control if a single tag should be parsed into array.
* And many more other features.

## How to use

Expand Down
113 changes: 69 additions & 44 deletions lib/fxparser.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/fxparser.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/fxparser.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/fxparser.min.js.map

Large diffs are not rendered by default.

11 changes: 10 additions & 1 deletion nexttodo.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,13 @@ P2
* validate XML stream data
* Accept streams, arrayBuffer
https://github.com/NaturalIntelligence/fast-xml-parser/issues/347
* XML to JSON ML : https://en.wikipedia.org/wiki/JsonML
* XML to JSON ML : https://en.wikipedia.org/wiki/JsonML


----

Entities
* https://www.w3schools.com/xml/xml_dtd.asp
* https://web-in-security.blogspot.com/2016/03/xxe-cheat-sheet.html
* https://stackoverflow.com/questions/28942711/in-xml-dtds-is-it-possible-to-provide-multiple-definitions-for-same-element-depe
* https://www.w3.org/TR/REC-xml/#sec-condition-sect
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fast-xml-parser",
"version": "4.0.0-beta.2",
"version": "4.0.0-beta.3",
"description": "Validate XML, Parse XML, Build XML without C/C++ based libraries",
"main": "./src/fxp.js",
"scripts": {
Expand Down
2,278 changes: 950 additions & 1,328 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 7439272

Please sign in to comment.