@restatedev/restate-sdk-testcontainers 1.15.0-rc.4 → 1.15.0-rc.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.
@@ -192,6 +192,20 @@ type ServiceOptions = {
192
192
  * @experimental
193
193
  */
194
194
  explicitCancellation?: boolean;
195
+ /**
196
+ * Configures how the SDK reacts to journal mismatch errors, also known as non-determinism errors.
197
+ *
198
+ * - `"retry"` (default): the invocation follows the normal retry policy when a journal mismatch is detected.
199
+ * - `"pause"`: the invocation is paused instead of being retried, so it can be inspected and manually
200
+ * resumed once the non-determinism in the code is fixed.
201
+ * - `"fail"`: the invocation is failed terminally instead of being retried.
202
+ *
203
+ * *NOTE:* `"pause"` and `"fail"` require a restate-server that supports these behaviors; on older
204
+ * servers the invocation will follow the retry policy regardless of this setting.
205
+ *
206
+ * @experimental
207
+ */
208
+ onJournalMismatchErrors?: "retry" | "pause" | "fail";
195
209
  };
196
210
  type ObjectOptions = ServiceOptions & {
197
211
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"rpc.d.cts","names":[],"sources":["../../../../../restate-sdk/src/types/rpc.ts"],"sourcesContent":[],"mappings":";;;;;;;KA21BY,WAAA;;;;;;;;;;;;;;;;;;;;oBAsBQ;;;;;;;gBAQJ;;;;;;KAQJ,cAAA;;;;;;yBAMa;;;;;;;;qBASJ;;;;;;;;;;;sBAYC;;;;;;;;;;;;iBAaL;;;;;;;;;;;gBAaD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAsCoB;;;;;;UAO1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAuDA;;;;;;;;;;KAuGE,aAAA,GAAgB;;;;;;;;;KA4HhB,eAAA,GAAkB;;;;;;;sBAOR"}
1
+ {"version":3,"file":"rpc.d.cts","names":[],"sources":["../../../../../restate-sdk/src/types/rpc.ts"],"sourcesContent":[],"mappings":";;;;;;;KA02BY,WAAA;;;;;;;;;;;;;;;;;;;;oBAsBQ;;;;;;;gBAQJ;;;;;;KAQJ,cAAA;;;;;;yBAMa;;;;;;;;qBASJ;;;;;;;;;;;sBAYC;;;;;;;;;;;;iBAaL;;;;;;;;;;;gBAaD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAsCoB;;;;;;UAO1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAuDA;;;;;;;;;;;;;;;;;;;;;;;;KAsHE,aAAA,GAAgB;;;;;;;;;KA4HhB,eAAA,GAAkB;;;;;;;sBAOR"}
@@ -192,6 +192,20 @@ type ServiceOptions = {
192
192
  * @experimental
193
193
  */
194
194
  explicitCancellation?: boolean;
195
+ /**
196
+ * Configures how the SDK reacts to journal mismatch errors, also known as non-determinism errors.
197
+ *
198
+ * - `"retry"` (default): the invocation follows the normal retry policy when a journal mismatch is detected.
199
+ * - `"pause"`: the invocation is paused instead of being retried, so it can be inspected and manually
200
+ * resumed once the non-determinism in the code is fixed.
201
+ * - `"fail"`: the invocation is failed terminally instead of being retried.
202
+ *
203
+ * *NOTE:* `"pause"` and `"fail"` require a restate-server that supports these behaviors; on older
204
+ * servers the invocation will follow the retry policy regardless of this setting.
205
+ *
206
+ * @experimental
207
+ */
208
+ onJournalMismatchErrors?: "retry" | "pause" | "fail";
195
209
  };
196
210
  type ObjectOptions = ServiceOptions & {
197
211
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"rpc.d.ts","names":[],"sources":["../../../../../restate-sdk/src/types/rpc.ts"],"sourcesContent":[],"mappings":";;;;;;;KA21BY,WAAA;;;;;;;;;;;;;;;;;;;;oBAsBQ;;;;;;;gBAQJ;;;;;;KAQJ,cAAA;;;;;;yBAMa;;;;;;;;qBASJ;;;;;;;;;;;sBAYC;;;;;;;;;;;;iBAaL;;;;;;;;;;;gBAaD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAsCoB;;;;;;UAO1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAuDA;;;;;;;;;;KAuGE,aAAA,GAAgB;;;;;;;;;KA4HhB,eAAA,GAAkB;;;;;;;sBAOR"}
1
+ {"version":3,"file":"rpc.d.ts","names":[],"sources":["../../../../../restate-sdk/src/types/rpc.ts"],"sourcesContent":[],"mappings":";;;;;;;KA02BY,WAAA;;;;;;;;;;;;;;;;;;;;oBAsBQ;;;;;;;gBAQJ;;;;;;KAQJ,cAAA;;;;;;yBAMa;;;;;;;;qBASJ;;;;;;;;;;;sBAYC;;;;;;;;;;;;iBAaL;;;;;;;;;;;gBAaD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAsCoB;;;;;;UAO1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAuDA;;;;;;;;;;;;;;;;;;;;;;;;KAsHE,aAAA,GAAgB;;;;;;;;;KA4HhB,eAAA,GAAkB;;;;;;;sBAOR"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@restatedev/restate-sdk-testcontainers",
3
- "version": "1.15.0-rc.4",
3
+ "version": "1.15.0-rc.6",
4
4
  "description": "Typescript SDK for Restate",
5
5
  "author": "Restate Developers",
6
6
  "email": "code@restate.dev",
@@ -34,8 +34,8 @@
34
34
  "dependencies": {
35
35
  "apache-arrow": "^18.0.0",
36
36
  "testcontainers": "^11.12.0",
37
- "@restatedev/restate-sdk": "1.15.0-rc.4",
38
- "@restatedev/restate-sdk-clients": "1.15.0-rc.4"
37
+ "@restatedev/restate-sdk": "1.15.0-rc.6",
38
+ "@restatedev/restate-sdk-clients": "1.15.0-rc.6"
39
39
  },
40
40
  "devDependencies": {},
41
41
  "scripts": {