inngest 4.12.0 → 4.12.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # inngest
2
2
 
3
+ ## 4.12.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1622](https://github.com/inngest/inngest-js/pull/1622) [`0706a1f5`](https://github.com/inngest/inngest-js/commit/0706a1f51316e0748b3b24c0e9bca864233e75c0) Thanks [@amh4r](https://github.com/amh4r)! - Fix step.run not JSON-serializing during checkpointing
8
+
3
9
  ## 4.12.0
4
10
 
5
11
  ### Minor Changes
package/api/schema.d.cts CHANGED
@@ -27,8 +27,8 @@ declare const stepSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.Zo
27
27
  error: z.ZodType<JsonError, z.ZodTypeDef, JsonError>;
28
28
  }, "strict", z.ZodTypeAny, {
29
29
  error: {
30
- name?: string | undefined;
31
30
  error?: string | undefined;
31
+ name?: string | undefined;
32
32
  message?: string | undefined;
33
33
  stack?: string | undefined;
34
34
  } & {
@@ -39,8 +39,8 @@ declare const stepSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.Zo
39
39
  type: "error";
40
40
  }, {
41
41
  error: {
42
- name?: string | undefined;
43
42
  error?: string | undefined;
43
+ name?: string | undefined;
44
44
  message?: string | undefined;
45
45
  stack?: string | undefined;
46
46
  } & {
package/api/schema.d.ts CHANGED
@@ -27,8 +27,8 @@ declare const stepSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.Zo
27
27
  error: z.ZodType<JsonError, z.ZodTypeDef, JsonError>;
28
28
  }, "strict", z.ZodTypeAny, {
29
29
  error: {
30
- name?: string | undefined;
31
30
  error?: string | undefined;
31
+ name?: string | undefined;
32
32
  message?: string | undefined;
33
33
  stack?: string | undefined;
34
34
  } & {
@@ -39,8 +39,8 @@ declare const stepSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.Zo
39
39
  type: "error";
40
40
  }, {
41
41
  error: {
42
- name?: string | undefined;
43
42
  error?: string | undefined;
43
+ name?: string | undefined;
44
44
  message?: string | undefined;
45
45
  stack?: string | undefined;
46
46
  } & {
@@ -9,6 +9,7 @@ const require_types$1 = require('../../helpers/types.cjs');
9
9
  const require_functions = require('../../helpers/functions.cjs');
10
10
  const require_marker = require('../../helpers/marker.cjs');
11
11
  const require_temporal = require('../../helpers/temporal.cjs');
12
+ const require_strings = require('../../helpers/strings.cjs');
12
13
  const require_promises = require('../../helpers/promises.cjs');
13
14
  const require_als = require('./als.cjs');
14
15
  const require_aiExtractor = require('./otel/aiExtractor.cjs');
@@ -556,7 +557,7 @@ var InngestExecutionEngine = class extends require_InngestExecution.InngestExecu
556
557
  delete this.state.executingStep;
557
558
  this.state.checkpointingStepBuffer.push({
558
559
  ...stepToResume,
559
- data: stepResult.data
560
+ data: stepToResume.data
560
561
  });
561
562
  }
562
563
  if (force || !this.options.checkpointingConfig?.bufferedSteps || this.state.checkpointingStepBuffer.length >= this.options.checkpointingConfig.bufferedSteps) {
@@ -1608,7 +1609,7 @@ var InngestExecutionEngine = class extends require_InngestExecution.InngestExecu
1608
1609
  resumeStepWithResult(resultOp, resume = true) {
1609
1610
  const userlandStep = this.state.steps.get(resultOp.id);
1610
1611
  if (!userlandStep) throw new Error("Step not found in memoization state during async checkpointing; this should never happen and is a bug in the Inngest SDK");
1611
- userlandStep.data = require_functions.undefinedToNull(resultOp.data);
1612
+ userlandStep.data = JSON.parse(require_strings.stringify(require_functions.undefinedToNull(resultOp.data)));
1612
1613
  userlandStep.timing = resultOp.timing;
1613
1614
  userlandStep.op = resultOp.op;
1614
1615
  userlandStep.id = resultOp.id;