@plitzi/sdk-schema 0.35.5 → 0.35.6

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/CHANGELOG.md +21 -0
  2. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # @plitzi/sdk-schema
2
2
 
3
+ ## 0.35.6
4
+
5
+ ### Patch Changes
6
+
7
+ - A failed server action can give back what it already did.
8
+
9
+ - **`flow.onFailure` ("On Failure") marks where the undo begins.** A run that reaches it has succeeded and ends there.
10
+ A run whose step failed jumps to it and runs the steps after it, in order, each still asking its own `when` — the
11
+ failure may have come before the thing to undo was ever done — with `{{ failure.step }}` and `{{ failure.message }}`
12
+ in scope. The run still ends failed, with the failure it had; an undo step that fails too is added to it.
13
+ - **The undo runs on its own clock and budget:** 5 seconds (or the run's own timeout if shorter) and its own outbound
14
+ request budget, because the run's may be exactly what ran out, and a caller closing the connection does not stop it.
15
+ A run that hit its deadline is undone too.
16
+ - **`defineAction` writes it from `onFailure: [...]`**, after the answer. `validateActionDocument` refuses an output
17
+ step or a second handler after one, warns about a handler with nothing to undo or nothing that undoes, and reserves
18
+ `failure` as a step id. `FAILURE_HANDLER_TASK` is exported from `@plitzi/sdk-shared/actions`.
19
+
20
+ - Updated dependencies
21
+ - @plitzi/sdk-shared@0.35.6
22
+ - @plitzi/sdk-style@0.35.6
23
+
3
24
  ## 0.35.5
4
25
 
5
26
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plitzi/sdk-schema",
3
- "version": "0.35.5",
3
+ "version": "0.35.6",
4
4
  "license": "AGPL-3.0",
5
5
  "files": [
6
6
  "dist"
@@ -45,8 +45,8 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "@plitzi/plitzi-ui": "^1.6.21",
48
- "@plitzi/sdk-shared": "0.35.5",
49
- "@plitzi/sdk-style": "0.35.5",
48
+ "@plitzi/sdk-shared": "0.35.6",
49
+ "@plitzi/sdk-style": "0.35.6",
50
50
  "prop-types": "^15.8.1"
51
51
  },
52
52
  "devDependencies": {