@siteimprove/alfa-dom 0.107.0 → 0.108.1

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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # @siteimprove/alfa-dom
2
2
 
3
+ ## 0.108.1
4
+
5
+ ## 0.108.0
6
+
3
7
  ## 0.107.0
4
8
 
5
9
  ## 0.106.1
@@ -3,7 +3,7 @@ import { Parser } from "@siteimprove/alfa-parser";
3
3
  import { Slice } from "@siteimprove/alfa-slice";
4
4
  import { Array } from "@siteimprove/alfa-array";
5
5
  import { Err, Ok } from "@siteimprove/alfa-result";
6
- const { either, end, option, right, parseIf } = Parser;
6
+ const { either, end, filter, option, right } = Parser;
7
7
  /**
8
8
  * @public
9
9
  */
@@ -99,11 +99,11 @@ export var Autocomplete;
99
99
  .map((token) => Ok.of([input.rest(), token]))
100
100
  .getOr(Err.of("No token left"));
101
101
  function parserOf(tokens) {
102
- return parseIf((token) => tokens.includes(token), parseFirst, (token) => `Expected valid token, but got ${token}`);
102
+ return filter(parseFirst, (token) => tokens.includes(token), (token) => `Expected valid token, but got ${token}`);
103
103
  }
104
104
  const addressType = parserOf(AutofillDetailTokens.addressTypes);
105
105
  const unmodifiable = parserOf(AutofillDetailTokens.unmodifiables);
106
- const section = parseIf((token) => token.startsWith("section-"), parseFirst, (token) => `Expected token beginning with \`section-\`, but got ${token}`);
106
+ const section = filter(parseFirst, (token) => token.startsWith("section-"), (token) => `Expected token beginning with \`section-\`, but got ${token}`);
107
107
  const modifiable = parserOf(AutofillDetailTokens.modifiables);
108
108
  const modifier = parserOf(AutofillDetailTokens.modifiers);
109
109
  const webauthn = parserOf([AutofillDetailTokens.webauthn]);
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.107.0",
5
+ "version": "0.108.1",
6
6
  "license": "MIT",
7
7
  "description": "Implementations of the core DOM and CSSOM node types",
8
8
  "repository": {
@@ -35,37 +35,37 @@
35
35
  "dist/**/*.d.ts"
36
36
  ],
37
37
  "dependencies": {
38
- "@siteimprove/alfa-array": "^0.107.0",
39
- "@siteimprove/alfa-cache": "^0.107.0",
40
- "@siteimprove/alfa-comparable": "^0.107.0",
41
- "@siteimprove/alfa-css": "^0.107.0",
42
- "@siteimprove/alfa-css-feature": "^0.107.0",
43
- "@siteimprove/alfa-device": "^0.107.0",
44
- "@siteimprove/alfa-earl": "^0.107.0",
45
- "@siteimprove/alfa-equatable": "^0.107.0",
46
- "@siteimprove/alfa-flags": "^0.107.0",
47
- "@siteimprove/alfa-iterable": "^0.107.0",
48
- "@siteimprove/alfa-json": "^0.107.0",
49
- "@siteimprove/alfa-lazy": "^0.107.0",
50
- "@siteimprove/alfa-map": "^0.107.0",
51
- "@siteimprove/alfa-option": "^0.107.0",
52
- "@siteimprove/alfa-parser": "^0.107.0",
53
- "@siteimprove/alfa-predicate": "^0.107.0",
54
- "@siteimprove/alfa-rectangle": "^0.107.0",
55
- "@siteimprove/alfa-refinement": "^0.107.0",
56
- "@siteimprove/alfa-result": "^0.107.0",
57
- "@siteimprove/alfa-sarif": "^0.107.0",
58
- "@siteimprove/alfa-selective": "^0.107.0",
59
- "@siteimprove/alfa-sequence": "^0.107.0",
60
- "@siteimprove/alfa-slice": "^0.107.0",
61
- "@siteimprove/alfa-string": "^0.107.0",
62
- "@siteimprove/alfa-trampoline": "^0.107.0",
63
- "@siteimprove/alfa-tree": "^0.107.0"
38
+ "@siteimprove/alfa-array": "^0.108.1",
39
+ "@siteimprove/alfa-cache": "^0.108.1",
40
+ "@siteimprove/alfa-comparable": "^0.108.1",
41
+ "@siteimprove/alfa-css": "^0.108.1",
42
+ "@siteimprove/alfa-css-feature": "^0.108.1",
43
+ "@siteimprove/alfa-device": "^0.108.1",
44
+ "@siteimprove/alfa-earl": "^0.108.1",
45
+ "@siteimprove/alfa-equatable": "^0.108.1",
46
+ "@siteimprove/alfa-flags": "^0.108.1",
47
+ "@siteimprove/alfa-iterable": "^0.108.1",
48
+ "@siteimprove/alfa-json": "^0.108.1",
49
+ "@siteimprove/alfa-lazy": "^0.108.1",
50
+ "@siteimprove/alfa-map": "^0.108.1",
51
+ "@siteimprove/alfa-option": "^0.108.1",
52
+ "@siteimprove/alfa-parser": "^0.108.1",
53
+ "@siteimprove/alfa-predicate": "^0.108.1",
54
+ "@siteimprove/alfa-rectangle": "^0.108.1",
55
+ "@siteimprove/alfa-refinement": "^0.108.1",
56
+ "@siteimprove/alfa-result": "^0.108.1",
57
+ "@siteimprove/alfa-sarif": "^0.108.1",
58
+ "@siteimprove/alfa-selective": "^0.108.1",
59
+ "@siteimprove/alfa-sequence": "^0.108.1",
60
+ "@siteimprove/alfa-slice": "^0.108.1",
61
+ "@siteimprove/alfa-string": "^0.108.1",
62
+ "@siteimprove/alfa-trampoline": "^0.108.1",
63
+ "@siteimprove/alfa-tree": "^0.108.1"
64
64
  },
65
65
  "devDependencies": {
66
- "@siteimprove/alfa-test": "^0.107.0",
66
+ "@siteimprove/alfa-test": "^0.108.1",
67
67
  "@types/jsdom": "^27.0.0",
68
- "jsdom": "^27.0.1"
68
+ "jsdom": "^27.2.0"
69
69
  },
70
70
  "publishConfig": {
71
71
  "access": "public",