A generic Node.js migration tool (v3.1.0) for migrations with logic and queries, not just database schema changes. It supports development-mode scripts that re-run on changes, dependency-based ordering across branches, an API and CLI, and automatic output capture. Unlike database-specific tools (e.g., Knex, Sequelize), Migsi is unopinionated about backends. It requires Node.js 6+, and uses native features on Node 8+. Ships TypeScript type definitions.
npm install migsiNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic example using Migsi with a file-based store to run all pending migrations.
Upgrade to Node.js 8+ to avoid Babel usage.
Use the programmatic API (migsi(config)) instead of CLI commands.
Use store type 'memory' for ephemeral envs, or implement a custom async store.
Always run with --production or set isDevelopment: false in migration script metadata.
Manually ensure no cyclic dependencies among migration scripts.
Run 'npm install migsi' and use correct import: import migsi from 'migsi'
Use 'import migsi from 'migsi'' (ESM) or 'const migsi = require('migsi')' (CJS). Do not use .default.Include config.store with 'type' (e.g., 'file') and 'path'.
Ensure migration script exports a function that returns a Promise or uses async.
No dependency data recorded yet.