mycodeself / mongo-migrate-ts

Run mongodb migrations easy from TypeScript
MIT License
87 stars 28 forks source link

Migrations exception handling #83

Closed gabrielrezk closed 1 year ago

gabrielrezk commented 1 year ago

Hello, first of all, thank you for developing this package it is very useful and easy to use.

I've mostly used migrate-mongo, but now I'm working on a TypeScript project and decided to try this out.

Something I found is that if an error occurs during for instance the down process of migration, the error case of this is not handled by the package, and the CLI gets stuck.

E.g. Screenshot 2023-03-30 at 11 48 32

I've added the --unhandled-rejections=strict flag and it seems like a workaround, but not sure if it is the best way to handle such cases.

Thanks in advance!

mycodeself commented 1 year ago

:tada: This issue has been resolved in version 1.1.4 :tada:

The release is available on:

Your semantic-release bot :package::rocket: