github-actions[bot]
3c54917c35
chore(release): version packages
2023-12-28 09:20:03 +01:00
9a605a85f1
feat: add support for TypeScript migration files
...
And add a guide to the documentation on how to set it up for NodeJS
2023-12-20 15:27:03 +01:00
github-actions[bot]
59eb90b8cb
chore(release): version packages
2023-12-20 11:24:17 +01:00
9f91bdcfa0
feat(cli): add the --import option for importing modules/packages before commands are run
...
Can for instance be used to load environment variables using Dotenv
2023-12-20 11:08:27 +01:00
e6e4433018
feat(cli): rename extension short option from -e to -x
...
BREAKING CHANGE: if you've been using the `-e` short option you should change it to `-x` or use the long option name `--extension`
2023-12-20 09:27:43 +01:00
f9a16d87a1
feat: add color option to CLI and configuration file
...
The option is used to force enable/disable color output and is passed to the reporter which should respect it
2023-12-20 09:11:01 +01:00
github-actions[bot]
e8e35215be
chore(release): version packages
2023-12-19 14:51:40 +01:00
a6c6e6dc78
fix(types): forgot about the bun key in one package
2023-12-19 14:49:29 +01:00
github-actions[bot]
e67ce0de1e
chore(release): version packages
2023-12-19 14:41:04 +01:00
3a8b06b3b1
fix: revert usage of bun key in package.json exports
2023-12-19 14:29:42 +01:00
github-actions[bot]
747f9dbddb
chore(release): version packages
2023-12-19 14:09:15 +01:00
ce6946cac4
feat: support for Bun
2023-12-19 14:06:00 +01:00
github-actions[bot]
c284cc48d1
chore(release): version packages
2023-12-19 13:33:11 +01:00
17c4723bb8
feat(postgres): implement the first version of the PostgreSQL plugin
2023-12-19 13:27:57 +01:00
987374dbd5
chore(release): version packages ( #43 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-15 14:43:10 +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
afe56594c5
chore(release): version packages ( #40 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-15 12:55:48 +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
480796e95b
chore(release): version packages ( #36 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-14 13:29:02 +01:00
bad4e252f3
feat(reporters): pass the CLI's version number to reporters ( #38 )
2023-12-14 13:11:55 +01:00
960ce08674
feat(cli): add --help and --version options to main command ( #35 )
2023-12-14 10:49:54 +01:00
af360ca6a4
chore(release): version packages ( #31 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-12 16:06:44 +01:00
5307e87242
fix(list): don't log info about locked migrations as it doesn't happen in this command
2023-12-12 15:38:24 +01:00
bc33e63e3e
feat(reporter-default): improve error logging by logging all own properties of the errors
2023-12-12 15:36:30 +01:00
a79f8e8e37
feat(plugin-tools): improve error serialization and let each storage plugin serialize errors themselves
2023-12-12 15:32:58 +01:00
09181f284d
feat(reporter-pino): don't log the full metadata object for each migration
2023-12-12 15:25:22 +01:00
3db7e995d7
chore(release): version packages ( #30 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-08 13:10:41 +01:00
703e6f028a
feat(storage): add "end" method to storage for cleaning up resources when commands are finished
2023-12-08 13:01:46 +01:00
334e2099bb
feat(mysql): implement the first version of the MySQL plugin package
2023-12-08 13:01:45 +01:00
a8db22680e
feat(up): handle storage initialization errors and present missing loader errors in a better way
2023-12-08 13:01:45 +01:00
c1d55978d7
feat(up): serialize errors before passing them to storage plugins
2023-12-08 13:01:45 +01:00
3b2b21f729
chore(release): version packages ( #28 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-08 11:14:45 +01:00
3619d86750
feat(reporter-pino): first version of the package
2023-12-07 14:36:30 +01:00
d916043061
fix(plugin-tools): load plugins correctly when specified as strings
2023-12-07 14:34:47 +01:00
20ed2e8a50
fix(plugin-tools): prioritize prefixed plugin names over non-prefixed names when importing plugins
...
This is to not accidentally importing for instance the "pino" package if reporter is set to just "pino" and instead import the "@emigrate/reporter-pino" package if that's the case.
2023-12-07 14:33:01 +01:00
871fb47aac
chore(release): version packages ( #19 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-24 16:04:55 +01:00
672fae1729
feat(plugins): include "@emigrate/" in the plugin search prefix list
2023-11-24 16:01:45 +01:00
acb0b4f195
fix(new): keep upper cased letters in migration file names by default
2023-11-24 15:55:32 +01:00
d8a6a2428a
feat(remove): implement the "remove" command for removing migrations from the history
2023-11-24 15:45:17 +01:00
9447d28ad8
fix(history): don't let different migration directories interfere with each other even though they share storage
2023-11-24 11:10:01 +01:00
cf17e48f25
feat(cli): enable source maps
2023-11-24 10:55:58 +01:00
8347fc1fa4
feat(up): improve error handling and presentation
2023-11-22 15:47:17 +01:00
b57c86eaab
fix(up): only load the JavaScript loader plugin if necessary
2023-11-22 15:40:53 +01:00
60ae3b8c82
fix(plugin-tools): load lazy plugins with default exports correctly
2023-11-22 15:35:30 +01:00
c68c6f0490
feat(cli): include Emigrate error codes in error names
2023-11-22 15:34:05 +01:00
570bd1fa2b
feat(cli): make the default reporter print the full command output when done
...
In interactive mode the output is normally clipped to the number of lines that the current terminal window can show without scrolling
so to remedy that the full command output is now printed to the console when done
2023-11-22 14:35:38 +01:00
8f623efd45
feat(cli): ignore letter casing of commands
2023-11-22 14:35:37 +01:00
53cdb23237
feat(cli): implement the "list" command for listing migration history and pending migrations
2023-11-22 14:35:37 +01:00
e79dd4bca9
feat(storage-fs): serialize errors recursively if "cause" is an Error instance
2023-11-22 14:35:37 +01:00
da1eee3c75
feat(cli): add "reporter" option for the "new" command for improved logging
2023-11-22 14:35:35 +01:00