@asamuzakjp/dom-selector 8.1.5 → 8.2.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/package.json CHANGED
@@ -32,22 +32,22 @@
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/css-tree": "^2.3.11",
35
- "@types/node": "^26.0.0",
35
+ "@types/node": "^26.0.1",
36
36
  "c8": "^11.0.0",
37
37
  "chai": "^6.2.2",
38
38
  "commander": "^15.0.0",
39
39
  "eslint": "^9.39.4",
40
40
  "eslint-config-prettier": "^10.1.8",
41
- "eslint-plugin-jsdoc": "^63.0.6",
41
+ "eslint-plugin-jsdoc": "^63.0.10",
42
42
  "eslint-plugin-prettier": "^5.5.6",
43
- "eslint-plugin-regexp": "^3.1.0",
43
+ "eslint-plugin-regexp": "^3.1.1",
44
44
  "eslint-plugin-unicorn": "^65.0.1",
45
- "globals": "^17.6.0",
45
+ "globals": "^17.7.0",
46
46
  "jsdom": "^29.1.1",
47
47
  "mitata": "^1.0.34",
48
48
  "mocha": "^11.7.6",
49
49
  "neostandard": "^0.13.0",
50
- "prettier": "^3.8.4",
50
+ "prettier": "^3.9.1",
51
51
  "sinon": "^22.0.0",
52
52
  "tinybench": "^6.0.2",
53
53
  "typescript": "^6.0.3",
@@ -88,5 +88,5 @@
88
88
  "engines": {
89
89
  "node": "^22.13.0 || >=24.0.0"
90
90
  },
91
- "version": "8.1.5"
91
+ "version": "8.2.0"
92
92
  }
package/src/index.js CHANGED
@@ -396,6 +396,8 @@ export class DOMSelector {
396
396
  if (document && REG_UNIVERSAL.test(selector)) {
397
397
  return collectAllDescendants(node, document);
398
398
  }
399
+ // Only enabled when debugging.
400
+ /*
399
401
  if (this.#canUseNwsapi(document)) {
400
402
  const cacheKey = `querySelectorAll_${selector}`;
401
403
  let filterMatches = this.#cache.get(cacheKey);
@@ -411,6 +413,7 @@ export class DOMSelector {
411
413
  }
412
414
  }
413
415
  }
416
+ */
414
417
  try {
415
418
  const nodes = this.#finder
416
419
  .setup(selector, this.#wrapNode(node), opt)