Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Nov 11, 2025

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@trigger.dev/react-hooks@4.1.0

Minor Changes

  • Realtime streams v2 (#2632)

Patch Changes

  • Updated dependencies:
    • @trigger.dev/core@4.1.0

@trigger.dev/sdk@4.1.0

Minor Changes

  • Realtime streams v2 (#2632)

  • Prevent uncaught errors in the onSuccess, onComplete, and onFailure lifecycle hooks from failing attempts/runs. (#2515)

    Deprecated the onStart lifecycle hook (which only fires before the run function on the first attempt). Replaced with onStartAttempt that fires before the run function on every attempt:

    export const taskWithOnStartAttempt = task({
      id: "task-with-on-start-attempt",
      onStartAttempt: async ({ payload, ctx }) => {
        //...
      },
      run: async (payload: any, { ctx }) => {
        //...
      },
    });
    
    // Default a global lifecycle hook using tasks
    tasks.onStartAttempt(({ ctx, payload, task }) => {
      console.log(
        `Run ${ctx.run.id} started on task ${task} attempt ${ctx.run.attempt.number}`,
        ctx.run
      );
    });

    If you want to execute code before just the first attempt, you can use the onStartAttempt function and check ctx.run.attempt.number === 1:

    export const taskWithOnStartAttempt = task({
      id: "task-with-on-start-attempt",
      onStartAttempt: async ({ payload, ctx }) => {
        if (ctx.run.attempt.number === 1) {
          console.log("Run started on attempt 1", ctx.run);
        }
      },
    });

Patch Changes

  • Updated dependencies:
    • @trigger.dev/core@4.1.0

@trigger.dev/build@4.1.0

Patch Changes

  • Updated dependencies:
    • @trigger.dev/core@4.1.0

trigger.dev@4.1.0

Patch Changes

  • Added external cache support for local image builds (#2682)
  • Updated dependencies:
    • @trigger.dev/build@4.1.0
    • @trigger.dev/core@4.1.0
    • @trigger.dev/schema-to-json@4.1.0

@trigger.dev/python@4.1.0

Patch Changes

  • Updated dependencies:
    • @trigger.dev/sdk@4.1.0
    • @trigger.dev/build@4.1.0
    • @trigger.dev/core@4.1.0

@trigger.dev/redis-worker@4.1.0

Patch Changes

  • Updated dependencies:
    • @trigger.dev/core@4.1.0

@trigger.dev/rsc@4.1.0

Patch Changes

  • Updated dependencies:
    • @trigger.dev/core@4.1.0

@trigger.dev/schema-to-json@4.1.0

Patch Changes

  • Updated dependencies:
    • @trigger.dev/core@4.1.0

@trigger.dev/core@4.1.0

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 11, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions bot force-pushed the changeset-release/main branch 8 times, most recently from 153aedd to cf06a67 Compare November 14, 2025 09:45
@github-actions github-actions bot force-pushed the changeset-release/main branch from cf06a67 to 24d5c81 Compare November 14, 2025 09:50
@ericallam ericallam merged commit 78fcba5 into main Nov 14, 2025
6 checks passed
@ericallam ericallam deleted the changeset-release/main branch November 14, 2025 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants