Skip to content

Drift 2.22.0

Latest
Compare
Choose a tag to compare
@simolus3 simolus3 released this 28 Nov 20:35
· 35 commits to develop since this release
drift-2.22.0
b5660f6

Core drift package:

  • Add sqliteAny() method to tables to declare ANY columns.
  • Add missing parentheses around adjacent expressions of the same precedence.
  • Fix creating tables that are both STRICT and WITHOUT 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 of package: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 the dbstat 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.