From 868c0e3f05ea737592e3972d7f14b6fa2cacd8f9 Mon Sep 17 00:00:00 2001 From: Simon Binder Date: Sun, 27 Nov 2022 16:51:40 +0100 Subject: [PATCH 1/2] Run modular builder as integration test --- tool/misc_integration_test.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tool/misc_integration_test.sh b/tool/misc_integration_test.sh index c616fced..265f2619 100755 --- a/tool/misc_integration_test.sh +++ b/tool/misc_integration_test.sh @@ -12,6 +12,12 @@ dart pub upgrade dart run build_runner build --delete-conflicting-outputs popd +pushd examples/modular +echo "Running build runner in modular example" +dart pub upgrade +dart run build_runner build --delete-conflicting-outputs +popd + pushd examples/migrations_example echo "Testing migrations in migrations_example" dart pub upgrade From a837e51fdaef980497af0c53f9a92e74fd804ba4 Mon Sep 17 00:00:00 2001 From: Simon Binder Date: Sun, 27 Nov 2022 17:05:16 +0100 Subject: [PATCH 2/2] Prepare pubspecs for new release --- drift/CHANGELOG.md | 4 ++-- drift/pubspec.yaml | 2 +- drift_dev/CHANGELOG.md | 7 +++++++ drift_dev/pubspec.yaml | 4 ++-- sqlparser/CHANGELOG.md | 2 +- sqlparser/pubspec.yaml | 3 ++- 6 files changed, 15 insertions(+), 7 deletions(-) diff --git a/drift/CHANGELOG.md b/drift/CHANGELOG.md index 7228f261..85dffc02 100644 --- a/drift/CHANGELOG.md +++ b/drift/CHANGELOG.md @@ -1,4 +1,4 @@ -## 2.3.0-dev +## 2.3.0 - Add the `JsonTypeConverter2` mixin. It behaves similar to the existing json type converters, but can use a different SQL and JSON type. @@ -8,7 +8,7 @@ - Add `TableStatements.insertAll` to atomically insert multiple rows. - Add `singleClientMode` to `remote()` and `DriftIsolate` connections to make the common case with one client more efficient. -- Fix a concurrency issues around transactions. +- Fix a concurrency issue around transactions. - Add `NativeDatabase.createInBackground` as a drop-in replacement for `NativeDatabase`. It creates a drift isolate behind the scenes, avoiding all of the boilerplate usually involved with drift isolates. diff --git a/drift/pubspec.yaml b/drift/pubspec.yaml index c54be69a..70d5f88c 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.3.0-dev +version: 2.3.0 repository: https://github.com/simolus3/drift homepage: https://drift.simonbinder.eu/ issue_tracker: https://github.com/simolus3/drift/issues diff --git a/drift_dev/CHANGELOG.md b/drift_dev/CHANGELOG.md index 9445d043..f944f65d 100644 --- a/drift_dev/CHANGELOG.md +++ b/drift_dev/CHANGELOG.md @@ -1,3 +1,10 @@ +## 2.3.0 + +- Support drift 2.3.x +- Re-implement drift's internal analyzer to make the build process more efficient. +- Add an optional, modular build mode in which drift generates code for each + file declaring tables instead of emitting a large file just for the entrypoint. + ## 2.2.0+1 - __Potentially breaking bug-fix__: Fix the nullability of columns generated for diff --git a/drift_dev/pubspec.yaml b/drift_dev/pubspec.yaml index a5ed12c9..4c145ec4 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 a the generator and development tools. -version: 2.3.0-dev +version: 2.3.0 repository: https://github.com/simolus3/drift homepage: https://drift.simonbinder.eu/ issue_tracker: https://github.com/simolus3/drift/issues @@ -27,7 +27,7 @@ dependencies: # Drift-specific analysis and apis drift: '>=2.3.0 <2.4.0' sqlite3: '>=0.1.6 <2.0.0' - sqlparser: ^0.24.0-dev + sqlparser: ^0.24.0 # Dart analysis analyzer: ^5.2.0 diff --git a/sqlparser/CHANGELOG.md b/sqlparser/CHANGELOG.md index 9a1bb243..969a9ea2 100644 --- a/sqlparser/CHANGELOG.md +++ b/sqlparser/CHANGELOG.md @@ -1,4 +1,4 @@ -## 0.24.0-dev +## 0.24.0 - Make `Fts5Table` constructor public. diff --git a/sqlparser/pubspec.yaml b/sqlparser/pubspec.yaml index 56a0345d..7208d870 100644 --- a/sqlparser/pubspec.yaml +++ b/sqlparser/pubspec.yaml @@ -1,7 +1,8 @@ name: sqlparser description: Parses sqlite statements and performs static analysis on them -version: 0.24.0-dev +version: 0.24.0 homepage: https://github.com/simolus3/drift/tree/develop/sqlparser +repository: https://github.com/simolus3/drift #homepage: https://drift.simonbinder.eu/ issue_tracker: https://github.com/simolus3/drift/issues