@emmvish/stable-request 2.1.4 → 2.1.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.
Files changed (2) hide show
  1. package/README.md +17 -14
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -22,7 +22,10 @@ A production-grade TypeScript library for resilient API integrations, batch proc
22
22
  - [Sequential & Concurrent Phases](#sequential--concurrent-phases)
23
23
  - [Non-Linear Workflows](#non-linear-workflows)
24
24
  - [Branched Workflows](#branched-workflows)
25
- - [Graph-Based Workflows](#graph-based-workflows)
25
+ - [Graph-based Workflow Patterns](#graph-based-workflow-patterns)
26
+ - [Graph-Based Workflows with Mixed Items](#graph-based-workflows-with-mixed-items)
27
+ - [Parallel Phase Execution](#parallel-phase-execution)
28
+ - [Linear Helper](#linear-helper)
26
29
  - [Configuration & State](#configuration--state)
27
30
  - [Config Cascading](#config-cascading)
28
31
  - [Shared & State Buffers](#shared--state-buffers)
@@ -1011,6 +1014,16 @@ const result = await stableWorkflow([], {
1011
1014
  // Both branches access/modify sharedBuffer
1012
1015
  ```
1013
1016
 
1017
+ ## Graph-based Workflow Patterns
1018
+
1019
+ **Key responsibilities:**
1020
+ - Define phases as DAG nodes with explicit dependency edges
1021
+ - Execute independent phases in parallel automatically
1022
+ - Support parallel groups, merge points, and conditional routing
1023
+ - Validate graph structure (cycle detection, reachability, orphan detection)
1024
+ - Provide deterministic execution order
1025
+ - Offer higher parallelism than phased workflows for complex topologies
1026
+
1014
1027
  ### Graph-Based Workflows with Mixed Items
1015
1028
 
1016
1029
  For complex topologies with explicit dependencies, use DAG execution mixing requests and functions.
@@ -1101,17 +1114,7 @@ const result = await stableWorkflowGraph(graph, {
1101
1114
  console.log(`Graph workflow success: ${result.success}`);
1102
1115
  ```
1103
1116
 
1104
- **Key responsibilities:**
1105
- - Define phases as DAG nodes with explicit dependency edges
1106
- - Execute independent phases in parallel automatically
1107
- - Support parallel groups, merge points, and conditional routing
1108
- - Validate graph structure (cycle detection, reachability, orphan detection)
1109
- - Provide deterministic execution order
1110
- - Offer higher parallelism than phased workflows for complex topologies
1111
-
1112
- ---
1113
-
1114
- ## Workflow Patterns
1117
+ ### Parallel Phase Execution
1115
1118
 
1116
1119
  Execute multiple phases concurrently within a group.
1117
1120
 
@@ -1148,7 +1151,7 @@ const result = await stableWorkflowGraph(graph, {
1148
1151
  // All 3 phases run concurrently
1149
1152
  ```
1150
1153
 
1151
- #### Merge Points
1154
+ ### Merge Points
1152
1155
 
1153
1156
  Synchronize multiple predecessor phases.
1154
1157
 
@@ -1185,7 +1188,7 @@ const result = await stableWorkflowGraph(graph, {
1185
1188
  // aggregate waits for both to complete
1186
1189
  ```
1187
1190
 
1188
- #### Linear Helper
1191
+ ### Linear Helper
1189
1192
 
1190
1193
  Convenience function for sequential phase chains.
1191
1194
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emmvish/stable-request",
3
- "version": "2.1.4",
3
+ "version": "2.1.5",
4
4
  "description": "A production-grade Workflow Execution Engine for Node.js that transforms unreliable API calls into resilient, observable, and sophisticated multi-phase workflows with intelligent retry strategies, circuit breakers, and advanced execution patterns.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",