Skip to content

Commit 53162a6

Browse files
committed
chore(changeset): trim TriggerClient changeset to sdk-only patch
1 parent e1ca02e commit 53162a6

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

.changeset/trigger-client.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
---
22
"@trigger.dev/sdk": patch
3-
"@trigger.dev/core": patch
43
---
54

6-
Run multiple SDK clients side-by-side. `new TriggerClient({...})` exposes the management API as an explicit instance with its own auth, preview branch, and baseURL, so a single process can trigger tasks across different projects, environments, or preview branches without mutating shared global state.
5+
Add `TriggerClient` for running multiple SDK clients side-by-side, each with its own auth, preview branch, and baseURL. Useful when a single process needs to trigger tasks or read runs across multiple projects, environments, or preview branches without mutating shared global state.
76

87
```ts
98
import { TriggerClient } from "@trigger.dev/sdk";
@@ -17,7 +16,3 @@ const preview = new TriggerClient({
1716
await prod.tasks.trigger("send-email", payload);
1817
await preview.runs.list({ status: ["COMPLETED"] });
1918
```
20-
21-
Instance calls are isolated by default: identity fields (auth, branch) and task-runtime reads (`parentRunId`, `lockToVersion`, `taskContext.ctx`) are scope-only, so a call from inside a task does not leak parent context into a trigger that hits a different project. `baseURL` still falls back to `TRIGGER_API_URL` so local-dev and CI overrides apply without forcing every consumer to pass it explicitly.
22-
23-
Also fixes `configure()` silently no-op-ing on the second call, and makes `auth.withAuth()` concurrency-safe (parallel calls with different configs no longer stomp each other).

0 commit comments

Comments
 (0)