diff --git a/.changeset/angry-chicken-thank.md b/.changeset/angry-chicken-thank.md deleted file mode 100644 index 52bed61..0000000 --- a/.changeset/angry-chicken-thank.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/cli': patch ---- - -Return a non zero exit code in case a migration fails (or for a dry-run if there's a failed migration in the history) diff --git a/.changeset/brown-cheetahs-notice.md b/.changeset/brown-cheetahs-notice.md deleted file mode 100644 index 2f09a3e..0000000 --- a/.changeset/brown-cheetahs-notice.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/plugin-tools': minor ---- - -Pass the current command to the reporter diff --git a/.changeset/cold-points-rule.md b/.changeset/cold-points-rule.md deleted file mode 100644 index 8b78a7d..0000000 --- a/.changeset/cold-points-rule.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/cli': minor ---- - -Show any failed migration from the history in the "up" dry-run output diff --git a/.changeset/cool-badgers-allow.md b/.changeset/cool-badgers-allow.md deleted file mode 100644 index ac42a12..0000000 --- a/.changeset/cool-badgers-allow.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/cli': patch ---- - -The default reporter now prints the full command output once a command is done (in interactive mode) so that the full output is visible no matter the size of the terminal window. diff --git a/.changeset/fast-shirts-press.md b/.changeset/fast-shirts-press.md deleted file mode 100644 index 5719861..0000000 --- a/.changeset/fast-shirts-press.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/cli': minor ---- - -Enable source maps when running the Emigrate CLI diff --git a/.changeset/four-zoos-kiss.md b/.changeset/four-zoos-kiss.md deleted file mode 100644 index bf71938..0000000 --- a/.changeset/four-zoos-kiss.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/cli': minor ---- - -Implement the "list" command for listing the full migration history and any pending migrations diff --git a/.changeset/giant-files-serve.md b/.changeset/giant-files-serve.md deleted file mode 100644 index 7d4d691..0000000 --- a/.changeset/giant-files-serve.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/cli': patch ---- - -Don't pass the EmigrateError instance to the storage for each failed migration but only the real cause. This is so that errors from failed migrations are not wrapped twice in EmigrateError instances when presenting failed migrations during an "up" dry-run or the "list" command. diff --git a/.changeset/gold-eggs-argue.md b/.changeset/gold-eggs-argue.md deleted file mode 100644 index 6fd0b45..0000000 --- a/.changeset/gold-eggs-argue.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@emigrate/plugin-tools': minor -'@emigrate/cli': minor ---- - -Move storages and reporters out from the plugin option into their own separate options (i.e. "--reporter" and "--storage" respectively). This makes it easier to change the interfaces of storages and reporters, and it's also more similar to other tools. diff --git a/.changeset/gorgeous-falcons-train.md b/.changeset/gorgeous-falcons-train.md deleted file mode 100644 index 90e44bd..0000000 --- a/.changeset/gorgeous-falcons-train.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/cli': minor ---- - -Add "reporter" option for the "new" command and use it for improved logging diff --git a/.changeset/happy-yaks-impress.md b/.changeset/happy-yaks-impress.md deleted file mode 100644 index 8e2f02e..0000000 --- a/.changeset/happy-yaks-impress.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/cli': minor ---- - -Improve the looks of the "up" dry-run default output by showing pending migrations in a different color diff --git a/.changeset/heavy-lobsters-attack.md b/.changeset/heavy-lobsters-attack.md deleted file mode 100644 index 204aa3b..0000000 --- a/.changeset/heavy-lobsters-attack.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/cli': patch ---- - -Ignore migration history entries not belonging to the current migration directory when considering what to list or execute. This way a project can have multiple folders with different kind of migration sets or multiple projects can share the same migration history without any of them conflicting or blocking each other in case of failed migrations. diff --git a/.changeset/heavy-toes-cheer.md b/.changeset/heavy-toes-cheer.md deleted file mode 100644 index 519d97d..0000000 --- a/.changeset/heavy-toes-cheer.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/storage-fs': minor ---- - -Adapt to the new plugin structure and rename from "@emigrate/plugin-storage-fs" to just "@emigrate/storage-fs" diff --git a/.changeset/large-berries-marry.md b/.changeset/large-berries-marry.md deleted file mode 100644 index 0be0d3d..0000000 --- a/.changeset/large-berries-marry.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/plugin-tools': patch ---- - -Fix loading of lazy loaded plugins with default exports diff --git a/.changeset/olive-wolves-remember.md b/.changeset/olive-wolves-remember.md deleted file mode 100644 index 9cfe43f..0000000 --- a/.changeset/olive-wolves-remember.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/cli': patch ---- - -Only load the JavaScript loader plugin if necessary diff --git a/.changeset/shiny-penguins-kneel.md b/.changeset/shiny-penguins-kneel.md deleted file mode 100644 index 2010d8d..0000000 --- a/.changeset/shiny-penguins-kneel.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/storage-fs': minor ---- - -Serialize errors recursively if they have a "cause" set to an Error instance diff --git a/.changeset/silent-boats-speak.md b/.changeset/silent-boats-speak.md deleted file mode 100644 index db5946e..0000000 --- a/.changeset/silent-boats-speak.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/plugin-tools': minor ---- - -Include "@emigrate/" in the plugin prefix list, i.e. when searching for the plugin "blaha" it will look for the packages "blaha", "@emigrate/blaha", "@emigrate/plugin-blaha" and "emigrate-plugin-blaha" and use the first of them that exists diff --git a/.changeset/silly-walls-raise.md b/.changeset/silly-walls-raise.md deleted file mode 100644 index d89dad5..0000000 --- a/.changeset/silly-walls-raise.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@emigrate/plugin-tools': minor -'@emigrate/storage-fs': minor -'@emigrate/cli': minor ---- - -Implement the "remove" command for removing migration entries from the history diff --git a/.changeset/slimy-jars-know.md b/.changeset/slimy-jars-know.md deleted file mode 100644 index 646e2b6..0000000 --- a/.changeset/slimy-jars-know.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/plugin-tools': patch ---- - -Keep upper cased letters in migration file names by default diff --git a/.changeset/smart-colts-fix.md b/.changeset/smart-colts-fix.md deleted file mode 100644 index 2ec6858..0000000 --- a/.changeset/smart-colts-fix.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/cli': patch ---- - -Remove the double period before the file extension when generating new migration files diff --git a/.changeset/three-ravens-cheat.md b/.changeset/three-ravens-cheat.md deleted file mode 100644 index 71001a3..0000000 --- a/.changeset/three-ravens-cheat.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/cli': minor ---- - -Include Emigrate error codes in the error names diff --git a/.changeset/twelve-mice-fetch.md b/.changeset/twelve-mice-fetch.md deleted file mode 100644 index d147c94..0000000 --- a/.changeset/twelve-mice-fetch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/cli': minor ---- - -Allow running commands no matter of the provided command's letter casing diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index a0ead20..39eb0dd 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,35 @@ # @emigrate/cli +## 0.5.0 + +### Minor Changes + +- 8347fc1: Show any failed migration from the history in the "up" dry-run output +- cf17e48: Enable source maps when running the Emigrate CLI +- 53cdb23: Implement the "list" command for listing the full migration history and any pending migrations +- 8e87ade: Move storages and reporters out from the plugin option into their own separate options (i.e. "--reporter" and "--storage" respectively). This makes it easier to change the interfaces of storages and reporters, and it's also more similar to other tools. +- da1eee3: Add "reporter" option for the "new" command and use it for improved logging +- 8347fc1: Improve the looks of the "up" dry-run default output by showing pending migrations in a different color +- d8a6a24: Implement the "remove" command for removing migration entries from the history +- c68c6f0: Include Emigrate error codes in the error names +- 8f623ef: Allow running commands no matter of the provided command's letter casing + +### Patch Changes + +- 8347fc1: Return a non zero exit code in case a migration fails (or for a dry-run if there's a failed migration in the history) +- 570bd1f: The default reporter now prints the full command output once a command is done (in interactive mode) so that the full output is visible no matter the size of the terminal window. +- 8347fc1: Don't pass the EmigrateError instance to the storage for each failed migration but only the real cause. This is so that errors from failed migrations are not wrapped twice in EmigrateError instances when presenting failed migrations during an "up" dry-run or the "list" command. +- 9447d28: Ignore migration history entries not belonging to the current migration directory when considering what to list or execute. This way a project can have multiple folders with different kind of migration sets or multiple projects can share the same migration history without any of them conflicting or blocking each other in case of failed migrations. +- b57c86e: Only load the JavaScript loader plugin if necessary +- 1940885: Remove the double period before the file extension when generating new migration files +- Updated dependencies [5e8572b] +- Updated dependencies [8e87ade] +- Updated dependencies [60ae3b8] +- Updated dependencies [672fae1] +- Updated dependencies [d8a6a24] +- Updated dependencies [acb0b4f] + - @emigrate/plugin-tools@0.4.0 + ## 0.4.0 ### Minor Changes diff --git a/packages/cli/package.json b/packages/cli/package.json index aa64880..9080282 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@emigrate/cli", - "version": "0.4.0", + "version": "0.5.0", "publishConfig": { "access": "public" }, diff --git a/packages/plugin-generate-js/CHANGELOG.md b/packages/plugin-generate-js/CHANGELOG.md index 4b92e96..87ecf67 100644 --- a/packages/plugin-generate-js/CHANGELOG.md +++ b/packages/plugin-generate-js/CHANGELOG.md @@ -1,5 +1,17 @@ # @emigrate/plugin-generate-js +## 0.2.2 + +### Patch Changes + +- Updated dependencies [5e8572b] +- Updated dependencies [8e87ade] +- Updated dependencies [60ae3b8] +- Updated dependencies [672fae1] +- Updated dependencies [d8a6a24] +- Updated dependencies [acb0b4f] + - @emigrate/plugin-tools@0.4.0 + ## 0.2.1 ### Patch Changes diff --git a/packages/plugin-generate-js/package.json b/packages/plugin-generate-js/package.json index c515563..f401996 100644 --- a/packages/plugin-generate-js/package.json +++ b/packages/plugin-generate-js/package.json @@ -1,6 +1,6 @@ { "name": "@emigrate/plugin-generate-js", - "version": "0.2.1", + "version": "0.2.2", "publishConfig": { "access": "public" }, diff --git a/packages/plugin-tools/CHANGELOG.md b/packages/plugin-tools/CHANGELOG.md index 8007182..0cd5b8b 100644 --- a/packages/plugin-tools/CHANGELOG.md +++ b/packages/plugin-tools/CHANGELOG.md @@ -1,5 +1,19 @@ # @emigrate/plugin-tools +## 0.4.0 + +### Minor Changes + +- 5e8572b: Pass the current command to the reporter +- 8e87ade: Move storages and reporters out from the plugin option into their own separate options (i.e. "--reporter" and "--storage" respectively). This makes it easier to change the interfaces of storages and reporters, and it's also more similar to other tools. +- 672fae1: Include "@emigrate/" in the plugin prefix list, i.e. when searching for the plugin "blaha" it will look for the packages "blaha", "@emigrate/blaha", "@emigrate/plugin-blaha" and "emigrate-plugin-blaha" and use the first of them that exists +- d8a6a24: Implement the "remove" command for removing migration entries from the history + +### Patch Changes + +- 60ae3b8: Fix loading of lazy loaded plugins with default exports +- acb0b4f: Keep upper cased letters in migration file names by default + ## 0.3.0 ### Minor Changes diff --git a/packages/plugin-tools/package.json b/packages/plugin-tools/package.json index 4b38bc9..c48ef20 100644 --- a/packages/plugin-tools/package.json +++ b/packages/plugin-tools/package.json @@ -1,6 +1,6 @@ { "name": "@emigrate/plugin-tools", - "version": "0.3.0", + "version": "0.4.0", "publishConfig": { "access": "public" }, diff --git a/packages/storage-fs/CHANGELOG.md b/packages/storage-fs/CHANGELOG.md index 284bf6a..8ec7566 100644 --- a/packages/storage-fs/CHANGELOG.md +++ b/packages/storage-fs/CHANGELOG.md @@ -1,5 +1,23 @@ # @emigrate/storage-fs +## 0.2.0 + +### Minor Changes + +- 7d8ac9b: Adapt to the new plugin structure and rename from "@emigrate/plugin-storage-fs" to just "@emigrate/storage-fs" +- e79dd4b: Serialize errors recursively if they have a "cause" set to an Error instance +- d8a6a24: Implement the "remove" command for removing migration entries from the history + +### Patch Changes + +- Updated dependencies [5e8572b] +- Updated dependencies [8e87ade] +- Updated dependencies [60ae3b8] +- Updated dependencies [672fae1] +- Updated dependencies [d8a6a24] +- Updated dependencies [acb0b4f] + - @emigrate/plugin-tools@0.4.0 + ## 0.1.1 ### Patch Changes diff --git a/packages/storage-fs/package.json b/packages/storage-fs/package.json index fb6f7dc..fbb406d 100644 --- a/packages/storage-fs/package.json +++ b/packages/storage-fs/package.json @@ -1,6 +1,6 @@ { "name": "@emigrate/storage-fs", - "version": "0.1.1", + "version": "0.2.0", "publishConfig": { "access": "public" },