Releases: triggerdotdev/trigger.dev
@trigger.dev/core@4.4.0
Patch Changes
-
Add
maxDelayoption to debounce feature. This allows setting a maximum time limit for how long a debounced run can be delayed, ensuring execution happens within a specified window even with continuous triggers. (#2984)await myTask.trigger(payload, { debounce: { key: "my-key", delay: "5s", maxDelay: "30m", // Execute within 30 minutes regardless of continuous triggers }, });
-
Fixed a minor issue in the deployment command on distinguishing between local builds for the cloud vs local builds for self-hosting setups. (#3070)
-
fix: vendor superjson to fix ESM/CJS compatibility (#2949)
Bundle superjson during build to avoid
ERR_REQUIRE_ESMerrors on Node.js versions that don't supportrequire(ESM)by default (< 22.12.0) and AWS Lambda which intentionally disables it. -
Add Vercel integration support to API schemas:
commitSHAandintegrationDeploymentson deployment responses, andsourcefield for environment variable imports. (#2994)
@trigger.dev/build@4.4.0
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.4.0
trigger.dev@4.3.3
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.3.3@trigger.dev/build@4.3.3@trigger.dev/schema-to-json@4.3.3
@trigger.dev/sdk@4.3.3
Patch Changes
-
Add support for AI SDK v6 (Vercel AI SDK) (#2919)
- Updated peer dependency to allow
ai@^6.0.0alongside v4 and v5 - Updated internal code to handle async validation from AI SDK v6's Schema type
- Updated peer dependency to allow
-
Expose user-provided idempotency key and scope in task context.
ctx.run.idempotencyKeynow returns the original key passed toidempotencyKeys.create()instead of the hash, andctx.run.idempotencyKeyScopeshows the scope ("run", "attempt", or "global"). (#2903) -
Updated dependencies:
@trigger.dev/core@4.3.3
@trigger.dev/schema-to-json@4.3.3
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.3.3
@trigger.dev/rsc@4.3.3
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.3.3
@trigger.dev/redis-worker@4.3.3
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.3.3
@trigger.dev/react-hooks@4.3.3
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.3.3
@trigger.dev/python@4.3.3
Patch Changes
- Updated dependencies:
@trigger.dev/sdk@4.3.3@trigger.dev/core@4.3.3@trigger.dev/build@4.3.3
@trigger.dev/core@4.3.3
Patch Changes
-
Add support for AI SDK v6 (Vercel AI SDK) (#2919)
- Updated peer dependency to allow
ai@^6.0.0alongside v4 and v5 - Updated internal code to handle async validation from AI SDK v6's Schema type
- Updated peer dependency to allow
-
Expose user-provided idempotency key and scope in task context.
ctx.run.idempotencyKeynow returns the original key passed toidempotencyKeys.create()instead of the hash, andctx.run.idempotencyKeyScopeshows the scope ("run", "attempt", or "global"). (#2903) -
Fix batch trigger failing with "ReadableStream is locked" error when network failures occur mid-stream. Added safe stream cancellation that gracefully handles locked streams during retry attempts. (#2917)
-
Add a maxDepth to flatten/unflattenAttributes to prevent possible issues (#2890)