Drift 2.20.1
simolus3
released this
08 Sep 13:17
·
177 commits
to develop
since this release
This patch release fixes the following issues:
Core drift package
- Migrate legacy
package:drift/web.dart
to the new JS interop SDK libraries. For backwards compatibility, thechannel()
extension on theMessagePort
class indart:html
has been kept.
Oncedart:html
is removed from the Dart SDK, that extension will have to be removed from drift as well. - Fix cast errors in the protocol for remote workers when compiling with
dart2wasm
. - Introduce a faster protocol for communicating with workers. This protocol is enabled automatically after upgrading
drift_worker.js
.
Generator
- Strip leading numbers when generating modular accessor names for drift files, fixing syntax errors.
- Support triggers targeting views.
- Include dialect-specific constraints in exported schema files.
- Fix
schema export
not respecting column constraints of the target dialect. - Resolve
json_extract
return types from context if possible.