fast-xml-parser 4.0.0-beta.8 → 4.0.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 +10 -6
- package/README.md +12 -1
- package/package.json +2 -2
- package/src/fxp_cjs +8 -0
- package/src/xmlbuilder/orderedJs2Xml.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,29 +1,33 @@
|
|
|
1
1
|
Note: If you find missing information about particular minor version, that version must have been changed without any functional change in this library.
|
|
2
2
|
|
|
3
|
-
**
|
|
3
|
+
**4.0.0 / 2022-01-06**
|
|
4
|
+
* Generating different combined, parser only, builder only, validator only browser bundles
|
|
5
|
+
* Keeping cjs modules as they can be imported in cjs and esm modules both. Otherwise refer `esm` branch.
|
|
6
|
+
|
|
7
|
+
**4.0.0-beta.8 / 2021-12-13**
|
|
4
8
|
* call tagValueProcessor for stop nodes
|
|
5
9
|
|
|
6
|
-
**
|
|
10
|
+
**4.0.0-beta.7 / 2021-12-09**
|
|
7
11
|
* fix Validator bug when an attribute has no value but '=' only
|
|
8
12
|
* XML Builder should suppress unpaired tags by default.
|
|
9
13
|
* documents update for missing features
|
|
10
14
|
* refactoring to use Object.assign
|
|
11
15
|
* refactoring to remove repeated code
|
|
12
16
|
|
|
13
|
-
**
|
|
17
|
+
**4.0.0-beta.6 / 2021-12-05**
|
|
14
18
|
* Support PI Tags processing
|
|
15
19
|
* Support `suppressBooleanAttributes` by XML Builder for attributes with value `true`.
|
|
16
20
|
|
|
17
|
-
**
|
|
21
|
+
**4.0.0-beta.5 / 2021-12-04**
|
|
18
22
|
* fix: when a tag with name "attributes"
|
|
19
23
|
|
|
20
|
-
**
|
|
24
|
+
**4.0.0-beta.4 / 2021-12-02**
|
|
21
25
|
* Support HTML document parsing
|
|
22
26
|
* skip stop nodes parsing when building the XML from JS object
|
|
23
27
|
* Support external entites without DOCTYPE
|
|
24
28
|
* update dev dependency: strnum v1.0.5 to fix long number issue
|
|
25
29
|
|
|
26
|
-
**
|
|
30
|
+
**4.0.0-beta.3 / 2021-11-30**
|
|
27
31
|
* support global stopNodes expression like "*.stop"
|
|
28
32
|
* support self-closing and paired unpaired tags
|
|
29
33
|
* fix: CDATA should not be parsed.
|
package/README.md
CHANGED
|
@@ -90,7 +90,7 @@ const xmlContent = builder.build(jObj);
|
|
|
90
90
|
|
|
91
91
|
In a HTML page
|
|
92
92
|
```html
|
|
93
|
-
<script src="path/to/
|
|
93
|
+
<script src="path/to/fxp.min.js"></script>
|
|
94
94
|
:
|
|
95
95
|
<script>
|
|
96
96
|
const parser = new fxparser.XMLParser();
|
|
@@ -98,6 +98,16 @@ In a HTML page
|
|
|
98
98
|
</script>
|
|
99
99
|
```
|
|
100
100
|
|
|
101
|
+
Check lib folder for different browser bundles
|
|
102
|
+
|
|
103
|
+
| Bundle Name | Size |
|
|
104
|
+
| -- | -- |
|
|
105
|
+
| fxbuilder.min.js | 5.2K |
|
|
106
|
+
| fxparser.js | 50K |
|
|
107
|
+
| fxparser.min.js | 17K |
|
|
108
|
+
| fxp.min.js | 22K |
|
|
109
|
+
| fxvalidator.min.js | 5.7K |
|
|
110
|
+
|
|
101
111
|
### Documents
|
|
102
112
|
**v3**
|
|
103
113
|
* [documents](./docs/v3/docs.md)
|
|
@@ -135,6 +145,7 @@ In a HTML page
|
|
|
135
145
|
* Run tests for a route or from a route
|
|
136
146
|
* Customizable reporting
|
|
137
147
|
* Central dashboard for better monitoring
|
|
148
|
+
* Options to integrate E2E tests with Jira, Github etc using Central dashboard `Tian`.
|
|
138
149
|
* **[Stubmatic](https://github.com/NaturalIntelligence/Stubmatic)** : Create fake webservices, DynamoDB or S3 servers, Manage fake/mock stub data, Or fake any HTTP(s) call.
|
|
139
150
|
|
|
140
151
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fast-xml-parser",
|
|
3
|
-
"version": "4.0.0
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Validate XML, Parse XML, Build XML without C/C++ based libraries",
|
|
5
5
|
"main": "./src/fxp.js",
|
|
6
6
|
"scripts": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"coverage": "nyc report --reporter html --reporter text -t .nyc_output --report-dir .nyc_output/summary",
|
|
10
10
|
"perf": "node ./benchmark/perfTest3.js",
|
|
11
11
|
"lint": "eslint src/*.js spec/*.js",
|
|
12
|
-
"bundle": "webpack
|
|
12
|
+
"bundle": "webpack --config webpack-prod.config.js",
|
|
13
13
|
"prettier": "prettier --write src/**/*.js",
|
|
14
14
|
"publish-please": "publish-please",
|
|
15
15
|
"checkReadiness": "publish-please --dry-run"
|
package/src/fxp_cjs
ADDED