## Summary 4 new features, 24 improvements, 10 bug fixes. ## Highlights - Allow `trigger deploy` to authenticate with an environment API key from `TRIGGER_ACCESS_TOKEN`. ([#4561](https://github.com/triggerdotdev/trigger.dev/pull/4561)) ## Improvements - Chat in the browser now reconnects when the connection drops mid-turn, instead of leaving the reply stuck as if it were still generating. Reports can be fetched as structured data with the `json` format, and the shortest report period is now one minute (`1m`, `30m`, `1h`, `7d`). The `mint-token` command's help is clearer too: a token minted without `--cap` is read-only, and `--ttl` shows the correct maximum lifetime of 7 days. ([#4418](https://github.com/triggerdotdev/trigger.dev/pull/4418)) - The dev environment onboarding now tracks real progress. After you run `init`, the setup checklist marks your project as initialized, and it updates live as your dev server connects and your tasks register. The blank state also adds a "Copy AI agent prompt" button that copies a ready-to-paste setup prompt (pre-filled with your project reference) for Claude Code, Cursor, or any coding agent. ([#4563](https://github.com/triggerdotdev/trigger.dev/pull/4563)) The `init` scaffold now imports from `@trigger.dev/sdk` instead of the deprecated `@trigger.dev/sdk/v3` subpath. - Deployed images now ship dependencies and bundled task code as separate layers. Repeat deploys with unchanged dependencies typically push and pull far less data, making deploys and worker image pulls faster. ([#4551](https://github.com/triggerdotdev/trigger.dev/pull/4551)) - The current-worker API now reports each task's queue, so you can see which tasks write to a given queue. ([#4525](https://github.com/triggerdotdev/trigger.dev/pull/4525)) - Watch-mode chat streams now survive quiet windows and page reloads, and a reply cut off by a lost connection shows an error instead of appearing finished. Aborting a resumed subscription only closes your local stream — call `stopGeneration(chatId)` or pass `stopOnAbort: true` to stop the run. Also fixed a race where quickly restarting a stream could break stop and reconnect, and stopping a chat now hands it back to your other tabs instead of leaving them read-only. ([#4516](https://github.com/triggerdotdev/trigger.dev/pull/4516)) ## Server changes These changes affect the self-hosted Docker image and Trigger.dev Cloud: - The dashboard agent now has a monthly message allowance and plan-based limits on watches. Queries stay read-only with clearer errors when busy, and messages with unusual characters no longer fail to send. ([#4516](https://github.com/triggerdotdev/trigger.dev/pull/4516)) - Meet the dashboard agent: a chat in every environment that answers questions about your runs, queues, errors and health with real data and links, replacing Ask AI everywhere it used to appear. Investigate a failed run, an error, a backed-up queue or a run that hasn't started to get a worked-through answer — what happened, why, and how to fix it, with every claim linked to the runs, errors and deploys behind it. It reads your data read-only, works on preview and dev branches with that branch's own data, and reads the same everywhere — dashboard, terminal, editor. A very long chat keeps working: the agent summarises the earlier part and carries on. **Watch…** on a run, queue, error or the health report tells you when things change: a run finishes, a queue clears or grows past a number you pick, an error comes back, an environment recovers. The answer arrives in the chat and, if you want, by email, Slack or webhook — and the agent can look into bad news on its own. A watch reaches you on any browser you sign in from, without opening the chat first. A sample of conversations is scored automatically so the agent keeps getting better; only the score and a one-line summary are kept, never your messages, data or code, and we can switch it off for your organization on request. Ask the agent instead of the Docs buttons in page headers — they stay there when the agent isn't available to you. Separately, a queue's wait times, peak depth, throughput and throttling can now be read from the API. ([#4418](https://github.com/triggerdotdev/trigger.dev/pull/4418)) - Add backend support for delaying cron schedules within a specified window with a minimum of 60 seconds. ([#4566](https://github.com/triggerdotdev/trigger.dev/pull/4566)) - Reduced recurring background database load from the billing-limit recovery check, so paused environments are reconciled with less overhead. ([#4590](https://github.com/triggerdotdev/trigger.dev/pull/4590)) - Validating a schedule when deploying or updating a schedule now does less work on projects with many preview branches, so those operations stay fast as branches accumulate. ([#4598](https://github.com/triggerdotdev/trigger.dev/pull/4598)) - Project pages now load faster for projects with a large number of preview branches, by no longer loading archived branch environments that aren't shown. ([#4595](https://github.com/triggerdotdev/trigger.dev/pull/4595)) - Database queries that filter on a list of values now reuse cached query plans more consistently, instead of forcing the database to re-plan whenever the list length changes. ([#4480](https://github.com/triggerdotdev/trigger.dev/pull/4480)) - Routine cleanup of old dashboard agent data now runs on its own schedule. ([#4599](https://github.com/triggerdotdev/trigger.dev/pull/4599)) - Database connection metrics are now reported for every configured database connection instead of only the primary one, and stay accurate regardless of connection type. ([#4541](https://github.com/triggerdotdev/trigger.dev/pull/4541)) - Deployment-related API endpoints now draw from their own generous rate limit budget, configurable via the `DEPLOYMENT_RATE_LIMIT_*` environment variables, so runtime API traffic no longer competes with deployments for the same per-environment budget. ([#4565](https://github.com/triggerdotdev/trigger.dev/pull/4565)) - Deleting or editing a secret environment variable is now fast and no longer slows down as a project accumulates variables. ([#4555](https://github.com/triggerdotdev/trigger.dev/pull/4555)) - Speed up personal access token lookups by indexing them on their owner ([#4588](https://github.com/triggerdotdev/trigger.dev/pull/4588)) - Switching project or organization in the sidebar now keeps you on the same page instead of sending you back to Tasks. Pages for a specific run, deploy or other single item open the matching list instead. ([#4585](https://github.com/triggerdotdev/trigger.dev/pull/4585)) - Reduced database load when loading the dashboard by removing an unused organization member count that was being calculated on every page navigation. ([#4587](https://github.com/triggerdotdev/trigger.dev/pull/4587)) - The environment variables page now loads a page at a time, keeping it fast for projects with a large number of variables. Search matches variable names across every page. ([#4597](https://github.com/triggerdotdev/trigger.dev/pull/4597)) - Groundwork for an alternative database connection driver, gated behind configuration and disabled by default, so there is no change to default behavior. ([#4539](https://github.com/triggerdotdev/trigger.dev/pull/4539)) - Deleting an alert channel is now fast and no longer slows down as a project builds up alert history. ([#4554](https://github.com/triggerdotdev/trigger.dev/pull/4554)) - Reduced internal overhead on the API under high load. ([#4532](https://github.com/triggerdotdev/trigger.dev/pull/4532)) - Out-of-date upgrade prompts no longer appear in the dashboard: the "V4" badges and the notices saying preview branches and the queues table need V4 have been removed. The side menu still warns you when a project is on v3, with updated wording and a link to the v4 upgrade guide. ([#4589](https://github.com/triggerdotdev/trigger.dev/pull/4589)) - Make background worker registration cheaper for projects with many scheduled tasks by scoping declarative schedule reconciliation to the current environment and dropping redundant schedule lookups. ([#4577](https://github.com/triggerdotdev/trigger.dev/pull/4577)) - Speed up setting and importing environment variables for projects with many variables. ([#4579](https://github.com/triggerdotdev/trigger.dev/pull/4579)) - Loading the deployments list is now faster, especially when filtering by deployment status on projects with many deployments. ([#4591](https://github.com/triggerdotdev/trigger.dev/pull/4591)) - Fixed the billing limits page timing out for organizations with many preview branches, especially while a spend limit was being enforced. The page now loads quickly, so you can raise or resolve your limit without delay. ([#4594](https://github.com/triggerdotdev/trigger.dev/pull/4594)) - Fix the Concurrency page showing the plan's default concurrency for the dev environment instead of the environment's actual limit. ([#4596](https://github.com/triggerdotdev/trigger.dev/pull/4596)) - Creating an organization sometimes left you back on the creation form even though the organization had already been created, so clicking Create again made a duplicate. Creating an organization now completes and takes you to your new organization. ([#4530](https://github.com/triggerdotdev/trigger.dev/pull/4530)) - Ensure creating a project completes instead of returning to its creation form after a navigation error. ([#4584](https://github.com/triggerdotdev/trigger.dev/pull/4584)) - Renaming a project now keeps you on the project settings page and tells you what happened, instead of silently moving you to the tasks page or clearing the form with no explanation. ([#4601](https://github.com/triggerdotdev/trigger.dev/pull/4601)) - Fixed support threads showing no account details for some customers, so the team can see your plan, organizations and projects when you get in touch. ([#4575](https://github.com/triggerdotdev/trigger.dev/pull/4575)) - In the light theme, the Format, Clear and Copy buttons on the query editor no longer blend into the query text behind them. ([#4592](https://github.com/triggerdotdev/trigger.dev/pull/4592)) - The health report now says start latency is "unknown" when there is no data for it, instead of showing a healthy-looking 0ms ([#4544](https://github.com/triggerdotdev/trigger.dev/pull/4544)) - Realtime streams written inside a chat session run now use the same backend as the session itself, and runs are no longer created against a backend that cannot serve them. ([#4564](https://github.com/triggerdotdev/trigger.dev/pull/4564)) - The grouped "watch updates" notification now shows the total number of results waiting, instead of only the most recent batch's count. ([#4525](https://github.com/triggerdotdev/trigger.dev/pull/4525)) <details> <summary>Raw changeset output</summary> # Releases ## @trigger.dev/build@4.5.11 ### Patch Changes - Updated dependencies: - `@trigger.dev/core@4.5.11` ## trigger.dev@4.5.11 ### Patch Changes - Chat in the browser now reconnects when the connection drops mid-turn, instead of leaving the reply stuck as if it were still generating. Reports can be fetched as structured data with the `json` format, and the shortest report period is now one minute (`1m`, `30m`, `1h`, `7d`). The `mint-token` command's help is clearer too: a token minted without `--cap` is read-only, and `--ttl` shows the correct maximum lifetime of 7 days. ([#4418](https://github.com/triggerdotdev/trigger.dev/pull/4418)) - Allow `trigger deploy` to authenticate with an environment API key from `TRIGGER_ACCESS_TOKEN`. ([#4561](https://github.com/triggerdotdev/trigger.dev/pull/4561)) - The dev environment onboarding now tracks real progress. After you run `init`, the setup checklist marks your project as initialized, and it updates live as your dev server connects and your tasks register. The blank state also adds a "Copy AI agent prompt" button that copies a ready-to-paste setup prompt (pre-filled with your project reference) for Claude Code, Cursor, or any coding agent. ([#4563](https://github.com/triggerdotdev/trigger.dev/pull/4563)) The `init` scaffold now imports from `@trigger.dev/sdk` instead of the deprecated `@trigger.dev/sdk/v3` subpath. - Deployed images now ship dependencies and bundled task code as separate layers. Repeat deploys with unchanged dependencies typically push and pull far less data, making deploys and worker image pulls faster. ([#4551](https://github.com/triggerdotdev/trigger.dev/pull/4551)) - Updated dependencies: - `@trigger.dev/core@4.5.11` - `@trigger.dev/build@4.5.11` - `@trigger.dev/schema-to-json@4.5.11` ## @trigger.dev/core@4.5.11 ### Patch Changes - Chat in the browser now reconnects when the connection drops mid-turn, instead of leaving the reply stuck as if it were still generating. Reports can be fetched as structured data with the `json` format, and the shortest report period is now one minute (`1m`, `30m`, `1h`, `7d`). The `mint-token` command's help is clearer too: a token minted without `--cap` is read-only, and `--ttl` shows the correct maximum lifetime of 7 days. ([#4418](https://github.com/triggerdotdev/trigger.dev/pull/4418)) - The current-worker API now reports each task's queue, so you can see which tasks write to a given queue. ([#4525](https://github.com/triggerdotdev/trigger.dev/pull/4525)) ## @trigger.dev/python@4.5.11 ### Patch Changes - Updated dependencies: - `@trigger.dev/core@4.5.11` - `@trigger.dev/sdk@4.5.11` - `@trigger.dev/build@4.5.11` ## @trigger.dev/react-hooks@4.5.11 ### Patch Changes - Updated dependencies: - `@trigger.dev/core@4.5.11` ## @trigger.dev/redis-worker@4.5.11 ### Patch Changes - Updated dependencies: - `@trigger.dev/core@4.5.11` ## @trigger.dev/rsc@4.5.11 ### Patch Changes - Updated dependencies: - `@trigger.dev/core@4.5.11` ## @trigger.dev/schema-to-json@4.5.11 ### Patch Changes - Updated dependencies: - `@trigger.dev/core@4.5.11` ## @trigger.dev/sdk@4.5.11 ### Patch Changes - Chat in the browser now reconnects when the connection drops mid-turn, instead of leaving the reply stuck as if it were still generating. Reports can be fetched as structured data with the `json` format, and the shortest report period is now one minute (`1m`, `30m`, `1h`, `7d`). The `mint-token` command's help is clearer too: a token minted without `--cap` is read-only, and `--ttl` shows the correct maximum lifetime of 7 days. ([#4418](https://github.com/triggerdotdev/trigger.dev/pull/4418)) - Watch-mode chat streams now survive quiet windows and page reloads, and a reply cut off by a lost connection shows an error instead of appearing finished. Aborting a resumed subscription only closes your local stream — call `stopGeneration(chatId)` or pass `stopOnAbort: true` to stop the run. Also fixed a race where quickly restarting a stream could break stop and reconnect, and stopping a chat now hands it back to your other tabs instead of leaving them read-only. ([#4516](https://github.com/triggerdotdev/trigger.dev/pull/4516)) - Updated dependencies: - `@trigger.dev/core@4.5.11` </details> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
17 KiB
@trigger.dev/react-hooks
4.5.11
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.5.11
4.5.10
Patch Changes
-
debouncenow works when you pass an array of items tobatchTriggerorbatchTriggerAndWait, and when you trigger fromuseTaskTrigger. Previously the option was accepted by the types and dropped before the request was sent, so every trigger created its own run instead of collapsing onto the debounce key. (#4520)await myTask.batchTrigger([ { payload: { id: "a" }, options: { debounce: { key: "same-key", delay: "30s" } }, }, { payload: { id: "b" }, options: { debounce: { key: "same-key", delay: "30s" } }, }, ]);The streaming (async iterable) forms of the batch calls were already forwarding
debouncecorrectly. -
Refresh package builds for TypeScript 7 compatibility while preserving existing runtime entry points. Projects using
emitDecoratorMetadata()with TypeScript 7 can install the@typescript/typescript6compatibility package alongside it; the package remains optional, so installing the Trigger.dev CLI does not install an additional compiler. (#4318) -
Updated dependencies:
@trigger.dev/core@4.5.10
4.5.9
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.5.9
4.5.8
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.5.8
4.5.7
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.5.7
4.5.6
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.5.6
4.5.5
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.5.5
4.5.4
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.5.4
4.5.3
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.5.3
4.5.2
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.5.2
4.5.1
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.5.1
4.5.0
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.5.0
4.5.0-rc.7
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.5.0-rc.7
4.5.0-rc.6
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.5.0-rc.6
4.5.0-rc.5
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.5.0-rc.5
4.5.0-rc.4
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.5.0-rc.4
4.5.0-rc.3
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.5.0-rc.3
4.5.0-rc.2
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.5.0-rc.2
4.5.0-rc.1
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.5.0-rc.1
4.5.0-rc.0
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.5.0-rc.0
4.4.6
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.4.6
4.4.5
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.4.5
4.4.4
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.4.4
4.4.3
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.4.3
4.4.2
Patch Changes
-
Add input streams for bidirectional communication with running tasks. Define typed input streams with
streams.input<T>({ id }), then consume inside tasks via.wait()(suspends the process),.once()(waits for next message), or.on()(subscribes to a continuous stream). Send data from backends with.send(runId, data)or from frontends with the newuseInputStreamSendReact hook. (#3146)Upgrade S2 SDK from 0.17 to 0.22 with support for custom endpoints (s2-lite) via the new
endpointsconfiguration,AppendRecord.string()API, andmaxInflightBytessession option. -
Updated dependencies:
@trigger.dev/core@4.4.2
4.4.1
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.4.1
4.4.0
Patch Changes
- Fix
onCompletecallback firing prematurely when the realtime stream disconnects before the run finishes. (#2929) - Updated dependencies:
@trigger.dev/core@4.4.0
4.3.3
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.3.3
4.3.2
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.3.2
4.3.1
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.3.1
4.3.0
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.3.0
4.2.0
Patch Changes
- fix: prevent infinite useEffect when passing an array of tags to useRealtimeRunsWithTag (#2705)
- Updated dependencies:
@trigger.dev/core@4.2.0
4.1.2
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.1.2
4.1.1
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.1.1
4.1.0
Minor Changes
- Realtime streams v2 (#2632)
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.1.0
4.0.7
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.0.7
4.0.6
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.0.6
4.0.5
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.0.5
4.0.4
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.0.4
4.0.3
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.0.3
4.0.2
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.0.2
4.0.1
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.0.1
4.0.0
Major Changes
- Trigger.dev v4 release. Please see our upgrade to v4 docs to view the full changelog: https://trigger.dev/docs/upgrade-to-v4 (#1869)
Patch Changes
-
Run Engine 2.0 (alpha) (#1575)
-
Added the ability to specify a "createdAt" filter when subscribing to tags in our useRealtime hooks: (#2158)
// Only subscribe to runs created in the last 10 hours useRealtimeRunWithTags("my-tag", { createdAt: "10h" });You can also now choose to skip subscribing to specific columns by specifying the
skipColumnsoption:useRealtimeRun(run.id, { skipColumns: ["usageDurationMs"] }); -
Fixes an issue with realtime when re-subscribing to a run, that would temporarily display stale data and the changes. Now when re-subscribing to a run only the latest changes will be vended (#2162)
-
Updated dependencies:
@trigger.dev/core@4.0.0
4.0.0-v4-beta.28
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.0.0-v4-beta.28
4.0.0-v4-beta.27
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.0.0-v4-beta.27
4.0.0-v4-beta.26
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.0.0-v4-beta.26
4.0.0-v4-beta.25
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.0.0-v4-beta.25
4.0.0-v4-beta.24
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.0.0-v4-beta.24
4.0.0-v4-beta.23
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.0.0-v4-beta.23
4.0.0-v4-beta.22
Patch Changes
-
Added the ability to specify a "createdAt" filter when subscribing to tags in our useRealtime hooks: (#2158)
// Only subscribe to runs created in the last 10 hours useRealtimeRunWithTags("my-tag", { createdAt: "10h" });You can also now choose to skip subscribing to specific columns by specifying the
skipColumnsoption:useRealtimeRun(run.id, { skipColumns: ["usageDurationMs"] }); -
Fixes an issue with realtime when re-subscribing to a run, that would temporarily display stale data and the changes. Now when re-subscribing to a run only the latest changes will be vended (#2162)
-
Updated dependencies:
@trigger.dev/core@4.0.0-v4-beta.22
4.0.0-v4-beta.21
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.0.0-v4-beta.21
4.0.0-v4-beta.20
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.0.0-v4-beta.20
4.0.0-v4-beta.19
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.0.0-v4-beta.19
4.0.0-v4-beta.18
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.0.0-v4-beta.18
4.0.0-v4-beta.17
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.0.0-v4-beta.17
4.0.0-v4-beta.16
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.0.0-v4-beta.16
4.0.0-v4-beta.15
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.0.0-v4-beta.15
4.0.0-v4-beta.14
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.0.0-v4-beta.14
4.0.0-v4-beta.13
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.0.0-v4-beta.13
4.0.0-v4-beta.12
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.0.0-v4-beta.12
4.0.0-v4-beta.11
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.0.0-v4-beta.11
4.0.0-v4-beta.10
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.0.0-v4-beta.10
4.0.0-v4-beta.9
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.0.0-v4-beta.9
4.0.0-v4-beta.8
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.0.0-v4-beta.8
4.0.0-v4-beta.7
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.0.0-v4-beta.7
4.0.0-v4-beta.6
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.0.0-v4-beta.6
4.0.0-v4-beta.5
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.0.0-v4-beta.5
4.0.0-v4-beta.4
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.0.0-v4-beta.4
4.0.0-v4-beta.3
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.0.0-v4-beta.3
4.0.0-v4-beta.2
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.0.0-v4-beta.2
4.0.0-v4-beta.1
Patch Changes
- Updated dependencies:
@trigger.dev/core@4.0.0-v4-beta.1
4.0.0-v4-beta.0
Major Changes
- Trigger.dev v4 release. Please see our upgrade to v4 docs to view the full changelog: https://trigger.dev/docs/upgrade-to-v4 (#1869)
Patch Changes
- Run Engine 2.0 (alpha) (#1575)
- Updated dependencies:
@trigger.dev/core@4.0.0-v4-beta.0
3.3.17
Patch Changes
- Add support for two-phase deployments and task version pinning (#1739)
- Updated dependencies:
@trigger.dev/core@3.3.17
3.3.16
Patch Changes
- Updated dependencies:
@trigger.dev/core@3.3.16
3.3.15
Patch Changes
- Updated dependencies:
@trigger.dev/core@3.3.15
3.3.14
Patch Changes
- Updated dependencies:
@trigger.dev/core@3.3.14
3.3.13
Patch Changes
- Updated dependencies:
@trigger.dev/core@3.3.13
3.3.12
Patch Changes
- Updated dependencies:
@trigger.dev/core@3.3.12
3.3.11
Patch Changes
- Updated dependencies:
@trigger.dev/core@3.3.11
3.3.10
Patch Changes
- Make sure useRealtimeRun onComplete hook fires at the correct time (#1599)
- Handle errors thrown by requests in Realtime react hooks (#1599)
- Updated dependencies:
@trigger.dev/core@3.3.10
3.3.9
Patch Changes
- Adding ability to update parent run metadata from child runs/tasks (#1563)
- Updated dependencies:
@trigger.dev/core@3.3.9
3.3.8
Patch Changes
- Updated dependencies:
@trigger.dev/core@3.3.8
3.3.7
Patch Changes
- Now compatible with React 19 (#1559)
-
- Fixes an issue in streams where "chunks" could get split across multiple reads (#1549)
- Fixed stopping the run subscription after a run is finished, when using useRealtimeRun or useRealtimeRunWithStreams
- Added an
onCompletecallback touseRealtimeRunanduseRealtimeRunWithStreams - Optimized the run subscription to reduce unnecessary updates
- Updated dependencies:
@trigger.dev/core@3.3.7
3.3.6
Patch Changes
- Realtime streams now powered by electric. Also, this change fixes a realtime bug that was causing too many re-renders, even on records that didn't change (#1541)
- Updated dependencies:
@trigger.dev/core@3.3.6
3.3.5
Patch Changes
- Updated dependencies:
@trigger.dev/core@3.3.5
3.3.4
Patch Changes
- Add trigger options to all trigger hooks (#1528)
- Updated dependencies:
@trigger.dev/core@3.3.4
3.3.3
Patch Changes
- Updated dependencies:
@trigger.dev/core@3.3.3
3.3.2
Patch Changes
- Updated dependencies:
@trigger.dev/core@3.3.2
3.3.1
Patch Changes
- Public access token scopes with just tags or just a batch can now access runs that have those tags or are in the batch. Previously, the only way to access a run was to have a specific scope for that exact run. (#1511)
- Updated dependencies:
@trigger.dev/core@3.3.1
3.3.0
Minor Changes
-
Improved Batch Triggering: (#1502)
-
The new Batch Trigger endpoint is now asynchronous and supports up to 500 runs per request.
-
The new endpoint also supports triggering multiple different tasks in a single batch request (support in the SDK coming soon).
-
The existing
batchTriggermethod now supports the new endpoint, and shouldn't require any changes to your code. -
Idempotency keys now expire after 24 hours, and you can customize the expiration time when creating a new key by using the
idempotencyKeyTTLparameter:
await myTask.batchTrigger([{ payload: { foo: "bar" } }], { idempotencyKey: "my-key", idempotencyKeyTTL: "60s", }); // Works for individual items as well: await myTask.batchTrigger([ { payload: { foo: "bar" }, options: { idempotencyKey: "my-key", idempotencyKeyTTL: "60s" }, }, ]); // And `trigger`: await myTask.trigger( { foo: "bar" }, { idempotencyKey: "my-key", idempotencyKeyTTL: "60s" }, );Breaking Changes
- We've removed the
idempotencyKeyoption fromtriggerAndWaitandbatchTriggerAndWait, because it can lead to permanently frozen runs in deployed tasks. We're working on upgrading our entire system to support idempotency keys on these methods, and we'll re-add the option once that's complete.
-
Patch Changes
- Added ability to subscribe to a batch of runs using runs.subscribeToBatch (#1502)
- Updated dependencies:
@trigger.dev/core@3.3.0
3.2.2
Patch Changes
- Updated dependencies:
@trigger.dev/core@3.2.2
3.2.1
Patch Changes
- React hooks now all accept accessToken and baseURL options so the use of the Provider is no longer necessary (#1486)
- Upgrade zod to latest (3.23.8) (#1484)
- Realtime streams (#1470)
- Updated dependencies:
@trigger.dev/core@3.2.1
3.2.0
Patch Changes
- Updated dependencies:
@trigger.dev/core@3.2.0
3.1.2
Patch Changes
- Updated dependencies:
@trigger.dev/core@3.1.2
3.1.1
Patch Changes
- useBatch renamed to useRealtimeBatch (#1447)
- Updated dependencies:
@trigger.dev/core@3.1.1
3.1.0
Minor Changes
- Access run status updates in realtime, from your server or from your frontend (#1402)
Patch Changes
- Updated dependencies:
@trigger.dev/core@3.1.0