@markuplint/selector 4.7.8 → 4.18.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
@@ -3,6 +3,30 @@
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.1](https://github.com/markuplint/markuplint/compare/v4.18.0...v4.18.1) (2026-04-24)
7
+
8
+ **Note:** Version bump only for package @markuplint/selector
9
+
10
+ # [4.18.0](https://github.com/markuplint/markuplint/compare/v4.14.1...v4.18.0) (2026-04-22)
11
+
12
+ ### Bug Fixes
13
+
14
+ - resolve additional eslint-plugin-unicorn v63 errors ([e58a72c](https://github.com/markuplint/markuplint/commit/e58a72c17c97bbec522f9513b99777fac6904d64))
15
+
16
+ ### Reverts
17
+
18
+ - pin jsdom to 26 for Node 18 support ([a82d280](https://github.com/markuplint/markuplint/commit/a82d280cce06b52746b6a7912b3eca9d22a4296d))
19
+
20
+ ## [4.7.9](https://github.com/markuplint/markuplint/compare/@markuplint/selector@4.7.8...@markuplint/selector@4.7.9) (2026-04-21)
21
+
22
+ ### Bug Fixes
23
+
24
+ - resolve additional eslint-plugin-unicorn v63 errors ([e58a72c](https://github.com/markuplint/markuplint/commit/e58a72c17c97bbec522f9513b99777fac6904d64))
25
+
26
+ ### Reverts
27
+
28
+ - pin jsdom to 26 for Node 18 support ([a82d280](https://github.com/markuplint/markuplint/commit/a82d280cce06b52746b6a7912b3eca9d22a4296d))
29
+
6
30
  ## [4.7.8](https://github.com/markuplint/markuplint/compare/@markuplint/selector@4.7.7...@markuplint/selector@4.7.8) (2026-02-10)
7
31
 
8
32
  **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.1",
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
- "@types/jsdom": "27.0.0",
34
+ "@types/jsdom": "28.0.1",
35
35
  "jsdom": "26.1.0"
36
36
  },
37
- "gitHead": "193ee7c1262bbed95424e38efdf1a8e56ff049f4"
37
+ "gitHead": "68194864bf358ff4763ee8edc578f7a137e60365"
38
38
  }