MySQL adapter for station-signal and station-broadcast, enabling MySQL-backed message queues and broadcast channels. Current stable version is 1.0.4. No release cadence announced. Key differentiator: integrates with the station ecosystem for typed, scheduled, and broadcasted messages, with TypeScript support. Requires Node.js >= 18 and peer dependencies station-signal, station-schedules, and station-broadcast.
npm install station-adapter-mysqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize MySQLAdapter, attach to station-signal, station-broadcast, and station-schedules, then use each for sending signals, broadcasting, and scheduling.
Update to v1.0.0 and follow the new configuration format with host, user, password, database, and port.
Call await adapter.initialize() before using stationSignal.use() or similar.
Use import statements only. Ensure your project is configured for ESM (type: 'module' in package.json) or use dynamic import().
Install exact peer dependency versions: npm install station-signal@1.0.4 station-schedules@1.0.4 station-broadcast@1.0.4
Upgrade Node.js to version 18 or higher.
Use import instead of require. If you must use require, use dynamic import: const { MySQLAdapter } = await import('station-adapter-mysql');Ensure you call await adapter.initialize() after constructing the adapter.
Install the exact peer dependency version: npm install station-signal@1.0.4
Use named import: import { MySQLAdapter } from 'station-adapter-mysql';