@siteimprove/alfa-dom 0.114.0 → 0.114.2
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 +12 -0
- package/dist/node/traversal/get-nodes-between.js +2 -2
- package/package.json +28 -28
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @siteimprove/alfa-dom
|
|
2
2
|
|
|
3
|
+
## 0.114.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- **Fixed:** `getNodesInclusivelyBetween` now again correctly passes `treeOptions` to `lowestCommonAncestor`. ([#2056](https://github.com/Siteimprove/alfa/pull/2056))
|
|
8
|
+
|
|
9
|
+
## 0.114.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- **Fixed:** `fullTree` as default traversal in getNodesBetween has been restored after being changed to `Traversal.empty` in #2040. ([#2050](https://github.com/Siteimprove/alfa/pull/2050))
|
|
14
|
+
|
|
3
15
|
## 0.114.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -18,7 +18,7 @@ const { equals, or } = Predicate;
|
|
|
18
18
|
*
|
|
19
19
|
* @public
|
|
20
20
|
*/
|
|
21
|
-
export function getNodesBetween(node1, node2, includeOptions = { includeFirst: false, includeSecond: false }, treeOptions = BaseNode.
|
|
21
|
+
export function getNodesBetween(node1, node2, includeOptions = { includeFirst: false, includeSecond: false }, treeOptions = BaseNode.fullTree) {
|
|
22
22
|
let between = getNodesInclusivelyBetween(node1, node2, treeOptions);
|
|
23
23
|
// If somehow there is nothing between them, escape now
|
|
24
24
|
if (between.isEmpty()) {
|
|
@@ -52,7 +52,7 @@ export function getNodesBetween(node1, node2, includeOptions = { includeFirst: f
|
|
|
52
52
|
*/
|
|
53
53
|
function getNodesInclusivelyBetween(node1, node2, treeOptions) {
|
|
54
54
|
const isFrontier = or(equals(node1), equals(node2));
|
|
55
|
-
return lowestCommonAncestor(node1, node2)
|
|
55
|
+
return lowestCommonAncestor(node1, node2, treeOptions)
|
|
56
56
|
.map((context) => context
|
|
57
57
|
.inclusiveDescendants(treeOptions)
|
|
58
58
|
.skipUntil(isFrontier)
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "http://json.schemastore.org/package",
|
|
3
3
|
"name": "@siteimprove/alfa-dom",
|
|
4
4
|
"homepage": "https://alfa.siteimprove.com",
|
|
5
|
-
"version": "0.114.
|
|
5
|
+
"version": "0.114.2",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"description": "Implementations of the core DOM and CSSOM node types",
|
|
8
8
|
"repository": {
|
|
@@ -35,36 +35,36 @@
|
|
|
35
35
|
"dist/**/*.d.ts"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@siteimprove/alfa-array": "^0.114.
|
|
39
|
-
"@siteimprove/alfa-cache": "^0.114.
|
|
40
|
-
"@siteimprove/alfa-comparable": "^0.114.
|
|
41
|
-
"@siteimprove/alfa-css": "^0.114.
|
|
42
|
-
"@siteimprove/alfa-css-feature": "^0.114.
|
|
43
|
-
"@siteimprove/alfa-device": "^0.114.
|
|
44
|
-
"@siteimprove/alfa-earl": "^0.114.
|
|
45
|
-
"@siteimprove/alfa-equatable": "^0.114.
|
|
46
|
-
"@siteimprove/alfa-flags": "^0.114.
|
|
47
|
-
"@siteimprove/alfa-iterable": "^0.114.
|
|
48
|
-
"@siteimprove/alfa-json": "^0.114.
|
|
49
|
-
"@siteimprove/alfa-lazy": "^0.114.
|
|
50
|
-
"@siteimprove/alfa-map": "^0.114.
|
|
51
|
-
"@siteimprove/alfa-option": "^0.114.
|
|
52
|
-
"@siteimprove/alfa-parser": "^0.114.
|
|
53
|
-
"@siteimprove/alfa-predicate": "^0.114.
|
|
54
|
-
"@siteimprove/alfa-rectangle": "^0.114.
|
|
55
|
-
"@siteimprove/alfa-refinement": "^0.114.
|
|
56
|
-
"@siteimprove/alfa-result": "^0.114.
|
|
57
|
-
"@siteimprove/alfa-sarif": "^0.114.
|
|
58
|
-
"@siteimprove/alfa-sequence": "^0.114.
|
|
59
|
-
"@siteimprove/alfa-slice": "^0.114.
|
|
60
|
-
"@siteimprove/alfa-string": "^0.114.
|
|
61
|
-
"@siteimprove/alfa-trampoline": "^0.114.
|
|
62
|
-
"@siteimprove/alfa-tree": "^0.114.
|
|
38
|
+
"@siteimprove/alfa-array": "^0.114.2",
|
|
39
|
+
"@siteimprove/alfa-cache": "^0.114.2",
|
|
40
|
+
"@siteimprove/alfa-comparable": "^0.114.2",
|
|
41
|
+
"@siteimprove/alfa-css": "^0.114.2",
|
|
42
|
+
"@siteimprove/alfa-css-feature": "^0.114.2",
|
|
43
|
+
"@siteimprove/alfa-device": "^0.114.2",
|
|
44
|
+
"@siteimprove/alfa-earl": "^0.114.2",
|
|
45
|
+
"@siteimprove/alfa-equatable": "^0.114.2",
|
|
46
|
+
"@siteimprove/alfa-flags": "^0.114.2",
|
|
47
|
+
"@siteimprove/alfa-iterable": "^0.114.2",
|
|
48
|
+
"@siteimprove/alfa-json": "^0.114.2",
|
|
49
|
+
"@siteimprove/alfa-lazy": "^0.114.2",
|
|
50
|
+
"@siteimprove/alfa-map": "^0.114.2",
|
|
51
|
+
"@siteimprove/alfa-option": "^0.114.2",
|
|
52
|
+
"@siteimprove/alfa-parser": "^0.114.2",
|
|
53
|
+
"@siteimprove/alfa-predicate": "^0.114.2",
|
|
54
|
+
"@siteimprove/alfa-rectangle": "^0.114.2",
|
|
55
|
+
"@siteimprove/alfa-refinement": "^0.114.2",
|
|
56
|
+
"@siteimprove/alfa-result": "^0.114.2",
|
|
57
|
+
"@siteimprove/alfa-sarif": "^0.114.2",
|
|
58
|
+
"@siteimprove/alfa-sequence": "^0.114.2",
|
|
59
|
+
"@siteimprove/alfa-slice": "^0.114.2",
|
|
60
|
+
"@siteimprove/alfa-string": "^0.114.2",
|
|
61
|
+
"@siteimprove/alfa-trampoline": "^0.114.2",
|
|
62
|
+
"@siteimprove/alfa-tree": "^0.114.2"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@siteimprove/alfa-test": "^0.114.
|
|
65
|
+
"@siteimprove/alfa-test": "^0.114.2",
|
|
66
66
|
"@types/jsdom": "^28.0.1",
|
|
67
|
-
"jsdom": "^29.0.
|
|
67
|
+
"jsdom": "^29.0.2"
|
|
68
68
|
},
|
|
69
69
|
"publishConfig": {
|
|
70
70
|
"access": "public",
|