Prepare 2.4.0 release

This commit is contained in:
Simon Binder 2022-12-28 23:15:12 +01:00
parent 37101cf839
commit a98890b1c9
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
7 changed files with 14 additions and 9 deletions

View File

@ -1,4 +1,4 @@
## 2.4.0-dev
## 2.4.0
- Add `textEnum` column builder and `EnumNameConverter` to be able to store enum
values as string.

View File

@ -1,6 +1,6 @@
name: drift
description: Drift is a reactive library to store relational data in Dart and Flutter applications.
version: 2.4.0-dev
version: 2.4.0
repository: https://github.com/simolus3/drift
homepage: https://drift.simonbinder.eu/
issue_tracker: https://github.com/simolus3/drift/issues

View File

@ -1,11 +1,13 @@
## 2.4.0-dev
## 2.4.0
- Add the support for `textEnum`.
- Add support for `textEnum` columns in Dart (or `ENUMNAME` in `.drift`) to store enum columns as text (via `Enum.name`).
- Adds the `case_from_dart_to_sql` option with the possible values: `preserve`, `camelCase`, `CONSTANT_CASE`, `snake_case`, `PascalCase`, `lowercase` and `UPPERCASE` (default: `snake_case`).
- `drift_dev schema dump` can now dump the schema of existing sqlite3 database files as well.
- Warn about suspicious int or text literals being inserted into enum columns.
- Support [existing row types on queries](https://drift.simonbinder.eu/docs/advanced-features/custom_row_classes/#queries)
defined in drift files.
- For Dart-defined columns, `customConstraint`s are now parsed and respected by the generator.
- It is now allowed to interleave queries and tables in a drift file.
- Experimental support for Dart records as existing row or query types. Please note that
records aren't stable yet in Dart or Drift, so this feature might be changed
or removed depending on its development in the Dart language.

View File

@ -1,6 +1,6 @@
name: drift_dev
description: Dev-dependency for users of drift. Contains a the generator and development tools.
version: 2.4.0-dev
version: 2.4.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.4.0 <2.5.0'
sqlite3: '>=0.1.6 <2.0.0'
sqlparser: ^0.24.0
sqlparser: ^0.25.0
# Dart analysis
analyzer: ^5.2.0

View File

@ -1,3 +1,8 @@
## 0.25.0
- Better analysis support for `ANY` columns in `STRICT` tables.
- Assign resolved schema columns to synctactical `ResultColumn` in queries.
## 0.24.0
- Make `Fts5Table` constructor public.

View File

@ -266,8 +266,6 @@ class Parser {
} else {
_suggestHintForTokens([TokenType.create, TokenType.import]);
if (_reportAutoComplete) {}
file.setSpan(first, first); // empty file
}
return file;

View File

@ -1,6 +1,6 @@
name: sqlparser
description: Parses sqlite statements and performs static analysis on them
version: 0.24.0
version: 0.25.0
homepage: https://github.com/simolus3/drift/tree/develop/sqlparser
repository: https://github.com/simolus3/drift
#homepage: https://drift.simonbinder.eu/