Skip to content

Releases: adonisjs/lucid

Pin strtok3 and fix relationship query builder to apply constraints on subqueries

08 Aug 05:48
2fd32fc
Compare
Choose a tag to compare

v21.1.1...v21.2.0

What's Changed

  • fix: apply relationship constraints when using sub query in whereIn condition by @adamcikado in #1037

Full Changelog: v21.1.1...v21.2.0

Fix - Cleanup connection resources when using read replicas

25 Jul 05:27
Compare
Choose a tag to compare
  • test: fix failing tests 14f345a
  • test: add test for connection resource cleanup with replicas 2e002b7
  • fix: connection resource cleanup logic a9eac4b
  • fix: cleanup of resources when using replicas aa0a573
  • chore: update dependencies 2aee01a
  • chore: update dependencies 2d25ef0

Full Changelog: v21.1.0...v21.1.1

Display dialect names in configure prompts

19 Jun 02:41
Compare
Choose a tag to compare
  • refactor: configure command to display dialect name in prompts 596c153

v21.0.1...v21.1.0

Fix for last release

19 Jun 02:07
Compare
Choose a tag to compare
  • fix: broken import of libsql client 1afc648

Full Changelog: v21.0.0...v21.0.1

Support for libSQL and new health checks

18 Jun 16:11
Compare
Choose a tag to compare

This release adds first-class support for libSQL and removes all options + types + methods related to legacy way of doing health checks. Instead, you must use the following two classes to register health checks with AdonisJS v6.

import db from '@adonisjs/lucid/services/db'
import { DbConnectionCountCheck, DbCheck } from '@adonisjs/lucid/database'

new HealthChecks().register([
  new DbCheck(db.connection()),
  new DbConnectionCountCheck(db.connection())
])

Breaking changes

  • The config.healthCheck property
  • Remove connection.getReport method.
  • Remove connectionManager.report method.
  • Remove ReportNode type.

Deprecations

  • Deprecate connection.dialectName in favor of connection.clientName. The clientName refers to the npm clients you can use with Knex and dialectName refers to the Lucid dialects. One dialect can be used with multiple clients. For example, the MySQL dialect can be used with mysql and mysql2 clients.

Commits

  • test: another attempt at fixing broken tests 8a4df1c
  • test: fix breaking tests 2d9697b
  • refactor: update usages of dialectName with clientName 7fedbfe
  • feat: add support for libsql and cleanup clients to dialects mapping 95f11d1
  • feat: export health check classes 1b32dca
  • feat: add database health checks and remove legacy health check flag 0373e7f
  • refactor: remove legacy health checks 32f377e
  • test: fix broken types 44da18c
  • chore: update peer dependencies 9dbd7fc
  • chore: update dependencies bdc32b5

Full Changelog: v20.6.0...v21.0.0

Improvements to the DateTime comparison when using "orCreate" methods

02 May 07:17
Compare
Choose a tag to compare

In this release, we improve the comparison logic used by firstOrCreate, firstOrNew, and updateOrCreate methods to properly compare Luxon DateTime instances when finding or persisting a new row.

Commits

  • Merge pull request #991 from adamcikado/develop 94b666a
  • fix: compare DateTime in newUpIfMissing 669bdb3
  • Merge pull request #1017 from adamcikado/feat/exports 92ed475
  • fix: some typos (#1024) ba5961b
  • chore: update postgresql version 7315d0e
  • chore: update version & add cross-env 52906a5
  • Merge pull request #1023 from MaximeMRF/fix/step-option-migrator b084678
  • fix(migrator): step option 781c479
  • feat: add missing exports 5d87cf8

What's Changed

New Contributors

Full Changelog: v20.5.1...v20.6.0

Add clause variant to findBy method

26 Mar 21:14
Compare
Choose a tag to compare

Latest 20.5.0 was missing some commits.
This release is published only as a patch since 20.5.0 was released a few minutes ago.

  • feat(base_model): add clause variant to findBy method (#1020) 059c472
  • fix(base_model): correct typing for findManyBy c22f019
  • Merge pull request #1013 from MaximeMRF/feat-step-option-migrator 196c97c
  • feat(Migrator): add step option 4012129

v20.4.0...v20.5.1

Add step option to the migrator

26 Mar 21:13
Compare
Choose a tag to compare

What's Changed

Full Changelog: v20.3.1...v20.5.0

Add support for pretty printing debug queries and findMany helper method

13 Mar 10:52
Compare
Choose a tag to compare

Related documentation for few features

Commits

  • chore(release): 20.3.1 8e1f3a7
  • style: remove unused imports f989fb6
  • feat: add support for pretty print debug queries f3976b9
  • Merge pull request #1010 from adonisjs/feat/findMany 4427c8d
  • style: lint e0a2b03
  • fix(base_model): execute the query in findManyBy deb0052
  • feat(base_model): add findManyBy method ea41f57
  • fix: omit double quotes from connection name (#983) 8c333e0
  • chore: fix url in readme 67ba462
  • fix(configure): correct call to logger.error 2754e5c

What's Changed

Full Changelog: v20.3.0...v20.4.0

Correct call to logger.error when configuring the package

03 Mar 15:29
Compare
Choose a tag to compare