@eslint-react/core 1.23.1-next.3 → 1.23.1-next.5

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/dist/index.d.mts CHANGED
@@ -80,7 +80,6 @@ type ERComponent = ERClassComponent | ERFunctionComponent;
80
80
  declare function useComponentCollector(context: RuleContext, hint?: bigint): {
81
81
  readonly ctx: {
82
82
  readonly getAllComponents: (_: TSESTree.Program) => Map<string, ERFunctionComponent>;
83
- readonly getCurrentComponents: () => Map<string, ERFunctionComponent>;
84
83
  readonly getCurrentFunction: () => O.Option<[key: string, node: AST.TSESTreeFunction, isComponent: boolean, hookCalls: TSESTree.CallExpression[]]>;
85
84
  readonly getCurrentFunctionStack: () => [key: string, node: AST.TSESTreeFunction, isComponent: boolean, hookCalls: TSESTree.CallExpression[]][];
86
85
  };
@@ -113,7 +112,6 @@ declare function isComponentWillUnmountFunction(node: TSESTree$1.Node): boolean;
113
112
  declare function useComponentCollectorLegacy(): {
114
113
  readonly ctx: {
115
114
  readonly getAllComponents: (_: TSESTree$1.Program) => Map<string, ERClassComponent>;
116
- readonly getCurrentComponents: () => Map<string, ERClassComponent>;
117
115
  };
118
116
  readonly listeners: {
119
117
  readonly "ClassDeclaration[type]": (node: AST.TSESTreeClass) => void;
package/dist/index.d.ts CHANGED
@@ -80,7 +80,6 @@ type ERComponent = ERClassComponent | ERFunctionComponent;
80
80
  declare function useComponentCollector(context: RuleContext, hint?: bigint): {
81
81
  readonly ctx: {
82
82
  readonly getAllComponents: (_: TSESTree.Program) => Map<string, ERFunctionComponent>;
83
- readonly getCurrentComponents: () => Map<string, ERFunctionComponent>;
84
83
  readonly getCurrentFunction: () => O.Option<[key: string, node: AST.TSESTreeFunction, isComponent: boolean, hookCalls: TSESTree.CallExpression[]]>;
85
84
  readonly getCurrentFunctionStack: () => [key: string, node: AST.TSESTreeFunction, isComponent: boolean, hookCalls: TSESTree.CallExpression[]][];
86
85
  };
@@ -113,7 +112,6 @@ declare function isComponentWillUnmountFunction(node: TSESTree$1.Node): boolean;
113
112
  declare function useComponentCollectorLegacy(): {
114
113
  readonly ctx: {
115
114
  readonly getAllComponents: (_: TSESTree$1.Program) => Map<string, ERClassComponent>;
116
- readonly getCurrentComponents: () => Map<string, ERClassComponent>;
117
115
  };
118
116
  readonly listeners: {
119
117
  readonly "ClassDeclaration[type]": (node: AST.TSESTreeClass) => void;
package/dist/index.js CHANGED
@@ -412,9 +412,6 @@ function useComponentCollectorLegacy() {
412
412
  const ctx = {
413
413
  getAllComponents(_) {
414
414
  return components;
415
- },
416
- getCurrentComponents() {
417
- return new Map(components);
418
415
  }
419
416
  };
420
417
  const collect = (node) => {
@@ -545,9 +542,6 @@ function useComponentCollector(context, hint = DEFAULT_COMPONENT_HINT) {
545
542
  getAllComponents(_) {
546
543
  return components;
547
544
  },
548
- getCurrentComponents() {
549
- return new Map(components);
550
- },
551
545
  getCurrentFunction,
552
546
  getCurrentFunctionStack() {
553
547
  return [...functionStack];
package/dist/index.mjs CHANGED
@@ -388,9 +388,6 @@ function useComponentCollectorLegacy() {
388
388
  const ctx = {
389
389
  getAllComponents(_) {
390
390
  return components;
391
- },
392
- getCurrentComponents() {
393
- return new Map(components);
394
391
  }
395
392
  };
396
393
  const collect = (node) => {
@@ -521,9 +518,6 @@ function useComponentCollector(context, hint = DEFAULT_COMPONENT_HINT) {
521
518
  getAllComponents(_) {
522
519
  return components;
523
520
  },
524
- getCurrentComponents() {
525
- return new Map(components);
526
- },
527
521
  getCurrentFunction,
528
522
  getCurrentFunctionStack() {
529
523
  return [...functionStack];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/core",
3
- "version": "1.23.1-next.3",
3
+ "version": "1.23.1-next.5",
4
4
  "description": "ESLint React's ESLint utility module for static analysis of React core APIs and Patterns.",
5
5
  "homepage": "https://github.com/rEl1cx/eslint-react",
6
6
  "bugs": {
@@ -38,12 +38,12 @@
38
38
  "@typescript-eslint/types": "^8.19.0",
39
39
  "@typescript-eslint/utils": "^8.19.0",
40
40
  "ts-pattern": "^5.6.0",
41
- "@eslint-react/ast": "1.23.1-next.3",
42
- "@eslint-react/eff": "1.23.1-next.3",
43
- "@eslint-react/jsx": "1.23.1-next.3",
44
- "@eslint-react/shared": "1.23.1-next.3",
45
- "@eslint-react/types": "1.23.1-next.3",
46
- "@eslint-react/var": "1.23.1-next.3"
41
+ "@eslint-react/ast": "1.23.1-next.5",
42
+ "@eslint-react/eff": "1.23.1-next.5",
43
+ "@eslint-react/jsx": "1.23.1-next.5",
44
+ "@eslint-react/types": "1.23.1-next.5",
45
+ "@eslint-react/shared": "1.23.1-next.5",
46
+ "@eslint-react/var": "1.23.1-next.5"
47
47
  },
48
48
  "devDependencies": {
49
49
  "tsup": "^8.3.5",