@meshflow/core 0.2.3 → 0.2.4

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/index.d.mts CHANGED
@@ -4,7 +4,7 @@ interface MeshErrorContext {
4
4
  }
5
5
 
6
6
  type ContractType = 'boolean' | 'scalar' | 'array' | 'object';
7
- declare enum DefaultStarategy {
7
+ declare enum DefaultStrategy {
8
8
  OR = "OR",
9
9
  PRIORITY = "PRIORITY"
10
10
  }
@@ -25,7 +25,7 @@ declare class SchemaBucket<P> {
25
25
  constructor(baseValue: any, key: string | number | symbol, path: P);
26
26
  forceNotify(): void;
27
27
  isForceNotify(): boolean;
28
- setStrategy(type: DefaultStarategy): void;
28
+ setStrategy(type: DefaultStrategy): void;
29
29
  setDefaultRule(value: any): void;
30
30
  setRules(value: any, DepsArray?: Array<[P, any]>): () => void;
31
31
  updateDeps(DepsArray: Array<[P, any]>): void;
@@ -208,7 +208,7 @@ declare function useEngineInstance<T, P extends MeshPath, S = any, NM = any>(dat
208
208
  }): {
209
209
  SetRule: <K extends KeysOfUnion<NM>>(outDegreePath: P, inDegreePath: P, key: K, options: SetRuleOptions<NM>) => void;
210
210
  SetRules: <K extends KeysOfUnion<NM>>(outDegreePaths: P[], inDegreePath: P, key: K, options: SetRuleOptions<NM>) => void;
211
- SetStrategy: (path: P, key: KeysOfUnion<NM>, strategy: DefaultStarategy) => void;
211
+ SetStrategy: (path: P, key: KeysOfUnion<NM>, strategy: DefaultStrategy) => void;
212
212
  SetTrace: (myPath: P, onUpdate: (newStatus: "idle" | "pending" | "calculating" | "calculated" | "error" | "canceled") => void) => {
213
213
  cancel: () => void;
214
214
  };
@@ -353,7 +353,7 @@ M extends Record<string, any>, NM extends Record<string, any> = Record<string, a
353
353
  }) => Engine<{
354
354
  SetRule: <K extends KeysOfUnion<NM>>(outDegreePath: P, inDegreePath: P, key: K, options: SetRuleOptions<NM>) => void;
355
355
  SetRules: <K extends KeysOfUnion<NM>>(outDegreePaths: P[], inDegreePath: P, key: K, options: SetRuleOptions<NM>) => void;
356
- SetStrategy: (path: P, key: KeysOfUnion<NM>, strategy: DefaultStarategy) => void;
356
+ SetStrategy: (path: P, key: KeysOfUnion<NM>, strategy: DefaultStrategy) => void;
357
357
  SetTrace: (myPath: P, onUpdate: (newStatus: "idle" | "pending" | "calculating" | "calculated" | "error" | "canceled") => void) => {
358
358
  cancel: () => void;
359
359
  };
@@ -411,7 +411,7 @@ declare const useMeshFlow: <const S extends Record<string, any>, T, M extends Re
411
411
  }) => Engine<{
412
412
  SetRule: <K extends KeysOfUnion<NM>>(outDegreePath: P, inDegreePath: P, key: K, options: SetRuleOptions<NM>) => void;
413
413
  SetRules: <K extends KeysOfUnion<NM>>(outDegreePaths: P[], inDegreePath: P, key: K, options: SetRuleOptions<NM>) => void;
414
- SetStrategy: (path: P, key: KeysOfUnion<NM>, strategy: DefaultStarategy) => void;
414
+ SetStrategy: (path: P, key: KeysOfUnion<NM>, strategy: DefaultStrategy) => void;
415
415
  SetTrace: (myPath: P, onUpdate: (newStatus: "idle" | "pending" | "calculating" | "calculated" | "error" | "canceled") => void) => {
416
416
  cancel: () => void;
417
417
  };
@@ -441,4 +441,4 @@ declare const useMeshFlow: <const S extends Record<string, any>, T, M extends Re
441
441
  }) => void) => () => void;
442
442
  }, M, P>;
443
443
 
444
- export { type MeshPath, SchemaBucket, type SetRuleOptions, deleteEngine, useEngine, useEngineManager, useMeshFlow, useMeshFlowDefiner, useScheduler };
444
+ export { DefaultStrategy, type Engine, type MeshErrorContext, type MeshEvents, type MeshFlowGroupNode, type MeshPath, SchemaBucket, type SetRuleOptions, deleteEngine, useEngine, useEngineManager, useMeshFlow, useMeshFlowDefiner, useScheduler };
package/index.d.ts CHANGED
@@ -4,7 +4,7 @@ interface MeshErrorContext {
4
4
  }
5
5
 
6
6
  type ContractType = 'boolean' | 'scalar' | 'array' | 'object';
7
- declare enum DefaultStarategy {
7
+ declare enum DefaultStrategy {
8
8
  OR = "OR",
9
9
  PRIORITY = "PRIORITY"
10
10
  }
@@ -25,7 +25,7 @@ declare class SchemaBucket<P> {
25
25
  constructor(baseValue: any, key: string | number | symbol, path: P);
26
26
  forceNotify(): void;
27
27
  isForceNotify(): boolean;
28
- setStrategy(type: DefaultStarategy): void;
28
+ setStrategy(type: DefaultStrategy): void;
29
29
  setDefaultRule(value: any): void;
30
30
  setRules(value: any, DepsArray?: Array<[P, any]>): () => void;
31
31
  updateDeps(DepsArray: Array<[P, any]>): void;
@@ -208,7 +208,7 @@ declare function useEngineInstance<T, P extends MeshPath, S = any, NM = any>(dat
208
208
  }): {
209
209
  SetRule: <K extends KeysOfUnion<NM>>(outDegreePath: P, inDegreePath: P, key: K, options: SetRuleOptions<NM>) => void;
210
210
  SetRules: <K extends KeysOfUnion<NM>>(outDegreePaths: P[], inDegreePath: P, key: K, options: SetRuleOptions<NM>) => void;
211
- SetStrategy: (path: P, key: KeysOfUnion<NM>, strategy: DefaultStarategy) => void;
211
+ SetStrategy: (path: P, key: KeysOfUnion<NM>, strategy: DefaultStrategy) => void;
212
212
  SetTrace: (myPath: P, onUpdate: (newStatus: "idle" | "pending" | "calculating" | "calculated" | "error" | "canceled") => void) => {
213
213
  cancel: () => void;
214
214
  };
@@ -353,7 +353,7 @@ M extends Record<string, any>, NM extends Record<string, any> = Record<string, a
353
353
  }) => Engine<{
354
354
  SetRule: <K extends KeysOfUnion<NM>>(outDegreePath: P, inDegreePath: P, key: K, options: SetRuleOptions<NM>) => void;
355
355
  SetRules: <K extends KeysOfUnion<NM>>(outDegreePaths: P[], inDegreePath: P, key: K, options: SetRuleOptions<NM>) => void;
356
- SetStrategy: (path: P, key: KeysOfUnion<NM>, strategy: DefaultStarategy) => void;
356
+ SetStrategy: (path: P, key: KeysOfUnion<NM>, strategy: DefaultStrategy) => void;
357
357
  SetTrace: (myPath: P, onUpdate: (newStatus: "idle" | "pending" | "calculating" | "calculated" | "error" | "canceled") => void) => {
358
358
  cancel: () => void;
359
359
  };
@@ -411,7 +411,7 @@ declare const useMeshFlow: <const S extends Record<string, any>, T, M extends Re
411
411
  }) => Engine<{
412
412
  SetRule: <K extends KeysOfUnion<NM>>(outDegreePath: P, inDegreePath: P, key: K, options: SetRuleOptions<NM>) => void;
413
413
  SetRules: <K extends KeysOfUnion<NM>>(outDegreePaths: P[], inDegreePath: P, key: K, options: SetRuleOptions<NM>) => void;
414
- SetStrategy: (path: P, key: KeysOfUnion<NM>, strategy: DefaultStarategy) => void;
414
+ SetStrategy: (path: P, key: KeysOfUnion<NM>, strategy: DefaultStrategy) => void;
415
415
  SetTrace: (myPath: P, onUpdate: (newStatus: "idle" | "pending" | "calculating" | "calculated" | "error" | "canceled") => void) => {
416
416
  cancel: () => void;
417
417
  };
@@ -441,4 +441,4 @@ declare const useMeshFlow: <const S extends Record<string, any>, T, M extends Re
441
441
  }) => void) => () => void;
442
442
  }, M, P>;
443
443
 
444
- export { type MeshPath, SchemaBucket, type SetRuleOptions, deleteEngine, useEngine, useEngineManager, useMeshFlow, useMeshFlowDefiner, useScheduler };
444
+ export { DefaultStrategy, type Engine, type MeshErrorContext, type MeshEvents, type MeshFlowGroupNode, type MeshPath, SchemaBucket, type SetRuleOptions, deleteEngine, useEngine, useEngineManager, useMeshFlow, useMeshFlowDefiner, useScheduler };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshflow/core",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "A logic orchestration engine utilizing topological scheduling and watermark control to resolve asynchronous race conditions in complex dependency linkages.”",
5
5
  "main": "./index.cjs",
6
6
  "module": "./index.js",