Packages

@trigger.dev/sdk

4.8.8 · 20 Nov 2026MIT1.7M / weekRepositoryHomepagenpmAtom feed

Your version

3.3.11

17 Jan 2025Where it was published

3.3.17 is the newest release of 3.x.

In short

1 new1 internal

Release note

Patch Changes

  • Add support for specifying machine preset at trigger time. Works with any trigger function:

    // Same as usual, will use the machine preset on childTask, defaults to "small-1x"
    await childTask.trigger({ message: "Hello, world!" });
    
    // This will override the task's machine preset and any defaults. Works with all trigger functions.
    await childTask.trigger({ message: "Hello, world!" }, { machine: "small-2x" });
    await childTask.triggerAndWait({ message: "Hello, world!" }, { machine: "small-2x" });
    
    await childTask.batchTrigger([
      { payload: { message: "Hello, world!" }, options: { machine: "micro" } },
      { payload: { message: "Hello, world!" }, options: { machine: "large-1x" } },
    ]);
    await childTask.batchTriggerAndWait([
      { payload: { message: "Hello, world!" }, options: { machine: "micro" } },
      { payload: { message: "Hello, world!" }, options: { machine: "large-1x" } },
    ]);
    
    await tasks.trigger<typeof childTask>(
      "child",
      { message: "Hello, world!" },
      { machine: "small-2x" }
    );
    await tasks.batchTrigger<typeof childTask>("child", [
      { payload: { message: "Hello, world!" }, options: { machine: "micro" } },
      { payload: { message: "Hello, world!" }, options: { machine: "large-1x" } },
    ]);

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.