@markuplint/selector 4.7.8 → 4.18.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 CHANGED
@@ -3,6 +3,26 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [4.18.0](https://github.com/markuplint/markuplint/compare/v4.14.1...v4.18.0) (2026-04-22)
7
+
8
+ ### Bug Fixes
9
+
10
+ - resolve additional eslint-plugin-unicorn v63 errors ([e58a72c](https://github.com/markuplint/markuplint/commit/e58a72c17c97bbec522f9513b99777fac6904d64))
11
+
12
+ ### Reverts
13
+
14
+ - pin jsdom to 26 for Node 18 support ([a82d280](https://github.com/markuplint/markuplint/commit/a82d280cce06b52746b6a7912b3eca9d22a4296d))
15
+
16
+ ## [4.7.9](https://github.com/markuplint/markuplint/compare/@markuplint/selector@4.7.8...@markuplint/selector@4.7.9) (2026-04-21)
17
+
18
+ ### Bug Fixes
19
+
20
+ - resolve additional eslint-plugin-unicorn v63 errors ([e58a72c](https://github.com/markuplint/markuplint/commit/e58a72c17c97bbec522f9513b99777fac6904d64))
21
+
22
+ ### Reverts
23
+
24
+ - pin jsdom to 26 for Node 18 support ([a82d280](https://github.com/markuplint/markuplint/commit/a82d280cce06b52746b6a7912b3eca9d22a4296d))
25
+
6
26
  ## [4.7.8](https://github.com/markuplint/markuplint/compare/@markuplint/selector@4.7.7...@markuplint/selector@4.7.8) (2026-02-10)
7
27
 
8
28
  **Note:** Version bump only for package @markuplint/selector
@@ -7,4 +7,4 @@ import type { Specificity } from './types.js';
7
7
  * @param b - The second specificity tuple `[id, class, type]`
8
8
  * @returns `-1` if `a` is less specific, `1` if `a` is more specific, `0` if equal
9
9
  */
10
- export declare function compareSpecificity(a: Specificity, b: Specificity): 1 | -1 | 0;
10
+ export declare function compareSpecificity(a: Specificity, b: Specificity): 0 | 1 | -1;
@@ -48,7 +48,7 @@ export function ariaPseudoClass() {
48
48
  }
49
49
  function ariaPseudoClassParser(syntax) {
50
50
  const [_query, _version] = syntax.split('|');
51
- const query = _query?.replace(/\s+/g, '').toLowerCase();
51
+ const query = _query?.replaceAll(/\s+/g, '').toLowerCase();
52
52
  const version = _version ?? ARIA_RECOMMENDED_VERSION;
53
53
  if (!validateAriaVersion(version)) {
54
54
  throw new SyntaxError(`Unsupported ARIA version: ${version}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markuplint/selector",
3
- "version": "4.7.8",
3
+ "version": "4.18.0",
4
4
  "description": "Extended W3C Selectors matcher",
5
5
  "repository": "git@github.com:markuplint/markuplint.git",
6
6
  "author": "Yusuke Hirao <yusukehirao@me.com>",
@@ -24,15 +24,15 @@
24
24
  "clean": "tsc --build --clean tsconfig.build.json"
25
25
  },
26
26
  "dependencies": {
27
- "@markuplint/ml-spec": "4.10.2",
28
- "@types/debug": "4.1.12",
27
+ "@markuplint/ml-spec": "4.18.0",
28
+ "@types/debug": "4.1.13",
29
29
  "debug": "4.4.3",
30
30
  "postcss-selector-parser": "7.1.1",
31
- "type-fest": "4.41.0"
31
+ "type-fest": "5.6.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/jsdom": "27.0.0",
35
35
  "jsdom": "26.1.0"
36
36
  },
37
- "gitHead": "193ee7c1262bbed95424e38efdf1a8e56ff049f4"
37
+ "gitHead": "1885af6349def3f19df975b9e9c399dd47361de1"
38
38
  }