Skip to content

Commit 8e35e82

Browse files
chore: release
1 parent 1d13b79 commit 8e35e82

23 files changed

Lines changed: 144 additions & 65 deletions

.changeset/eighty-donkeys-shake.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

.changeset/realtime-streams-from-latest.md

Lines changed: 0 additions & 19 deletions
This file was deleted.

.changeset/spotty-pillows-visit.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

hosting/k8s/helm/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ apiVersion: v2
22
name: trigger
33
description: The official Trigger.dev Helm chart
44
type: application
5-
version: 4.5.13
6-
appVersion: v4.5.13
5+
version: 4.5.14
6+
appVersion: v4.5.14
77
home: https://trigger.dev
88
sources:
99
- https://github.com/triggerdotdev/trigger.dev

packages/build/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @trigger.dev/build
22

3+
## 4.5.14
4+
5+
### Patch Changes
6+
7+
- Updated dependencies:
8+
- `@trigger.dev/core@4.5.14`
9+
310
## 4.5.13
411

512
### Patch Changes

packages/build/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@trigger.dev/build",
3-
"version": "4.5.13",
3+
"version": "4.5.14",
44
"description": "trigger.dev build extensions",
55
"license": "MIT",
66
"publishConfig": {
@@ -79,7 +79,7 @@
7979
},
8080
"dependencies": {
8181
"@prisma/config": "^6.10.0",
82-
"@trigger.dev/core": "workspace:4.5.13",
82+
"@trigger.dev/core": "workspace:4.5.14",
8383
"mlly": "^1.7.1",
8484
"pkg-types": "^1.1.3",
8585
"tinyglobby": "^0.2.2",

packages/cli-v3/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# trigger.dev
22

3+
## 4.5.14
4+
5+
### Patch Changes
6+
7+
- Updated dependencies:
8+
- `@trigger.dev/core@4.5.14`
9+
- `@trigger.dev/build@4.5.14`
10+
- `@trigger.dev/schema-to-json@4.5.14`
11+
312
## 4.5.13
413

514
### Patch Changes

packages/cli-v3/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "trigger.dev",
3-
"version": "4.5.13",
3+
"version": "4.5.14",
44
"description": "A Command-Line Interface for Trigger.dev projects",
55
"type": "module",
66
"license": "MIT",
@@ -83,9 +83,9 @@
8383
"@opentelemetry/api-logs": "0.218.0",
8484
"@opentelemetry/instrumentation": "0.218.0",
8585
"@s2-dev/streamstore": "^0.25.0",
86-
"@trigger.dev/build": "workspace:4.5.13",
87-
"@trigger.dev/core": "workspace:4.5.13",
88-
"@trigger.dev/schema-to-json": "workspace:4.5.13",
86+
"@trigger.dev/build": "workspace:4.5.14",
87+
"@trigger.dev/core": "workspace:4.5.14",
88+
"@trigger.dev/schema-to-json": "workspace:4.5.14",
8989
"ansi-escapes": "^7.0.0",
9090
"braces": "^3.0.3",
9191
"c12": "^1.11.1",

packages/core/CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
# internal-platform
22

3+
## 4.5.14
4+
5+
### Patch Changes
6+
7+
- Realtime stream subscriptions can now refresh an expired access token and reconnect, via a new optional `refreshAccessToken` option on the client configuration and the React hooks. ([#4811](https://github.com/triggerdotdev/trigger.dev/pull/4811))
8+
- Subscribe to a realtime stream from its latest record instead of replaying the whole history. Pass `from: "latest"` to `useRealtimeStream`, `streams.read()`, or `fetchStream` to start at the current tail (the latest record, then live updates) instead of replaying (a live "last value" view), and `maxParts` to keep the accumulated `parts` array bounded. A reconnect or remount resumes from the last record it saw, so no records are missed and none are replayed. `from: "latest"` needs a server that supports it; older servers safely fall back to a full replay. ([#4811](https://github.com/triggerdotdev/trigger.dev/pull/4811))
9+
10+
`useRealtimeStream` also gains a `lastEventId` option and returns the `lastEventId` of the last part seen, so you can persist the cursor (for example across a page reload) and resume exactly where you left off. An `onParts` callback delivers each throttled batch of parts with their event ids.
11+
12+
```tsx
13+
const { parts, lastEventId } = useRealtimeStream<Frame>(runId, "frames", {
14+
from: "latest", // skip history, start at the current tail
15+
maxParts: 1, // keep only the most recent frame
16+
lastEventId: savedCursor, // resume from a persisted cursor
17+
onParts: (batch) => save(batch.at(-1)?.id), // track the cursor
18+
accessToken,
19+
});
20+
```
21+
322
## 4.5.13
423

524
### Patch Changes

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@trigger.dev/core",
3-
"version": "4.5.13",
3+
"version": "4.5.14",
44
"description": "Core code used across the Trigger.dev SDK and platform",
55
"license": "MIT",
66
"publishConfig": {

0 commit comments

Comments
 (0)