eslint-plugin-react-x 5.25.0 → 5.26.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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -135,7 +135,7 @@ const rules$6 = {
135
135
  //#endregion
136
136
  //#region package.json
137
137
  var name$6 = "eslint-plugin-react-x";
138
- var version = "5.25.0";
138
+ var version = "5.26.0";
139
139
  //#endregion
140
140
  //#region src/utils/create-rule.ts
141
141
  function getDocsUrl(ruleName) {
@@ -1372,7 +1372,7 @@ function isInitializedFromUseRef(context, node) {
1372
1372
  function isKnownNonMutatingMethodCall(context, node) {
1373
1373
  const callee = Extract.unwrap(node.callee);
1374
1374
  return Check.isExpression(callee) && isInitializedFromCall(context, callee, (init) => {
1375
- return KNOWN_MUTATING_HOOKS.values().some((hook) => core.isAPICall(hook)(context, init));
1375
+ return [...KNOWN_MUTATING_HOOKS].some((hook) => core.isAPICall(hook)(context, init));
1376
1376
  });
1377
1377
  }
1378
1378
  function isRefLikeChain(context, node) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-x",
3
- "version": "5.25.0",
3
+ "version": "5.26.0",
4
4
  "description": "A set of composable ESLint rules for libraries and frameworks that use React as a UI runtime.",
5
5
  "keywords": [
6
6
  "react",
@@ -36,12 +36,12 @@
36
36
  "dist"
37
37
  ],
38
38
  "dependencies": {
39
- "@eslint-react/ast": "5.25.0",
40
- "@eslint-react/core": "5.25.0",
41
- "@eslint-react/eslint": "5.25.0",
42
- "@eslint-react/jsx": "5.25.0",
43
- "@eslint-react/shared": "5.25.0",
44
- "@eslint-react/var": "5.25.0",
39
+ "@eslint-react/ast": "5.26.0",
40
+ "@eslint-react/core": "5.26.0",
41
+ "@eslint-react/eslint": "5.26.0",
42
+ "@eslint-react/jsx": "5.26.0",
43
+ "@eslint-react/shared": "5.26.0",
44
+ "@eslint-react/var": "5.26.0",
45
45
  "@typescript-eslint/scope-manager": "^8.71.1",
46
46
  "@typescript-eslint/types": "^8.71.1",
47
47
  "@typescript-eslint/typescript-estree": "^8.71.1",
@@ -77,7 +77,7 @@
77
77
  }
78
78
  },
79
79
  "engines": {
80
- "node": ">=22.0.0"
80
+ "node": ">=20.19.0"
81
81
  },
82
82
  "inlinedDependencies": {
83
83
  "@local/eff": "workspace:*"