Skip to content

Releases: bitscheme/mgdb-migrator

v3.0.0-beta.3

14 Nov 13:51

Choose a tag to compare

v3.0.0-beta.3 Pre-release
Pre-release

Missing build step

v3.0.0-beta.2

14 Nov 00:56

Choose a tag to compare

v3.0.0-beta.2 Pre-release
Pre-release

Refactor tooling

v3.0.0-beta.1

18 Apr 19:14

Choose a tag to compare

v3.0.0-beta.1 Pre-release
Pre-release

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 ow arg checking
  • added config.timeout