@pgflow/core 0.0.0-array-map-steps-f18b09ac-20251006160811 → 0.0.0-array-map-steps-cd94242a-20251008042921

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/CHANGELOG.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # @pgflow/core
2
2
 
3
- ## 0.0.0-array-map-steps-f18b09ac-20251006160811
3
+ ## 0.0.0-array-map-steps-cd94242a-20251008042921
4
4
 
5
5
  ### Minor Changes
6
6
 
7
- - 8dc0d99: Add map step type infrastructure in SQL core
7
+ - 524db03: Add map step type infrastructure in SQL core
8
8
 
9
9
  ## 🚨🚨🚨 CRITICAL MIGRATION WARNING 🚨🚨🚨
10
10
 
@@ -55,7 +55,7 @@
55
55
 
56
56
  ### Patch Changes
57
57
 
58
- - 8dc0d99: Improve failure handling and prevent orphaned messages in queue
58
+ - 524db03: Improve failure handling and prevent orphaned messages in queue
59
59
 
60
60
  - Archive all queued messages when a run fails to prevent resource waste
61
61
  - Handle type constraint violations gracefully without exceptions
@@ -64,9 +64,9 @@
64
64
  - Prevent retries on already-failed runs
65
65
  - Update table constraint to allow output storage on failed tasks
66
66
 
67
- - Updated dependencies [8dc0d99]
68
- - Updated dependencies [8dc0d99]
69
- - @pgflow/dsl@0.0.0-array-map-steps-f18b09ac-20251006160811
67
+ - Updated dependencies [524db03]
68
+ - Updated dependencies [524db03]
69
+ - @pgflow/dsl@0.0.0-array-map-steps-cd94242a-20251008042921
70
70
 
71
71
  ## 0.6.1
72
72
 
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgflow/core",
3
- "version": "0.0.0-array-map-steps-f18b09ac-20251006160811",
3
+ "version": "0.0.0-array-map-steps-cd94242a-20251008042921",
4
4
  "license": "AGPL-3.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,5 +1,12 @@
1
1
  -- Modify "step_task_record" composite type
2
2
  ALTER TYPE "pgflow"."step_task_record" ADD ATTRIBUTE "task_index" integer;
3
+ -- MANUAL DATA MIGRATION: Prepare existing data for new constraint
4
+ -- This UPDATE must run BEFORE the new constraint is added to avoid failures
5
+ -- The new constraint "remaining_tasks_state_consistency" requires that
6
+ -- remaining_tasks is NULL when status = 'created'
7
+ UPDATE "pgflow"."step_states"
8
+ SET "remaining_tasks" = NULL
9
+ WHERE "status" = 'created';
3
10
  -- Modify "step_states" table
4
11
  ALTER TABLE "pgflow"."step_states" DROP CONSTRAINT "step_states_remaining_tasks_check", ADD CONSTRAINT "initial_tasks_known_when_started" CHECK ((status <> 'started'::text) OR (initial_tasks IS NOT NULL)), ADD CONSTRAINT "remaining_tasks_state_consistency" CHECK ((remaining_tasks IS NULL) OR (status <> 'created'::text)), ADD CONSTRAINT "step_states_initial_tasks_check" CHECK ((initial_tasks IS NULL) OR (initial_tasks >= 0)), ALTER COLUMN "remaining_tasks" DROP NOT NULL, ALTER COLUMN "remaining_tasks" DROP DEFAULT, ADD COLUMN "initial_tasks" integer NULL;
5
12
  -- Modify "step_tasks" table
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgflow/core",
3
- "version": "0.0.0-array-map-steps-f18b09ac-20251006160811",
3
+ "version": "0.0.0-array-map-steps-cd94242a-20251008042921",
4
4
  "license": "AGPL-3.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "postgres": "^3.4.5",
27
- "@pgflow/dsl": "0.0.0-array-map-steps-f18b09ac-20251006160811"
27
+ "@pgflow/dsl": "0.0.0-array-map-steps-cd94242a-20251008042921"
28
28
  },
29
29
  "publishConfig": {
30
30
  "access": "public"