A Liquibase-inspired MongoDB migration tool for Node.js, version 3.0.1. It provides a simple way to apply sequential changes to MongoDB with tracking in a 'databasechangelog' collection. Unlike other migration libraries, it focuses on synchronous processing of change sets and automatic detection of modifications via md5 checksums. Suitable for Node >=10, with basic async/await support. Release cadence is low, maintained sporadically.
npm install mongodb-changelogNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Imports the changelog function, configures a MongoDB connection, defines two migration tasks, and applies them sequentially.
Ensure your 'operation' function returns a Promise if it performs async work. For sync operations, simply return a value.
Upgrade Node.js to >=10 or pin to an older version of the package (e.g., 2.x).
Plan your tasks to be idempotent and handle errors within each operation if needed.
No fix available; be aware of the hardcoded collection name.
Use require('mongodb-changelog') instead of import.Set mongoUrl with credentials, e.g., mongodb://user:pass@localhost:27017/test.
Run 'npm install mongodb-changelog' in your project directory.
No dependency data recorded yet.