releases.shpreview
Mastra/GitHub Releases/@mastra/core@1.0.0-beta.13

@mastra/core@1.0.0-beta.13

December 17, 2025

$npx -y @buildinternet/releases show rel_sGcCiZo4BqPZ7Y_Cn3gzF

Changelog

@mastra/core@1.0.0-beta.13

Patch Changes

  • Add onFinish and onError lifecycle callbacks to workflow options (#11200)

    Workflows now support lifecycle callbacks for server-side handling of workflow completion and errors:

    • onFinish: Called when workflow completes with any status (success, failed, suspended, tripwire)
    • onError: Called only when workflow fails (failed or tripwire status)
    const workflow = createWorkflow({
      id: 'my-workflow',
      inputSchema: z.object({ ... }),
      outputSchema: z.object({ ... }),
      options: {
        onFinish: async (result) => {
          // Handle any workflow completion
          await updateJobStatus(result.status);
        },
        onError: async (errorInfo) => {
          // Handle workflow failures
          await logError(errorInfo.error);
        },
      },
    });

    Both callbacks support sync and async functions. Callback errors are caught and logged, not propagated to the workflow result.


@mastra/inngest@1.0.0-beta.8

Patch Changes

  • Add onFinish and onError lifecycle callbacks to workflow options (#11200)

    Workflows now support lifecycle callbacks for server-side handling of workflow completion and errors:

    • onFinish: Called when workflow completes with any status (success, failed, suspended, tripwire)
    • onError: Called only when workflow fails (failed or tripwire status)
    const workflow = createWorkflow({
      id: 'my-workflow',
      inputSchema: z.object({ ... }),
      outputSchema: z.object({ ... }),
      options: {
        onFinish: async (result) => {
          // Handle any workflow completion
          await updateJobStatus(result.status);
        },
        onError: async (errorInfo) => {
          // Handle workflow failures
          await logError(errorInfo.error);
        },
      },
    });

    Both callbacks support sync and async functions. Callback errors are caught and logged, not propagated to the workflow result.



Full Changelog: 79c7a87

Fetched April 7, 2026