A data storage-agnostic migration library (v1.0.0) that provides a simple, flexible migration framework without built-in storage adapters. Users implement StateStorage and Migration interfaces for their specific database or storage system. The library supports up, down, up-to-latest, rollback-last-batch, and rollback-all operations. It is ideal for projects needing a lightweight, custom migration solution, but requires manual implementation of state tracking and migration logic. Released as a single stable version, it ships TypeScript types and is ESM-only.
npm install agnostic-migratorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage: implementing custom StateStorage and Migration, then running and rolling back migrations.
Use 'import' syntax or set 'type': 'module' in package.json.
Provide your own storage (e.g., database table) and migration logic.
Ensure migrations array is in the order you want to run them.
Be explicit about identifier to avoid unexpected migrations.
Run 'npm install agnostic-migrator' and ensure 'type': 'module' or '.js' extension in imports.
Switch to dynamic import() or set 'type': 'module' and use import statements.
Use 'import * as migrator from 'agnostic-migrator'' or named import.
No dependency data recorded yet.