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
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps @adonisjs/lucid from 20.6.0 to 21.1.0.
Release notes
Sourced from
@adonisjs/lucid
's releases.Commits
9fe4c2e
chore(release): 21.1.0596c153
refactor: configure command to display dialect name in prompts62e3c2f
chore(release): 21.0.11afc648
fix: broken import of libsql client9fc57d6
chore(release): 21.0.08a4df1c
test: another attempt at fixing broken tests2d9697b
test: fix breaking tests7fedbfe
refactor: update usages of dialectName with clientName95f11d1
feat: add support for libsql and cleanup clients to dialects mapping1b32dca
feat: export health check classesDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show