Releases: RobinBlomberg/kysely-codegen
Releases · RobinBlomberg/kysely-codegen
Release list
0.12.0
What's Changed
- Fix Postgres JSON type by @BoscoDomingo in #126
- Update cli.ts by @seivan in #108
- Added support for bun:sqlite by @KaruroChori in #120
New Contributors
- @BoscoDomingo made their first contribution in #126
- @KaruroChori made their first contribution in #120
Full Changelog: 0.11.0...0.12.0
0.11.0
Lots of great contributions! Thank you to everyone contributing and submitting issues and ideas.
What's Changed
- add license to package.json. by @igalklebanov in #74
- add PlanetScale comment @ README.md. by @igalklebanov in #71
- Add mysql2@^3.0.0 as peer dependency by @devunt in #69
- feat: adds postgres domain support by @andrew-w-ross in #68
- Handle tables with hyphens in their name by @yongtheskill in #73
- Verify option to cli by @woltsu in #85
- Deterministic code generation fix by @bombillazo in #97
- Add --env-file option by @vaaralav in #99
- Update cli.ts by @seivan in #101
- feat: support libsql/sqld by @MathieuNls in #98
New Contributors
- @igalklebanov made their first contribution in #74
- @devunt made their first contribution in #69
- @andrew-w-ross made their first contribution in #68
- @yongtheskill made their first contribution in #73
- @woltsu made their first contribution in #85
- @bombillazo made their first contribution in #97
- @vaaralav made their first contribution in #99
- @seivan made their first contribution in #101
- @MathieuNls made their first contribution in #98
Full Changelog: 0.10.0...0.11.0
0.10.0
- Added
--schemaCLI 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.statusandtest.status, and the default schema ispublic, it will now generate the separate union typesStatusandTestStatus, instead of conflating them with each other.
- I.e. if you have the enums
- Upgraded dependencies
0.9.0
- Added support for passing database connection to generator
- Added type-only imports and added
--type-only-importsCLI option (default:true)- The generated code now uses the TypeScript 3.8+
import typesyntax to avoid generating unnecessary JavaScript code
- The generated code now uses the TypeScript 3.8+
- 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
- This means that the generated column order is no longer alphabetical (see kysely-org/kysely#262)
0.8.0
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
Notable changes
- Added MySQL/PostgreSQL enum support
- Added
--include-patternand--exclude-patternCLI options - Adjusted programmatic API
- Loosened peer dependency requirement
0.6.0
Notable changes
- Added support for inserting numbers into Decimal fields
- Added support for using RawBuilder in Timestamp fields
- Improved
jsonandjsonbtypings
0.5.0
Notable changes
- Added camel case support
0.4.0
Notable changes
- Added MySQL support
- Added PostgreSQL schema support
- Made generated PostgreSQL and SQLite types more accurate
- Made module usable as a library
- Made
--dialectCLI option optional - Removed
--formatCLI option - Implemented new AST-based transformer/serializer to allow for more advanced generation