@lafken/state-machine 0.11.10 → 0.11.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.
@@ -180,6 +180,8 @@ class Schema {
180
180
  const mapTask = {
181
181
  Type: 'Map',
182
182
  Items: currentState.items,
183
+ ItemSelector: currentState.itemSelector,
184
+ MaxConcurrency: currentState.maxCurrency,
183
185
  ItemProcessor: itemProcessor,
184
186
  End: currentState.next !== undefined ? undefined : (currentState.end ?? true),
185
187
  Next: this.getNextState(currentState.next, currentState.end),
@@ -239,8 +241,7 @@ class Schema {
239
241
  mapTask.ToleratedFailureCount = currentState.toleratedFailureCount;
240
242
  }
241
243
  if (currentState.toleratedFailurePercentage) {
242
- mapTask.ToleratedFailurePercentage =
243
- currentState.toleratedFailurePercentage.toString();
244
+ mapTask.ToleratedFailurePercentage = currentState.toleratedFailurePercentage;
244
245
  }
245
246
  }
246
247
  this.states[stateName] = mapTask;
@@ -87,8 +87,9 @@ export interface MapTask {
87
87
  ResultWriter?: ResultWriter;
88
88
  ItemBatcher?: ItemBatcher;
89
89
  Items?: any[] | string;
90
+ ItemSelector?: string | Record<string, any>;
90
91
  MaxConcurrency?: number;
91
- ToleratedFailurePercentage?: string;
92
+ ToleratedFailurePercentage?: number | string;
92
93
  ToleratedFailureCount?: number;
93
94
  Output?: string | Record<string, any>;
94
95
  Assign?: Record<string, any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lafken/state-machine",
3
- "version": "0.11.10",
3
+ "version": "0.11.11",
4
4
  "private": false,
5
5
  "description": "Build Step Functions workflows with TypeScript decorators - declarative orchestration with Lafken",
6
6
  "keywords": [
@@ -50,7 +50,7 @@
50
50
  ],
51
51
  "dependencies": {
52
52
  "reflect-metadata": "^0.2.2",
53
- "@lafken/resolver": "0.11.10"
53
+ "@lafken/resolver": "0.11.11"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@cdktn/provider-aws": "^23.9.0",
@@ -63,13 +63,13 @@
63
63
  "typescript": "6.0.3",
64
64
  "unplugin-swc": "^1.5.9",
65
65
  "vitest": "^4.1.5",
66
- "@lafken/common": "0.11.10"
66
+ "@lafken/common": "0.11.11"
67
67
  },
68
68
  "peerDependencies": {
69
69
  "@cdktn/provider-aws": ">=23.0.0",
70
70
  "cdktn": ">=0.22.0",
71
71
  "constructs": "^10.4.5",
72
- "@lafken/common": "0.11.10"
72
+ "@lafken/common": "0.11.11"
73
73
  },
74
74
  "engines": {
75
75
  "node": ">=20.19"