@restatedev/restate-sdk-testcontainers 1.10.3 → 1.11.0

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.
@@ -15,6 +15,7 @@ declare class RestateError extends Error {
15
15
  */
16
16
  declare class TerminalError extends RestateError {
17
17
  name: string;
18
+ readonly metadata?: Record<string, string>;
18
19
  constructor(message: string, options?: {
19
20
  /**
20
21
  * Error code. This should be an HTTP status code, and in case the service was invoked from the ingress, this will be propagated back to the caller.
@@ -24,6 +25,13 @@ declare class TerminalError extends RestateError {
24
25
  * @deprecated YOU MUST NOT USE THIS FIELD, AS IT WON'T BE RECORDED AND CAN LEAD TO NON-DETERMINISM! From the next SDK version, the constructor won't accept this field anymore.
25
26
  */
26
27
  cause?: any;
28
+ /**
29
+ * Metadata key-value pairs to attach to the terminal error.
30
+ * These will be recorded together with error message and code.
31
+ *
32
+ * **Note **: requires Restate 1.6+.
33
+ */
34
+ metadata?: Record<string, string>;
27
35
  });
28
36
  }
29
37
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.cts","names":[],"sources":["../../../../../restate-sdk/src/types/errors.ts"],"sourcesContent":[],"mappings":";;cA6Ea,YAAA,SAAqB,KAAA;;;;;;;;;;;;;cAerB,aAAA,SAAsB,YAAA"}
1
+ {"version":3,"file":"errors.d.cts","names":[],"sources":["../../../../../restate-sdk/src/types/errors.ts"],"sourcesContent":[],"mappings":";;cA6Ea,YAAA,SAAqB,KAAA;;;;;;;;;;;;;cAerB,aAAA,SAAsB,YAAA;;sBAEN;;;;;;;;;;;;;;;;eAmBZ"}
@@ -15,6 +15,7 @@ declare class RestateError extends Error {
15
15
  */
16
16
  declare class TerminalError extends RestateError {
17
17
  name: string;
18
+ readonly metadata?: Record<string, string>;
18
19
  constructor(message: string, options?: {
19
20
  /**
20
21
  * Error code. This should be an HTTP status code, and in case the service was invoked from the ingress, this will be propagated back to the caller.
@@ -24,6 +25,13 @@ declare class TerminalError extends RestateError {
24
25
  * @deprecated YOU MUST NOT USE THIS FIELD, AS IT WON'T BE RECORDED AND CAN LEAD TO NON-DETERMINISM! From the next SDK version, the constructor won't accept this field anymore.
25
26
  */
26
27
  cause?: any;
28
+ /**
29
+ * Metadata key-value pairs to attach to the terminal error.
30
+ * These will be recorded together with error message and code.
31
+ *
32
+ * **Note **: requires Restate 1.6+.
33
+ */
34
+ metadata?: Record<string, string>;
27
35
  });
28
36
  }
29
37
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","names":[],"sources":["../../../../../restate-sdk/src/types/errors.ts"],"sourcesContent":[],"mappings":";;cA6Ea,YAAA,SAAqB,KAAA;;;;;;;;;;;;;cAerB,aAAA,SAAsB,YAAA"}
1
+ {"version":3,"file":"errors.d.ts","names":[],"sources":["../../../../../restate-sdk/src/types/errors.ts"],"sourcesContent":[],"mappings":";;cA6Ea,YAAA,SAAqB,KAAA;;;;;;;;;;;;;cAerB,aAAA,SAAsB,YAAA;;sBAEN;;;;;;;;;;;;;;;;eAmBZ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@restatedev/restate-sdk-testcontainers",
3
- "version": "1.10.3",
3
+ "version": "1.11.0",
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": "^10.24.1",
37
- "@restatedev/restate-sdk": "1.10.3",
38
- "@restatedev/restate-sdk-clients": "1.10.3"
37
+ "@restatedev/restate-sdk": "1.11.0",
38
+ "@restatedev/restate-sdk-clients": "1.11.0"
39
39
  },
40
40
  "devDependencies": {},
41
41
  "scripts": {