0.3.31
- Bump package version to 0.3.31 (0d46e38)
Update package.json and package-lock.json to version 0.3.31 for a patch release. No functional code changes; the lockfile was updated to reflect the new package version. - Limit dataset sync to first worker; add monitoring (2d3c93c)
Prevent redundant dataset syncs by importing cluster in lib/imdbDatasetSync.ts and skipping sync in workers except the first (worker id 1), avoiding duplicate work and memory spikes. In scripts/start-server.js, introduce a workers map and spawnWorker helper to track forks and respawn workers on exit, and add a memory monitor that requests per-worker memory via IPC (logs primary and worker memory every 5 minutes, with an initial log after 30s). Also add a worker-side IPC handler to respond with process.memoryUsage() when requested.
Full Changelog: v0.3.30...v0.3.31