v0.6.0
Breaking
- Removed
--clientandopts.clientoptions (#11): b167ca1
Update: Rename any previous usage to--driverandopts.driver
Please read #11 (comment) for full details.
Features
-
Add custom driver support! (#11): b167ca1
You may now bring custom client driver implementations, so long as they adhere to theDriverimplementation!This is available as CLI and API options, and may also be set through a
exports.driverkey within aley.config.jsfile.
Please refer to the new Drivers documentation for more information.# specify internal driver (skips auto-detect) $ ley up --driver postgres # specify local custom driver (skips auto-detect) $ ley up --driver path/to/local/driver.js # use third-party module driver $ ley up --driver npm_package_name
-
Add
ley statuscommand (#10): 70f9c93..6a7b743
Thestatuscommand (available via both CLI and API) checks for outstanding migration files.
In other words, it tells you how manyupmigrations have not yet been applied.
You can think of this like a "dry run" forley upcommand.
(See PR for screenshots.) -
Allow
asyncconfig file contents (#9): 5b6aaf0
Thank you @TehShrike~!Allows for a
ley.config.jsfile to directly export a Promise or asynchronous function that yields your config:// ley.config.js module.exports = import('./env.mjs').then(details => { return { ...details, host: 'localhost' }; }); // or module.exports = async function () { return { /* whatever */ }; }
Patches
- Remove useless
catchclauses (#8): c97dc45
Thank you @TehShrike - Remove unnecessary character escapes (#7): 910fb11
Thank you @TehShrike
Chores
- (deps) Bump
kleurversion: 11a425b - (deps) Bump
mk-dirsversion: cae451d - (deps) Bump
totalistversion: 0770626 - (deps) Swap test runner: b90c61c
- (CI) Update Action job config: 767fd8c
- (CI) Update badge image: c92818e
- (tests) Move fixtures into subdirectory: c575213
- (readme) Update formatting: af93879, 82880f8
- (readme) Add
opts.requiredocs: 53ac405