emigrate/packages/plugin-tools/CHANGELOG.md
2025-04-24 16:06:29 +02:00

163 lines
4.9 KiB
Markdown

# @emigrate/plugin-tools
## 0.9.8
### Patch Changes
- d779286: Upgrade TypeScript to v5.5 and enable [isolatedDeclarations](https://devblogs.microsoft.com/typescript/announcing-typescript-5-5/#isolated-declarations)
- @emigrate/types@0.12.2
## 0.9.7
### Patch Changes
- ca154fa: Minimize package size by excluding \*.tsbuildinfo files
- Updated dependencies [ca154fa]
- @emigrate/types@0.12.2
## 0.9.6
### Patch Changes
- db656c2: Enable NPM provenance
- Updated dependencies [db656c2]
- @emigrate/types@0.12.1
## 0.9.5
### Patch Changes
- Updated dependencies [94ad9fe]
- @emigrate/types@0.12.0
## 0.9.4
### Patch Changes
- Updated dependencies [ce15648]
- @emigrate/types@0.11.0
## 0.9.3
### Patch Changes
- Updated dependencies [f9a16d8]
- @emigrate/types@0.10.0
## 0.9.2
### Patch Changes
- Updated dependencies [a6c6e6d]
- @emigrate/types@0.9.1
## 0.9.1
### Patch Changes
- 3a8b06b: Don't use the `bun` key in `exports` as that would mean we have to include both built files and source files in each package, which is a bit wasteful. Maybe reconsider in the future if we can package only source files.
## 0.9.0
### Minor Changes
- ce6946c: Emigrate supports Bun, make use of the `bun` key in package.json `exports`
### Patch Changes
- Updated dependencies [ce6946c]
- @emigrate/types@0.9.0
## 0.8.0
### Minor Changes
- cae6d11: Move the Emigrate plugin types to a separate package for fewer version bumps in plugins hopefully
### Patch Changes
- Updated dependencies [cae6d11]
- Updated dependencies [cae6d11]
- Updated dependencies [cae6d11]
- @emigrate/types@0.8.0
## 0.7.0
### Minor Changes
- bad4e25: Pass the Emigrate CLI's version number to reporters
## 0.6.0
### Minor Changes
- a79f8e8: When serializing errors take all "own properties" into account to be able to serialize errors thrown by the `mysql2` package for instance without losing any information
### Patch Changes
- a79f8e8: Serialization of errors now happens inside storage plugins because it makes more sense and the types are easier to work with this way
## 0.5.0
### Minor Changes
- 703e6f0: Add "end" method to storage plugins so they can cleanup resources when a command is finished
- c1d5597: Add serializeError utility function for serializing Error instances
## 0.4.1
### Patch Changes
- 20ed2e8: Try importing plugins (and reporters) using prefixes before importing without, this is to avoid issue with accidentaly importing other non-emigrate related packages. E.g. setting the reporter to "pino" would import the "pino" package without this fix and will import "@emigrate/reporter-pino" with this fix.
- d916043: Fix a regression issue where plugins wasn't correctly loaded if specified as strings
## 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
- 8f35812: Add support for "reporter" plugins and implement a simple default reporter
## 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
- 50fce0a: Add some simple README's for each package and add homepage, repository and bugs URLs to each package.json file
## 0.1.0
### Minor Changes
- cdafd05: First version of the @emigrate/plugin-tools package which contains some nice to have utilities when building and using Emigrate plugins
- 9c239e0: Use import-from-esm to resolve plugins relative to the current working directory and add a convenient plugin loader helper (loadPlugin)
### Patch Changes
- 1634094: Remove double and trailing underscores in sanitized filenames and lower case the result for consistent filenames