Skip to content

Releases: RobinBlomberg/kysely-codegen

0.9.0

02 Jan 10:10
Compare
Choose a tag to compare
  • Added support for passing database connection to generator
  • Added type-only imports and added --type-only-imports CLI option (default: true)
    • The generated code now uses the TypeScript 3.8+ import type syntax to avoid generating unnecessary JavaScript code
  • Fixed SQLite booleans not being parsed as numbers - thanks @valtyr!
  • Made tests platform-agnostic (using the SQLite in-memory database instead of a hard-coded path)
  • Removed obsolete usage of RawBuilder
  • Updated better-sqlite3 peerDependency version to support version 8 - thanks @spa5k!
  • Updated dependencies

Closes #47, #49 and #51.

0.8.0

04 Nov 09:15
Compare
Choose a tag to compare

Notable changes

  • Added support for PostgreSQL scalar arrays (e.g. TEXT[]) - thanks @johynpapin!
  • Included --include-pattern and --exclude-pattern options in programatic API - thanks @antoineneff!
  • Fixed crash when using programmatic API
  • Fixed camel-case output

0.7.0

13 Oct 05:27
Compare
Choose a tag to compare

Notable changes

  • Added MySQL/PostgreSQL enum support
  • Added --include-pattern and --exclude-pattern CLI options
  • Adjusted programmatic API
  • Loosened peer dependency requirement

0.6.0

09 Sep 06:45
Compare
Choose a tag to compare

Notable changes

  • Added support for inserting numbers into Decimal fields
  • Added support for using RawBuilder in Timestamp fields
  • Improved json and jsonb typings

0.5.0

10 Aug 16:43
Compare
Choose a tag to compare

Notable changes

  • Added camel case support

0.4.0

08 Aug 07:59
Compare
Choose a tag to compare

Notable changes

  • Added MySQL support
  • Added PostgreSQL schema support
  • Made generated PostgreSQL and SQLite types more accurate
  • Made module usable as a library
  • Made --dialect CLI option optional
  • Removed --format CLI option
  • Implemented new AST-based transformer/serializer to allow for more advanced generation