Skip to content

Commit

Permalink
Prepare 2.4.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
simolus3 committed Dec 28, 2022
1 parent 37101cf commit a98890b
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion drift/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
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.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
Expand Down
6 changes: 4 additions & 2 deletions drift_dev/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions 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 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
Expand All @@ -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
Expand Down
5 changes: 5 additions & 0 deletions sqlparser/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 0 additions & 2 deletions sqlparser/lib/src/reader/parser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,6 @@ class Parser {
} else {
_suggestHintForTokens([TokenType.create, TokenType.import]);

if (_reportAutoComplete) {}

file.setSpan(first, first); // empty file
}
return file;
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.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/
Expand Down

0 comments on commit a98890b

Please sign in to comment.