diff --git a/.changeset/angry-houses-chew.md b/.changeset/angry-houses-chew.md deleted file mode 100644 index d335e53..0000000 --- a/.changeset/angry-houses-chew.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/plugin-tools': patch ---- - -Add missing types and utility methods related to the new "loader" plugins diff --git a/.changeset/blue-steaks-hide.md b/.changeset/blue-steaks-hide.md deleted file mode 100644 index 00e89e8..0000000 --- a/.changeset/blue-steaks-hide.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/cli': minor ---- - -Support migration functions using the old NodeJS callback style API, i.e. accepting a callback as a single parameter which in turns takes any error as its first parameter (any other parameters are ignored) diff --git a/.changeset/clean-balloons-run.md b/.changeset/clean-balloons-run.md deleted file mode 100644 index ee9a929..0000000 --- a/.changeset/clean-balloons-run.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/cli': patch ---- - -Don't run any migrations if there's a failed migration in the migration history diff --git a/.changeset/cold-nails-film.md b/.changeset/cold-nails-film.md deleted file mode 100644 index 9dfd189..0000000 --- a/.changeset/cold-nails-film.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@emigrate/plugin-generate-js': patch -'@emigrate/plugin-tools': patch -'@emigrate/cli': patch ---- - -Specify files to include in published NPM package diff --git a/.changeset/eight-baboons-press.md b/.changeset/eight-baboons-press.md deleted file mode 100644 index cbae31a..0000000 --- a/.changeset/eight-baboons-press.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/plugin-tools': minor ---- - -Add the convenience functions `getOrLoadPlugin` and `getOrLoadPlugins` diff --git a/.changeset/fuzzy-panthers-bake.md b/.changeset/fuzzy-panthers-bake.md deleted file mode 100644 index 052c0c1..0000000 --- a/.changeset/fuzzy-panthers-bake.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/cli': minor ---- - -Handle file extensions with or without a leading period, i.e. `emigrate new -e .js ...` is now the same as `emigrate new -e js ...` diff --git a/.changeset/happy-toys-smash.md b/.changeset/happy-toys-smash.md deleted file mode 100644 index 43cfab3..0000000 --- a/.changeset/happy-toys-smash.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/cli': minor ---- - -Implement the "up" command with support for "storage" and "loader" plugins diff --git a/.changeset/healthy-bulldogs-sell.md b/.changeset/healthy-bulldogs-sell.md deleted file mode 100644 index 824c535..0000000 --- a/.changeset/healthy-bulldogs-sell.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/cli': minor ---- - -Rename the "emigrate" package to "@emigrate/cli" to mimic other tools diff --git a/.changeset/olive-phones-heal.md b/.changeset/olive-phones-heal.md deleted file mode 100644 index 0c4474c..0000000 --- a/.changeset/olive-phones-heal.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/plugin-storage-fs': minor ---- - -Implement a first version of the File System Storage plugin for simple migration setups diff --git a/.changeset/small-snakes-explode.md b/.changeset/small-snakes-explode.md deleted file mode 100644 index 32a4c56..0000000 --- a/.changeset/small-snakes-explode.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/plugin-tools': minor ---- - -Add more properties to the MigrationMetadata type to ease writing "loader" plugins diff --git a/.changeset/spicy-seahorses-listen.md b/.changeset/spicy-seahorses-listen.md deleted file mode 100644 index 4979c11..0000000 --- a/.changeset/spicy-seahorses-listen.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/plugin-tools': minor ---- - -Prepare for supporting "loader" plugins. A loader plugin is used to transform a migration file of a given type (file extension) to a function that will execute the actual migration. diff --git a/.changeset/strange-bags-complain.md b/.changeset/strange-bags-complain.md deleted file mode 100644 index 5327cf5..0000000 --- a/.changeset/strange-bags-complain.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/cli': minor ---- - -Improve error handling by making more granular custom Error instances diff --git a/.changeset/tame-fans-clap.md b/.changeset/tame-fans-clap.md deleted file mode 100644 index de23cf4..0000000 --- a/.changeset/tame-fans-clap.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/cli': minor ---- - -Implement a default "loader" plugin for JavaScript files (supports `.js`, `.cjs` and `.mjs` file extensions) diff --git a/.changeset/unlucky-files-swim.md b/.changeset/unlucky-files-swim.md deleted file mode 100644 index 80917b1..0000000 --- a/.changeset/unlucky-files-swim.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emigrate/cli': patch ---- - -Fix a logical error that didn't allow creating new migration files with only the "extension" option diff --git a/.changeset/yellow-students-compare.md b/.changeset/yellow-students-compare.md deleted file mode 100644 index c851311..0000000 --- a/.changeset/yellow-students-compare.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@emigrate/plugin-generate-js': minor -'@emigrate/plugin-tools': minor -'@emigrate/cli': minor ---- - -Simplify plugin interfaces by getting rid of the "type" string, in preparation for having packages that contains multiple different plugins diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index 952a72b..8b86eda 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,30 @@ # emigrate +## 0.3.0 + +### Minor Changes + +- 8dadfe9: Support migration functions using the old NodeJS callback style API, i.e. accepting a callback as a single parameter which in turns takes any error as its first parameter (any other parameters are ignored) +- a058ebf: Handle file extensions with or without a leading period, i.e. `emigrate new -e .js ...` is now the same as `emigrate new -e js ...` +- b56794a: Implement the "up" command with support for "storage" and "loader" plugins +- 0b78d5c: Rename the "emigrate" package to "@emigrate/cli" to mimic other tools +- 30a448b: Improve error handling by making more granular custom Error instances +- 3b36b3d: Implement a default "loader" plugin for JavaScript files (supports `.js`, `.cjs` and `.mjs` file extensions) +- 9f5abf7: Simplify plugin interfaces by getting rid of the "type" string, in preparation for having packages that contains multiple different plugins + +### Patch Changes + +- 46b9104: Don't run any migrations if there's a failed migration in the migration history +- 3e0ff07: Specify files to include in published NPM package +- a1debba: Fix a logical error that didn't allow creating new migration files with only the "extension" option +- Updated dependencies [1799b6e] +- Updated dependencies [3e0ff07] +- Updated dependencies [23a323c] +- Updated dependencies [62bd5a4] +- Updated dependencies [81fde2e] +- Updated dependencies [9f5abf7] + - @emigrate/plugin-tools@0.2.0 + ## 0.2.1 ### Patch Changes diff --git a/packages/cli/package.json b/packages/cli/package.json index 33e24cc..d433a5d 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@emigrate/cli", - "version": "0.2.1", + "version": "0.3.0", "publishConfig": { "access": "public" }, diff --git a/packages/plugin-generate-js/CHANGELOG.md b/packages/plugin-generate-js/CHANGELOG.md index dbe1b5b..73a0af2 100644 --- a/packages/plugin-generate-js/CHANGELOG.md +++ b/packages/plugin-generate-js/CHANGELOG.md @@ -1,5 +1,22 @@ # @emigrate/plugin-generate-js +## 0.2.0 + +### Minor Changes + +- 9f5abf7: Simplify plugin interfaces by getting rid of the "type" string, in preparation for having packages that contains multiple different plugins + +### Patch Changes + +- 3e0ff07: Specify files to include in published NPM package +- Updated dependencies [1799b6e] +- Updated dependencies [3e0ff07] +- Updated dependencies [23a323c] +- Updated dependencies [62bd5a4] +- Updated dependencies [81fde2e] +- Updated dependencies [9f5abf7] + - @emigrate/plugin-tools@0.2.0 + ## 0.1.1 ### Patch Changes diff --git a/packages/plugin-generate-js/package.json b/packages/plugin-generate-js/package.json index 97e324c..a2a3953 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.1.1", + "version": "0.2.0", "publishConfig": { "access": "public" }, diff --git a/packages/plugin-storage-fs/CHANGELOG.md b/packages/plugin-storage-fs/CHANGELOG.md new file mode 100644 index 0000000..3a79eff --- /dev/null +++ b/packages/plugin-storage-fs/CHANGELOG.md @@ -0,0 +1,17 @@ +# @emigrate/plugin-storage-fs + +## 0.1.0 + +### Minor Changes + +- 0c49249: Implement a first version of the File System Storage plugin for simple migration setups + +### Patch Changes + +- Updated dependencies [1799b6e] +- Updated dependencies [3e0ff07] +- Updated dependencies [23a323c] +- Updated dependencies [62bd5a4] +- Updated dependencies [81fde2e] +- Updated dependencies [9f5abf7] + - @emigrate/plugin-tools@0.2.0 diff --git a/packages/plugin-storage-fs/package.json b/packages/plugin-storage-fs/package.json index d1bfa52..1e8a276 100644 --- a/packages/plugin-storage-fs/package.json +++ b/packages/plugin-storage-fs/package.json @@ -1,6 +1,6 @@ { "name": "@emigrate/plugin-storage-fs", - "version": "0.0.0", + "version": "0.1.0", "publishConfig": { "access": "public" }, diff --git a/packages/plugin-tools/CHANGELOG.md b/packages/plugin-tools/CHANGELOG.md index a24fc37..653865a 100644 --- a/packages/plugin-tools/CHANGELOG.md +++ b/packages/plugin-tools/CHANGELOG.md @@ -1,5 +1,19 @@ # @emigrate/plugin-tools +## 0.2.0 + +### Minor Changes + +- 23a323c: Add the convenience functions `getOrLoadPlugin` and `getOrLoadPlugins` +- 62bd5a4: Add more properties to the MigrationMetadata type to ease writing "loader" plugins +- 81fde2e: Prepare for supporting "loader" plugins. A loader plugin is used to transform a migration file of a given type (file extension) to a function that will execute the actual migration. +- 9f5abf7: Simplify plugin interfaces by getting rid of the "type" string, in preparation for having packages that contains multiple different plugins + +### Patch Changes + +- 1799b6e: Add missing types and utility methods related to the new "loader" plugins +- 3e0ff07: Specify files to include in published NPM package + ## 0.1.1 ### Patch Changes diff --git a/packages/plugin-tools/package.json b/packages/plugin-tools/package.json index dcf4a25..b1326c9 100644 --- a/packages/plugin-tools/package.json +++ b/packages/plugin-tools/package.json @@ -1,6 +1,6 @@ { "name": "@emigrate/plugin-tools", - "version": "0.1.1", + "version": "0.2.0", "publishConfig": { "access": "public" },