fast-xml-parser 4.0.11 → 4.0.12
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 +3 -0
- package/README.md +5 -2
- package/package.json +1 -1
- package/src/fxp.d.ts +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
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
|
+
**4.0.12 / 2022-11-19**
|
|
4
|
+
* fix typescript
|
|
5
|
+
|
|
3
6
|
**4.0.11 / 2022-10-05**
|
|
4
7
|
* fix #501: parse for entities only once
|
|
5
8
|
|
package/README.md
CHANGED
|
@@ -128,13 +128,16 @@ Check lib folder for different browser bundles
|
|
|
128
128
|
### XML Parser
|
|
129
129
|
|
|
130
130
|

|
|
131
|
-
|
|
131
|
+
* Y-axis: requests per second
|
|
132
|
+
* X-axis: File size
|
|
132
133
|
**Large files**
|
|
133
134
|

|
|
134
|
-
|
|
135
|
+
* Y-axis: requests per second
|
|
136
|
+
* X-axis: File size
|
|
135
137
|
### XML Builder
|
|
136
138
|
|
|
137
139
|

|
|
140
|
+
* Y-axis: requests per second
|
|
138
141
|
|
|
139
142
|
<small>negative means error</small>
|
|
140
143
|
|
package/package.json
CHANGED
package/src/fxp.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ Control how tag value should be parsed. Called only if tag value is not empty
|
|
|
20
20
|
2. Same value to set parsed value if `parseTagValue: true`.
|
|
21
21
|
*/
|
|
22
22
|
tagValueProcessor: (tagName: string, tagValue: string, jPath: string, hasAttributes: boolean, isLeafNode: boolean) => unknown;
|
|
23
|
-
attributeValueProcessor: (attrName: string, attrValue: string, jPath: string) =>
|
|
23
|
+
attributeValueProcessor: (attrName: string, attrValue: string, jPath: string) => unknown;
|
|
24
24
|
numberParseOptions: strnumOptions;
|
|
25
25
|
stopNodes: string[];
|
|
26
26
|
unpairedTags: string[];
|
|
@@ -60,8 +60,8 @@ type XmlBuilderOptions = {
|
|
|
60
60
|
preserveOrder: boolean;
|
|
61
61
|
unpairedTags: string[];
|
|
62
62
|
stopNodes: string[];
|
|
63
|
-
tagValueProcessor: (name: string, value:
|
|
64
|
-
attributeValueProcessor: (name: string, value:
|
|
63
|
+
tagValueProcessor: (name: string, value: unknown) => string;
|
|
64
|
+
attributeValueProcessor: (name: string, value: unknown) => string;
|
|
65
65
|
processEntities: boolean;
|
|
66
66
|
};
|
|
67
67
|
type XmlBuilderOptionsOptional = Partial<XmlBuilderOptions>;
|