Releases: kysely-org/kysely-ctl
v0.9.0 - JavaScript file support.
Hey π
This release adds optional js
, cjs
and mjs
file support.
kysely init -x js|cjs|mjs
is now supported.
if migrations.allowJS
is true
:
kysely migrate make -x js|cjs|mjs
is now supported.kysely migrate up|down|latest|rollback
won't skipjs
,cjs
andmjs
migrations.
if seeds.allowJS
is true
:
kysely seed make -x js|cjs|mjs
is now supported.kysely seed run
won't skipjs
,cjs
andmjs
seeds.
Full Changelog: v0.8.11...v0.9.0
v0.8.11 - fix `seed run` error handling
Hey π
This release fixes seed run
error handling. Now properly prints AggragateError
s and exits with code 1.
Full Changelog: v0.8.10...v0.8.11
v0.8.10 - AggregateError now properly handled
Hey π
This release provides better handling of AggregateError
s when migrating, now outputting all sub errors.
Full Changelog: v0.8.9...v0.8.10
v0.8.9 - some environment-specific config override related fixes.
Hey π
This release loosens up environment-specific config overrides' types and aligns the environment
flag's value hint with C12's predefined environment names.
That's it. That's the release.
Full Changelog: v0.8.8...v0.8.9
v0.8.8 - pass a `kysely` instance to `defineConfig`.
Hey π
Now you can pass a kysely
instance instead of a dialect name or instance to defineConfig
.
Also, defineConfig
input types are tighter and tested.
Full Changelog: v0.8.7...v0.8.8
v0.8.7 - improve `--environment` flag description.
Hey π
This release improves --environment
flag's description. This flag is used for c12
environment-specific configuration overrides. Now the description is more accurate and provides a URL to c12
's environment-specific configuration section.
Full Changelog: v0.8.6...v0.8.7
v0.8.6 - exit(1) on migration error.
Hey π
With this patch release, migration commands correctly exit(1)
on error.
Full Changelog: v0.8.5...v0.8.6
v0.8.5 - allow file name prefix override @ `kysely <module>:make`.
Hey π
This patch release allows overriding migrate make
and seed make
output file prefixes in the config file.
To use Knex's timestamp prefixes:
import { defineConfig, getKnexTimestampPrefix } from "kysely-ctl";
export default defineConfig({
// ...
migrations: {
// ...
getMigrationPrefix: getKnexTimestampPrefix,
// ...
},
// ...
});
To not have prefixes for seed files:
export default defineConfig({
// ...
seeds: {
// ...
getSeedPrefix: () => '',
// ...
},
// ...
});
Full Changelog: v0.8.4...v0.8.5
v0.8.4 - npm readme refresh, nothing more
v0.8.3 - fix esm ts file imports not working on windows.
Hey π
This patch release makes esm + windows work. Previously it would fail due to file paths missing file://
prefix.
Full Changelog: v0.8.2...v0.8.3