Skip to content

Commit

Permalink
Changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
danvk committed Apr 3, 2022
1 parent 3f4eb4a commit 6a777f4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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 <https://github.com/danvk/pg-to-ts/pull/14>, 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+.
Expand Down

0 comments on commit 6a777f4

Please sign in to comment.