@eslint-react/core 1.23.1-beta.2 → 1.23.1-beta.6

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;
@@ -2560,7 +2558,7 @@ declare const isMemoCall: {
2560
2558
  (node: Node, context: _eslint_react_types.RuleContext): node is CallExpression;
2561
2559
  };
2562
2560
 
2563
- declare function next(): number;
2561
+ declare function next(): bigint;
2564
2562
 
2565
2563
  declare const uid_next: typeof next;
2566
2564
  declare namespace uid {
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;
@@ -2560,7 +2558,7 @@ declare const isMemoCall: {
2560
2558
  (node: Node, context: _eslint_react_types.RuleContext): node is CallExpression;
2561
2559
  };
2562
2560
 
2563
- declare function next(): number;
2561
+ declare function next(): bigint;
2564
2562
 
2565
2563
  declare const uid_next: typeof next;
2566
2564
  declare namespace uid {
package/dist/index.js CHANGED
@@ -133,7 +133,7 @@ var uid_exports = {};
133
133
  __export(uid_exports, {
134
134
  next: () => next
135
135
  });
136
- var id = 0;
136
+ var id = 0n;
137
137
  function next() {
138
138
  return id++;
139
139
  }
@@ -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
@@ -109,7 +109,7 @@ var uid_exports = {};
109
109
  __export(uid_exports, {
110
110
  next: () => next
111
111
  });
112
- var id = 0;
112
+ var id = 0n;
113
113
  function next() {
114
114
  return id++;
115
115
  }
@@ -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-beta.2",
3
+ "version": "1.23.1-beta.6",
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/eff": "1.23.1-beta.2",
42
- "@eslint-react/shared": "1.23.1-beta.2",
43
- "@eslint-react/ast": "1.23.1-beta.2",
44
- "@eslint-react/jsx": "1.23.1-beta.2",
45
- "@eslint-react/types": "1.23.1-beta.2",
46
- "@eslint-react/var": "1.23.1-beta.2"
41
+ "@eslint-react/ast": "1.23.1-beta.6",
42
+ "@eslint-react/eff": "1.23.1-beta.6",
43
+ "@eslint-react/shared": "1.23.1-beta.6",
44
+ "@eslint-react/types": "1.23.1-beta.6",
45
+ "@eslint-react/var": "1.23.1-beta.6",
46
+ "@eslint-react/jsx": "1.23.1-beta.6"
47
47
  },
48
48
  "devDependencies": {
49
49
  "tsup": "^8.3.5",