Skip to content

Commit 0f9533e

Browse files
Version Packages (#308)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 72e6d6c commit 0f9533e

File tree

16 files changed

+80
-28
lines changed

16 files changed

+80
-28
lines changed

.changeset/clear-signal-beam.md

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

pkgs/cli/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# pgflow
22

3+
## 0.7.2
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [c22a1e5]
8+
- @pgflow/core@0.7.2
9+
310
## 0.7.1
411

512
### Patch Changes

pkgs/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pgflow",
3-
"version": "0.7.1",
3+
"version": "0.7.2",
44
"type": "module",
55
"main": "./dist/index.js",
66
"typings": "./dist/index.d.ts",

pkgs/client/CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
# @pgflow/client
22

3+
## 0.7.2
4+
5+
### Patch Changes
6+
7+
- c22a1e5: Fix missing realtime broadcasts for step:started and step:completed events
8+
9+
**Critical bug fix:** Clients were not receiving `step:started` events when steps transitioned to Started status, and `step:completed` events for empty map steps and cascade completions were also missing.
10+
11+
**Root cause:** PostgreSQL query optimizer was eliminating CTEs containing `realtime.send()` calls because they were not referenced by subsequent operations or the final RETURN statement.
12+
13+
**Solution:** Moved `realtime.send()` calls directly into RETURNING clauses of UPDATE statements, ensuring they execute atomically with state changes and cannot be optimized away.
14+
15+
**Changes:**
16+
17+
- `start_ready_steps()`: Broadcasts step:started and step:completed events in RETURNING clauses
18+
- `cascade_complete_taskless_steps()`: Broadcasts step:completed events atomically with cascade completion
19+
- `complete_task()`: Added PERFORM statements for run:failed and step:failed broadcasts
20+
- Client: Added `applySnapshot()` methods to FlowRun and FlowStep for proper initial state hydration without event emission
21+
22+
- Updated dependencies [c22a1e5]
23+
- @pgflow/core@0.7.2
24+
- @pgflow/dsl@0.7.2
25+
326
## 0.7.1
427

528
### Patch Changes

pkgs/client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pgflow/client",
3-
"version": "0.7.1",
3+
"version": "0.7.2",
44
"type": "module",
55
"scripts": {
66
"verify-exports": "node scripts/verify-exports.js"

pkgs/core/CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
# @pgflow/core
22

3+
## 0.7.2
4+
5+
### Patch Changes
6+
7+
- c22a1e5: Fix missing realtime broadcasts for step:started and step:completed events
8+
9+
**Critical bug fix:** Clients were not receiving `step:started` events when steps transitioned to Started status, and `step:completed` events for empty map steps and cascade completions were also missing.
10+
11+
**Root cause:** PostgreSQL query optimizer was eliminating CTEs containing `realtime.send()` calls because they were not referenced by subsequent operations or the final RETURN statement.
12+
13+
**Solution:** Moved `realtime.send()` calls directly into RETURNING clauses of UPDATE statements, ensuring they execute atomically with state changes and cannot be optimized away.
14+
15+
**Changes:**
16+
17+
- `start_ready_steps()`: Broadcasts step:started and step:completed events in RETURNING clauses
18+
- `cascade_complete_taskless_steps()`: Broadcasts step:completed events atomically with cascade completion
19+
- `complete_task()`: Added PERFORM statements for run:failed and step:failed broadcasts
20+
- Client: Added `applySnapshot()` methods to FlowRun and FlowStep for proper initial state hydration without event emission
21+
- @pgflow/dsl@0.7.2
22+
323
## 0.7.1
424

525
### Patch Changes

pkgs/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pgflow/core",
3-
"version": "0.7.1",
3+
"version": "0.7.2",
44
"license": "AGPL-3.0",
55
"type": "module",
66
"main": "./dist/index.js",

pkgs/dsl/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# @pgflow/dsl
22

3+
## 0.7.2
4+
35
## 0.7.1
46

57
## 0.7.0

pkgs/dsl/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pgflow/dsl",
3-
"version": "0.7.1",
3+
"version": "0.7.2",
44
"type": "module",
55
"main": "./dist/index.js",
66
"module": "./dist/index.js",

pkgs/edge-worker/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# @pgflow/edge-worker
22

3+
## 0.7.2
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [c22a1e5]
8+
- @pgflow/core@0.7.2
9+
- @pgflow/dsl@0.7.2
10+
311
## 0.7.1
412

513
### Patch Changes

0 commit comments

Comments
 (0)