This minor release fixes bugs in the drift and the drift_dev packages:
Fix WasmProbeResult.open ignoring the ìnitializeDatabase callback.
Fix inconsistencies when generating Variable instances for columns with custom types.
Fix a build performance regression introduced in version 2.14.0 related to analyzing imports in drift files.
Drift 2.14
New features in drift:
Add the QueryInterceptor API to easily monitor or transform all database calls made by drift.
Add the count() extension on tables to easily count rows in tables or views.
For updates made in drift files, we now support the column-name-list syntax.
Changes to the generator:
Breaking change: The name of the generated row class derived from the name of the Dart table name now supports more forms of plurals. For instance, a table without a @DataClassName annotation named Categories would now generate a Category class instead of Categorie. This is done in a minor release because we assume users previously running into this are already using @DataClassName as a workaround.
Make versioned schema snapshots generated by drift_dev schema steps public.
Don't generate const row classes when they are extending a class which isn't const.
Fix indices attached to tables not generating reliably.
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 drift from 2.13.1 to 2.14.1.
Release notes
Sourced from drift's releases.
Commits
7964782
Re-run generatorb7f9c28
Prepare releasef51eab3
Remove sponsorship badges829f451
Don't run discovery prematurelye53035b
update drift_wasm_test08e50d2
pass missing initializeDatabase property to WasmProbeResult.open417d1f5
Fix generating variables with custom types5115bc1
Fix modular example taking forever7774fcb
Fix sqlite3 deprecation warning1563b99
Fix potential crash whne resolving columnsDependabot 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