@strav/workflow 0.1.0 → 0.1.1
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/README.md +5 -5
- package/package.json +1 -1
- package/src/errors.ts +1 -1
package/README.md
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @strav/workflow
|
|
2
2
|
|
|
3
|
-
Workflow orchestration for the [Strav](https://www.npmjs.com/package/@
|
|
3
|
+
Workflow orchestration for the [Strav](https://www.npmjs.com/package/@strav/core) framework. Build multi-step processes with sequential, parallel, conditional, and looping steps — plus saga-style compensation on failure.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
bun add @
|
|
8
|
+
bun add @strav/workflow
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
Requires `@
|
|
11
|
+
Requires `@strav/core` as a peer dependency.
|
|
12
12
|
|
|
13
13
|
## Usage
|
|
14
14
|
|
|
15
15
|
```ts
|
|
16
|
-
import { workflow } from '@
|
|
16
|
+
import { workflow } from '@strav/workflow'
|
|
17
17
|
|
|
18
18
|
const result = await workflow('order-process')
|
|
19
19
|
.step('validate', async (ctx) => {
|
package/package.json
CHANGED
package/src/errors.ts
CHANGED