feat(plugin-tools): improve error serialization and let each storage plugin serialize errors themselves

This commit is contained in:
Joakim Carlstein 2023-12-12 15:32:58 +01:00
parent 09181f284d
commit a79f8e8e37
6 changed files with 29 additions and 10 deletions

View file

@ -0,0 +1,5 @@
---
'@emigrate/plugin-tools': minor
---
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

View file

@ -0,0 +1,8 @@
---
'@emigrate/plugin-tools': patch
'@emigrate/storage-fs': patch
'@emigrate/mysql': patch
'@emigrate/cli': patch
---
Serialization of errors now happens inside storage plugins because it makes more sense and the types are easier to work with this way