From ff89dd4f86ed1e56f215b58d4d2f41f3fa075ac5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 5 Feb 2024 13:50:43 +0000 Subject: [PATCH] chore(release): version packages --- .changeset/cuddly-peaches-look.md | 5 ----- .changeset/eleven-files-love.md | 5 ----- .changeset/odd-foxes-mix.md | 5 ----- .changeset/plenty-insects-accept.md | 5 ----- .changeset/purple-eagles-speak.md | 5 ----- .changeset/rude-eels-tap.md | 5 ----- .changeset/sharp-cows-joke.md | 5 ----- .changeset/tame-apples-lick.md | 5 ----- .changeset/tasty-bulldogs-guess.md | 6 ------ .changeset/thick-days-look.md | 6 ------ .changeset/thin-pillows-obey.md | 5 ----- .changeset/tricky-turkeys-refuse.md | 5 ----- .changeset/twelve-hairs-relate.md | 5 ----- docs/CHANGELOG.md | 7 +++++++ docs/package.json | 2 +- packages/cli/CHANGELOG.md | 19 +++++++++++++++++++ packages/cli/package.json | 2 +- packages/mysql/CHANGELOG.md | 9 +++++++++ packages/mysql/package.json | 2 +- packages/plugin-generate-js/CHANGELOG.md | 8 ++++++++ packages/plugin-generate-js/package.json | 2 +- packages/plugin-tools/CHANGELOG.md | 7 +++++++ packages/plugin-tools/package.json | 2 +- packages/postgres/CHANGELOG.md | 9 +++++++++ packages/postgres/package.json | 2 +- packages/reporter-pino/CHANGELOG.md | 12 ++++++++++++ packages/reporter-pino/package.json | 2 +- packages/storage-fs/CHANGELOG.md | 7 +++++++ packages/storage-fs/package.json | 2 +- packages/types/CHANGELOG.md | 6 ++++++ packages/types/package.json | 2 +- 31 files changed, 93 insertions(+), 76 deletions(-) delete mode 100644 .changeset/cuddly-peaches-look.md delete mode 100644 .changeset/eleven-files-love.md delete mode 100644 .changeset/odd-foxes-mix.md delete mode 100644 .changeset/plenty-insects-accept.md delete mode 100644 .changeset/purple-eagles-speak.md delete mode 100644 .changeset/rude-eels-tap.md delete mode 100644 .changeset/sharp-cows-joke.md delete mode 100644 .changeset/tame-apples-lick.md delete mode 100644 .changeset/tasty-bulldogs-guess.md delete mode 100644 .changeset/thick-days-look.md delete mode 100644 .changeset/thin-pillows-obey.md delete mode 100644 .changeset/tricky-turkeys-refuse.md delete mode 100644 .changeset/twelve-hairs-relate.md diff --git a/.changeset/cuddly-peaches-look.md b/.changeset/cuddly-peaches-look.md deleted file mode 100644 index 26aa479..0000000 --- a/.changeset/cuddly-peaches-look.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/cli': patch ---- - -Only include files when collecting migrations, i.e. it should be possible to have folders inside your migrations folder. diff --git a/.changeset/eleven-files-love.md b/.changeset/eleven-files-love.md deleted file mode 100644 index c4fbcd7..0000000 --- a/.changeset/eleven-files-love.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/types': minor ---- - -Remove the "remove" command specific reporter methods. So instead of using `onMigrationRemoveStart`, `onMigrationRemoveSuccess` and `onMigrationRemoveError` the `onMigrationStart`, `onMigrationSuccess` and `onMigrationError` methods should be used and the reporter can still format the output differently depending on the current command (which it receives in the `onInit` method). This is a BREAKING CHANGE. diff --git a/.changeset/odd-foxes-mix.md b/.changeset/odd-foxes-mix.md deleted file mode 100644 index feb3220..0000000 --- a/.changeset/odd-foxes-mix.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/cli': minor ---- - -Add support for passing the relative path to a migration file to remove from the history using the "remove" command diff --git a/.changeset/plenty-insects-accept.md b/.changeset/plenty-insects-accept.md deleted file mode 100644 index c28ddad..0000000 --- a/.changeset/plenty-insects-accept.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/cli': minor ---- - -When the `--from` or `--to` CLI options are used the given migration name (or path to migration file) must exist. This is a BREAKING CHANGE from before. The reasoning is that by forcing the migrations to exist you avoid accidentally running migrations you don't intend to, because a simple typo could have the effect that many unwanted migrations is executed so it's better to show an error if that's the case. diff --git a/.changeset/purple-eagles-speak.md b/.changeset/purple-eagles-speak.md deleted file mode 100644 index 9d1a6f7..0000000 --- a/.changeset/purple-eagles-speak.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/cli': patch ---- - -Don't dim decimal points in durations in the default reporter diff --git a/.changeset/rude-eels-tap.md b/.changeset/rude-eels-tap.md deleted file mode 100644 index 880aecd..0000000 --- a/.changeset/rude-eels-tap.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/docs': minor ---- - -Document the changes to the "remove" command, specifically that it also accepts relative file paths now diff --git a/.changeset/sharp-cows-joke.md b/.changeset/sharp-cows-joke.md deleted file mode 100644 index db9d413..0000000 --- a/.changeset/sharp-cows-joke.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/cli': patch ---- - -Set Emigrate error instance names from their respective constructor's name for consistency and correct error deserialization. diff --git a/.changeset/tame-apples-lick.md b/.changeset/tame-apples-lick.md deleted file mode 100644 index ef6ad0a..0000000 --- a/.changeset/tame-apples-lick.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/reporter-pino': minor ---- - -Adapt to the new Reporter interface, i.e. the removal of the "remove" command related methods diff --git a/.changeset/tasty-bulldogs-guess.md b/.changeset/tasty-bulldogs-guess.md deleted file mode 100644 index eb34947..0000000 --- a/.changeset/tasty-bulldogs-guess.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@emigrate/postgres': patch -'@emigrate/mysql': patch ---- - -Make sure the storage initialization crashes when a database connection can't be established diff --git a/.changeset/thick-days-look.md b/.changeset/thick-days-look.md deleted file mode 100644 index 4cea0e8..0000000 --- a/.changeset/thick-days-look.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@emigrate/reporter-pino': patch -'@emigrate/cli': patch ---- - -Show number of skipped migrations correctly in the command output diff --git a/.changeset/thin-pillows-obey.md b/.changeset/thin-pillows-obey.md deleted file mode 100644 index 2f94c63..0000000 --- a/.changeset/thin-pillows-obey.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/cli': minor ---- - -Completely rework how the "remove" command is run, this is to make it more similar to the "up" and "list" command as now it will also use the `onMigrationStart`, `onMigrationSuccess` and `onMigrationError` reporter methods when reporting the command progress. It's also in preparation for adding `--from` and `--to` CLI options for the "remove" command, similar to how the same options work for the "up" command. diff --git a/.changeset/tricky-turkeys-refuse.md b/.changeset/tricky-turkeys-refuse.md deleted file mode 100644 index 9e57a25..0000000 --- a/.changeset/tricky-turkeys-refuse.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/docs': minor ---- - -Document the changes to the "up" command's `--from` and `--to` options, specifically that they can take relative file paths and that the given migration must exist. diff --git a/.changeset/twelve-hairs-relate.md b/.changeset/twelve-hairs-relate.md deleted file mode 100644 index 46e52ba..0000000 --- a/.changeset/twelve-hairs-relate.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/cli': minor ---- - -Add support for passing relative paths to migration files as the `--from` and `--to` CLI options. This is very useful from terminals that support autocomplete for file paths. It also makes it possible to copy the path to a migration file from Emigrate's output and use that as either `--from` and `--to` directly. diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index aa71ff8..25808b5 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,5 +1,12 @@ # @emigrate/docs +## 0.3.0 + +### Minor Changes + +- f6761fe: Document the changes to the "remove" command, specifically that it also accepts relative file paths now +- 9109238: Document the changes to the "up" command's `--from` and `--to` options, specifically that they can take relative file paths and that the given migration must exist. + ## 0.2.0 ### Minor Changes diff --git a/docs/package.json b/docs/package.json index c70d3a0..8cde013 100644 --- a/docs/package.json +++ b/docs/package.json @@ -2,7 +2,7 @@ "name": "@emigrate/docs", "private": true, "type": "module", - "version": "0.2.0", + "version": "0.3.0", "scripts": { "dev": "astro dev", "start": "astro dev", diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index ea9622a..3805a52 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,24 @@ # @emigrate/cli +## 0.17.0 + +### Minor Changes + +- 0faebbe: Add support for passing the relative path to a migration file to remove from the history using the "remove" command +- 9109238: When the `--from` or `--to` CLI options are used the given migration name (or path to migration file) must exist. This is a BREAKING CHANGE from before. The reasoning is that by forcing the migrations to exist you avoid accidentally running migrations you don't intend to, because a simple typo could have the effect that many unwanted migrations is executed so it's better to show an error if that's the case. +- 1f139fd: Completely rework how the "remove" command is run, this is to make it more similar to the "up" and "list" command as now it will also use the `onMigrationStart`, `onMigrationSuccess` and `onMigrationError` reporter methods when reporting the command progress. It's also in preparation for adding `--from` and `--to` CLI options for the "remove" command, similar to how the same options work for the "up" command. +- 9109238: Add support for passing relative paths to migration files as the `--from` and `--to` CLI options. This is very useful from terminals that support autocomplete for file paths. It also makes it possible to copy the path to a migration file from Emigrate's output and use that as either `--from` and `--to` directly. + +### Patch Changes + +- f1b9098: Only include files when collecting migrations, i.e. it should be possible to have folders inside your migrations folder. +- 2f6b4d2: Don't dim decimal points in durations in the default reporter +- f2d4bb3: Set Emigrate error instance names from their respective constructor's name for consistency and correct error deserialization. +- ef45be9: Show number of skipped migrations correctly in the command output +- Updated dependencies [94ad9fe] + - @emigrate/types@0.12.0 + - @emigrate/plugin-tools@0.9.5 + ## 0.16.2 ### Patch Changes diff --git a/packages/cli/package.json b/packages/cli/package.json index dbc092e..0d38d82 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@emigrate/cli", - "version": "0.16.2", + "version": "0.17.0", "publishConfig": { "access": "public" }, diff --git a/packages/mysql/CHANGELOG.md b/packages/mysql/CHANGELOG.md index 3231cc3..6683fd2 100644 --- a/packages/mysql/CHANGELOG.md +++ b/packages/mysql/CHANGELOG.md @@ -1,5 +1,14 @@ # @emigrate/mysql +## 0.2.5 + +### Patch Changes + +- f8a5cc7: Make sure the storage initialization crashes when a database connection can't be established +- Updated dependencies [94ad9fe] + - @emigrate/types@0.12.0 + - @emigrate/plugin-tools@0.9.5 + ## 0.2.4 ### Patch Changes diff --git a/packages/mysql/package.json b/packages/mysql/package.json index 6f7e1f4..8065ec2 100644 --- a/packages/mysql/package.json +++ b/packages/mysql/package.json @@ -1,6 +1,6 @@ { "name": "@emigrate/mysql", - "version": "0.2.4", + "version": "0.2.5", "publishConfig": { "access": "public" }, diff --git a/packages/plugin-generate-js/CHANGELOG.md b/packages/plugin-generate-js/CHANGELOG.md index 12f2bed..5763e69 100644 --- a/packages/plugin-generate-js/CHANGELOG.md +++ b/packages/plugin-generate-js/CHANGELOG.md @@ -1,5 +1,13 @@ # @emigrate/plugin-generate-js +## 0.3.5 + +### Patch Changes + +- Updated dependencies [94ad9fe] + - @emigrate/types@0.12.0 + - @emigrate/plugin-tools@0.9.5 + ## 0.3.4 ### Patch Changes diff --git a/packages/plugin-generate-js/package.json b/packages/plugin-generate-js/package.json index 472c930..353c65d 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.3.4", + "version": "0.3.5", "publishConfig": { "access": "public" }, diff --git a/packages/plugin-tools/CHANGELOG.md b/packages/plugin-tools/CHANGELOG.md index 17a97f6..f4d7120 100644 --- a/packages/plugin-tools/CHANGELOG.md +++ b/packages/plugin-tools/CHANGELOG.md @@ -1,5 +1,12 @@ # @emigrate/plugin-tools +## 0.9.5 + +### Patch Changes + +- Updated dependencies [94ad9fe] + - @emigrate/types@0.12.0 + ## 0.9.4 ### Patch Changes diff --git a/packages/plugin-tools/package.json b/packages/plugin-tools/package.json index b1098ad..9fcb5c2 100644 --- a/packages/plugin-tools/package.json +++ b/packages/plugin-tools/package.json @@ -1,6 +1,6 @@ { "name": "@emigrate/plugin-tools", - "version": "0.9.4", + "version": "0.9.5", "publishConfig": { "access": "public" }, diff --git a/packages/postgres/CHANGELOG.md b/packages/postgres/CHANGELOG.md index a2955b8..16a4e5d 100644 --- a/packages/postgres/CHANGELOG.md +++ b/packages/postgres/CHANGELOG.md @@ -1,5 +1,14 @@ # @emigrate/postgres +## 0.2.5 + +### Patch Changes + +- f8a5cc7: Make sure the storage initialization crashes when a database connection can't be established +- Updated dependencies [94ad9fe] + - @emigrate/types@0.12.0 + - @emigrate/plugin-tools@0.9.5 + ## 0.2.4 ### Patch Changes diff --git a/packages/postgres/package.json b/packages/postgres/package.json index 9cfd051..8e0f028 100644 --- a/packages/postgres/package.json +++ b/packages/postgres/package.json @@ -1,6 +1,6 @@ { "name": "@emigrate/postgres", - "version": "0.2.4", + "version": "0.2.5", "publishConfig": { "access": "public" }, diff --git a/packages/reporter-pino/CHANGELOG.md b/packages/reporter-pino/CHANGELOG.md index 4d18577..cdd9baa 100644 --- a/packages/reporter-pino/CHANGELOG.md +++ b/packages/reporter-pino/CHANGELOG.md @@ -1,5 +1,17 @@ # @emigrate/reporter-pino +## 0.6.0 + +### Minor Changes + +- 86e0d52: Adapt to the new Reporter interface, i.e. the removal of the "remove" command related methods + +### Patch Changes + +- ef45be9: Show number of skipped migrations correctly in the command output +- Updated dependencies [94ad9fe] + - @emigrate/types@0.12.0 + ## 0.5.0 ### Minor Changes diff --git a/packages/reporter-pino/package.json b/packages/reporter-pino/package.json index 71cefec..0e5d88a 100644 --- a/packages/reporter-pino/package.json +++ b/packages/reporter-pino/package.json @@ -1,6 +1,6 @@ { "name": "@emigrate/reporter-pino", - "version": "0.5.0", + "version": "0.6.0", "publishConfig": { "access": "public" }, diff --git a/packages/storage-fs/CHANGELOG.md b/packages/storage-fs/CHANGELOG.md index f3548d4..d10b390 100644 --- a/packages/storage-fs/CHANGELOG.md +++ b/packages/storage-fs/CHANGELOG.md @@ -1,5 +1,12 @@ # @emigrate/storage-fs +## 0.4.5 + +### Patch Changes + +- Updated dependencies [94ad9fe] + - @emigrate/types@0.12.0 + ## 0.4.4 ### Patch Changes diff --git a/packages/storage-fs/package.json b/packages/storage-fs/package.json index d763f26..964d713 100644 --- a/packages/storage-fs/package.json +++ b/packages/storage-fs/package.json @@ -1,6 +1,6 @@ { "name": "@emigrate/storage-fs", - "version": "0.4.4", + "version": "0.4.5", "publishConfig": { "access": "public" }, diff --git a/packages/types/CHANGELOG.md b/packages/types/CHANGELOG.md index 78f9264..cb9b699 100644 --- a/packages/types/CHANGELOG.md +++ b/packages/types/CHANGELOG.md @@ -1,5 +1,11 @@ # @emigrate/types +## 0.12.0 + +### Minor Changes + +- 94ad9fe: Remove the "remove" command specific reporter methods. So instead of using `onMigrationRemoveStart`, `onMigrationRemoveSuccess` and `onMigrationRemoveError` the `onMigrationStart`, `onMigrationSuccess` and `onMigrationError` methods should be used and the reporter can still format the output differently depending on the current command (which it receives in the `onInit` method). This is a BREAKING CHANGE. + ## 0.11.0 ### Minor Changes diff --git a/packages/types/package.json b/packages/types/package.json index 116b525..a73d7e5 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@emigrate/types", - "version": "0.11.0", + "version": "0.12.0", "publishConfig": { "access": "public" },