Skip to content

Commit

Permalink
Prepare minor drift release
Browse files Browse the repository at this point in the history
  • Loading branch information
simolus3 committed Sep 8, 2024
1 parent 6dadf68 commit 74af262
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
4 changes: 3 additions & 1 deletion drift/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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`
Expand All @@ -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

Expand Down
8 changes: 8 additions & 0 deletions drift/lib/src/remote/web_protocol.dart
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion drift/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion drift_dev/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion sqlparser/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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/
Expand Down

0 comments on commit 74af262

Please sign in to comment.