Skip to content

Releases: openjobspec/ojs-js-sdk

v0.4.0

20 Apr 17:26

Choose a tag to compare

Release v0.4.0

ojs-js-sdk v0.3.0

09 Mar 20:16

Choose a tag to compare

v0.3.0

See the full release notes for details across all Open Job Spec projects.

Installation

npm install @openjobspec/sdk@0.3.0

ojs-js-sdk v0.2.0

28 Feb 15:29

Choose a tag to compare

  • chore: bump version to 0.2.0
  • feat: add batch enqueue support with validation
  • chore: add eslint configuration and update dependencies
  • refactor: export durable module from SDK index
  • refactor: update worker.ts with durable job handler support
  • test: add durable execution test suite
  • feat: add durable execution module for TypeScript SDK
  • test: add integration tests for batch operations
  • fix: handle network errors during job polling
  • feat: add configurable request timeout option
  • feat: add context propagation to worker middleware
  • refactor: simplify worker polling loop
  • chore: update vitest to latest version
  • docs: update TypeScript usage examples
  • test: add timeout behavior tests
  • refactor: simplify worker polling loop
  • fix: correct type inference in middleware chain
  • feat: add AbortController support for cancellation

What's Changed

See the full release notes: https://github.com/openjobspec/openjobspec/blob/main/RELEASE_NOTES_v0.2.0.md

v0.1.0 — Initial JavaScript/TypeScript SDK Release

23 Feb 09:48

Choose a tag to compare

@openjobspec/sdk v0.1.0

The official JavaScript/TypeScript SDK for Open Job Spec.

Features

  • Zero dependencies — Uses built-in fetch, no third-party runtime deps
  • TypeScript-first — Full type safety with .d.ts declarations and generic-typed enqueue
  • Dual format — Ships both ESM and CommonJS builds
  • Client — Enqueue jobs, batch operations, workflow management, queue control, cron scheduling
  • Worker — Process jobs with configurable concurrency, middleware, and graceful shutdown
  • Workflows — Chain (sequential), Group (parallel), Batch (parallel with callbacks)
  • Middleware — Composable middleware chain with named operations (add, remove, insertBefore, insertAfter)
  • Structured errors — Error class hierarchy with codes, retryable flags, and rate-limit metadata
  • Events — CloudEvents-inspired typed event emitter for observability
  • Serverless — First-class adapters for Cloudflare Workers and Vercel Edge Functions
  • OpenTelemetry — Optional tracing and metrics middleware
  • Testing — Built-in fake mode and assertion helpers for unit tests
  • Cross-runtime — Works in Node.js 18+, Deno, and Bun

Installation

npm install @openjobspec/sdk