diff --git a/drift/CHANGELOG.md b/drift/CHANGELOG.md index 0a6a047bd..4dba09dc1 100644 --- a/drift/CHANGELOG.md +++ b/drift/CHANGELOG.md @@ -1,4 +1,4 @@ -## 2.21.0-dev +## 2.20.1 - Migrate legacy `package:drift/web.dart` to the new JS interop SDK libraries. For backwards compatibility, the `channel()` extension on the `MessagePort` @@ -7,6 +7,8 @@ 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`. ## 2.20.0 diff --git a/drift/lib/src/remote/web_protocol.dart b/drift/lib/src/remote/web_protocol.dart index 7deb997aa..4b260e6a4 100644 --- a/drift/lib/src/remote/web_protocol.dart +++ b/drift/lib/src/remote/web_protocol.dart @@ -1,3 +1,11 @@ +/// This is a variant of `protocol.dart` that, instead of serializing to simple +/// values (e.g. strings, numbers, blobs and list thereof), serializes to +/// `JSObject`s. +/// +/// This has a a few advantages, like avoiding an expensive `jsify`/`dartify` +/// call afterwards as well a more efficient transport of byte data. Finally, we +/// have a different encoding for [int] and [double] values that ensures they're +/// preserved, which is not possible with the default translation on the web. // ignore_for_file: constant_identifier_names @internal library; diff --git a/drift/pubspec.yaml b/drift/pubspec.yaml index f5dfd3457..c165285ab 100644 --- a/drift/pubspec.yaml +++ b/drift/pubspec.yaml @@ -1,6 +1,6 @@ name: drift description: Drift is a reactive library to store relational data in Dart and Flutter applications. -version: 2.20.0 +version: 2.20.1 repository: https://github.com/simolus3/drift homepage: https://drift.simonbinder.eu/ issue_tracker: https://github.com/simolus3/drift/issues diff --git a/drift_dev/pubspec.yaml b/drift_dev/pubspec.yaml index cd33a7eea..ce1f43bbc 100644 --- a/drift_dev/pubspec.yaml +++ b/drift_dev/pubspec.yaml @@ -1,6 +1,6 @@ name: drift_dev description: Dev-dependency for users of drift. Contains the generator and development tools. -version: 2.20.2-dev +version: 2.20.2 repository: https://github.com/simolus3/drift homepage: https://drift.simonbinder.eu/ issue_tracker: https://github.com/simolus3/drift/issues diff --git a/sqlparser/pubspec.yaml b/sqlparser/pubspec.yaml index a66cb42b1..45c43a5dd 100644 --- a/sqlparser/pubspec.yaml +++ b/sqlparser/pubspec.yaml @@ -1,6 +1,6 @@ name: sqlparser description: Parses sqlite statements and performs static analysis on them -version: 0.38.0-dev +version: 0.38.0 homepage: https://github.com/simolus3/drift/tree/develop/sqlparser repository: https://github.com/simolus3/drift #homepage: https://drift.simonbinder.eu/