Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/compact-native-build-logs.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/eighty-donkeys-shake.md

This file was deleted.

19 changes: 0 additions & 19 deletions .changeset/realtime-streams-from-latest.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/spotty-pillows-visit.md

This file was deleted.

6 changes: 0 additions & 6 deletions .server-changes/retry-requeue-nack-budget.md

This file was deleted.

4 changes: 2 additions & 2 deletions hosting/k8s/helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: trigger
description: The official Trigger.dev Helm chart
type: application
version: 4.5.13
appVersion: v4.5.13
version: 4.5.14
appVersion: v4.5.14
home: https://trigger.dev
sources:
- https://github.com/triggerdotdev/trigger.dev
Expand Down
7 changes: 7 additions & 0 deletions packages/build/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @trigger.dev/build

## 4.5.14

### Patch Changes

- Updated dependencies:
- `@trigger.dev/core@4.5.14`

## 4.5.13

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/build/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@trigger.dev/build",
"version": "4.5.13",
"version": "4.5.14",
"description": "trigger.dev build extensions",
"license": "MIT",
"publishConfig": {
Expand Down Expand Up @@ -79,7 +79,7 @@
},
"dependencies": {
"@prisma/config": "^6.10.0",
"@trigger.dev/core": "workspace:4.5.13",
"@trigger.dev/core": "workspace:4.5.14",
"mlly": "^1.7.1",
"pkg-types": "^1.1.3",
"tinyglobby": "^0.2.2",
Expand Down
10 changes: 10 additions & 0 deletions packages/cli-v3/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# trigger.dev

## 4.5.14

### Patch Changes

- Native build server deploys now show a single updating build log line by default; pass `--build-logs full` to stream every line (always used in CI and when output is not a terminal). ([#4817](https://github.com/triggerdotdev/trigger.dev/pull/4817))
- Updated dependencies:
- `@trigger.dev/core@4.5.14`
- `@trigger.dev/build@4.5.14`
- `@trigger.dev/schema-to-json@4.5.14`

## 4.5.13

### Patch Changes
Expand Down
8 changes: 4 additions & 4 deletions packages/cli-v3/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "trigger.dev",
"version": "4.5.13",
"version": "4.5.14",
"description": "A Command-Line Interface for Trigger.dev projects",
"type": "module",
"license": "MIT",
Expand Down Expand Up @@ -83,9 +83,9 @@
"@opentelemetry/api-logs": "0.218.0",
"@opentelemetry/instrumentation": "0.218.0",
"@s2-dev/streamstore": "^0.25.0",
"@trigger.dev/build": "workspace:4.5.13",
"@trigger.dev/core": "workspace:4.5.13",
"@trigger.dev/schema-to-json": "workspace:4.5.13",
"@trigger.dev/build": "workspace:4.5.14",
"@trigger.dev/core": "workspace:4.5.14",
"@trigger.dev/schema-to-json": "workspace:4.5.14",
"ansi-escapes": "^7.0.0",
"braces": "^3.0.3",
"c12": "^1.11.1",
Expand Down
19 changes: 19 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# internal-platform

## 4.5.14

### Patch Changes

- 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))
- 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))

`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.

```tsx
const { parts, lastEventId } = useRealtimeStream<Frame>(runId, "frames", {
from: "latest", // skip history, start at the current tail
maxParts: 1, // keep only the most recent frame
lastEventId: savedCursor, // resume from a persisted cursor
onParts: (batch) => save(batch.at(-1)?.id), // track the cursor
accessToken,
});
```

## 4.5.13

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@trigger.dev/core",
"version": "4.5.13",
"version": "4.5.14",
"description": "Core code used across the Trigger.dev SDK and platform",
"license": "MIT",
"publishConfig": {
Expand Down
9 changes: 9 additions & 0 deletions packages/python/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @trigger.dev/python

## 4.5.14

### Patch Changes

- Updated dependencies:
- `@trigger.dev/core@4.5.14`
- `@trigger.dev/sdk@4.5.14`
- `@trigger.dev/build@4.5.14`

## 4.5.13

### Patch Changes
Expand Down
12 changes: 6 additions & 6 deletions packages/python/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@trigger.dev/python",
"version": "4.5.13",
"version": "4.5.14",
"description": "Python runtime and build extension for Trigger.dev",
"license": "MIT",
"publishConfig": {
Expand Down Expand Up @@ -45,7 +45,7 @@
"check-exports": "attw --pack ."
},
"dependencies": {
"@trigger.dev/core": "workspace:4.5.13",
"@trigger.dev/core": "workspace:4.5.14",
"tinyexec": "^0.3.2"
},
"devDependencies": {
Expand All @@ -55,12 +55,12 @@
"typescript": "catalog:",
"tsx": "4.17.0",
"@arethetypeswrong/cli": "^0.18.5",
"@trigger.dev/build": "workspace:4.5.13",
"@trigger.dev/sdk": "workspace:4.5.13"
"@trigger.dev/build": "workspace:4.5.14",
"@trigger.dev/sdk": "workspace:4.5.14"
},
"peerDependencies": {
"@trigger.dev/sdk": "workspace:^4.5.13",
"@trigger.dev/build": "workspace:^4.5.13"
"@trigger.dev/sdk": "workspace:^4.5.14",
"@trigger.dev/build": "workspace:^4.5.14"
},
"engines": {
"node": ">=18.20.0"
Expand Down
23 changes: 23 additions & 0 deletions packages/react-hooks/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# @trigger.dev/react-hooks

## 4.5.14

### Patch Changes

- 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))
- 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))

`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.

```tsx
const { parts, lastEventId } = useRealtimeStream<Frame>(runId, "frames", {
from: "latest", // skip history, start at the current tail
maxParts: 1, // keep only the most recent frame
lastEventId: savedCursor, // resume from a persisted cursor
onParts: (batch) => save(batch.at(-1)?.id), // track the cursor
accessToken,
});
```

- Added a `useSessionStream` React hook for reading a session's output or input channel in realtime. It accumulates records with automatic resume from the last record you received, and supports `from: "latest"` (start at the current tail, only new records after you connect), `maxRecords` (keep a bounded number of records in memory), a `lastEventId` resume cursor, and an `onRecords` callback that delivers each throttled batch of records with their event ids. ([#4811](https://github.com/triggerdotdev/trigger.dev/pull/4811))
- Updated dependencies:
- `@trigger.dev/core@4.5.14`

## 4.5.13

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/react-hooks/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@trigger.dev/react-hooks",
"version": "4.5.13",
"version": "4.5.14",
"description": "trigger.dev react hooks",
"license": "MIT",
"publishConfig": {
Expand Down Expand Up @@ -37,7 +37,7 @@
"check-exports": "attw --pack ."
},
"dependencies": {
"@trigger.dev/core": "workspace:^4.5.13",
"@trigger.dev/core": "workspace:^4.5.14",
"swr": "^2.2.5"
},
"devDependencies": {
Expand Down
7 changes: 7 additions & 0 deletions packages/redis-worker/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @trigger.dev/redis-worker

## 4.5.14

### Patch Changes

- Updated dependencies:
- `@trigger.dev/core@4.5.14`

## 4.5.13

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/redis-worker/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@trigger.dev/redis-worker",
"version": "4.5.13",
"version": "4.5.14",
"description": "Redis worker for trigger.dev",
"license": "MIT",
"publishConfig": {
Expand All @@ -23,7 +23,7 @@
"test": "vitest --sequence.concurrent=false --no-file-parallelism"
},
"dependencies": {
"@trigger.dev/core": "workspace:4.5.13",
"@trigger.dev/core": "workspace:4.5.14",
"nanoid": "^5.1.16",
"p-limit": "^6.2.0",
"seedrandom": "^3.0.5",
Expand Down
7 changes: 7 additions & 0 deletions packages/rsc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @trigger.dev/rsc

## 4.5.14

### Patch Changes

- Updated dependencies:
- `@trigger.dev/core@4.5.14`

## 4.5.13

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/rsc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@trigger.dev/rsc",
"version": "4.5.13",
"version": "4.5.14",
"description": "trigger.dev rsc",
"license": "MIT",
"publishConfig": {
Expand Down Expand Up @@ -37,7 +37,7 @@
"check-exports": "attw --pack ."
},
"dependencies": {
"@trigger.dev/core": "workspace:^4.5.13",
"@trigger.dev/core": "workspace:^4.5.14",
"mlly": "^1.7.1",
"react": "19.0.0-rc.1",
"react-dom": "19.0.0-rc.1"
Expand Down
7 changes: 7 additions & 0 deletions packages/schema-to-json/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @trigger.dev/schema-to-json

## 4.5.14

### Patch Changes

- Updated dependencies:
- `@trigger.dev/core@4.5.14`

## 4.5.13

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/schema-to-json/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@trigger.dev/schema-to-json",
"version": "4.5.13",
"version": "4.5.14",
"description": "Convert various schema validation libraries to JSON Schema",
"license": "MIT",
"publishConfig": {
Expand Down
21 changes: 21 additions & 0 deletions packages/trigger-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# @trigger.dev/sdk

## 4.5.14

### Patch Changes

- 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))

`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.

```tsx
const { parts, lastEventId } = useRealtimeStream<Frame>(runId, "frames", {
from: "latest", // skip history, start at the current tail
maxParts: 1, // keep only the most recent frame
lastEventId: savedCursor, // resume from a persisted cursor
onParts: (batch) => save(batch.at(-1)?.id), // track the cursor
accessToken,
});
```

- Updated dependencies:
- `@trigger.dev/core@4.5.14`

## 4.5.13

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/trigger-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@trigger.dev/sdk",
"version": "4.5.13",
"version": "4.5.14",
"description": "trigger.dev Node.JS SDK",
"license": "MIT",
"publishConfig": {
Expand Down Expand Up @@ -77,7 +77,7 @@
"dependencies": {
"@opentelemetry/api": "1.9.1",
"@opentelemetry/semantic-conventions": "1.41.1",
"@trigger.dev/core": "workspace:4.5.13",
"@trigger.dev/core": "workspace:4.5.14",
"uncrypto": "^0.1.3"
},
"devDependencies": {
Expand Down
Loading
Loading