Releases: SokratisVidros/pg-workflows
Releases · SokratisVidros/pg-workflows
v0.9.0
Immutable
release. Only release title and notes can be modified.
Key changes
- Raised
resource_idandworkflow_idcolumn length from 32 to 256 (schema v3) with early validation in the engine and client. - Added a pg-boss dead-letter queue (
workflow_run_dlq) so workflow runs orphaned by a crashed worker are retried with the engine's exponential backoff or markedFAILEDinstead of stayingRUNNINGforever. - Introduced a configurable pg-boss heartbeat (
WORKFLOW_RUN_HEARTBEAT_SECONDS, default 30s) so dead workers are detected in roughly a minute.
Changelog
See CHANGELOG.md for full release notes.
v0.8.3
Immutable
release. Only release title and notes can be modified.
Key changes
- Fixed silent queue cache initialization failure in pg-boss by upgrading to ^12.16.0 (timgit/pg-boss#768)
Changelog
See CHANGELOG.md for full release notes.
v0.8.2
Immutable
release. Only release title and notes can be modified.
Key changes
- Allowed
WorkflowClientOptionsto accept a pre-configuredpg-bossinstance so clients can reuse existing queue configuration.
Changelog
See CHANGELOG.md for full release notes.
v0.8.1
Immutable
release. Only release title and notes can be modified.
Key changes
- Exposed \
idempotencyKey\\on \WorkflowClient.startWorkflow()\\for safer deduplicated run starts. - Added a deterministic release skill to standardize versioning, changelog entries, tags, and release creation.
Changelog
See \CHANGELOG.md\\ for full release notes.
v0.8.0
Immutable
release. Only release title and notes can be modified.
Key changes
- Added
WorkflowClientandWorkflowRefsupport to separate workflow triggering/querying from worker execution concerns. - Added a microservices example showing shared workflows with dedicated API and worker services.
- Improved error surfacing so workflow failures expose nested/underlying errors more clearly.
- Reorganized documentation by splitting the README into focused docs pages under
docs/.
Changelog
See CHANGELOG.md for full release notes.
v0.7.1
Immutable
release. Only release title and notes can be modified.
Changes
- Fix race condition during engine start (
47b0e43)
v0.7.0
Immutable
release. Only release title and notes can be modified.
What's new
Features
- Standard Schema for workflow input validation (Zod, Valibot, and other compliant schemas) (#20)
- Idempotency for
startWorkflowvia optionalidempotencyKey
Fixes and reliability
- Await
boss.send()intriggerEventso events are not dropped silently (#13) - Timeline concurrency and additional state guards (#19)
- Generic parameter on workflow factory for better input type inference (#22)
- Workflow type definition improvements
Other
- Example and dependency updates
Full compare: v0.6.0...v0.7.0
v0.6.1
Immutable
release. Only release title and notes can be modified.
Patch release
Fixes
- Concurrency: Timeline merges now use transaction-level locking, with tighter lifecycle state guards to avoid inconsistent updates under concurrent workers.
- Review: Small follow-ups from code review on the above work.
Notes
- Includes migration and internal cleanup from the same branch. Start the engine once so migrations apply as usual.
Publish to npm when ready: npm publish from this tag (after checkout/build).
v0.6.0
Immutable
release. Only release title and notes can be modified.
What's Changed
New Features
fastForwardWorkflow()method — Skip the current waiting step and immediately resume execution. Inspects the paused step type and dispatches the right internal action:triggerEventforwaitFor, timeout triggers fordelay/waitUntil, resume forpause, and direct output writes forpoll. If the workflow is not paused, it's a no-op. Useful for testing, debugging, or manually advancing workflows past long waits.
Improvements
- Improved backwards pagination in
engine.getRunsfor more reliable cursor-based pagination - Stabilized
fastForwardWorkflowunit tests - Updated README with
fastForwardWorkflowdocumentation and API reference
Full Changelog: v0.5.0...v0.6.0
v0.5.0
Immutable
release. Only release title and notes can be modified.
What's Changed
- feat: make resourceId optional in worker pipeline by @SokratisVidros in #10
Full Changelog: v0.4.0...v0.5.0