Skip to content

Releases: SokratisVidros/pg-workflows

v0.9.0

27 Apr 09:55
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

Key changes

  • Raised resource_id and workflow_id column 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 marked FAILED instead of staying RUNNING forever.
  • 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

22 Apr 20:40
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

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

16 Apr 06:50
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

Key changes

  • Allowed WorkflowClientOptions to accept a pre-configured pg-boss instance so clients can reuse existing queue configuration.

Changelog

See CHANGELOG.md for full release notes.

v0.8.1

15 Apr 13:45
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

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

15 Apr 10:18
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

Key changes

  • Added WorkflowClient and WorkflowRef support 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

06 Apr 16:41
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

Changes

  • Fix race condition during engine start (47b0e43)

v0.7.0

06 Apr 14:04
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

What's new

Features

  • Standard Schema for workflow input validation (Zod, Valibot, and other compliant schemas) (#20)
  • Idempotency for startWorkflow via optional idempotencyKey

Fixes and reliability

  • Await boss.send() in triggerEvent so 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

28 Mar 07:34
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

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

26 Mar 07:24
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

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: triggerEvent for waitFor, timeout triggers for delay/waitUntil, resume for pause, and direct output writes for poll. 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.getRuns for more reliable cursor-based pagination
  • Stabilized fastForwardWorkflow unit tests
  • Updated README with fastForwardWorkflow documentation and API reference

Full Changelog: v0.5.0...v0.6.0

v0.5.0

19 Mar 15:02
Immutable release. Only release title and notes can be modified.

Choose a tag to compare

What's Changed

Full Changelog: v0.4.0...v0.5.0