Releases: bitscheme/mgdb-migrator
Releases · bitscheme/mgdb-migrator
v3.0.0-beta.3
Missing build step
v3.0.0-beta.2
Refactor tooling
v3.0.0-beta.1
Changelog
Tooling
- added Prettier+
API changes
Migrations are now controlled directly via up() and down()
- removed constructor params
- removed
migrateTo(version) - added
async up(version?: number)empty arg to migrate to latest version - added
async down(version: number) - added
async close()to allow closing mongodb connection
Migrations
Function signatures have changed to support mongodb 4 transactions
- changed
async up(client: MongoClient, logger: Logger) - changed
async down(client: MongoClient, logger: Logger)
Misc
- added
owarg checking - added
config.timeout