@react-analyzer/core 0.0.10 → 0.0.11

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.ts CHANGED
@@ -1,4 +1,3 @@
1
- import { unit } from "@local/eff";
2
1
  import { AST, Context } from "tsl";
3
2
 
4
3
  //#region src/semantic/semantic-entry.d.ts
@@ -8,10 +7,10 @@ interface SemanticEntry {
8
7
  //#endregion
9
8
  //#region src/semantic/semantic-node.d.ts
10
9
  interface SemanticNode {
11
- id: unit | AST.Identifier | AST.Identifier[];
10
+ id: null | AST.Identifier | AST.Identifier[];
12
11
  key: string;
13
12
  kind: string;
14
- name: unit | string;
13
+ name: null | string;
15
14
  node: AST.AnyNode;
16
15
  flag: bigint;
17
16
  hint: bigint;
@@ -20,15 +19,15 @@ interface SemanticNode {
20
19
  //#region src/utils/is-react-api.d.ts
21
20
  declare namespace isReactAPI {
22
21
  type ReturnType = {
23
- (context: Context, node: unit | null | AST.AnyNode): node is AST.MemberExpression;
24
- (context: Context): (node: unit | null | AST.AnyNode) => node is AST.MemberExpression;
22
+ (context: Context, node: null | AST.AnyNode): node is AST.MemberExpression;
23
+ (context: Context): (node: null | AST.AnyNode) => node is AST.MemberExpression;
25
24
  };
26
25
  }
27
26
  declare function isReactAPI(api: string): isReactAPI.ReturnType;
28
27
  declare namespace isReactAPICall {
29
28
  type ReturnType = {
30
- (context: Context, node: unit | null | AST.AnyNode): node is AST.CallExpression;
31
- (context: Context): (node: unit | null | AST.AnyNode) => node is AST.CallExpression;
29
+ (context: Context, node: null | AST.AnyNode): node is AST.CallExpression;
30
+ (context: Context): (node: null | AST.AnyNode) => node is AST.CallExpression;
32
31
  };
33
32
  }
34
33
  declare function isReactAPICall(api: string): isReactAPICall.ReturnType;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { dual, unit } from "@local/eff";
1
+ import { dual } from "@local/eff";
2
2
  import { toStringFormat } from "@react-analyzer/ast";
3
3
  import { SyntaxKind } from "typescript";
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-analyzer/core",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "description": "React Analyzer utility module for static analysis of React core APIs and patterns.",
5
5
  "homepage": "https://github.com/Rel1cx/react-analyzer",
6
6
  "bugs": {
@@ -28,18 +28,18 @@
28
28
  ],
29
29
  "dependencies": {
30
30
  "ts-pattern": "^5.9.0",
31
- "@react-analyzer/ast": "0.0.10",
32
- "@local/eff": "0.0.10"
31
+ "@local/eff": "0.0.11",
32
+ "@react-analyzer/ast": "0.0.11"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@tsconfig/node24": "^24.0.4",
36
- "@types/node": "^25.2.2",
37
- "tsdown": "^0.20.3",
36
+ "@types/node": "^25.3.2",
37
+ "tsdown": "^0.21.0-beta.2",
38
38
  "type-fest": "^5.4.4",
39
- "@local/configs": "0.0.10"
39
+ "@local/configs": "0.0.11"
40
40
  },
41
41
  "peerDependencies": {
42
- "tsl": "^1.0.28",
42
+ "tsl": "^1.0.29",
43
43
  "typescript": "^5.9.3"
44
44
  },
45
45
  "engines": {