Commit graph

169 commits

Author SHA1 Message Date
4f8fb441f8 refactor(cli): move the default reporter into a separate "reporters" folder 2023-11-22 14:35:35 +01:00
da1eee3c75 feat(cli): add "reporter" option for the "new" command for improved logging 2023-11-22 14:35:35 +01:00
5e8572b67f feat(plugin-tools): pass the current command to the reporter 2023-11-22 14:35:35 +01:00
1940885134 fix(cli): remove the double period before file extension in new migration files 2023-11-22 14:35:35 +01:00
7d8ac9b185 feat(storage-fs): adapt to the new storage option and rename the package 2023-11-22 14:35:35 +01:00
8e87ade5c0 feat(cli): storage and reporter are now their own options
Instead of mixing storages and reporters with other plugins in the plugin option they now have their own separate options.
This is for increased future flexibility and to be more similar to other CLI tools.

BREAKING CHANGE: the storage to use must now be specified using the "storage" configuration option or the "--storage" CLI option instead of having it among other plugins.
2023-11-22 14:35:35 +01:00
dependabot[bot]
509cd41663
chore(deps): bump @types/node from 20.9.0 to 20.9.2 (#16)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.9.0 to 20.9.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-22 09:36:18 +01:00
5b00fd4fdb chore(lint): configure project wide linting to make use of Turborepo again
Don't know why I didn't get this to work before with the cwd workaround...
2023-11-17 14:20:06 +01:00
d5fe58c0db chore: upgrade commitlint to fix commit message linting 2023-11-17 14:20:06 +01:00
a51192f730
chore(release): version packages (#13)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-17 12:58:19 +01:00
59ec16b87b feat(cli): improve "up" command output and flow a lot 2023-11-17 12:50:35 +01:00
e5eec7cdf1 fix(plugin-storage-fs): throw a more descriptive error when a lock couldn't be acquired 2023-11-17 12:50:33 +01:00
552e784fc9 fix(plugin-storage-fs): adapt to the new migration metadata format 2023-11-17 12:50:33 +01:00
8f35812fed feat(cli): add support for "reporter" plugins and include a default reporter 2023-11-17 12:50:33 +01:00
b61072a3b6
chore(release): version packages (#12)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-16 12:59:28 +01:00
30a448b4cf feat(cli): improve error handling with more custom Error instances 2023-11-16 12:01:32 +01:00
8dadfe9a5b feat(cli): support NodeJS callback style migration functions 2023-11-16 11:24:00 +01:00
0c49249bd9 feat(plugin-storage-fs): implement the first version of the File System Storage plugin 2023-11-16 11:07:17 +01:00
46b9104cda fix(cli): don't run any migrations if any previous migration have failed 2023-11-16 10:59:54 +01:00
3b36b3de52 feat(cli): implement a default "loader" for JavaScript files
Supports any of the `.js`, `.cjs` and `.mjs` file extensions
2023-11-16 10:58:35 +01:00
62bd5a45e5 feat(plugin-tools): add more properties to the MigrationMetadata type 2023-11-16 10:54:34 +01:00
1799b6e399 fix(plugin-tools): add missing types and utils for the "loader" plugins 2023-11-16 10:53:09 +01:00
a1debba2e1 fix(cli): allow creating new migration files with only the "extension" option 2023-11-16 10:51:43 +01:00
b56794a269 feat(cli): implement the "up" command with support for "storage" and "loader" plugins 2023-11-15 16:14:10 +01:00
a058ebf888 feat(cli): handle file extensions with or without a leading period 2023-11-15 16:11:28 +01:00
23a323c675 feat(plugin-tools): add convenience functions getOrLoadPlugin and getOrLoadPlugins 2023-11-15 16:02:57 +01:00
81fde2ebd3 feat(plugin-tools): add types for "loader" plugins 2023-11-15 16:00:21 +01:00
70d2140dde refactor(cli): re-use the Config type for the new command's parameters 2023-11-15 14:45:49 +01:00
0b78d5cf32 refactor(cli): rename the emigrate package to @emigrate/cli to be more in line with other tools 2023-11-15 14:42:10 +01:00
9f5abf727d refactor: simplify plugin interfaces by getting rid of the "type" property
This is to prepare for having packages that contains multiple different plugins in the same file.
2023-11-15 14:11:06 +01:00
3e0ff07a64 chore: specify which files to include in published packages 2023-11-15 13:54:06 +01:00
85decd792a ci: do publish packages 2023-11-15 12:30:06 +01:00
github-actions[bot]
72df2385a0
chore(release): version packages (#11)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-15 12:25:48 +01:00
dependabot[bot]
644dfb0fe8
chore(deps): bump tsx from 4.1.0 to 4.1.2 (#10)
Bumps [tsx](https://github.com/privatenumber/tsx) from 4.1.0 to 4.1.2.
- [Release notes](https://github.com/privatenumber/tsx/releases)
- [Changelog](https://github.com/privatenumber/tsx/blob/develop/release.config.cjs)
- [Commits](https://github.com/privatenumber/tsx/compare/v4.1.0...v4.1.2)

---
updated-dependencies:
- dependency-name: tsx
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-15 12:22:49 +01:00
dependabot[bot]
3fef7f6c5c
chore(deps): bump prettier from 3.0.3 to 3.1.0 (#8)
Bumps [prettier](https://github.com/prettier/prettier) from 3.0.3 to 3.1.0.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.0.3...3.1.0)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-15 12:17:45 +01:00
384263efed ci: does this enable actions for release PRs? 2023-11-15 12:12:54 +01:00
32e15ea6f2 ci: how about now? 2023-11-15 11:44:37 +01:00
30a7a0ba90 ci: add permissions for release workflow and don't limit branches for the checks 2023-11-15 11:37:20 +01:00
16f2e9926c ci: always run CI checks for pull requests 2023-11-15 11:30:51 +01:00
073af50c44 ci: customize release flow title 2023-11-15 10:43:29 +01:00
50fce0a5ed chore: add some basic README files 2023-11-15 10:32:47 +01:00
9484c03e48 chore: first attempt att configuring an automatic release flow 2023-11-15 09:31:44 +01:00
d99777820c chore(release): version bump 2023-11-15 09:20:30 +01:00
aa878003b9 feat(emigrate): add support for reading config from emigrate.config.js (and others)
Also add a new "extension" option for generating empty migration files with the right file extension.
2023-11-14 16:19:58 +01:00
dependabot[bot]
ff822a156d
chore(deps): bump lint-staged from 15.0.2 to 15.1.0 (#6)
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 15.0.2 to 15.1.0.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Changelog](https://github.com/lint-staged/lint-staged/blob/master/CHANGELOG.md)
- [Commits](https://github.com/okonet/lint-staged/compare/v15.0.2...v15.1.0)

---
updated-dependencies:
- dependency-name: lint-staged
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-14 13:41:11 +01:00
dependabot[bot]
47d77b3746
chore(deps): bump @commitlint/cli from 18.4.0 to 18.4.1 (#9)
Bumps [@commitlint/cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/cli) from 18.4.0 to 18.4.1.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases)
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/cli/CHANGELOG.md)
- [Commits](https://github.com/conventional-changelog/commitlint/commits/v18.4.1/@commitlint/cli)

---
updated-dependencies:
- dependency-name: "@commitlint/cli"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-14 11:49:42 +01:00
dependabot[bot]
e942460d49
chore(deps): bump pnpm/action-setup from 2.2.4 to 2.4.0 (#4)
Bumps [pnpm/action-setup](https://github.com/pnpm/action-setup) from 2.2.4 to 2.4.0.
- [Release notes](https://github.com/pnpm/action-setup/releases)
- [Commits](https://github.com/pnpm/action-setup/compare/v2.2.4...v2.4.0)

---
updated-dependencies:
- dependency-name: pnpm/action-setup
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-10 15:25:28 +01:00
dependabot[bot]
cfabd0bc74
chore(deps): bump actions/checkout from 3 to 4 (#5)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-10 15:20:38 +01:00
dependabot[bot]
0d1bf3156b
chore(deps): bump actions/setup-node from 3 to 4 (#3)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3 to 4.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-10 15:18:09 +01:00
10bd7d4d30 chore: remove versioning-strategy from GitHub Actions Dependabot config 2023-11-10 15:15:45 +01:00