@xmldom/xmldom 0.9.3 → 0.9.4
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 +18 -0
- package/index.d.ts +5 -1
- package/lib/dom.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,24 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [0.9.4](https://github.com/xmldom/xmldom/compare/0.9.3...0.9.4)
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- restore performance for large amount of child nodes [`#748`](https://github.com/xmldom/xmldom/issues/748) / [`#760`](https://github.com/xmldom/xmldom/pull/760)
|
|
12
|
+
- types: correct error handler level to `warning` (#759) [`#754`](https://github.com/xmldom/xmldom/issues/754) / [`#759`](https://github.com/xmldom/xmldom/pull/759)
|
|
13
|
+
|
|
14
|
+
### Docs
|
|
15
|
+
|
|
16
|
+
- test: verify BOM handling [`#758`](https://github.com/xmldom/xmldom/pull/758)
|
|
17
|
+
|
|
18
|
+
Thank you,
|
|
19
|
+
[@luffynando](https://github.com/luffynando),
|
|
20
|
+
[@mattiasw](https://github.com/mattiasw),
|
|
21
|
+
[@JoinerDev](https://github.com/JoinerDev),
|
|
22
|
+
for your contributions.
|
|
23
|
+
|
|
24
|
+
|
|
7
25
|
## [0.9.3](https://github.com/xmldom/xmldom/compare/0.9.2...0.9.3)
|
|
8
26
|
|
|
9
27
|
### Fixed
|
package/index.d.ts
CHANGED
|
@@ -1565,7 +1565,11 @@ declare module '@xmldom/xmldom' {
|
|
|
1565
1565
|
}
|
|
1566
1566
|
|
|
1567
1567
|
interface ErrorHandlerFunction {
|
|
1568
|
-
(
|
|
1568
|
+
(
|
|
1569
|
+
level: 'warning' | 'error' | 'fatalError',
|
|
1570
|
+
msg: string,
|
|
1571
|
+
context: any
|
|
1572
|
+
): void;
|
|
1569
1573
|
}
|
|
1570
1574
|
|
|
1571
1575
|
/**
|
package/lib/dom.js
CHANGED
|
@@ -2054,7 +2054,7 @@ function _insertBefore(parent, node, child, _inDocumentAssertion) {
|
|
|
2054
2054
|
do {
|
|
2055
2055
|
newFirst.parentNode = parent;
|
|
2056
2056
|
} while (newFirst !== newLast && (newFirst = newFirst.nextSibling));
|
|
2057
|
-
_onUpdateChild(parent.ownerDocument || parent, parent);
|
|
2057
|
+
_onUpdateChild(parent.ownerDocument || parent, parent, node);
|
|
2058
2058
|
if (node.nodeType == DOCUMENT_FRAGMENT_NODE) {
|
|
2059
2059
|
node.firstChild = node.lastChild = null;
|
|
2060
2060
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xmldom/xmldom",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.4",
|
|
4
4
|
"description": "A pure JavaScript W3C standard-based (XML DOM Level 2 Core) DOMParser and XMLSerializer module.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"w3c",
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
"eslint-config-prettier": "9.1.0",
|
|
52
52
|
"eslint-plugin-anti-trojan-source": "1.1.1",
|
|
53
53
|
"eslint-plugin-es5": "1.5.0",
|
|
54
|
-
"eslint-plugin-n": "17.
|
|
54
|
+
"eslint-plugin-n": "17.11.1",
|
|
55
55
|
"eslint-plugin-prettier": "5.2.1",
|
|
56
56
|
"get-stream": "6.0.1",
|
|
57
57
|
"jest": "29.7.0",
|
|
58
|
-
"nodemon": "3.1.
|
|
58
|
+
"nodemon": "3.1.7",
|
|
59
59
|
"np": "8.0.4",
|
|
60
60
|
"prettier": "3.3.3",
|
|
61
61
|
"rxjs": "7.8.1",
|