@markuplint/selector 5.0.0-alpha.2 → 5.0.0-alpha.3

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,10 @@
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
+ # [5.0.0-alpha.3](https://github.com/markuplint/markuplint/compare/v5.0.0-alpha.2...v5.0.0-alpha.3) (2026-02-26)
7
+
8
+ **Note:** Version bump only for package @markuplint/selector
9
+
6
10
  # [5.0.0-alpha.2](https://github.com/markuplint/markuplint/compare/v5.0.0-alpha.1...v5.0.0-alpha.2) (2026-02-23)
7
11
 
8
12
  ### Features
@@ -56,7 +56,7 @@ class SelectorTarget {
56
56
  this.#combinedFrom = { target, combinator };
57
57
  }
58
58
  match(el) {
59
- const unitCheck = this._matchWithoutCombineChecking(el);
59
+ const unitCheck = this.#matchWithoutCombineChecking(el);
60
60
  if (!unitCheck.matched) {
61
61
  return unitCheck;
62
62
  }
@@ -145,7 +145,7 @@ class SelectorTarget {
145
145
  }
146
146
  }
147
147
  }
148
- _matchWithoutCombineChecking(el) {
148
+ #matchWithoutCombineChecking(el) {
149
149
  return uncombinedRegexSelect(el, this.#selector);
150
150
  }
151
151
  }
package/lib/selector.js CHANGED
@@ -183,7 +183,7 @@ class SelectorTarget {
183
183
  this.#combinedFrom = { target, combinator };
184
184
  }
185
185
  match(el, scope, count) {
186
- const result = this._match(el, scope, count);
186
+ const result = this.#match(el, scope, count);
187
187
  if (selLog.enabled) {
188
188
  const nodeName = el.nodeName;
189
189
  const selector = this.#combinedFrom?.target.toString() ?? this.toString();
@@ -205,8 +205,8 @@ class SelectorTarget {
205
205
  this.pseudo.map(pseudo => pseudo.value).join(''),
206
206
  ].join('');
207
207
  }
208
- _match(el, scope, count) {
209
- const unitCheck = this._matchWithoutCombineChecking(el, scope);
208
+ #match(el, scope, count) {
209
+ const unitCheck = this.#matchWithoutCombineChecking(el, scope);
210
210
  if (!unitCheck.matched) {
211
211
  return unitCheck;
212
212
  }
@@ -422,9 +422,8 @@ class SelectorTarget {
422
422
  *
423
423
  * @param el
424
424
  * @param scope
425
- * @private
426
425
  */
427
- _matchWithoutCombineChecking(el, scope) {
426
+ #matchWithoutCombineChecking(el, scope) {
428
427
  const specificity = [0, 0, 0];
429
428
  if (!isElement(el)) {
430
429
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markuplint/selector",
3
- "version": "5.0.0-alpha.2",
3
+ "version": "5.0.0-alpha.3",
4
4
  "description": "Extended W3C Selectors matcher",
5
5
  "repository": "git@github.com:markuplint/markuplint.git",
6
6
  "author": "Yusuke Hirao <yusukehirao@me.com>",
@@ -27,15 +27,15 @@
27
27
  "clean": "tsc --build --clean tsconfig.build.json"
28
28
  },
29
29
  "dependencies": {
30
- "@markuplint/ml-spec": "5.0.0-alpha.2",
30
+ "@markuplint/ml-spec": "5.0.0-alpha.3",
31
31
  "@types/debug": "4.1.12",
32
32
  "debug": "4.4.3",
33
33
  "postcss-selector-parser": "7.1.1",
34
34
  "type-fest": "5.4.4"
35
35
  },
36
36
  "devDependencies": {
37
- "@types/jsdom": "27.0.0",
37
+ "@types/jsdom": "28.0.0",
38
38
  "jsdom": "28.1.0"
39
39
  },
40
- "gitHead": "31ccf1e81443ea3f93597d287595211f1823ddcf"
40
+ "gitHead": "2fbdf26daa3d021ac628ccc2f59f0eeae6ddd53d"
41
41
  }