Skip to content

Releases: adonisjs/lucid

Fix model.transaction method to behave exactly as db.transction

09 Dec 07:09
Compare
Choose a tag to compare

Bug Fixes

  • Model.transaction always create a transaction and do not re-use existing one (1afdd81)

Full Changelog: v21.5.0...v21.5.1

Improvements to unique and exists rule and add isDirty method

04 Dec 12:56
Compare
Choose a tag to compare

Bug Fixes

  • use correct property name for reading local primary key value (65790bf), closes #1069

Features

  • add isDirty method (#1068) (151f862)
  • add meta to all relations (#1042) (ade635f)
  • add support for creating transaction client from model (4a2adcd)
  • allow unique and exists validations to perform case insensitive search (761f823)

What's Changed

New Contributors

Full Changelog: v21.4.0...v21.5.0

Export relationships query clients and allow instanceName config property

13 Nov 08:07
Compare
Choose a tag to compare

Features

What's Changed

New Contributors

Full Changelog: v21.3.0...v21.4.0

Bug fixes and new features

10 Oct 07:37
Compare
Choose a tag to compare
  • Feat: Add loadOnce method to preload a relationship only when its not already preloaded.
  • Feat: Add support for --compact-output in migration:reset and migration:refresh commands.
  • Feat: Export Adapter and ModelPaginator from the ORM.
  • Fix: Clone the preloader when cloning the query builder

Bug Fixes

  • Clone the preloader when cloning the query builder (#1050) (18103ea)
  • lint script (edc3d3a)
  • run migration:reset via migrate test utils (9f669dd)

Features

  • add support for --compact-output flag in reset and refresh commands (89322f9)
  • export Adapter from orm (#1030) (cbbb4fd)
  • export ModelPaginator class (#1051) (76dd1e5)
  • orm: add loadOnce to lazy load a relationship only once (#1052) (96df6a6)

What's Changed

New Contributors

Full Changelog: v21.2.0...v21.3.0

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