Skip to content

Releases: adonisjs/lucid

Migrate to work with AdonisJS v6 core

20 Sep 02:36
Compare
Choose a tag to compare
Pre-release

This release updates the Lucid codebase to work with AdonisJS v6. There are minor breaking changes in the API of the ORM, alongside the ESM migration.

Breaking changes

  • The package is ESM only.
  • The @ioc style import paths have been removed in favor of standard imports. The final AdonisJS migration guide will contain the new import paths.
  • The deprecated developmentOnly flag has been removed from seeders. Use environment property instead.
  • Rename table CLI flag in make:migration command to alter.
  • The alter and create CLI flags in make:migration command now accept boolean values and act as an action.

That is all!

Commits

  • chore: update dependencies and peer dependencies c9d28af
  • docs: update README 98d74e9
  • ci: update typecheck job's command e50c45d
  • fix: path for sqlite and mssql db password f41bd17
  • fix: env variables 25d6e87
  • ci: fix env vars cabefba
  • ci: fix env vars 9472db9
  • feat: add configure instructions 1417942
  • test: fix breaking tests 3a219a6
  • refactor: remove test utils and validator bindings for now 49b33b6
  • refactor: migrate commands 50b098b
  • refactor: migrate factories codebase 2ecaac6
  • refactor: relationships module 7af92d9
  • feat: migrate orm BaseModel 532b9cb
  • refactor: migrate seeders module 887f5f1
  • refactor: migrate migrations module 26c7466
  • refactor: migrate schema module c523cc2
  • refactor: migrate connection and db modules 145ee86

Full Changelog: v18.4.0...v19.0.0-0

Add support for disabling locks during migrations

22 May 06:25
Compare
Choose a tag to compare
  • docs(README): update github actions badge url 5562cef
  • chore: update knex-dynamic-connection package version 0e51132
  • ci: not running mssql tests on node 14 as tedious does not support it ecb7d77
  • style: format source code 92f0de6
  • chore: update dependencies f59ef9e
  • refactor: update disable-locks flag description 05f28e4
  • feat: add disable-locks flag (#932) 9bf8f24
  • Use import type for importing type (#922) 8955b12

What's Changed

New Contributors

Full Changelog: v18.3.0...v18.4.0

Add truncating test util

21 Nov 17:25
Compare
Choose a tag to compare

Documentation - https://docs.adonisjs.com/guides/testing/introduction#truncate-database-after-each-run-cycle

Commits

  • chore: use typescript 4.8 1db0c74
  • chore: use typescript 4.8 a5f03b6
  • chore(package): update dependencies 55799a5
  • Add db:truncate command with TestUtils helper (#889) 215631e
  • test: remove pin from test 6afea22
  • chore: update dependencies 72d869d

PR's

Full Changelog: v18.2.0...v18.3.0

Allow ignoring tables when running db:wipe command

08 Oct 05:16
Compare
Choose a tag to compare

A database might have certain tables not controlled/managed by AdonisJS migrations, therefore you would not want them to the dropped during the db:wipe command. The wipe.ignoreTables config property allows you to define an array of tables to ignore

Commits

  • refactor: install mysql2 driver for mysql database ba74a38
  • feat: add wipe.ignoreTables config (#881) af78689
  • chore: revert commits related to #847 8c92165
  • fix: when ignoredTables is empty ed1596a
  • feat: implement ignoreTables for mssql 258a40c
  • feat: implement ignoreTables for sqlite 396cb88
  • refactor: move dontDrop property to wipe.ignoreTables in SharedConfigNode bbe2335
  • test: drop table that cause test to fails bad682c
  • feat: add a "dontDrop" property in shared config to define tables not to be dropped, close #820 0e5df7e

PRs

Full Changelog: v18.1.1...v18.2.0

Bug fixes and suggest mysql2 driver for MYSQL database

10 Sep 07:08
Compare
Choose a tag to compare

Commits

  • fix: allow paginate to work with distinct a315cb1
  • ci: disable cache 1e269d5
  • refactor: new ci pipeline (#878) 5a29d97
  • chore: update dependencies (#876) a769c7f
  • fix: add missing connectString option to oracle config cbc5d2e
  • chore: remove mysql package in favor of mysql2 5563558
  • refactor: update mysql client to mysql2 (#871) 4d7498d
  • test(seeds): new environment config (#851) 11ae8b6
  • test: increase docker wait-for-it timeout time 170f2a8
  • test: fix breaking tests 9a60707
  • test: fix breaking test f65bdac
  • fix: typings for query scope params 352aac0
  • test: use mysql2 for tests 9864499
  • refactor: turn off force update after first save call cee70d4

What's Changed

New Contributors

Full Changelog: v18.1.0...v18.1.1

Add support to force update model even when there are no dirty properties

23 Jun 05:42
Compare
Choose a tag to compare
  • fix: faker import be9fc5f
  • style: format codebase ac9bc3b
  • feat: add "enableForceUpdate" to force update even when model is not dirty 10fce3d
  • chore: update dependencies 7b7fc21
  • fix: add extraneous packages imports in package.json (#848) 2e31edd

v18.0.1...v18.1.0

Fix rollback command to use the batch flag

03 Jun 07:28
Compare
Choose a tag to compare
  • fix: pass missing batch option in rollback command (#850) 851711f
  • feat(templates): use anonymous class for make:seeder (#843) 27381c4

v18.0.0...v18.0.1

Improvements to model factories, new make:factory command and bug fixes

22 May 11:24
Compare
Choose a tag to compare

Commits

  • feat: add parent property to the factory builder for a relationship cd77bcd
  • refactor: install sqlite3 package instead of unsupported @vscode/sqlite3 5a6862c
  • refactor: call build method on the factory e498726
  • feat: add support for recursively merging attributes from factories 8f708b3
  • chore: update dependencies 0ecf89a
  • fix: prefix table name when making relationship join queries 9385a9b
  • refactor: use knex whereLike and whereILike methods under the hood f2e7d36
  • feat: add where"JSON" methods introduced by Knex 1.0 f875828
  • feat: add --compact-output on DbSeed command (#838) 3880c8d
  • feat: expose knex query builder instance in schema classes dff3f84
  • feat: add "whereLike" and "whereILike" methods 1b6001d
  • feat: add withMaterialized and withNotMaterialized to query builder 04c5c25
  • chore: add a space between migrator output and time elapsed in compact-output mode ed15ba9
  • feat: make:factory command + --factory flag to make:model (#837) bd22c96
  • feat: add --compact-output flag to run/rollback commands (#836) f8e0c8c
  • feat: allow model properties to report if they are dirty or not e40297c
  • feat: allow passing model assignment options via relationship persistence methods 5b2f846
  • feat: add support to define pivot attributes via factory builder 49a1d04
  • fix: do not wrap connection name in quotes when running migrations from tests 73a43ca
  • refactor: remove inline callbacks in favor of tap method 13588af
  • refactor: pass factory builder instance to all factory operations 72f233c
  • chore: remove @vscode/sqlite3 in favor of sqlite3 2332fbf
  • chore: update dependencies 9f87bc3
  • refactor: use anonymous classes for migrations (#829) 3d12a45
  • docs: remove outdated changelog.md (#834) bb7c81d
  • Fix the Contributing link at README (#833) 41a6135
  • feat(query-builder): add support for columns for with and withRecursive (#826) 1518dc6

PRs

  • feat(query-builder): add support for columns for with and withRecursive by @Melchyore in #826
  • Fix the Contributing link at README by @brkn in #833
  • Remove outdated CHANGELOG.md by @brkn in #834
  • Use anonymous classes for migrations by @RomainLanz in #829
  • feat: add --compact-output flag to run/rollback commands by @Julien-R44 in #836
  • feat: make:factory command + --factory flag to make:model by @Julien-R44 in #837
  • feat: add --compact-output on DbSeed command by @Julien-R44 in #838

New Contributors

Full Changelog: v17.2.0...v18.0.0

Bug fixes and remove returning warning

08 Apr 11:03
Compare
Choose a tag to compare
  • test: fix breaking tests 0d1dd0b
  • fix: do not calling returning method on knex query when dialect doesn't suppor it b58f6e3
  • refactor: remove "IF EXISTS" condition from PG dialect b9c8a6a
  • chore: update dependencies a3c4f6e
  • improvement: drop types, views, and tables if they exist 5e2cebc

v17.1.1...v17.2.0

Surpress knex warnings and upgrade to latest version of faker

30 Mar 04:42
Compare
Choose a tag to compare
  • fix: supress warning when dialect does not support returning call 4ce5fbb
  • chore: update dependencies 9c5aa67

v17.1.0...v17.1.1