From 6a777f49a21604cfb41839605c81a8457b5e1a79 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Sun, 3 Apr 2022 14:14:18 -0400 Subject: [PATCH] Changelog --- CHANGELOG.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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+.