Skip to content

v2.0.0

Choose a tag to compare

@aidanhibbard aidanhibbard released this 17 May 22:09
· 26 commits to main since this release

v2.0.0

compare changes

Upgrading from 0.x or 1.x? See the upgrading guide.

⚠️ Breaking Changes

  • Redis configuration — remove processor.redis from module options; use runtimeConfig.redis and/or REDIS_* (dev/build) and NUXT_REDIS_* (runtime). See upgrading guide.
  • Workers registry — rename $workers() to useProcessor(); remove setConnection(). Connection is resolved from useRuntimeConfig().redis when each queue or worker is created.
  • Nitro plugin — remove the plugin that called setConnection() and overrode process.env.REDIS_URL at runtime.
  • Worker entry — generated workers bundle no longer calls setConnection() at startup; Redis comes from runtime config like the main server. Shutdown uses useProcessor().stopAll().

🚀 Enhancements

  • Resolve Redis at queue/worker creation time (fixes ECONNREFUSED 127.0.0.1:6379 when queues are imported before a Nitro plugin runs, e.g. Bull Board or Docker).
  • Add buildRedisRuntimeConfig() with defu merge: user runtimeConfig.redis overrides REDIS_* env at module setup.
  • Normalize runtime connection options (port / db / connectTimeout coercion; lazyConnect from true/false strings via NUXT_REDIS_*).
  • Shared registry on globalThis so top-level defineQueue() works when Nitro bundles modules out of order.
  • stopAll() closes all registered queues/workers and clears the registry (safe for dev reload and worker shutdown).
  • Set maxRetriesPerRequest: null on worker connections only (BullMQ blocking client requirement).
  • Ship markdown docs in the npm package under docs/ for tooling and LLMs.

📖 Documentation

  • Add docs/redis.md, docs/api.md, and docs/upgrading.md; expand README with env tables and Docker notes.
  • Document NUXT_REDIS_* vs REDIS_* per Nuxt runtime config.

🧪 Tests

  • Add spec/utils/redis-runtime-config.spec.ts, spec/utils/normalize-redis-connection.spec.ts, and spec/scripts/assert-baked-redis-empty.spec.ts.
  • Expand spec/runtime/utils/workers.spec.ts for connection options, registry lifecycle, and worker maxRetriesPerRequest.
  • Add npm run test:docker — build image without Redis env, assert baked nitro.mjs, run runtime scenarios (NUXT_REDIS_URL, host/port, password, options).

💅 Refactors

  • Remove .npmrc pnpm-only keys from the published package root.

v2.0.0-beta.0

Pre-release of v2.0.0. Install with npm install nuxt-processor@beta.

v1.1.0

compare changes

🩹 Fixes

  • Drop direct ioredis dependency; use BullMQ’s bundled connection stack (#53).
  • Improve worker connection handling in $workers() (maxRetriesPerRequest: null for workers).

v1.0.0

compare changes

🚀 Enhancements

  • First stable 1.x release line.
  • Merge processor.redis into runtimeConfig.redis at build time; env variable and CLI fixes (#51, #52).

🩹 Fixes

  • Upgrade nuxt from 4.1.2 to 4.2.2 (#45).
  • Upgrade @bull-board/h3 from 6.13.0 to 6.16.2 (#47).

v0.0.15

compare changes

v0.0.14

compare changes

🩹 Fixes

  • Upgrade @rollup/rollup-linux-x64-gnu from 4.9.5 to 4.53.3 (74cb730)
  • Upgrade @bull-board/ui from 6.14.2 to 6.15.0 (087d75a)
  • Upgrade @nuxt/kit from 4.2.0 to 4.2.2 (270dd5d)
  • Upgrade @bull-board/ui from 6.15.0 to 6.16.2 (3e56d15)

❤️ Contributors

v0.0.13

compare changes

🩹 Fixes

  • Upgrade bullmq from 5.58.7 to 5.58.9 (9d95b8f)
  • Upgrade @nuxt/kit from 4.1.2 to 4.1.3 (d0785f8)
  • Upgrade ioredis from 5.8.0 to 5.8.1 (330bc8e)
  • Upgrade @bull-board/ui from 6.13.0 to 6.13.1 (fd25999)
  • Upgrade ioredis from 5.8.1 to 5.8.2 (356d4d8)
  • Upgrade @bull-board/ui from 6.13.1 to 6.14.0 (d6cadb0)
  • Upgrade @nuxt/kit from 4.1.3 to 4.2.0 (64206e1)
  • Upgrade bullmq from 5.58.9 to 5.63.0 (39342b6)
  • Upgrade @bull-board/ui from 6.14.0 to 6.14.2 (44389bb)

❤️ Contributors

v0.0.12

compare changes

v0.0.11

compare changes

v0.0.10

compare changes

v0.0.9

compare changes

🩹 Fixes

  • Playground/package.json & playground/package-lock.json to reduce vulnerabilities (6575378)

❤️ Contributors

v0.0.8

compare changes

v0.0.7

compare changes

v0.0.6

compare changes

v0.0.5

compare changes

v0.0.4

compare changes

v0.0.3

compare changes

v0.0.2

compare changes

v0.0.1