Final preparations for the 1.6 release

Short summary of updates
- web support
- using zones to resolve the current transaction
- comparable date time values
- collate expressions
- many bug fixes
This commit is contained in:
Simon Binder 2019-07-12 10:52:42 +02:00
parent be371a3005
commit f21021a6e9
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
9 changed files with 46 additions and 11 deletions

View File

@ -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

View File

@ -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;

View File

@ -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

View File

@ -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:

View File

@ -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'

View File

@ -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

View File

@ -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

View File

@ -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 ?`).

View File

@ -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