npm umzug 3.0.0-beta.13

latest releases: 3.8.2, 3.8.1, 3.8.0...
4 years ago

Breaking change to the beta tag: beforeAll/afterAll are replaced by beforeCommand/afterCommand, which also run on executed and pending commands too now. For hooks that should only run before migrations are applied/reverted, use:

umzug.on('beforeCommand', ev => {
  if (ev.command !== 'up' && ev.command !== 'down') {
    return
  }
  // ...whatever you were doing in beforeAll/afterAll before
})

v3.0.0-beta.12...v3.0.0-beta.13

Don't miss a new umzug release

NewReleases is sending notifications on new releases.