Commit graph

7 commits

Author SHA1 Message Date
ef45be9233 fix(reporters): show number of skipped migrations correctly in command output 2024-02-05 14:17:30 +01:00
86e0d52e5c feat(reporter-pino): adapt to the new Reporter interface 2024-01-26 16:09:49 +01:00
a4da353d5a feat(cli): add graceful process abort
Using an AbortSignal and Promise.race we abandon running migrations that take longer to complete after the process is aborted than the given abortRespite period
2024-01-22 11:30:06 +01:00
cae6d11d53
feat(types): move Emigrate types to separate package and improve types (#41)
* feat(types): move Emigrate types to separate package

Also refactor the types to use discriminating unions for easier error handling and such.
Errors passed to storage plugins should now be serialized and storage plugins are expected to return already serialized errors on failed history entries.

* fix(mysql): handle the new type changes

* fix(storage-fs): handle the new type changes

* feat(cli): better error handling and types

Adapt to the new types from the @emigrate/types package, like discriminating union types and serializing and deserializing errors
2023-12-15 13:03:35 +01:00
1434be5d5e
feat(reporter): print Emigrate CLI's version number and relative paths to migrations (#39)
* feat(reporter-default): print CLI version number

* feat(reporter-default): print relative paths to migrations instead of only the file names

This makes the output clickable in most shells

* feat(reporter-pino): include the Emigrate CLI version in each log
2023-12-14 13:45:02 +01:00
09181f284d feat(reporter-pino): don't log the full metadata object for each migration 2023-12-12 15:25:22 +01:00
3619d86750 feat(reporter-pino): first version of the package 2023-12-07 14:36:30 +01:00