Skip to content

Releases: adonisjs/lucid

Adding test utilities and bug fixes

07 Mar 02:43
Compare
Choose a tag to compare
  • test: remove unwanted assertion breaking across dialects 1657b0a
  • fix: make assertions more resilient bed3cca
  • fix: breaking tests ebf2575
  • fix: retain model default values when creating a model instance af25299
  • chore: update dependencies 6b1c21c
  • fix: insturctions to install @vscode/sqlite3 2b1debe
  • feat: add test utils for migrations and database seeders 1e52ea6
  • chore: update dependencies bfa3aa0
  • chore: remove direct dependency on @adonisjs/ace 6882798
  • refactor: cleanup commands to use each other using ace directly fa090d8
  • feat: add test utils for migrate database and run seeders 9185bd4

v17.0.1...v17.1.0

Do not attempt to remove types and views when not supported by db

03 Mar 04:43
Compare
Choose a tag to compare
  • chore: release under latest tag 0889732
  • refactor: do not attempt to remove types and views when not support by db 780167a
  • refactor: log message when performing version upgrade 454ecb2
  • test: migrate to the new Japa (#803) cb15d56

PRs

Full Changelog: v17.0.0...v17.0.1

Full of goodies

02 Mar 11:50
Compare
Choose a tag to compare

Highlights

  • This release includes a drop-in replacement for faker-js (a project no longer active)
  • Support for better-sqlite3. 16x faster replacement to sqlite3.
  • Fixing migration names to be platform agnostics
  • New commands migration:refresh, migration:reset, migration:fresh and db:wipe.

Breaking changes

  • The returning method now returns an array of objects, even when one column is mentioned. It is a direct result of changes made by knex knex/knex#4471
  • The sqlite3 package is no longer supported. Instead, you can use@vscode/sqlite3 as a drop-in replacement.
  • The fakerjs package is no longer supported. Instead, you can use @faker-js/faker as a drop-in replacement.

Commits

  • chore: release under next tag cad1e8c
  • test: fix breaking tests 6ea257b
  • fix: Fix migration filenames to be platform agnostic eecdc56
  • fix: retain existing attributes when calling loadCount on the model instance 0e19c53
  • refactor: remove unused imports 27e1dfd
  • feat: add support for better-sqlite3 5d006b8
  • fix: ddl logs to lowercase the SQL query b991e82
  • chore: dropping log statements to debug failing mssql tests 5aea733
  • ci: update docker setup and failing mysql tests a118455
  • test: fixing breaking tests after knex upgrade 851b23f
  • ci: running sqlite tests outside of docker 78c4939
  • ci: attempt to fix sqlite3 errors 5149a81
  • refactor: allow returning calls for sqlite 3b3bb7a
  • chore: attempt to fix dockerfile python issues b7ce89c
  • fix: node-gyp docker-alpine error and switch to lts 3d9f752
  • chore: use @vscode/sqlite3 over sqlite3 02468dc
  • test: fix test script path d27a87f
  • chore: update dependencies e35170f
  • refactor: reorganize meta config 64bffa4
  • chore: update dependencies bfcc2e6
  • refactor: use @faker-js/faker instead of faker (#791) 759f2e4
  • feat: add getAllViews getAllTypes dropAllTypes and dropAllViews functions (#784) f7aa5b9
  • feat: add migration:refresh, migration:reset, migration:fresh and db:wipe commands (#764) 441d9b5
  • refactor: add missing "wrapIdentifier" option on PostgreConfig (#763) 19990dc
  • feat(real): add helper to load all factories (#760) 7e88ad6
  • refactor(stub): Enable foreign key support in SQLite config 87ce418

PRs

New Contributors

Full Changelog: v16.3.2...v17.0.0

Fix pagination count query to use table aliases

09 Nov 01:45
Compare
Choose a tag to compare
  • fix: do not update table name for model query builder when already assigned c62ff03

Full Changelog: v16.3.1...v16.3.2

Allow where and having method column names to be a raw query

08 Nov 06:51
Compare
Choose a tag to compare
  • feat: allow column name in where and having clauses to be a raw query 781add7

Full Changelog: v16.3.0...v16.3.1

Bug fixes and make Database Macroable

08 Nov 01:10
Compare
Choose a tag to compare

Commits

  • refactor: use kernel.exec over a child process to execute sub commands a544633
  • feat: Make Database class macroable c74ee5b
  • refactor: accept knex raw queries along with our raw queries 014f38f
  • refactor: add missing sumDistinct method 3026bb1

Pull Requests Merged

New Contributors

Full Changelog: v16.2.2...v16.3.0

Fix relationships inheritance

25 Oct 10:54
Compare
Choose a tag to compare
  • test: add test for overwriting relationship during inheritance 768dc87
  • test: fix breaking inheritance tests 40a8090
  • fix: failing test c24e33d
  • fix: breaking tests d6ea885
  • fix: copy a clone of relationship during inheritance 53a07df
  • feat: add support for insert object values to be a raw query d2f961f
  • docs: update contributing guide to share the same information as the other projects (#729) 5fe4155

New Contributors

Full Changelog: v16.2.1...v16.2.2

Revert support for wrapping model inside self managed transactions

01 Oct 05:37
Compare
Choose a tag to compare
  • Revert "feat: add support for running insert, update and delete queries always inside a transaction" 1fddaa5

v16.2.0...v16.2.1

Add experimental support for wrapping model persist/delete queries inside transaction

30 Sep 13:51
Compare
Choose a tag to compare

The features added are experimental and not meant to used in the current state

  • refactor: remove unused imports 6df0d12
  • feat: add support for running insert, update and delete queries always inside a transaction be92c9f
  • feat: add defineProperty method on the model itself 78e7a53
  • chore: update dependencies 2923085

v16.1.0...v16.2.0

Add hooks support to transaction client

23 Sep 02:34
Compare
Choose a tag to compare
  • improvement: add returning method to all query builder 9b35e13
  • feat: add support for registering hooks with the transaction client bf8f83f
  • chore: update dependencies 132efa9
  • refactor: use schema.alterTable in alter template (#724) bf15645
  • docs: use gh actions badge urls ca560e1

v16.0.2...v16.1.0