Repository navigation
Releases
Releases · aidanhibbard/nitro-processor
v0.1.2
v0.1.1
Unreleased
v0.1.1
First stable release — Nitro v3 background processing ported from nuxt-processor.
🚀 Features
- Runtime helpers:
defineQueue,defineWorker,useProcessor, and close-on-shutdown plugin. - Workers rollup plugin emits
{buildDir}/dev/workers/index.mjs(dev) and.output/server/workers/index.mjs(prod). - Full
nitro-processor devCLI with--buildDir,--workers,--nodeArgs,--verbose, andNITRO_PROCESSOR_BUILD_DIRenv support. - Redis runtime config seeding from
REDIS_*withNITRO_REDIS_*overrides at runtime. - Type augmentations via
types:extendand shippeddist/types.d.mts. #processorbarrel exporting bothdefineQueueanddefineWorkerfor TypeScript and runtime aliases.- Configuration guide for standalone Nitro (
nitro.config.ts) and Vite + Nitro (vite.config.ts). assert-baked-redis-emptyscript to verify production bundles do not bake Redis credentials.
🩹 Fixes
- Resolve package root from published
dist/entrypoints so module registration works after install. - Fail worker startup when
waitUntilReady()rejects; rethrow init errors so the CLI exits non-zero. - Deduplicate queues and workers by name to avoid leaks on hot reload and duplicate job processing.
- Emit an empty
workers/index.mjswhen the workers folder is cleared so stale entries are not left on disk. - Handle shutdown timeout inside
stopAllwith an in-flight mutex instead of concurrentstop()calls. - Align
nitro-processorNitro alias with the#processorbarrel (both handlers, notdefineQueueonly). - Handle child
spawnerrorevents in the dev CLI.
🔄 Changes
- Port runtime and build-time code from nuxt-processor for Nitro v3.
- Removed v0.0.1 stub
runtimeConfig.processor.workersseeding; workers path is a module option only. - Split build-time utils and interfaces per project conventions (one export per file).
📖 Docs
- Added Configuration guide (
nitro.config.ts,vite.config.ts,buildDir, CLI). - README notes that Nuxt users should use nuxt-processor.
- Removed stale “coming soon” notices from API and Redis docs.
v0.0.1
Initial repository scaffold.
🏗️ Infrastructure
- Nitro module package layout with obuild, strict ESLint/TypeScript, Vitest (100% coverage), VitePress docs, and GitHub CI.