Skip to content

Releases: Trebired/tasks

v1.1.0, Generic Task Store and SQLite Backend

22 Jun 21:52

Choose a tag to compare

v1.1.0

This release adds a backend-agnostic public storage path and a built-in SQLite durable store.

Hosts can now use createTaskStore(...), prepareTaskStoreSchema(...), and createTaskStoreSchema(...) as the recommended package-owned storage integration surface. Backend selection is driven by explicit driver options instead of exposing backend names through the main API shape.

This release also adds a first-class SQLite store for lightweight local runtimes, development environments, small deployments, and hosts that do not need Postgres.

Added

  • Backend-agnostic public storage helpers through createTaskStore(...), prepareTaskStoreSchema(...), and createTaskStoreSchema(...).
  • Explicit driver-based backend selection for generic store creation.
  • Built-in SQLite durable task store.
  • SQLite schema preparation.
  • SQLite task claiming and leasing.
  • SQLite progress persistence.
  • SQLite stale task recovery.
  • SQLite retry handling.
  • SQLite retention support.
  • SQLite durable step history.

Changed

  • Generic store factory is now the recommended storage integration path.
  • Explicit backend adapters remain available for hosts that want direct backend access.

Notes

This release expands the storage layer while keeping the task runtime host-owned and backend-flexible.

v1.0.0, In-Process Executor and Schema Preparation

22 Jun 13:29

Choose a tag to compare

v1.0.0

This release adds the first stable runtime surface for durable task execution.

The new in-process executor gives hosts a package-owned path for loading handler modules, forwarding progress and task steps, handling cooperative cancellation, and normalizing execution errors without requiring every task to run through a child process.

This release also adds reusable event entry helpers, adapter utilities, and a Postgres schema preparation helper for idempotent startup setup and additive table upgrades.

Added

  • First-class in-process executor.
  • Package-owned handler module loading for in-process task execution.
  • Cooperative cancellation support for in-process handlers.
  • Progress forwarding from in-process task handlers.
  • Step forwarding from in-process task handlers.
  • Normalized error shaping for in-process execution failures.
  • Generic event entry helpers for host-owned logs, timelines, transports, and diagnostics.
  • Adapter utilities for forwarding task host and lifecycle events.
  • preparePostgresTaskStoreSchema() for idempotent Postgres schema preparation.
  • Additive Postgres schema upgrade support for older task tables missing supersede_key.

Notes

This release promotes the task runtime to the first stable release line while keeping the host-owned model for storage, execution policy, logging, and transport integration.

v0.2.1, Published Package Metadata Fixes

22 Jun 10:37

Choose a tag to compare

v0.2.1

This release fixes the published package output so packed installs resolve correctly from a clean consumer project.

The publish flow now prepares the compiled dist package more carefully by promoting public entrypoints, rewriting compiled alias imports to relative built files, and rewriting packed package metadata during npm pack and npm publish.

This release also adds explicit pack verification that inspects the tarball and smoke-tests a clean temporary install before publishing.

Added

  • Publish-preparation step for packed dist output.
  • Public dist/src entrypoint promotion into dist.
  • Compiled alias import rewriting to relative built files.
  • Packed package.json metadata rewriting during npm pack and npm publish.
  • Explicit tarball verification before publish.
  • Clean temporary consumer smoke test for install, typecheck, and runtime import.

Fixed

  • Packed main metadata resolving to files that did not exist in the published tarball.
  • Packed types metadata resolving to files that did not exist in the published tarball.
  • Package-private alias imports resolving to missing files in packed output.

Notes

This is a packaging reliability release focused on making published installs work correctly.

v0.2.0, Durable Task Observability and Live Filtering

21 Jun 20:35

Choose a tag to compare

v0.2.0

This release expands the package-owned observability surface around durable tasks.

Task progress is now easier to inspect through normalized progress state, persisted steps, bootstrap-plus-live subscription flows, aggregate reads, stale-state helpers, retention helpers, and the tiny live tracker.

Live filtering is also stronger. Hosts can now filter live task updates by durable task keys such as dedupeKey, concurrencyKey, and supersedeKey, with broader generic channel helpers for topic, resource, and correlation.

Added

  • Normalized progress state for durable task observability.
  • Persisted task steps.
  • Bootstrap-plus-live subscription flows.
  • Aggregate task reads.
  • Stale-state helpers.
  • Retention helpers.
  • Tiny live tracker support.
  • Live filtering by dedupeKey, concurrencyKey, and supersedeKey.
  • Generic live channel helpers for topic, resource, and correlation.

Notes

The runtime model stays host-owned and generic, with Postgres storage, child-process execution and optional Socket.IO-style bridging.

v0.1.0, Initial Release

21 Jun 11:57

Choose a tag to compare

Initial Release