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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@pgflow/core@0.7.0
Minor Changes
524db03: Add map step type infrastructure in SQL core
The migration will automatically update existing
step_statesrows to satisfy new constraints. This should complete without issues due to strict check constraints enforced in previous versions.💡 Recommended: Verify before deploying to production
If you have existing production data and want to verify the migration will succeed cleanly, run this read-only check query (does not modify data) in Supabase Studio against your production database:
pkgs/core/queries/PRE_MIGRATION_CHECK_20251006073122.sqlExpected output for successful migration:
Interpretation:
DATA_BACKFILL_*andINFO_SUMMARYrows? Safe to migrate📝 Note: This check identifies data that needs migration but does not modify anything. Only useful for production databases with existing runs.
Automatic data updates:
initial_tasks = 1for all existing steps (correct for pre-map-step schema)remaining_tasks = NULLfor 'created' status steps (new semantics)No manual intervention required.
Changes
This patch introduces the foundation for map step functionality in the SQL core layer:
Schema Changes
step_typecolumn tostepstable with constraint allowing 'single' or 'map' valuesinitial_taskscolumn tostep_statestable (defaults to 1, stores planned task count)remaining_taskscolumn to be nullable (NULL = not started, >0 = active countdown)remaining_tasks_state_consistencyto ensureremaining_tasksis only set when step has startedonly_single_task_per_stepconstraint fromstep_taskstable to allow multiple tasks per stepFunction Updates
add_step(): Now acceptsstep_typeparameter (defaults to 'single') with validation that map steps can have at most 1 dependencystart_flow(): Setsinitial_tasks = 1for all steps (map step array handling will come in future phases)start_ready_steps(): Copiesinitial_taskstoremaining_taskswhen starting a step, maintaining proper task counting semanticsTesting
This is Phase 2a of the map step implementation, establishing the SQL infrastructure needed for parallel task execution in future phases.
Patch Changes
524db03: Improve failure handling and prevent orphaned messages in queue
Updated dependencies [524db03]
Updated dependencies [524db03]
@pgflow/dsl@0.7.0
Minor Changes
524db03: Add
.array()method for type-safe array step creationIntroduces a new
.array()method that provides compile-time type safety for array-returning handlers with zero runtime overhead..step()method524db03: Add
.map()method to Flow DSL for defining map-type stepsThe new
.map()method enables defining steps that process arrays element-by-element, complementing the existing SQL Core map infrastructure. Key features:arraypropertyarray: 'stepSlug'(item, context)instead of full input objectHandlerReturnType[]step_type => 'map'parameter topgflow.add_step()Example usage:
pgflow@0.7.0
Patch Changes
9553bfd: Fix: Use --config instead of --import-map for Deno compilation
The compile command now uses Deno's --config flag instead of --import-map, enabling full deno.json support including nodeModulesDir, compilerOptions, unstable features, and other configuration options. Previously, these options would cause "Invalid top-level key" warnings.
This is a backward-compatible bug fix. Existing deno.json files with only "imports" continue to work as before.
28252d9: Fix config.toml corruption when updating minimal configurations (issue CLI install command have troubles with config.toml which is very minimal #143)
0d4623e: Fix config.toml corruption with minimal configs while preserving comments. Switch to @decimalturn/toml-patch 0.3.7 (maintained fork) which fixes issue CLI install command have troubles with config.toml which is very minimal #143 and preserves TOML comments and formatting. Thanks to @DecimalTurn for maintaining the fork and contributing this fix.
Updated dependencies [524db03]
Updated dependencies [524db03]
@pgflow/client@0.7.0
Patch Changes
@pgflow/edge-worker@0.7.0
Patch Changes
@pgflow/example-flows@0.7.0
Patch Changes
@pgflow/website@0.7.0