chore: release v4.5.0-rc.2#3702
Open
github-actions[bot] wants to merge 1 commit into
Open
Conversation
9634f52 to
a7b2ff2
Compare
a7b2ff2 to
e67e643
Compare
e67e643 to
8514f1e
Compare
8514f1e to
5dab2df
Compare
5dab2df to
f32ca91
Compare
f32ca91 to
cd1ea9f
Compare
cd1ea9f to
c03f711
Compare
Comment on lines
+7
to
+20
| - 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. ([#3683](https://github.com/triggerdotdev/trigger.dev/pull/3683)) | ||
|
|
||
| ```ts | ||
| import { TriggerClient } from "@trigger.dev/sdk"; | ||
|
|
||
| const prod = new TriggerClient({ accessToken: process.env.TRIGGER_PROD_KEY }); | ||
| const preview = new TriggerClient({ | ||
| accessToken: process.env.TRIGGER_PREVIEW_KEY, | ||
| previewBranch: "signup-flow", | ||
| }); | ||
|
|
||
| await prod.tasks.trigger("send-email", payload); | ||
| await preview.runs.list({ status: ["COMPLETED"] }); | ||
| ``` |
Contributor
There was a problem hiding this comment.
🚩 Changelog for @trigger.dev/sdk advertises TriggerClient but no source code is included in this PR
The packages/trigger-sdk/CHANGELOG.md:7 entry describes a new TriggerClient class with usage examples, and pre.json adds a trigger-client changeset. However, this PR contains zero TypeScript source changes — the actual implementation of TriggerClient is presumably already merged into the branch before this release PR. This is normal for changeset-based release workflows, but worth confirming that the TriggerClient code actually exists on this branch and wasn't accidentally omitted from the release.
Was this helpful? React with 👍 or 👎 to provide feedback.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
1 improvement.
Improvements
TriggerClientfor 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. (#3683)Raw changeset output
mainis currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exitonmain.Releases
@trigger.dev/[email protected]
Patch Changes
@trigger.dev/[email protected][email protected]
Patch Changes
@trigger.dev/[email protected]@trigger.dev/[email protected]@trigger.dev/[email protected]@trigger.dev/[email protected]
Patch Changes
@trigger.dev/[email protected]@trigger.dev/[email protected]
Patch Changes
@trigger.dev/[email protected]@trigger.dev/[email protected]@trigger.dev/[email protected]@trigger.dev/[email protected]
Patch Changes
@trigger.dev/[email protected]@trigger.dev/[email protected]
Patch Changes
@trigger.dev/[email protected]@trigger.dev/[email protected]
Patch Changes
@trigger.dev/[email protected]@trigger.dev/[email protected]
Patch Changes
@trigger.dev/[email protected]@trigger.dev/[email protected]
Patch Changes
Add
TriggerClientfor 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. (#3683)Updated dependencies:
@trigger.dev/[email protected]@trigger.dev/[email protected]