- @sam-myers: Fix bug where an empty oplog would cause a crash when printing
Readme update to say node 18 is required.
Added a modification of @prashantswami PR Replace Lodash with Smaller Modular Packages for Improved Performance and to remove security vulnerabilities replaces the lone lodash
dependency with smaller, more focused packages
to also address security issues.
- Rebased against the repo that this project is forked from,
seppevs/migrate-mongo
- Rebase is against v11.0.0
- Includes support for Mongo 7
- @sam-myers: Add oplog logging to print oplog timestamps, which is useful for MongoDB Atlas point-in-time restores. In the event of a faulty migration, this will allow restoration of the database to the exact last possible moment via the Atlas UI.
Breaking Changes
- Node 18 is now the baseline engine
Added a modification of @bdcorps PR Add custom migration file option to up which adds the --migration-file
flag to the up
and down
commands allowing you to specify a single migration file to run out-of-band.
See README.md in the up
and down
sections for usage info.
Fix bug where you cannot create a migration if you did not have the config option moduleSystem
defined.
By default moduleSystem
is commonjs
.
- Rebased against the repo that this project is forked from,
seppevs/migrate-mongo
- This mainly adds ESM support
Breaking:
- Moves the
mongodb
dependency to a peer dependency, andmongodb
is no longer included with this package
- For
migrationFileExtension
using a value of.ts
, a typescript template file will be used that comes with proper types
- Add soft locks PR to prevent multiple migration execution by @daveboulard
Update readme, docs in the samples dir
breaking change:
- The
callback
parameter is no longer supported and has been removed. - The baseline
node
engine is>=12
from>=8
new:
- A
context
function can now be specified in the config that will pass context data to each migration execution as the third parameter. See readme for more details.
Update package.json
repo url
Update the readme to include a URL to the mongo driver options
Update dependencies to latest versions where possible and address npm audit
issues.
- Update
mongodb
to 4.3.0
Applied the following PRs from the seppevs/migrate-mongo
project: