eslint-plugin-react-web-api 2.14.0-next.0 → 3.0.0-next.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 +3 -3
  2. package/package.json +10 -10
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import { DEFAULT_ESLINT_REACT_SETTINGS, WEBSITE_URL, getConfigAdapters } from "@
2
2
  import * as ast from "@eslint-react/ast";
3
3
  import * as core from "@eslint-react/core";
4
4
  import { dual, or, unit } from "@eslint-react/eff";
5
- import { findEnclosingAssignmentTarget, findProperty, findVariable, getVariableDefinitionNode, isAssignmentTargetEqual, isNodeValueEqual } from "@eslint-react/var";
5
+ import { findEnclosingAssignmentTarget, findProperty, findVariable, getVariableDefinitionNode, isAssignmentTargetEqual, isNodeEqual } from "@eslint-react/var";
6
6
  import { AST_NODE_TYPES, ESLintUtils } from "@typescript-eslint/utils";
7
7
  import { getStaticValue } from "@typescript-eslint/utils/ast-utils";
8
8
  import { P, isMatching, match } from "ts-pattern";
@@ -43,7 +43,7 @@ const settings = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
43
43
  //#endregion
44
44
  //#region package.json
45
45
  var name = "eslint-plugin-react-web-api";
46
- var version = "2.14.0-next.0";
46
+ var version = "3.0.0-next.0";
47
47
 
48
48
  //#endregion
49
49
  //#region src/types/component-phase.ts
@@ -162,7 +162,7 @@ function create$3(context) {
162
162
  const { type: aType, callee: aCallee, capture: aCapture, listener: aListener, phase: aPhase } = aEntry;
163
163
  const { type: rType, callee: rCallee, capture: rCapture, listener: rListener, phase: rPhase } = rEntry;
164
164
  if (!isInversePhase(aPhase, rPhase)) return false;
165
- return isSameObject(aCallee, rCallee) && ast.isNodeEqual(aListener, rListener) && isNodeValueEqual(aType, rType, [context.sourceCode.getScope(aType), context.sourceCode.getScope(rType)]) && aCapture === rCapture;
165
+ return isSameObject(aCallee, rCallee) && ast.isNodeEqual(aListener, rListener) && isNodeEqual(aType, rType, [context.sourceCode.getScope(aType), context.sourceCode.getScope(rType)]) && aCapture === rCapture;
166
166
  }
167
167
  function checkInlineFunction(node, callKind, options) {
168
168
  const listener = node.arguments.at(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-web-api",
3
- "version": "2.14.0-next.0",
3
+ "version": "3.0.0-next.0",
4
4
  "description": "ESLint React's ESLint plugin for interacting with Web APIs",
5
5
  "keywords": [
6
6
  "react",
@@ -38,16 +38,16 @@
38
38
  "./package.json"
39
39
  ],
40
40
  "dependencies": {
41
- "@typescript-eslint/scope-manager": "^8.55.0",
42
- "@typescript-eslint/types": "^8.55.0",
43
- "@typescript-eslint/utils": "^8.55.0",
41
+ "@typescript-eslint/scope-manager": "^8.56.0",
42
+ "@typescript-eslint/types": "^8.56.0",
43
+ "@typescript-eslint/utils": "^8.56.0",
44
44
  "birecord": "^0.1.1",
45
45
  "ts-pattern": "^5.9.0",
46
- "@eslint-react/ast": "2.14.0-next.0",
47
- "@eslint-react/core": "2.14.0-next.0",
48
- "@eslint-react/eff": "2.14.0-next.0",
49
- "@eslint-react/shared": "2.14.0-next.0",
50
- "@eslint-react/var": "2.14.0-next.0"
46
+ "@eslint-react/ast": "3.0.0-next.0",
47
+ "@eslint-react/core": "3.0.0-next.0",
48
+ "@eslint-react/eff": "3.0.0-next.0",
49
+ "@eslint-react/shared": "3.0.0-next.0",
50
+ "@eslint-react/var": "3.0.0-next.0"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/react": "^19.2.14",
@@ -60,7 +60,7 @@
60
60
  "typescript": ">=4.8.4 <6.0.0"
61
61
  },
62
62
  "engines": {
63
- "node": ">=20.19.0"
63
+ "node": ">=22.0.0"
64
64
  },
65
65
  "publishConfig": {
66
66
  "access": "public"