diff --git a/moor/CHANGELOG.md b/moor/CHANGELOG.md index 295403f2..2c90325d 100644 --- a/moor/CHANGELOG.md +++ b/moor/CHANGELOG.md @@ -1,4 +1,4 @@ -## 1.6 (unreleased) +## 1.6.0 - Experimental web support! See [the documentation](https://moor.simonbinder.eu/web) for details. - Make transactions easier to use: Thanks to some Dart async magic, you no longer need to run queries on the transaction explicitly. This @@ -25,6 +25,7 @@ - Date time columns are now comparable - The `StringType` now supports arbitrary data from sqlite ([#70](https://github.com/simolus3/moor/pull/70)). Thanks, [knaeckeKami](https://github.com/knaeckeKami)! +- Bugfixes related to stream queries and `LIMIT` clauses. ## 1.5.1 - Fixed an issue where transformed streams would not always update diff --git a/moor/lib/moor_web.dart b/moor/lib/moor_web.dart index 7e1912f4..8cea0ba3 100644 --- a/moor/lib/moor_web.dart +++ b/moor/lib/moor_web.dart @@ -1,6 +1,7 @@ /// A version of moor that runs on the web by using [sql.js](https://github.com/kripken/sql.js) /// You manually need to include that library into your website to use the -/// web version of moor. +/// web version of moor. See [the documentation](https://moor.simonbinder.eu/web) +/// for a more detailed instruction. @experimental library moor_web; diff --git a/moor/pubspec.yaml b/moor/pubspec.yaml index c7ec1d7f..4edfcf3c 100644 --- a/moor/pubspec.yaml +++ b/moor/pubspec.yaml @@ -1,6 +1,6 @@ name: moor description: Moor is a safe and reactive persistence library for Dart applications -version: 1.5.1+1 +version: 1.6.0 repository: https://github.com/simolus3/moor homepage: https://moor.simonbinder.eu/ issue_tracker: https://github.com/simolus3/moor/issues @@ -17,7 +17,7 @@ dependencies: synchronized: ^2.1.0 dev_dependencies: - moor_generator: ^1.5.0 + moor_generator: ^1.6.0 build_runner: '>=1.3.0 <2.0.0' build_test: ^0.10.8 test: ^1.6.4 diff --git a/moor_flutter/CHANGELOG.md b/moor_flutter/CHANGELOG.md index aab7f547..dceffae6 100644 --- a/moor_flutter/CHANGELOG.md +++ b/moor_flutter/CHANGELOG.md @@ -1,3 +1,32 @@ +## 1.6.0 +- Experimental web support! See [the documentation](https://moor.simonbinder.eu/web) for details. +- Make transactions easier to use: Thanks to some Dart async magic, you no longer need to run + queries on the transaction explicitly. This + ```dart + Future deleteCategory(Category category) { + return transaction((t) async { + await t.delete(categories).delete(category); + }); + } + ``` + is now the same as this (notice how we don't have to use the `t.` in front of the delete) + ```dart + Future deleteCategory(Category category) { + return transaction((t) async { + await delete(categories).delete(category); + }); + } + ``` + This makes it much easier to compose operations by extracting them into methods, as you don't + have to worry about not using the `t` parameter. +- Moor now provides syntax sugar for list parameters in compiled custom queries + (`SELECT * FROM entries WHERE id IN ?`) +- Support `COLLATE` expressions. +- Date time columns are now comparable +- The `StringType` now supports arbitrary data from sqlite ([#70](https://github.com/simolus3/moor/pull/70)). + Thanks, [knaeckeKami](https://github.com/knaeckeKami)! +- Bugfixes related to stream queries and `LIMIT` clauses. + ## 1.5.0 This version introduces some new concepts and features, which are explained in more detail below. Here is a quick overview of the new features: diff --git a/moor_flutter/pubspec.yaml b/moor_flutter/pubspec.yaml index b5f58cf8..5e6cd698 100644 --- a/moor_flutter/pubspec.yaml +++ b/moor_flutter/pubspec.yaml @@ -1,6 +1,6 @@ name: moor_flutter description: Flutter implementation of moor, a safe and reactive persistence library for Dart applications -version: 1.5.0 +version: 1.6 repository: https://github.com/simolus3/moor homepage: https://moor.simonbinder.eu/ issue_tracker: https://github.com/simolus3/moor/issues @@ -12,7 +12,7 @@ environment: sdk: ">=2.0.0-dev.68.0 <3.0.0" dependencies: - moor: ^1.4.0 + moor: ^1.6.0 sqflite: ^1.1.0 meta: '>=1.0.0 <1.2.0' path: '>=1.0.0 <2.0.0' diff --git a/moor_generator/CHANGELOG.md b/moor_generator/CHANGELOG.md index d0b2fcc2..ea2505ce 100644 --- a/moor_generator/CHANGELOG.md +++ b/moor_generator/CHANGELOG.md @@ -1,3 +1,6 @@ +## 1.6.0 +- Generate code to expand array variables + ## 1.5.0 - Parse custom queries and write generated mapping code. - Refactorings and minor improvements in the generator diff --git a/moor_generator/pubspec.yaml b/moor_generator/pubspec.yaml index 9d4da450..b4712b73 100644 --- a/moor_generator/pubspec.yaml +++ b/moor_generator/pubspec.yaml @@ -1,6 +1,6 @@ name: moor_generator description: Dev-dependency to generate table and dataclasses together with the moor package. -version: 1.5.0 +version: 1.6.0 repository: https://github.com/simolus3/moor homepage: https://moor.simonbinder.eu/ issue_tracker: https://github.com/simolus3/moor/issues @@ -19,9 +19,9 @@ dependencies: source_span: ^1.5.5 build: ^1.1.0 build_config: '>=0.3.1 <1.0.0' - moor: ^1.4.0 + moor: ^1.6.0 meta: '>= 1.0.0 <2.0.0' - sqlparser: ^0.1.0 + sqlparser: ^0.1.2 dev_dependencies: test: ^1.6.0 test_api: ^0.2.0 diff --git a/sqlparser/CHANGELOG.md b/sqlparser/CHANGELOG.md index 2b2aaa11..c48db485 100644 --- a/sqlparser/CHANGELOG.md +++ b/sqlparser/CHANGELOG.md @@ -1,5 +1,6 @@ -## unreleased +## 0.1.2 - parse `COLLATE` expressions +- fix wrong order in parsed `LIMIT` clauses ## 0.1.1 Attempt to recognize when a bound variable should be an array (eg. in `WHERE x IN ?`). diff --git a/sqlparser/pubspec.yaml b/sqlparser/pubspec.yaml index c934c2f9..505e2394 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.1.1 +version: 0.1.2 homepage: https://github.com/simolus3/moor/tree/develop/sqlparser #homepage: https://moor.simonbinder.eu/ issue_tracker: https://github.com/simolus3/moor/issues