Skip to content
Get started
Get started
bunqueue v2.7.11
View Markdown
blog · release

bunqueue v2.7.11

Fixes 1 bug. defineConfig caused "Failed to listen at 0.0.0.0" when used in config file (Issue #85, reported by @timnew), src/main.ts re-executes its top-level dispatch on every import.

bun add bunqueue@2.7.11
npm install bunqueue@2.7.11
bun add bunqueue@latest
  • defineConfig caused “Failed to listen at 0.0.0.0” when used in config file (Issue #85, reported by @timnew), src/main.ts re-executes its top-level dispatch on every import. Running bunqueue start -c typed.ts started the server, then loadConfigFile() imported the user config which imports defineConfig from 'bunqueue' → resolves to dist/main.js → top-level code sees argv[2] === 'start' and re-invokes the CLI, attempting a second bind on the same port. Wrapped the top-level CLI/server dispatch and the Logger env-var bootstrap in if (import.meta.main) so importing the package entry (for defineConfig or other re-exports) has no side effect. Behavior when src/main.ts is the actual entry (e.g. bun run src/main.ts, compiled binary) is unchanged.
  • New regression test test/issue-85-config-import-side-effect.test.ts, spawns a subprocess that imports src/main.ts with process.argv emulating bunqueue start, asserts no server banner/bind logs.

← bunqueue v2.7.10 · Full changelog · All posts