Core drift package:
- Add
sqliteAny()
method to tables to declareANY
columns. - Add missing parentheses around adjacent expressions of the same precedence.
- Fix creating tables that are both
STRICT
andWITHOUT ROWID
. - WASM: Report worker failures to make them easier to diagnose.
- Allow closing stream queries synchronously, making drift easier to use in widget tests.
Generator improvements
- Add support for the
dbstat
module. - Prioritize null propagation in type resolver, leading to more accurate analysis on which columns are nullable.
- CLI options dealing with schemas now support views defined in Dart (#3285).
- Pass language version to dart formatter when generating code.
- Deprecate
package:drift_dev/api/migrations.dart
in favor ofpackage:drift_dev/api/migrations_native.dart
. - Support runtime schema verification on the web.
- Fix generated code missing question marks for nullable types in some instances.
- Add (opt-in)
row_class_constructor_all_required
builder option. - Support the
dbstat
table in drift-file queries when enabling thedbstat
module. - Fix
make-migrations
using invalid import URIs in generated test on Windows.
drift_flutter 0.2.2
- Fix infinite loop in isolate server lookups when using
shareAcrossIsolates
across hot restarts.