Skip to content

Releases: RobinBlomberg/kysely-codegen

0.12.0

Choose a tag to compare

@RobinBlomberg RobinBlomberg released this 07 Jan 19:53

What's Changed

New Contributors

Full Changelog: 0.11.0...0.12.0

0.11.0

Choose a tag to compare

@RobinBlomberg RobinBlomberg released this 14 Oct 14:30

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

Choose a tag to compare

@RobinBlomberg RobinBlomberg released this 20 Mar 23:21
  • 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

0.9.0

Choose a tag to compare

@RobinBlomberg RobinBlomberg released this 02 Jan 10:10
  • 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

Choose a tag to compare

@RobinBlomberg RobinBlomberg released this 04 Nov 09:15

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

Choose a tag to compare

@RobinBlomberg RobinBlomberg released this 13 Oct 05:27

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

Choose a tag to compare

@RobinBlomberg RobinBlomberg released this 09 Sep 06:45

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

Choose a tag to compare

@RobinBlomberg RobinBlomberg released this 10 Aug 16:43

Notable changes

  • Added camel case support

0.4.0

Choose a tag to compare

@RobinBlomberg RobinBlomberg released this 08 Aug 07:59

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