diff --git a/CHANGELOG.md b/CHANGELOG.md index 0abdce9..2f4adb8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## 4.1.0 (2022/04/02) + +- New option: `--prefixWithSchemaNames`. This adds the schema as a prefix to + all output symbols and types. Useful for when you have many schemas in your + database and need to keep all the tables straight. + See , thanks @jamesone! +- New feature: type links in runtime values. The runtime constants generated + for each table now contain `$type` and `$input` properties, and foreign keys + have a `$type` property to connect to the linked type. This means that + `typeof tableName['$type']` can be used to get the (TypeScript) table type. + This should be especially helpful for libraries using pg-to-ts. + ## 4.0.0 (2022/02/19) - Dependency updates; pg-to-ts should now work with Node 14+.