eslint-plugin-react-web-api 5.2.3-next.2 → 5.2.4-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 +4 -4
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -28,7 +28,7 @@ var __exportAll = (all, no_symbols) => {
28
28
  //#endregion
29
29
  //#region package.json
30
30
  var name$1 = "eslint-plugin-react-web-api";
31
- var version = "5.2.3-next.2";
31
+ var version = "5.2.4-next.0";
32
32
 
33
33
  //#endregion
34
34
  //#region src/types/component-phase.ts
@@ -48,7 +48,7 @@ const createRule = ESLintUtils.RuleCreator(getDocsUrl);
48
48
  //#region src/rules/no-leaked-event-listener/lib.ts
49
49
  function findProperty(of, named) {
50
50
  for (const property of of) {
51
- if (property.type === AST_NODE_TYPES$1.Property && Extract.propertyName(property.key) === named) return property;
51
+ if (property.type === AST_NODE_TYPES$1.Property && Extract.getPropertyName(property.key) === named) return property;
52
52
  if (property.type === AST_NODE_TYPES$1.SpreadElement && property.argument.type === AST_NODE_TYPES$1.ObjectExpression) {
53
53
  const found = findProperty(property.argument.properties, named);
54
54
  if (found != null) return found;
@@ -141,7 +141,7 @@ function create$3(context) {
141
141
  const abortedSignals = [];
142
142
  function isSameObject(a, b) {
143
143
  switch (true) {
144
- case a.type === AST_NODE_TYPES.MemberExpression && b.type === AST_NODE_TYPES.MemberExpression: return Compare.areEqual(a.object, b.object);
144
+ case a.type === AST_NODE_TYPES.MemberExpression && b.type === AST_NODE_TYPES.MemberExpression: return Compare.isEqual(a.object, b.object);
145
145
  default: return false;
146
146
  }
147
147
  }
@@ -149,7 +149,7 @@ function create$3(context) {
149
149
  const { type: aType, callee: aCallee, capture: aCapture, listener: aListener, phase: aPhase } = aEntry;
150
150
  const { type: rType, callee: rCallee, capture: rCapture, listener: rListener, phase: rPhase } = rEntry;
151
151
  if (ComponentPhaseRelevance.get(aPhase) !== rPhase) return false;
152
- return isSameObject(aCallee, rCallee) && Compare.areEqual(aListener, rListener) && isValueEqual(context, aType, rType) && aCapture === rCapture;
152
+ return isSameObject(aCallee, rCallee) && Compare.isEqual(aListener, rListener) && isValueEqual(context, aType, rType) && aCapture === rCapture;
153
153
  }
154
154
  function checkInlineFunction(node, callKind, options) {
155
155
  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": "5.2.3-next.2",
3
+ "version": "5.2.4-next.0",
4
4
  "description": "ESLint React's ESLint plugin for interacting with Web APIs",
5
5
  "keywords": [
6
6
  "react",
@@ -43,11 +43,11 @@
43
43
  "@typescript-eslint/utils": "^8.58.2",
44
44
  "birecord": "^0.1.1",
45
45
  "ts-pattern": "^5.9.0",
46
- "@eslint-react/ast": "5.2.3-next.2",
47
- "@eslint-react/eslint": "5.2.3-next.2",
48
- "@eslint-react/core": "5.2.3-next.2",
49
- "@eslint-react/var": "5.2.3-next.2",
50
- "@eslint-react/shared": "5.2.3-next.2"
46
+ "@eslint-react/ast": "5.2.4-next.0",
47
+ "@eslint-react/shared": "5.2.4-next.0",
48
+ "@eslint-react/var": "5.2.4-next.0",
49
+ "@eslint-react/core": "5.2.4-next.0",
50
+ "@eslint-react/eslint": "5.2.4-next.0"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/react": "^19.2.14",