@akanjs/language 3.2.0-rc.1 → 3.2.0-rc.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/moduleFacts.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import type * as TS from "typescript";
2
2
  import type { AkanAst, Ts } from "./ast";
3
+ import { type GuardCallFact, type GuardFact, type GuardFactoryFact } from "./guardFacts";
3
4
  export interface AkanSpan {
4
5
  fileName: string;
5
6
  start: number;
@@ -62,6 +63,7 @@ export interface PlugFact extends NamedFact {
62
63
  export interface ServiceClassFact extends ModuleClassFact {
63
64
  methods: MemberFact[];
64
65
  plugs: PlugFact[];
66
+ fields: string[];
65
67
  }
66
68
  export interface InternalKeyFact extends MemberFact {
67
69
  type: string | null;
@@ -76,24 +78,15 @@ export interface AdaptorFact extends MemberFact {
76
78
  plugs: PlugFact[];
77
79
  doc: string | null;
78
80
  }
81
+ export interface AdaptorBindingFact {
82
+ role: string;
83
+ adaptor: string;
84
+ span: AkanSpan;
85
+ }
79
86
  export interface StoreClassFact extends ModuleClassFact {
80
87
  stateKeys: NamedFact[];
81
88
  actions: MemberFact[];
82
89
  }
83
- export interface GuardFact extends MemberFact {
84
- scope: string | null;
85
- doc: string | null;
86
- factory: string | null;
87
- }
88
- export interface GuardFactoryFact extends MemberFact {
89
- scope: string | null;
90
- doc: string | null;
91
- via: string | null;
92
- }
93
- export interface GuardCallFact extends MemberFact {
94
- callee: string;
95
- doc: string | null;
96
- }
97
90
  export interface ImportFact {
98
91
  name: string;
99
92
  imported: string;
@@ -106,6 +99,7 @@ export interface FileFacts {
106
99
  guards: GuardFact[];
107
100
  guardFactories: GuardFactoryFact[];
108
101
  guardCalls: GuardCallFact[];
102
+ guardLabels: Record<string, string>;
109
103
  constants: ConstantClassFact[];
110
104
  enums: EnumClassFact[];
111
105
  filters: FilterClassFact[];
@@ -115,6 +109,7 @@ export interface FileFacts {
115
109
  endpoints: EndpointClassFact[];
116
110
  internals: InternalClassFact[];
117
111
  adaptors: AdaptorFact[];
112
+ adaptorBindings: AdaptorBindingFact[];
118
113
  stores: StoreClassFact[];
119
114
  }
120
115
  export declare const testFilePattern: RegExp;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/language",
3
- "version": "3.2.0-rc.1",
3
+ "version": "3.2.0-rc.11",
4
4
  "description": "Editor-independent Akan.js language core: resolves derived names (slices, queries, CRUD, form setters) back to the source key that produced them.",
5
5
  "sourceType": "module",
6
6
  "type": "module",
package/routeFacts.d.ts CHANGED
@@ -38,11 +38,14 @@ export declare class RouteFactReader {
38
38
  declarationIn(source: TS.SourceFile, name: string): {
39
39
  statement: TS.FunctionDeclaration;
40
40
  declared: TS.Identifier;
41
- initializer: null;
41
+ extent: {
42
+ start: number;
43
+ end: number;
44
+ };
42
45
  } | {
43
46
  statement: TS.VariableStatement;
44
47
  declared: TS.BindingName;
45
- initializer: TS.Expression | null;
48
+ extent: Extent;
46
49
  } | null;
47
50
  }
48
51
  export {};