Skip to content

Releases: RobinBlomberg/kysely-codegen

0.17.0

18 Oct 06:44
Compare
Choose a tag to compare

What's Changed

  • fix: fix incorrect timestamp types (fixes #203, #209)
  • feat: support named instances for Microsoft Sql Server by @gittgott in #204
  • feat: add --date-parser flag to control Postgres DATE type by @brianmcd in #210 (fixes #177, #194)
  • docs: list current cli args by @shane-js in #167
  • docs: update README.md run instructions by @shane-js in #166
  • docs: improve documentation (fixes #178)
  • feat(cli): adjust flag descriptions (fixes #193)
  • feat: improve error when .env file is missing

New Contributors

Full Changelog: 0.16.7...0.17.0

0.16.7

16 Sep 12:22
Compare
Choose a tag to compare

What's Changed

  • Allow PG Timestamp to accept string as selectType. by @hevar in #199 (fixes #194, #123, #177)
  • Correctly pass the partition option to the Postgres inspector by @fxmouthuy in #197 (fixes #196)
  • Fix postgres default schema behavior by @RobinClowers in #200
  • Deduplicate repeated ColumnType arguments

New Contributors

Full Changelog: 0.16.4...0.16.7

0.16.4

02 Sep 07:13
Compare
Choose a tag to compare

What's Changed

  • feat: accept multiple --schema flags @RobinClowers in #192
  • fix: export all internal modules
  • fix(generator): fix syntax error in old PostgreSQL versions
  • fix(cli): rename misnamed CLI option
  • refactor: install knip and remove all unused files/variables

Full Changelog: 0.16.0...0.16.4

0.16.0

30 Aug 06:33
Compare
Choose a tag to compare

Good morning! This is a big one.

What's Changed

  • Properly utilize SSL parameter for MSSQL dialect connection by @mjbergman92 in #158
  • Make it possible to insert strings into Interval columns by @qchar in #159
  • Add --singular CLI option by @acro5piano in #162 (fixes #32)
  • Add new Bun SQLite Dialect by @tlonny in #174 (fixes #153)
  • Bump Tedious to v18 by @bakasmarius in #172
  • Column overrides by @gittgott in #148 (fixes #30)
  • Change type definition for JsonObject to make ESLint happy (fixes #181)
  • Add --numeric-parser option for specifying PostgreSQL Numeric return type (fixes #161 and #109)
  • Make table names starting with numbers generate valid JavaScript identifiers (fixes #151)
  • Make runtime enums generate correct enum keys and add --runtime-enums-style CLI option (fixes #150)
  • Add top-of-file marker comment when generating code (fixes #114)
  • Exclude table partitions (fixes #76)
  • Support overriding JSON column types (fixes #75)

Refactors and chores

  • Bump all dependencies
  • Refactor code to make CLI, generator and introspector into separate modules
  • Use Vitest test runner

New Contributors

Full Changelog: 0.15.0...0.16.0

0.15.0

18 Apr 11:17
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.14.0...0.15.0

0.14.0

17 Mar 20:35
Compare
Choose a tag to compare

What's Changed

  • Add a skip-domains flag for postgres by @RobinClowers in #136
  • Update compatible tedious versions by @timclark97 in #137
  • Set kysely-bun-worker as an optional peer dep by @arempe93 in #138
  • typescript comments based on columns comments by @elitan in #139
  • feat: runtime enum support by @lsnow99 in #131

New Contributors

Full Changelog: 0.13.0...0.14.0

0.13.0

07 Mar 07:25
Compare
Choose a tag to compare

What's Changed

  • fix: add 'bun-sqlite' in VALID_DIALECTS by @mtt-artis in #129
  • Add MSSQL Support by @timclark97 in #128
  • Add include/exclude pattern instructions to README.md by @divmgl in #133
  • Expand environment variables from .env by @iffa in #130

New Contributors

  • @mtt-artis made their first contribution in #129
  • @timclark97 made their first contribution in #128
  • @divmgl made their first contribution in #133
  • @iffa made their first contribution in #130

Full Changelog: 0.12.0...0.13.0

0.12.0

07 Jan 19:53
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.11.0...0.12.0

0.11.0

14 Oct 14:30
Compare
Choose a tag to compare

Lots of great contributions! Thank you to everyone contributing and submitting issues and ideas.

What's Changed

New Contributors

Full Changelog: 0.10.0...0.11.0

0.10.0

20 Mar 23:21
Compare
Choose a tag to compare
  • Added --schema CLI option to specify the default schema - thanks @eGust!
  • Fixed so that the process quickly exits as soon as the CLI finishes - thanks @lbguilherme!
    • Previously, the process would hang a bit before exiting if it had failed to connect with SSL.
  • Fixed so that data types are correctly separated by schema
    • I.e. if you have the enums public.status and test.status, and the default schema is public, it will now generate the separate union types Status and TestStatus, instead of conflating them with each other.
  • Upgraded dependencies